lingo不等式限制条件不起作用model:sets:center/1..3/:u;addr/1..7/:v;w(center,addr):x,y;endsetsdata:y=24 36 21 49 45 72 8120 30 24 56 55 88 9924 36 27 63 50 80 90;enddatamin=@sum(w:x*y);@sum(addr(j):x(1,j))=3;@sum(addr(j):x(2,j))=2;@sum(addr(
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 05:05:05
lingo不等式限制条件不起作用model:sets:center/1..3/:u;addr/1..7/:v;w(center,addr):x,y;endsetsdata:y=24 36 21 49 45 72 8120 30 24 56 55 88 9924 36 27 63 50 80 90;enddatamin=@sum(w:x*y);@sum(addr(j):x(1,j))=3;@sum(addr(j):x(2,j))=2;@sum(addr(
lingo不等式限制条件不起作用
model:
sets:
center/1..3/:u;
addr/1..7/:v;
w(center,addr):x,y;
endsets
data:
y=
24 36 21 49 45 72 81
20 30 24 56 55 88 99
24 36 27 63 50 80 90;
enddata
min=@sum(w:x*y);
@sum(addr(j):x(1,j))=3;
@sum(addr(j):x(2,j))=2;
@sum(addr(j):x(3,j))=2;
@for(addr(j):@sum(center(i):x(i,j))=1);
\x09x22
lingo不等式限制条件不起作用model:sets:center/1..3/:u;addr/1..7/:v;w(center,addr):x,y;endsetsdata:y=24 36 21 49 45 72 8120 30 24 56 55 88 9924 36 27 63 50 80 90;enddatamin=@sum(w:x*y);@sum(addr(j):x(1,j))=3;@sum(addr(j):x(2,j))=2;@sum(addr(
不应该写成x(1,4)