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

2024-11-24 18:01:06
推荐回答(1个)
回答1:

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