Lingo程序错误11

2025-05-05 06:29:50
推荐回答(1个)
回答1:

max = 1.2*x31+1.6*x23+1.4*x34;

x11+x12=300000;
x21+x23=1.2*x11;
x31+x34=1.2*x21+1.5*x12;
x12<=150000;
x23<=200000;
x34<=100000;

运行结果:

Global optimal solution found.
Objective value: 580000.0
Infeasibilities: 0.000000
Total solver iterations: 3

Variable Value Reduced Cost
X31 100000.0 0.000000
X23 200000.0 0.000000
X34 100000.0 0.000000
X11 166666.7 0.000000
X12 133333.3 0.000000
X21 0.000000 0.6000000E-01

Row Slack or Surplus Dual Price
1 580000.0 1.000000
2 0.000000 1.800000
3 0.000000 1.500000
4 0.000000 1.200000
5 16666.67 0.000000
6 0.000000 0.1000000
7 0.000000 0.2000000