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/12/20 17:13:44
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