From 12fe9016bf098fead4a3562009b515ad4f295ec1 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 27 May 2006 23:27:42 +0000 Subject: [PATCH] Ejercicios de parcial de modelos. --- parcial_20051126.mod | 13 +++++++++++++ parcial_20051126_dual.mod | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 parcial_20051126.mod create mode 100644 parcial_20051126_dual.mod diff --git a/parcial_20051126.mod b/parcial_20051126.mod new file mode 100644 index 0000000..6d671c6 --- /dev/null +++ b/parcial_20051126.mod @@ -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 index 0000000..a32dae2 --- /dev/null +++ b/parcial_20051126_dual.mod @@ -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; + -- 2.43.0