略作更改,程序见附件。运行结果如下:
Global optimal solution found.
Objective value: 29.00000
Infeasibilities: 0.000000
Total solver iterations: 18
Model Class: LP
Total variables: 121
Nonlinear variables: 0
Integer variables: 0
Total constraints: 23
Nonlinear constraints: 0
Total nonzeros: 350
Nonlinear nonzeros: 0
Variable Value Reduced Cost
CAPACITY( X1) 27.00000 0.000000
CAPACITY( X2) 24.00000 0.000000
CAPACITY( X3) 29.00000 0.000000
CAPACITY( X4) 20.00000 0.000000
CAPACITY( X5) 20.00000 0.000000
CAPACITY( X6) 20.00000 0.000000
CAPACITY( X7) 20.00000 0.000000
CAPACITY( X8) 20.00000 0.000000
CAPACITY( X9) 20.00000 0.000000
CAPACITY( X10) 20.00000 0.000000
CAPACITY( X11) 20.00000 0.000000
DEMAND( Y1) 20.00000 0.000000
DEMAND( Y2) 20.00000 0.000000
DEMAND( Y3) 20.00000 0.000000
DEMAND( Y4) 20.00000 0.000000
DEMAND( Y5) 20.00000 0.000000
DEMAND( Y6) 20.00000 0.000000
DEMAND( Y7) 20.00000 0.000000
DEMAND( Y8) 23.00000 0.000000
DEMAND( Y9) 26.00000 0.000000
DEMAND( Y10) 25.00000 0.000000
DEMAND( Y11) 26.00000 0.000000
COST( X1, Y1) 0.000000 0.000000
COST( X1, Y2) 1.000000 0.000000
COST( X1, Y3) 3.000000 0.000000
COST( X1, Y4) 2.000000 0.000000
COST( X1, Y5) 1.000000 0.000000
COST( X1, Y6) 4.000000 0.000000
COST( X1, Y7) 3.000000 0.000000
COST( X1, Y8) 3.000000 0.000000
COST( X1, Y9) 11.00000 0.000000
COST( X1, Y10) 3.000000 0.000000
COST( X1, Y11) 10.00000 0.000000
COST( X2, Y1) 1.000000 0.000000
COST( X2, Y2) 0.000000 0.000000
COST( X2, Y3) 100.0000 0.000000
COST( X2, Y4) 3.000000 0.000000
COST( X2, Y5) 5.000000 0.000000
COST( X2, Y6) 100.0000 0.000000
COST( X2, Y7) 2.000000 0.000000
COST( X2, Y8) 1.000000 0.000000
COST( X2, Y9) 9.000000 0.000000
COST( X2, Y10) 2.000000 0.000000
COST( X2, Y11) 0.000000 0.000000
COST( X3, Y1) 3.000000 0.000000
COST( X3, Y2) 100.0000 0.000000
COST( X3, Y3) 0.000000 0.000000
COST( X3, Y4) 1.000000 0.000000
COST( X3, Y5) 100.0000 0.000000
COST( X3, Y6) 2.000000 0.000000
COST( X3, Y7) 3.000000 0.000000
COST( X3, Y8) 7.000000 0.000000
COST( X3, Y9) 4.000000 0.000000
COST( X3, Y10) 10.00000 0.000000
COST( X3, Y11) 5.000000 0.000000
COST( X4, Y1) 2.000000 0.000000
COST( X4, Y2) 3.000000 0.000000
COST( X4, Y3) 1.000000 0.000000