作业帮 > 综合 > 作业

我的lingo为什么会弹出inproper use of @for() function

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/11 00:56:40
我的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 那句少右括号