早教吧 育儿知识 作业答案 考试题库 百科 知识分享

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
▼优质解答
答案和解析
不应该写成x(1,4)