lingo中运行,出错了,model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(kind|j#ge#1#a

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/03 02:25:04
lingo中运行,出错了,model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(kind|j#ge#1#a
xN@F_L(^ RLXH\`4B, ) ev bܻif;̙vaB[0ok&vM΁i!:ZfB<.$xE*P%^ K @9 24ZSɴslFs" ?ZEvZfu縤gGyҢELY$v$@OLNcF3E~i9K*٠JVBåhC45Na?A3/ʼof]Zxq2Fæ|Ag3Sč_y? WǏO! 1P 3>}?t贼;S>Ww

lingo中运行,出错了,model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(kind|j#ge#1#a
lingo中运行,出错了,
model:
sets:
hotel/1..10/:n,a;
kind/1..6/;
links(hotel,kind):x,b,p;
endsets
min=@sum(hotel(i):n(i));
@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));
@for(hotel:@sum(kind:x(i,j))=a(i));
@for(hotel:n(i)=@if(a(i)#eq#0,0,1));
@for(kind|j#ge#1#and#j#le#3:x(i,j)

lingo中运行,出错了,model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(kind|j#ge#1#a
我给你改过了啊 你每句下标都不要漏掉 然后第一个约束不对 最后两句的条件限制也不对

lingo中运行,出错了,model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(kind|j#ge#1#a lingo中model is illdefined什么意思? LINGO问题 我找了一个程序 自己改了改,运行出错了,求大侠帮忙.model:sets:v/1..20/:a,b,d,n,m; endsetsmin=w;w=@sum(v(i):a*b*d)*t;@sum(v(i):n*d)>=k1;@sum(v(i):n*d)=0.8*m);@for(v(i):n Lingo 那里出错了啊?model:title 物流仓库选址问题lingo求解程序;sets:store/1..12/:w,s,m;sale/1..12/:d;links(store,sale):C,p,x;endsetsdata:从仓库i向销售中心j运送货物的运送总成本;C=100,80,50,50,60,100,120,90,60,100,120, 求助!这是我第一次接触LINGO,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错MODEL:SETS:S/S1..S4/: SI;D/D1..D4/: DJ, R, Y;LINKS (S,D): C,A,U,X;ENDSETSDATA:SI=10, 50, 200, 100;DJ=10, 100, 200, 5 lingo中,运行出错,不知怎么改model:sets:hotel/1..10/:n,a;kind/1..6/;links(hotel,kind):x,b,p;endsetsmin=@sum(hotel(i):n(i));@for(kind:@sum(hotel(i):x(i,j))=m*p(i,j));@for(hotel:@sum(kind:x(i,j))=a(i));@for(hotel:n(i)=@if(a(i)#eq#0,0,1));@for(k 一个lingo lingo中约束条件之间是 ‘或’ 的关系,应该如何表示?Lingo中是否允许?代码如下,就是最后一个循环出错,去掉后可以执行,最后一句错在哪?P是火车票价格;model:sets:citys/1..10/:;city/1..11/:u,t 我的lingo语言出错了,求大神帮我修改下 model:sets:juli/1,2,3,4/:s;zgailv:p;qgailv:q;zgeshu/1,2,3,4/:x;qgeshu/1,2,3,4/:y;endsetsdata:s=450 480 540 600;p=0.1 0.2 0.15 0.25;q=0.08 0.16 0.12 0.20;enddatamin=((1-p1)^x1)*((1-p2)^x2)*((1-p3)^x3 proteus isis中NO model specified for RP1 什么错误估计画图出错了,烧入程序报错.. lingo程序如何运行 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程序错在哪?我编了个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时出现THE MODEL DIMENSIONS EXCEED THE CAPACITY OF THIS VERSION.哪位大虾可以告诉我是什么地方出了问题.如何解决,程序应该不用出错.谢谢.程序如下:model:title CUMCM-2003B-01;sets:cai / 1..10 /:crate, lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends lingo运行出错model:sets:points/1..24/:d;endsetsmax=@sum(points(i):@log(1+(d(i+1)-d(i)+(d(i)^2+d(i+1)^2-2*d(i)*d(i+1)*@cos(3.1415926/6))^(1/2))/(2*d(i)));@for(points(j):d(j)#lt#d(j+1));@for(d(1)#gt#1);@for(points(i):d(i)#gt#d(i+12)+2);end运行有 Lingo 出错model:max=0.0043*X1+0.0027*X2+0.0025*X3+0.0022*X4+0.0045*X5X2+X3+x4>=4000.6*X1+0.6*X2-0.4*X3-0.4*X4+3.6*X5 LINGO问题.这个LINGO的为什么运行不了.关键是S(i,1)=0,和s(i,7)=0..model:sets:si/1..6/;sj/1..7/;st/1..5/:l;sij(si,sj):c,x,s;stj(st,sj):a;sit(si,st):k;endsetsmin=@sum(sij(i,j):c(i,j)*x(i,j));@for(sj(j):@for(si(i)|i#le#5:s(i+1,j)=s(i,j)+x(i lingo中求最小值问题model:max=x1+x2;-1