使用lingo软件,一直显示有错误,找了好久都没发现问题在哪!请哪位大神帮忙看看,在线等!急!!!

model:
sets:
r/m1..m3/;
t/w1..w3/;
link(r,t):p,x;
endsets
data:
p=0.2 0.3 0.3
0.1 0.2 0.3
0.2 0.3 0.2;
enddata
max=@sum(link:p*x);
@for(r(i):@sum(t(j):x(i,j))=1);
@for(t(j):@sum(r(i):x(i,j))=1);
@for(link:@bin(x));
end

第1个回答  2014-08-13
model:
sets:
r/m1..m3/;
t/w1..w3/;
link(r,t):p,x;
endsets
data:
p=0.2 0.3 0.3
0.1 0.2 0.3
0.2 0.3 0.2;
enddata
max=@sum(link:p*x);
@for(r(i):@sum(t(j):x(i,j))=1);
@for(t(j):@sum(r(i):x(i,j))=1);
@for(link:@bin(x));
end本回答被网友采纳
相似回答