求lingo改错model:sets:si/1..307/:w,u;sj/1..307/:y;sij(si,sj):s,z,d;endsetsmax=@sum(si(i):w(i)*u(i));min=(s(i,j));@for(@sum(sj(j):y(j))=5);@for(si(i):@sum(sj(j):z-u>=1);@for(sij:z-y

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/19 16:43:00
x){)'3/=ٔ/OIͱ*N-)*7360׷*).΂s+343u4utRSR@r+lKsV@BHhZfjkdd9iEuY@3*)TIJ.I*Gs;X0  +1d@Uy , pރH#,ӣYEV~Ў^4}6Ɏ';V=ق{M`_\g$I
求lingo改错model:sets:si/1..307/:w,u;sj/1..307/:y;sij(si,sj):s,z,d;endsetsmax=@sum(si(i):w(i)*u(i));min=(s(i,j));@for(@sum(sj(j):y(j))=5);@for(si(i):@sum(sj(j):z-u>=1);@for(sij:z-y 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运行时出现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,因为写论文要建模,我输入了一下这段,可是跳错,求大侠帮忙看看 哪里出错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中sets是什么? lingo改错,为什么运行不出来?,求各位大师帮忙.MODEL: SETS: chsh/1..6/; links(chsh,cash)/1,2 1,3 2,3 2,4 3,5 4,3 4,6 5,4 5,6 6,1/:C,U,F; !6,1是虚拟弧,U为流量限制,C为费用,F为实际流量;ENDSETSDATA: U=8,7,5,9,9,2,5,6,10,1 用lingo写的一段代码,求修改!model :sets:cities/s,a1,a2,a3,b1,b2,c1,c2,t/:l;roads(cities,cities)/s,a1 s,a2,s,a3a1,b1 a1,b2 a2,b1 a2,b2 a3,b1 a3,b2b1,c1 b1,c2 b2,c1 b2,c2c1,t c2,t/:D;endsetsdataD=6 3 3 6 5 8 6 7 45 6;L=0,;enddata@for(citise(i) lingo程序求改错sets:mianji/1..24/:s,x,n;endsetsdata:s=1276640 1938396 1276640 1637792 1635150 1938396 1635150 1938396 1470144 1626880 1940352 1940352 1668000 1430000 939231 1575196 1540000 1540000 110050 110700 218325 326600 290390 1171240;x=867 求大神改一下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: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 LINGO 模型的代码 求高手版解决代码错误代码如下:model:sets :hang/1 2 3 4 5/:a;lie/1 2 3 4 5 6/;column/1 2 3 4 5/;links(hang,lie):x,y,s,c,d;link(hang,column):b;endsetsdata:a=60 100 30 40 50;b=0.5 0.70 0 0 0.300.1 0.2 0 0.3 00.2 0.60 lingo 非线性规划哪位高手能用lingo或matlab解这个问题?我把意思写出来了,可能不符合语法,model:sets:empoly/1..6/:e;fire/1..6/:f;jh/1..6/:h;prov/1..6/:p;wb/1..6/:w;demand/1..6/:d;storage/1..6/:s;endsetsdata:demand=1200,1400, 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 model is ill lingo,高手帮帮忙!1下面的是我写的 但是怎么改都有错!model:sets: varei/1..7/:t,s; varej/1..4/:size,num,p1,p2,g,b,q; links(varei,varej):x,p,m,d;endsets!目标函数;min=@sum(links:m(i,j)*((p(i,j)-p1(j))*b(j)+g(j))*t(i) lingo程序改错 看一眼来@@model:sets:cities/v4,v1,v2,v3,v5,v6,v7,v9,v10,v11,v8/;roads(cities,cities):p,w,x;endsetsdata:p=函数;w=函数;enddatan=@size(cities);min=@sum(roads:w*x);@for(cities(i)|i#ne#l#and#i#ne#n:@sum(cities(j):p(i,j)*x(i,j lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema