lingo模型定义出错问题model: sets: center/1..3/:
答案:2 悬赏:70 手机版
解决时间 2021-01-31 14:33
- 提问者网友:沉默菋噵
- 2021-01-30 19:56
lingo模型定义出错问题model: sets: center/1..3/:
最佳答案
- 五星知识达人网友:英雄的欲望
- 2021-01-30 20:57
model: sets: center/1..3/:u; addr/1..7/:v; w(center,addr):x,y; endsets data: y= 36 24 49 21 81 72 45 30 20 56 24 99 88 55 36 24 63 27 90 80 50 ; enddata [email protected](w:x*y); @sum(addr(j):x(1,j))=3; @sum(addr(j):x(2,j))=2; @sum(addr(j):x(3,j))=2; @for(addr(j):@sum(center(i):x(i,j))=1); @for(w:@bin(x));end结果: Global optimal solution found. Objective value: 329.0000 Objective bound: 329.0000 Infeasibilities: 0.000000 Extended solver steps: 0 Total solver iterations: 0 Variable Value Reduced Cost U( 1) 0.000000 0.000000 U( 2) 0.000000 0.000000 U( 3) 0.000000 0.000000
全部回答
- 1楼网友:洎扰庸人
- 2021-01-30 21:38
正好我需要
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯