]> git.llucax.com Git - z.facultad/71.14/ejercicios.git/commitdiff
Ejercicios de parcial de modelos. master svn_import
authorLeandro Lucarella <llucax@gmail.com>
Sat, 27 May 2006 23:27:42 +0000 (23:27 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 27 May 2006 23:27:42 +0000 (23:27 +0000)
parcial_20051126.mod [new file with mode: 0644]
parcial_20051126_dual.mod [new file with mode: 0644]

diff --git a/parcial_20051126.mod b/parcial_20051126.mod
new file mode 100644 (file)
index 0000000..6d671c6
--- /dev/null
@@ -0,0 +1,13 @@
+
+var x1, >= 0;
+var x2, >= 0;
+
+maximize
+       value: 80 * x1 + 50 * x2;
+
+subject to
+       a:              x2 >= 20;
+       b:     x1 + 2 * x2 <= 100;
+       c: 4 * x1 +     x2 <= 400;
+end;
+
diff --git a/parcial_20051126_dual.mod b/parcial_20051126_dual.mod
new file mode 100644 (file)
index 0000000..a32dae2
--- /dev/null
@@ -0,0 +1,13 @@
+
+var Y1, >= 0;
+var Y2, >= 0;
+var Y3, >= 0;
+
+minimize
+       value: -20 * Y1 + 100 * Y2 + 400 * Y3;
+
+subject to
+       a:               Y2 + 4 * Y3 >= 80;
+       b: -1 * Y1 + 2 * Y2 +     Y3 >= 50;
+end;
+