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运行有

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 09:40:03
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

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: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运行有错,是什么原因?求指教,急!
model:
sets:
points/1..24/:d;
endsets
max=@sum(points(i)|i#le#23:@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)|j#le#23:d(j)1);
@for(points(i)|i#le#12:(d(i)+2)20);
end
我修改后的,这里错误怎么解决,谢谢!

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运行有
挤在一起不错才怪.比如前面endsetsmax
很显然endesets一行,回车之后再max,你连一块必须错嘛.

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: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运行出错,Error Code 15 model:sets:points/1..24/:d;pp/1..23/:c;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(points:d(1)#gt#1);@for(points 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(k 一个lingo lingo中约束条件之间是 ‘或’ 的关系,应该如何表示?Lingo中是否允许?代码如下,就是最后一个循环出错,去掉后可以执行,最后一句错在哪?P是火车票价格;model:sets:citys/1..10/:;city/1..11/:u,t lingo运行错误improper use of attribute name,model:sets:chan/c1..c10/:p,q,w,f;xie/1..5/:d;links(chan,xie):x,c,l,a,b,t;endsets@for(chan(i):@sum(xie(j):x(i,j)) 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程序错在哪?我编了个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中sets是什么? 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的运行错误问题我的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的程序,我这边运行不了程序如下:model:sets:cities/1..6/:u; link(cities,cities):dist,x;endsetsn=@size(cities);data:dist=0 5600 3500 2100 5100 60005600 0 2100 5700 7800 70003500 2100 0 3600 6800 68002100 5700 3600 0 51 lingo程序出错,model:sets:定义行列号;lines/1..31/:line;rows/1..30/:row;网点编号;shop/1..11/:l,r,m,price;人口分布;popu(lines,rows):popudata;distribution(lines,rows,shop):p;endsets目标函数;max=@sum(distribution(I,J,S) | I#ge#1#and#J 帮忙看下这个lingo程序哪里出错了MODEL:SETS:CUTFA/1..6/:x;CUTFAA/1..11/:y;切割的方法有17种,x表示对应1-6种切割方法的原料钢管的需求量,y表示对应7-17种切割方法的原料钢管的需求量;BUJ/1..3/:n,b;3种钢 请各位大大看看这个lingo程序哪里出错了?model:sets:I/1..45/:x,y,c,b,t;endsetsdata:c=64,88,193,193,128,120,120,120,110,120,64,247,190,210,70,85,192,195,128,120,120,120,110,160,70,256,190,210,190,205,110,160,70,256,190,210,190,190,210,200 lingo中不是可以取消变量的非负限制吗,为什么老是出错啊Model:Title Location Problem;sets:demand/1..6/:a,b,d;supply/1..2/:x,y,e;link(demand,supply):c;endsetsdata:a=1.25,8.75,0.5,5.75,3,7.25;b=1.25,0.75,4.75,5,6.5,7.75;d=3,5,4,7,6,1