Lingo软件的使用
max=5*x1+3*x2+6*x3;
x1+2*x2+x3<=18;
2*x1+x2+3*x3=16;
x1+x2+x3=10;
@free(x3);
end
计算机求出最优解
Global optimal solution found.
Objective value: 46.00000
Total solver iterations: 2
Variable Value Reduced Cost
X1 14.00000 0.000000
X2 0.000000 1.000000
X3 -4.000000 0.000000
Row Slack or Surplus Dual Price
1 46.00000 1.000000
2 8.000000 0.000000
3 0.000000 1.000000
4 0.000000 3.000000