lingo代码出错sets:s/1.7,2.2,14.4,1.1,0.4,20.6,5.3,0.7,1.9,13,12,9.3,1.4,18.7,8.5,25.5,11.6,14.1,22.1,1.1,2.5,14.4,1.7,37.6,0.6,2.2,39,0.3,15,11,7.3,22.9,1.7,0.1,1.1,0.6,9,1.7,7,20.1,0.4,2.8,14.1,9.9,10.4,10.7,30,3.6,5.6,30.8,13.3,4.2,25.5,3.4,11.
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 14:30:03
xRN@~-.ĤbL(Iş11!!e[8/E.oģvhp8\>g/YgQ :@锾!.@ %Bi
" T %}XC2\
jP,mT4ETc,_2D4Xa6#֔:
)d":P-jgPF;0+P]@nHI_ox6EyN7mMIAb4[ZV;ᡓMNR'i9i
:cY嚲Y{v|,nVr1_MuqzxǭVKAwEc
lingo代码出错sets:s/1.7,2.2,14.4,1.1,0.4,20.6,5.3,0.7,1.9,13,12,9.3,1.4,18.7,8.5,25.5,11.6,14.1,22.1,1.1,2.5,14.4,1.7,37.6,0.6,2.2,39,0.3,15,11,7.3,22.9,1.7,0.1,1.1,0.6,9,1.7,7,20.1,0.4,2.8,14.1,9.9,10.4,10.7,30,3.6,5.6,30.8,13.3,4.2,25.5,3.4,11.
一个lingo lingo中约束条件之间是 ‘或’ 的关系,应该如何表示?Lingo中是否允许?代码如下,就是最后一个循环出错,去掉后可以执行,最后一句错在哪?P是火车票价格;model:sets:citys/1..10/:;city/1..11/:u,t
lingo中sets是什么?
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程序哪里出错了 怎么改啊想让s为0-1变量 在v(I,J)不为0的时候,s为1.完全新手,sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(
求助!这是我第一次接触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: demand/1..8/:O,D; supply/1..14/:Y; link(demand,supply):w,c,di,z;endsets
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 :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写的一段代码,求修改!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语言出错了,求大神帮我修改下 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: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问题 错误代码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程序错在哪?我编了个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高手!关于父集函数的表示~!sets: box_area/1..6/; box_kind/1..4/; bay_area/1..3/; allowed(box_area,bay_area,box_kind):e; endsets我有这么个程序.lingo一直报错,说是出错在了allowed那里~求高手修改!~万分感谢~
求lingo高手!mcm1988b题目,用lingo咋写代码.新手待解救,财富不多,见谅!貌似自己写的很多错啊...先谢过了!model:Title:train problem;sets:huowu/1..7/:t,w,k;train/1..2/:x;link(huowu,train):h;endsetsdata:t=48.7,52.0,61.3,72.0,
小弟用lingo求解一道站台与路口的分配问题,自己编了一段代码,以下是自己写的一窜代码model:sets:zhan/1..20/; 定义站台lu/1..72/:c; links(zhan,lu):d,x,y;endsetsdata:c=@ole('F:/an.xls',an); 从excel中导
求修改lingo代码,不知道哪里错了,代码如下:model:sets:need/1..4/:length,b;cut/1..3/:x;pattern(need,cut):r;endsetsdata:length=4 5 6 8;b=50 10 20 15;capacity=19;enddatamin=@sum(cut(i):x(i));@for(need(i):@sum(cut(j):x(j)*r(i,j))>b(i))