Professional Documents
Culture Documents
Optimisation Software
LINGO
or
max = ;
Optimisation Software
LINGO Output
Model:
min = 80*x1 + 60*x2;
0.2*x1 + 0.32*x2 < 0.25;
x1 + x2 = 1;
x1 > 0;
x2 > 0;
end
Rows=
5
Nonzeros=
Smallest and
No. <
Vars=
2 No. integer vars=
0 ( all are linear)
10 Constraint nonz=
6(
4 are +- 1) Density=0.667
largest elements in absolute value=
0.200000
80.0000
:
1 No. =:
1 No. > :
2, Obj=MIN, GUBs <=
2
Single cols=
0
Optimal solution found at step:
0
Objective value:
71.66667
Variable
Value
Reduced Cost
X1
0.5833333
0.0000000E+00
X2
0.4166667
0.0000000E+00
Row
Slack or Surplus
Dual Price
1
71.66667
1.000000
2
0.0000000E+00
166.6667
3
0.0000000E+00
-113.3333
4
0.5833333
0.0000000E+00
5
0.4166667
0.0000000E+00
71.6667
0.5833
0.4167
Lab Experiment
OC = 4(x1)2 + 5(x2)2
x1 > 0;
x2 > 0;
end
LINGO Output
Rows=
Nonlinear rows=
Nonzeros=
4 Vars=
2 No. integer vars=
0
1 Nonlinear vars=
2 Nonlinear constraints=
7 Constraint nonz=
4 Density=0.583
4
12.85714
Value
1.071429
1.285714
Slack or Surplus
12.85714
0.0000000E+00
1.071429
1.285714
Reduced Cost
0.0000000E+00
0.0000000E+00
Dual Price
1.000000
-4.285715
0.1939524E-07
0.0000000E+00
12.857
1.071
1.286
3x1 + 2x2 18
Gaseous Fuel
x1 kg gas. fuel/s
Net profit $3/kg
of gaseous fuel
x1 4
Byproducts
(negligible value)
Liquid Fuel
x2 kg liquid fuel/s
Net profit $5/kg
of liquid fuel
2x2 12
Byproducts
(negligible value)
Pretreatment capacity
Gasification capacity
Liquefaction capacity
Non-negativity
3x1 + 2x2 18
x1 4
2x2 12
x1 0
x2 0
x2
10
x1 = 4
3x1 + 2x2 = 18
2x2 = 12
6
4
2
x1
0
0
Graphical solution
x2
x2
10
10
x1 = 4
3x1 + 2x2 = 18
Z = 36 = 3x1 + 5x2
2x2 = 12
Z = 20 = 3x1 + 5x2
4
Z = 10 = 3x1 + 5x2
2
x1
0
0
x1
0
0
LINGO Output
Model:
Rows=
6 Vars=
2 No. integer vars=
0 ( all are linear)
Nonzeros=
11 Constraint nonz=
6(
3 are +- 1) Density=0.611
Smallest and largest elements in absolute value=
1.00000
18.0000
No. < :
3 No. =:
0 No. > :
2, Obj=MAX, GUBs <=
2
Single cols=
0
end
1
36.00000
Value
2.000000
6.000000
Slack or Surplus
36.00000
2.000000
0.0000000E+00
0.0000000E+00
2.000000
6.000000
Reduced Cost
0.0000000E+00
0.0000000E+00
Dual Price
1.000000
0.0000000E+00
1.500000
1.000000
0.0000000E+00
0.0000000E+00
36
Methanol Delivery
Tons/day
A
B
C
6
1
10
Capacity
MeAc Plant A
MeAc Plant B
MeAc Plant C
11
15
MeAc Plant A
MeAc Plant B
MeAc Plant C
X1A
X1B
X1C
X2A
X2B
X2C
X3A
X3B
X3C
X4A
X4B
X4C
Objective function
Constraints
min Z =
Availability/supply
Requirements/demand
Constraints
Non-negativity
X1A 0
X1B 0
X1C 0
X2A 0
X2B 0
X2C 0
X3A 0
X3B 0
X3C 0
X4A 0
X4B 0
X4C 0