我的lingo为什么会弹出inproper use of @for() functionmodel:sets:\x05chandi/A1..A4/:a,p;\x05xiaodi/B1..B8/:b,q;\x05links(chandi,xiaodi):c,x;endsetsthese 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
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 13:53:06
![我的lingo为什么会弹出inproper use of @for() functionmodel:sets:\x05chandi/A1..A4/:a,p;\x05xiaodi/B1..B8/:b,q;\x05links(chandi,xiaodi):c,x;endsetsthese 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](/uploads/image/z/15101207-71-7.jpg?t=%E6%88%91%E7%9A%84lingo%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BC%9A%E5%BC%B9%E5%87%BAinproper+use+of+%40for%28%29+functionmodel%3Asets%3A%5Cx05chandi%2FA1..A4%2F%3Aa%2Cp%3B%5Cx05xiaodi%2FB1..B8%2F%3Ab%2Cq%3B%5Cx05links%28chandi%2Cxiaodi%29%3Ac%2Cx%3Bendsetsthese+are+the+data%3Bdata%3A%5Cx05a%3D12+16+16+20%3B%5Cx05b%3D6+5+8+10+6+5+8+6%3B%5Cx05p%3D12+16+16+20%3B%5Cx05q%3D105+110)
我的lingo为什么会弹出inproper use of @for() functionmodel:sets:\x05chandi/A1..A4/:a,p;\x05xiaodi/B1..B8/:b,q;\x05links(chandi,xiaodi):c,x;endsetsthese 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
我的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))
我的lingo为什么会弹出inproper use of @for() functionmodel:sets:\x05chandi/A1..A4/:a,p;\x05xiaodi/B1..B8/:b,q;\x05links(chandi,xiaodi):c,x;endsetsthese 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
max 那句少右括号