lingo 错误的1017我在model后面打过:model:sets:para/1..3/:y;warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost*volume)+91y(1)+70y(2)+24y(3);@for(para:@bin(y));

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 00:42:08
xN@@岛)R !@_HHwƘQ"DB]nƟ+2q&wŦh0Frdhu99=ﬣ{Oc
lingo 错误的1017我在model后面打过:model:sets:para/1..3/:y;warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost*volume)+91y(1)+70y(2)+24y(3);@for(para:@bin(y)); lingo的运行错误问题我的lingo程序模型是这样:MODEL:SETS:QUARTERS/1..1000/:X;ENDSETSMIN = @SUM(QUARTERS(i)|@MOD(i,2)#EQ#0:X(i);) - @SUM(QUARTERS(i)|0#NE#@MOD(i,2):X(i););@for(QUARTERS(i):@sum(QUARTERS(i):X(i)) >= 1000 ;);@for(QUARTERS( 请高手帮我找下这个Lingo程序的错误!下面是Lingo程序model:sets:hotel/1..10/;format/1..3/;link(hotel,format):x,y,c;endsetsmin=@sum(link:x*y*c);@for(format(j):@sum(hotel(i):(y(i)*r(i,j)))=num(j)/2);@for(format(j):@sum(hotel(i):(y(i)*r1( 初学建模,用lingo有些不会我自己写的程序如下,但好像有些错误,倒数第二排的错误就不知道怎么解决model:sets: nodes/n0..n9/; liuliang(nodes,nodes):C,X;endsetsdata:C=0 12 20 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 怎么在lingo中使用括号,好像有括号的都显示是错误的 这个lingo程序错在哪?我编了个lingo程序,测试的时候出错,感激不尽~以下是程序“MODEL:title 码流提取问题;SETS:job/1..5/;worker/1..16/;assign(job,worker):x,a,b;ENDSETSDATA:a=30.8667,32.7657,35.4304,37.781,40.3113,28.6755, 帮我看看这段lingo代码,我不明白为什么一直出现error code11的错误MODEL: SETS: QUARTERS/1,2,3,4/:DEM,RP,OP,INV; ENDSETS MIN=@sum{QUARTERS:400*RP(i)+450*OP+20*INV}; @FOR{QUARTERS{I}:RP{I} 求教LINGO大神 我有个地方程序错误程序是这样的,是要给五个人分配四个任务model:sets:ren/p1,p2,p3,p4,p5/;renwu/A,B,C,D,E/;endsetsdata:C= 10 5 15 20 10000 2 10 5 15 0 3 15 14 13 0 15 2 7 10000 0 9 4 15 8 最后解题时运行LINGO出现错误,error code108,我用的LINGO11.0,应该不是版本低吧?具体程序如下MODEL:SETS:SHOP/1..8/;FACTORY/1..3/;CANGKU/1..5/:KRL;WUZI/1..10/:TJ,KCF,ZXQL,Q,N;LINKS(SHOP,WUZI):XQL;LINKS1(FACTORY,WUZI):NCL,DJ,X;LIN 求指教,lingo的这个程序为什么总是出现1017的错误.model:sets:warehouses/wh1..wh6/:capacity;vendora/v1..v8/:demand;links(warehouses,vendors):cost,volume;endsetsmin=@sum(links:cost*volume);@for(vendors(J);@sum(warehouses(I):volume(I,J))= 在使用lingo是出现 unable to solve ...no model currently in momery 是什么意 lingo中model is illdefined什么意思? 用lingo实现,y(i)=y(j)时,x(i)不等于x(j)?大哥大姐们:请问用lingo如何实现y(i)=y(j)时,x(i)不等于x(j)?lingo有这个功能吗?我试过了,但是不行,我的现有程序是:MODEL:data:M=7;enddatas 虽能帮我看看lingo程序哪里错了model:sets:a/1..3/:d;b/1..3/;c(a,b):f;endsets@for(a:@bnd(0,d,8));@for(c:@bnd(0,f,5));max=@sum(a(j):@sum(b(i)|i#lt#d(j):f(i,j)+d(j)));end应该是目标函数那行错了,但我觉得没什么逻辑上的错误 一个lingo lingo中约束条件之间是 ‘或’ 的关系,应该如何表示?Lingo中是否允许?代码如下,就是最后一个循环出错,去掉后可以执行,最后一句错在哪?P是火车票价格;model:sets:citys/1..10/:;city/1..11/:u,t lingo的一个代码运行错误了 帮我看看model:sets:mu/i1..i2/:d;zh/j1..j3/:s,u;link(mu,zh):c,k;endsetsdata:d=60,80;s=85,70,90;u=0.07364,0.09531,0.084;c=171 150 143176 159 145;enddatamin=@sum(link:2*d*c+k*u*d);@for(mu(i):@sum(zh(j):k(i,j))=1;) 我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j)) 为什么这个lingo程序运行不成功,我希望能够在满足以下四个约束条件的情况下得到一个32*40的0-1矩阵~model:sets:a/1..32/:c; b/1..40/; link(a,b):e;endsetsdata:c=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23