第1个回答 2012-04-30
小巴2辆,大巴4辆
这是lingo的程序
(min=240*x+180*y;
80*x+96*y>=480;
x>=0;
y>=0;
x<=7;
y<=4;
@gin(x);@gin(y);
end)
下面是运行的结果
Global optimal solution found.
Objective value: 1200.000
Objective bound: 1200.000
Infeasibilities: 0.000000
Extended solver steps: 0
Total solver iterations: 0
Model Class: PILP
Total variables: 2
Nonlinear variables: 0
Integer variables: 2
Total constraints: 6
Nonlinear constraints: 0
Total nonzeros: 8
Nonlinear nonzeros: 0
Variable Value Reduced Cost
X 2.000000 240.0000
Y 4.000000 180.0000
Row Slack or Surplus Dual Price
1 1200.000 -1.000000
2 64.00000 0.000000
3 2.000000 0.000000
4 4.000000 0.000000
5 5.000000 0.000000
6 0.000000 0.000000