xyp1964
发表于 2014-7-21 08:41:03
ivde
发表于 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
ynhh
发表于 2014-7-21 10:54:24
你这下料的数量也太多了哈
风树
发表于 2014-7-21 20:01:44
ivde 发表于 2014-7-21 09:17 static/image/common/back.gif
LINGO
sets:
谢谢,参与
zgwcom
发表于 2019-1-11 11:27:12
用这款免费的套料软件吧!
xfjiamy
发表于 2019-1-20 11:26:43
本帖最后由 xfjiamy 于 2019-1-20 11:33 编辑
是不是这样的线材优化
laorenhao999
发表于 2024-4-21 13:30:56
xfjiamy 发表于 2019-1-20 11:26
是不是这样的线材优化
你这个厉害,这是什么插件