model:
sets:
Am/1..3/:a; Bm/1..4/:b;routes(Am,Bm):c,v;
endsets
!the objective; min=@sum(routes:c*v);
!约束条件;
@for(Am(i):@sum(Bm(j):v(i,j))<a(i);
@for(Bm(j):@sum(Am(i):v(i,j))=b(j);
data:
a=7,9,7; b=3,5,7,8;
c=12,13,10,11
10,12,14,10
14,11,15,12;
enddata
end
这个代码有什么问题?
lingo11.0 一直显示Missing right parenthesis
答案:1 悬赏:40 手机版
解决时间 2021-03-11 21:01
- 提问者网友:温旧梦泪无声
- 2021-03-11 17:09
最佳答案
- 五星知识达人网友:傲气稳了全场
- 2021-03-11 17:44
@for(Am(i):@sum(Bm(j):v(i,j))<a(i));
@for(Bm(j):@sum(Am(i):v(i,j))=b(j));
@for(Bm(j):@sum(Am(i):v(i,j))=b(j));
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯