- 积分
- 5785
- 明经币
- 个
- 注册时间
- 2007-8-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2014-7-21 09:17:18
|
显示全部楼层
LINGO
sets:
bujian:L,b;
cutfa/1,2/:x;
links(bujian,cutfa):N;
endsets
data:
L = 698,518;
b = 4000,3600;
enddata
min=@sum(cutfa:x);ZL = 4000;
@for(bujian(i):@sum(cutfa(j):N(i,j)*x(j))>=b(i));
@for(cutfa(j):@sum(bujian(i):L(i)*N(i,j))<=ZL);
@for(cutfa:@gin(x));
@for(links:@gin(N));
计算结果
Local optimal solution found.
Objective value: 1200.000
Objective bound: 1200.000
Infeasibilities: 0.000000
Extended solver steps: 18
Total solver iterations: 1483
Variable Value
ZL 4000.000
L( 1) 698.0000
L( 2) 518.0000
B( 1) 4000.000
B( 2) 3600.000
X( 1) 800.0000
X( 2) 400.0000
N( 1, 1) 4.000000
N( 1, 2) 2.000000
N( 2, 1) 2.000000
N( 2, 2) 5.000000
Row Slack or Surplus
1 1200.000
2 0.000000
3 0.000000
4 0.000000
5 172.0000
6 14.00000 |
|