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

我的lingo为什么会弹出inproperuseof@for()functionmodel:sets:\x05chandi/A1..A4/:a,p;\x05xiaodi/B1..B8/:b,q;\x05links(chandi,xiaodi):c,x;endsetsthesearethedata;data:\x05a=12161620;\x05b=658106586;\x05p=12161620;\x05q=105110

题目详情
我的lingo为什么会弹出inproper use of @for() function
model:
sets:
\x05chandi/A1..A4/:a,p;
\x05xiaodi/B1..B8/:b,q;
\x05links(chandi,xiaodi):c,x;
endsets
these are the data;
data:
\x05a=12 16 16 20;
\x05b=6 5 8 10 6 5 8 6;
\x05p=12 16 16 20;
\x05q=105 110 108 105 110 112 126 132;
\x05c=2 11 3 4 12 16 22 26
\x05 10 3 5 9 15 18 24 35
\x05 7 8 1 2 8 13 33 48
\x05 12 9 16 7 16 21 42 56;
enddata
this is the objective;
max=@sum(xiaodi(j):q(j)*@sum(chandi(i):x(i,j)))-@sum(links:c*x
-@sum(chandi(i):p(i)*@sum(xiaodi(j):x(i,j)));
this is the demand contraints;
@for(xiaodi(j):
\x05@sum(chandi(i):x(i,j))
▼优质解答
答案和解析
max 那句少右括号
看了 我的lingo为什么会弹出i...的网友还看了以下: