<>修改及答案</P><>model:</P><>sets:</P><P>days/1..4/:c,x;</P><P>nu/1..4/:n;</P><P>xialiao(nu,days):b;</P><P>endsets</P><P>data:</P><P>b=1 2 3 4
0 0 1 4
3 4 5 6
7 5 6 7;</P><P>c=4 3 1 2;</P><P>n=22 55 33 44;</P><P>enddata</P><P>min <a href="mailt=@sum" target="_blank" >=@sum</A>( days:c*x);</P><P>@sum(days:x)<=400; </P><P>@for(nu(i):</P><P> @sum(days(j):b(i,j)*x(i))=n(i)</P><P> );</P><P>end</P><P>Global optimal solution found at iteration: 0
Objective value: 47.15333</P><P>
Variable Value Reduced Cost
C( 1) 4.000000 0.000000
C( 2) 3.000000 0.000000
C( 3) 1.000000 0.000000
C( 4) 2.000000 0.000000
X( 1) 2.200000 0.000000
X( 2) 11.00000 0.000000
X( 3) 1.833333 0.000000
X( 4) 1.760000 0.000000
N( 1) 22.00000 0.000000
N( 2) 55.00000 0.000000
N( 3) 33.00000 0.000000
N( 4) 44.00000 0.000000
B( 1, 1) 1.000000 0.000000
B( 1, 2) 2.000000 0.000000
B( 1, 3) 3.000000 0.000000
B( 1, 4) 4.000000 0.000000
B( 2, 1) 0.000000 0.000000
B( 2, 2) 0.000000 0.000000
B( 2, 3) 1.000000 0.000000
B( 2, 4) 4.000000 0.000000
B( 3, 1) 3.000000 0.000000
B( 3, 2) 4.000000 0.000000
B( 3, 3) 5.000000 0.000000
B( 3, 4) 6.000000 0.000000
B( 4, 1) 7.000000 0.000000
B( 4, 2) 5.000000 0.000000
B( 4, 3) 6.000000 0.000000
B( 4, 4) 7.000000 0.000000</P><P> Row Slack or Surplus Dual Price
1 47.15333 -1.000000
2 383.2067 0.000000
3 0.000000 -0.4000000
4 0.000000 -0.6000000
5 0.000000 -0.5555556E-01
6 0.000000 -0.8000000E-01</P><P>
</P> |