求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 12:55:24
求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8
求大神指教lingo问题,下面代码哪错了?
model:
sets:
w/1..6/:a;
q/1..8/:d;
link(w,q):c,x;
endsets
min=@sum(link:c(i,j)*x(i,j));
@for(w:@sum(q:x)<a);
@for(q:@sum(w:x)=d);
data:
a=60 55 51 43 41 52;
d=35 37 22 32 41 32 43 38;
c=6 2 6 7 4 2 5 9
4 9 5 3 8 5 8 2
5 2 1 9 7 4 3 3
7 6 7 4 9 2 7 1
2 3 9 5 7 2 6 5
5 5 2 2 8 1 4 3;
enddata
end
求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8
集名后面 变量后面都带上下标