2.LINGO代码:
max=1.15*x14+1.35*x23+1.38*x32+1.06*x45; x11+x41=100;
x12+x32+x42=1.06*x41;
x13+x23+x43=1.06*x42+1.15*x11-8; x14+x44=1.06*x43+1.15*x12; x45=1.06*x44+1.15*x13; x23<=40; x32<=30;
运行结果:
Global optimal solution found.
Objective value: 137.3980 Total solver iterations: 2
Variable Value Reduced Cost X14 36.52000 0.000000 X23 40.00000 0.000000 X32 30.00000 0.000000 X45 0.000000 0.000000 X11 71.69811 0.000000 X41 28.30189 0.000000 X12 0.000000 0.000000 X42 0.000000 0.3036000E-01 X13 0.000000 0.000000 X43 34.45283 0.000000 X44 0.000000 0.2640000E-01
Row Slack or Surplus Dual Price 1 137.3980 1.000000 2 0.000000 1.401850 3 0.000000 1.322500 4 0.000000 1.219000 5 0.000000 1.150000 6 0.000000 1.060000 7 0.000000 0.1310000 8 0.000000 0.5750000E-01
第- 5 -页 共 5页
相关推荐: