帮我用lingo或者lindo算个题呗?
1个回答

min=(5*x1+4*x2+3*x3+3*x4+3*x5+3*x6+4*x7)*60+(x2+x3+x4+x5+x6)*85+(x3+x4+x5+x6+x7)*90 ;

x1+x4+x5+x6+x7>20;

x1+x2+x5+x6+x7>13;

x1+x2+x3+x6+x7>10;

x1+x2+x3+x4+x7>12;

x1+x2+x3+x4+x5>16;

x2+x3+x4+x5+x6>18;

x3+x4+x5+x6+x7>20;

end

Global optimal solution found at iteration:7

Objective value:7650.000

Variable Value Reduced Cost

X1 2.000000 0.000000

X2 0.000000 100.0000

X3 2.000000 0.000000

X4 6.000000 0.000000

X5 6.000000 0.000000

X6 4.000000 0.000000

X7 2.000000 0.000000

Row Slack or Surplus Dual Price

1 7650.000 -1.000000

2 0.000000 -100.0000

3 1.000000 0.000000

4 0.000000 -100.0000

5 0.000000 0.000000

6 0.000000 -100.0000

7 0.000000 -25.00000

8 0.000000 -130.0000