|
发表于 2004-9-15 19:01:38
|
显示全部楼层
<>我在LINGO8.0上做得到的结果同 <FONT color=#000066><B>hExplorer</B></FONT> 一样</P><>设:</P><>2.9, 2.1, 1.5
0, 0, 4, x1
0, 1, 3, x2
0, 2, 2, x3
0, 3, 0, x4
1, 0, 3, x5
1, 1, 1, x6
1, 2, 0, x7
2, 0, 1, x8
</P><P>model:
min=x1+x2+x3+x4+x5+x6+x7+x8;
0*x1+0*x2+0*x3+0*x4+1*x5+1*x6+1*x7+2*x8=100; !2.9m;
0*x1+1*x2+2*x3+3*x4+0*x5+1*x6+2*x7+0*x8=100; !2.1m;
4*x1+3*x2+2*x3+0*x4+3*x5+1*x6+0*x7+1*x8=100; !1.5m;
end</P><P>结果为</P><P> Global optimal solution found at iteration: 2
Objective value: 90.00000</P><P>
Variable Value Reduced Cost
X1 0.000000 0.2000000
X2 0.000000 0.1000000
X3 30.00000 0.000000
X4 0.000000 0.1000000
X5 0.000000 0.000000
X6 0.000000 0.1000000
X7 20.00000 0.000000
X8 40.00000 0.000000</P><P> Row Slack or Surplus Dual Price
1 90.00000 -1.000000
2 0.000000 -0.4000000
3 0.000000 -0.3000000
4 0.000000 -0.2000000</P> |
|