lingo中的语法问题程序如下sets:r/1..2/:a;e/1..4/:b;link(r,e):c,x;endsetsmin=@sum(link(i,j):c(i,j)*x(i,j));ST@for(r(i): @sum(e(j):x(i,j))=a(i));@for(e(j): @sum(r(i):x(i,j))=b(j));end错误如截图:
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 08:49:29
lingo中的语法问题程序如下sets:r/1..2/:a;e/1..4/:b;link(r,e):c,x;endsetsmin=@sum(link(i,j):c(i,j)*x(i,j));ST@for(r(i): @sum(e(j):x(i,j))=a(i));@for(e(j): @sum(r(i):x(i,j))=b(j));end错误如截图:
lingo中的语法问题
程序如下
sets:
r/1..2/:a;
e/1..4/:b;
link(r,e):c,x;
endsets
min=@sum(link(i,j):c(i,j)*x(i,j));
ST
@for(r(i): @sum(e(j):x(i,j))=a(i));
@for(e(j): @sum(r(i):x(i,j))=b(j));
end
错误如截图:
lingo中的语法问题程序如下sets:r/1..2/:a;e/1..4/:b;link(r,e):c,x;endsetsmin=@sum(link(i,j):c(i,j)*x(i,j));ST@for(r(i): @sum(e(j):x(i,j))=a(i));@for(e(j): @sum(r(i):x(i,j))=b(j));end错误如截图:
sets:
r/1..2/:a;
e/1..4/:b;
link(r,e):c,x;
endsets
min=@sum(link(i,j):c(i,j)*x(i,j));
ST !这个是什么?lingo语法里没有这个;
@for(r(i):@sum(e(j):x(i,j))=a(i));
@for(e(j):@sum(r(i):x(i,j))=b(j));
end