min = 2x1 + 3x2
x1 + x2 >= 350
x1 > 100
2x1 + x2 < 600
x1,x2>0
代码:
min = 2*x1 + 3*x2;
x1 + x2 >= 350;
x1 > 100;
2*x1 + x2 < 600;
运行后:
Global optimal solution found. Objective value:800.0000 Infeasibilities: 0.000000 Total solver iterations: 2
Variable Value Reduced Cost X1 250.0000 0.000000 X2 100.0000 0.000000
Row Slack or Surplus Dual Price1 800.0000 -1.0000002 0.000000 -4.0000003 150.0000 0.0000004 0.000000 1.000000
x1 + x2 >= 350
x1 > 100
2x1 + x2 < 600
x1,x2>0
代码:
min = 2*x1 + 3*x2;
x1 + x2 >= 350;
x1 > 100;
2*x1 + x2 < 600;
运行后:
Global optimal solution found. Objective value:800.0000 Infeasibilities: 0.000000 Total solver iterations: 2
Variable Value Reduced Cost X1 250.0000 0.000000 X2 100.0000 0.000000
Row Slack or Surplus Dual Price1 800.0000 -1.0000002 0.000000 -4.0000003 150.0000 0.0000004 0.000000 1.000000