我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 09:24:00
我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))
我的lingo程序报161错误!
model:
sets:
cd/1..3/:a;
xd/1..4/:b;
links(cd,xd):c,x;
px/1..13/:d1,d2;
endsets
data:
a=300 200 400;
b=200 100 450 250;
c=5 2 6 7
3 5 4 6
4 5 2 3;
enddata
min=d2(13);
@for(cd(i):@sum(xd(j):x(i,j))=a(i));
@for(xd(j):@sum(cd(j):x(i,j))
我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))
model:
sets:
cd/1..3/:a;
xd/1..4/:b;
links(cd,xd):c,x;
px/1..13/:d1,d2;
endsets
data:
a=300 200 400;
b=200 100 450 250;
c=5 2 6 7
3 5 4 6
4 5 2 3;
enddata
min=d2(13);
@for(cd(i):@sum(xd(j):x(i,j))=a(i));
@for(xd(j):@sum(cd(i):x(i,j))