求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 05:48:15
求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time

求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r)
求大神改一下lingo程序
model:
sets:
time/1..51/:t;
rongliang/1..51/:r;
link(time,rongliang):x;
endsets
min=@sum(time:t);
@for(link:@bin(x));
@for(link:@sum(link:x(i,j)*r)

求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r)
没有可行解 自己查哪里写错了
model:
sets:
time/1..51/:t;
rongliang/1..51/:r;
link(time,rongliang):x;
endsets
min=@sum(time:t);
@for(link:@bin(x));
@sum(link(i,j):x(i,j)*r(j))

求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r) 目标函数的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运行时出现subscript out of range on attribute 求解释?model:sets: cities/s,a1,a2,a3,b1,b2,c1,c2,t/:l; roads(cities,cities)/ s,a1 s,a2 s,a3 a1,b1 a1,b2 a2,b1 a2,b2 a3,b1 a3,b2 b1,c1 b1,c2 b2,c1 b2,b2 c1,t c2 菜鸟求lingo下题程序 求问lingo大神!model:max=3*x11+9*x12-7*x21-x22-x31+5*x32-6*x41;0.5*x11-1.5*x21-0.5*x31-1.5*x41 懂lingo的大神看一下:index variables may not share name with other variables怎么回事model:sets:nd/1..10/:i,x,k,e,a;hy/1..4/:j;ch/1..3/:l,z,s,f;links(nd,hy):y,b,c,g;links1(nd,nd):d;endsetsmin=0.3*(@sum(nd:x*a)-91690)^2+0.4*(@sum(links:y*b* LINGO求改错目标函数:S= 约束条件:1、xi为5的倍数2、x120,h1133、xi>x(i+1)4、xi+4*hi=dLINGO程序:model:Title 1;sets:jishu/1..14/:x,h;endsets[OBJ] max=((@sum(jishu(i)|i#GT#1:(x(i)*(h(i)-h(i-1)))))+x(1)*h(1))*2;@for(jishu(i):x(i)^ 求大神修改Lingo整数规划程序啊~程序附下MODEL:sets:city/1..7/:u;link(city,city):dist,x;endsetsn=@size(city);data:dist=0 3 4 7 100 100 1003 0 3 2 4 100 1004 3 0 100 5 7 1007 2 100 0 2 100 6100 4 5 2 0 1 4100 100 7 100 1 0 2100 100 100 lingo运行后错误代码为1017是什么意思,帮我改一下程序,model:max=240*(x1+x2+x3+x4+x5+x6)-2016*(W1+W2+W3+W4+W5+W6)-18*(E1+E2+E3+E4+E5+E6)-50*(H1+H2+H3+H4+H5+H6)-100*(L1+L2+L3+L4+L5+L6)-20*(S1+S2+S3+S4+S5+S6)-100*(P1+P2+P3+P4+P5+P6)-200 帮忙编一下下图的数学建模lingo程序. lingo程序错在哪里?如何改?model:sets:yj/1..7/:z;yi/1..6/:;yk/1..5/:;sl1(yi,yj):x,d,s,k;sl2(yj,yk):a;sl3(yi,yk):b;endsetsdata:z=100 60 80 40 110 90 30;a=0.5 0.1 0.2 0.05 00.7 0.2 0 0.03 00 0 0.8 0 0.010 0.3 0 0.07 00.3 0 0 0.1 0.050.2 0.6 0 0 求助!这是我第一次接触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或lindo做,程序答题求帮助.. lingo程序如何运行 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 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程序 老提示conflicting bounds on variable,(一直LINGO菜鸟)model:sets:vec0/1..8/:y;vec1/1..4/:d,z,s;vec2/1..2/:m,b,j,u,t,zv,zh,zr,yr,yb,yfs;vec5(vec2,vec2)/1,4/:m/@cos(j);vec6(vec1,vec2)/1,6/:b/d;endsetsDATA:y=4.5 960 20 1.4 1.5