lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 04:43:09

lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题
lingo运行问题
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
Error Code 11:Invalid Input.A syntex error has occurred

lingo运行问题model:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题
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的运行错误问题我的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语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 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 找错 for循环有问题(在线等)我是初学者,运行时显示错误为:subscript out of range on attribute 似乎说是指标超出范围,不是很懂!model:sets:year/1..5/:n,n1,n2,n3,n4,q4;endsetsdata:n1=122000000000,;n2=2970000000 lingo中tsp问题求解,运行时提示有语法错误,迷惑中...MODEL:SETS:CITY / 1..10/:U; LINK( CITY,CITY):DIST,X;ENDSETSDATA:DIST=0 22.3 22.7 24.5 22.7 22 22.1 26.5 27.3 24.222.3 0 1.8 5.1 3.3 2.5 3.6 9.2 10 6.122.7 1.8 0 3.5 5.1 2.6 1.8 7.4 8. 关于LINGO使用的问题,以下代码哪里有错误?无法运行啊model:sets:object/1..3/:f;endsetsdata:a,b = 3,4;!两个直角边长,修改很方便;enddataf (1) = a*@sin(x);f (2) = b*@cos(x);!从这一行开始提醒有语法错误;f (3) = 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运行错误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:sets:points/1..24/:d;endsetsmax=@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);!该约束有问题 lingo问题,谁帮我运行下这个程序,有错误的话帮我看看model:sets:xcs/1..20/:A,m,n,q;ccs/1..2/:x;link(xcs,ccs):c,b;endsetsdata:A=300,320,340,360,380,400,440,460,500,540,480,440,380,340,280,200,160,80,60,40;m=16,16,16,16,16,16,16,16,16, lingo运行问题Model:max=2.28*y2+4.56*y3+3.34*y4+6.68*y5+12.65*y6;y1*t1+y2*t2+y3*t3+y4*t4+y5*t5+y6*t6 lingo中sets是什么? lingo问题 错误代码29代码如下:model: !需求分配;sets: !定义集合;plant/p1..p8/: capacity; market/m1..m8/: demand; links(plant, market): cost, volume;endsetsmin=@sum(links: cost*volume); !目标函数;@for(market(J): @sum(plant( lingo 集中“ 为什么这样表示?原程序如下:•model:•!6发点8收点运输问题; •sets:• warehouses/wh1..wh6/:capacity; • vendors/v1..v8/:demand; • links(warehouses,vendors):cost,volume; •endsets 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: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程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初 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,