lingo中提示@这里错误这是怎么回事,麻烦大神帮忙看看,急求,感激不尽 5

MODEL:SETS:p/1..9/:w,y;m(p,p):v,x;ENDSETSDATA:w=7430000381000028500002510000844000049... MODEL: SETS:p/1..9/:w,y;m(p,p):v,x;ENDSETS DATA:w=7430000 3810000 2850000 2510000 8440000 4960000 3191900 2590000 2850000;v= 0 216811.7 77246.48 169498.9 146876.8 261751.6 183303.9 253230.9 67063.98216811.7 0 141800.5 202880.7 71293.47 76185.98 320243.2 132261.3 282113.877246.48 141800.5 0 164524.5 70725.15 195249.8 229113.2 203223.7 144226.2169498.9 202880.7 164524.5 0 174240.6 191929.1 133031.2 137293.4 195815.7146876.8 71293.47 70725.15 174240.6 0 132331.8 272055.2 159591.1 213153.9261751.6 76185.98 195249.8 191929.1 132331.8 0 322645.6 75024.01 321636183303.9 320243.2 229113.2 133031.2 272055.2 322645.6 0 270133.3 159382.7253230.9 132261.3 203223.7 137293.4 159591.1 75024.01 270133.3 0 303291.267063.98 282113.8 144226.2 195815.7 213153.9 321636 159382.7 303291.2 0 ;ENDSETSmin=@sum(m(i,j):v(i,j)*w(i)*x(i,j));@for(p(i):@sum(p(j):x(i,j))=1); @for(m(i,j):x(i,j)<=y(j)); @sum(p:y)=4; @for(m:@bin(x)); @for(p:@bin(y)); END
这边的数据为九乘九的一个表格
展开
 我来答
bill8341
高粉答主

2016-12-31 · 关注我不会让你失望
知道大有可为答主
回答量:1.8万
采纳率:95%
帮助的人:3536万
展开全部
MODEL:
SETS:
p/1..9/:w,y;
m(p,p):v,x;
ENDSETS
DATA:
w=7430000 3810000 2850000 2510000 8440000 4960000 3191900 2590000 2850000;
v= 0 216811.7 77246.48 169498.9 146876.8 261751.6 183303.9 253230.9 67063.98
216811.7 0 141800.5 202880.7 71293.47 76185.98 320243.2 132261.3 282113.8
77246.48 141800.5 0 164524.5 70725.15 195249.8 229113.2 203223.7 144226.2
169498.9 202880.7 164524.5 0 174240.6 191929.1 133031.2 137293.4 195815.7
146876.8 71293.47 70725.15 174240.6 0 132331.8 272055.2 159591.1 213153.9
261751.6 76185.98 195249.8 191929.1 132331.8 0 322645.6 75024.01 321636
183303.9 320243.2 229113.2 133031.2 272055.2 322645.6 0 270133.3 159382.7
253230.9 132261.3 203223.7 137293.4 159591.1 75024.01 270133.3 0 303291.2
67063.98 282113.8 144226.2 195815.7 213153.9 321636 159382.7 303291.2 0 ;
ENDDATA
min=@sum(m(i,j):v(i,j)*w(i)*x(i,j));
@for(p(i):@sum(p(j):x(i,j))=1);
@for(m(i,j):x(i,j)<=y(j));
@sum(p:y)=4;
@for(m:@bin(x));
@for(p:@bin(y));
END
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式