lingo错误modelsets:xiaodi/1..4/:b;chandi/1..3/:a;link(chandi,xiaodi):c,x;endsetsdata:a=16 10 22;b=8 14 12 14;c=4 12 4 112 10 3 98 5 11 6;enddatamin=@sum(link(i,j):x(i,j)*c(i,j))@for(chandi(i):@sum(xiaodi(j):x(i,j)b(j)));end
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 13:28:38
lingo错误modelsets:xiaodi/1..4/:b;chandi/1..3/:a;link(chandi,xiaodi):c,x;endsetsdata:a=16 10 22;b=8 14 12 14;c=4 12 4 112 10 3 98 5 11 6;enddatamin=@sum(link(i,j):x(i,j)*c(i,j))@for(chandi(i):@sum(xiaodi(j):x(i,j)b(j)));end
lingo错误
model
sets:
xiaodi/1..4/:b;
chandi/1..3/:a;
link(chandi,xiaodi):c,x;
endsets
data:
a=16 10 22;
b=8 14 12 14;
c=4 12 4 11
2 10 3 9
8 5 11 6;
enddata
min=@sum(link(i,j):x(i,j)*c(i,j))
@for(chandi(i):@sum(xiaodi(j):x(i,j)b(j)));
end
lingo错误modelsets:xiaodi/1..4/:b;chandi/1..3/:a;link(chandi,xiaodi):c,x;endsetsdata:a=16 10 22;b=8 14 12 14;c=4 12 4 112 10 3 98 5 11 6;enddatamin=@sum(link(i,j):x(i,j)*c(i,j))@for(chandi(i):@sum(xiaodi(j):x(i,j)b(j)));end
model:
sets:
xiaodi/1..4/:b;
chandi/1..3/:a;
link(chandi,xiaodi):c,x;
endsets
data:
a=16 10 22;
b=8 14 12 14;
c=4 12 4 11
2 10 3 9
8 5 11 6;
enddata
min=@sum(link(i,j):x(i,j)*c(i,j));
@for(chandi(i):@sum(xiaodi(j):x(i,j))