lingo 这段那里错了?model:sets:sell/1..7/:p,s,x,m;need/1..15/:t,w,d;link(sell,need):c,y;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;c=170.7 160.3 140.2

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 23:23:07
lingo 这段那里错了?model:sets:sell/1..7/:p,s,x,m;need/1..15/:t,w,d;link(sell,need):c,y;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;c=170.7 160.3 140.2
xkAǟ?ַ\r%gD&ih"mTD *mOZD b&͓ߙKkD|ss; oo{O,^M<2Xt;C!A#obvxLO Stƞ>ۼ|*:+|")2\zz1n(R(gE QtZ%PI8d#(K`7XTUiEx=*V[FAʡXQy}=}b-[ 5Cw$¹ іwLϭ*/\4sص C #}dBle @""U"FƊ#UBҀf:iBx!g8I0R\b&Tq.b0YZ-Xei 2R_i-H@\D, NNH38fTU + cg$ %CRҮJd&ƓR`2<]vJS Bz^>oBx(ny^c /ԍ yߨ]{8*<2XYr~y4Q~zt0;x09\%gq\K=LӏwAOœIhqGaFoag;eTx2'>

lingo 这段那里错了?model:sets:sell/1..7/:p,s,x,m;need/1..15/:t,w,d;link(sell,need):c,y;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;c=170.7 160.3 140.2
lingo 这段那里错了?
model:
sets:
sell/1..7/:p,s,x,m;
need/1..15/:t,w,d;
link(sell,need):c,y;
endsets
data:
p=160 155 155 160 155 150 160;
s=800 800 1000 2000 2000 2000 3000;
d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;
c=170.7 160.3 140.2 98.6 38 20.5 3.1 21.2 64.2 92 96 106 121.2 128 142
215.7 205.3 190.2 171.6 111 95.5 86 71.2 114.2 142 146 156 171.2 178 192
230.7 220.3 200.2 181.6 121 105.5 96 86.2 48.2 82 86 96 111.2 118 132
260.7 250.3 235.2 216.6 156 140.5 131 116.2 84.2 62 51 61 76.2 83 97
255.7 245.3 225.2 206.6 146 130.5 121 111.2 79.2 57 33 51 71.2 73 87
265.7 255.3 235.2 216.6 156 140.5 131 121.2 84.2 62 51 45 26.2 11 28
275.7 265.3 245.2 226.6 166 150.5 141 131.2 99.2 76 66 56 38.2 26 2;
enddata
min=@sum(sell(i):p(i)*x(i))+0.1*@sum(need(j):t(j)*(t(j)+1)/2+w(j)*(w(J)+1/2)+@sum(link(i,j):c(i,j)*y(i,j));
@sum(sell(i):m(i))500*m(i));
@for(sell(i):x(i)

lingo 这段那里错了?model:sets:sell/1..7/:p,s,x,m;need/1..15/:t,w,d;link(sell,need):c,y;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;c=170.7 160.3 140.2

是这两处有问题:

min=@sum(sell(i):p(i)*x(i))
+0.1*@sum(need(j):t(j)*(t(j)+1)/2+w(j)*(w(J)+1/2))!少一个右括号;
+@sum(link(i,j):c(i,j)*y(i,j));@for(need(j):@sum(sell(i):y(i,j)=w(j)+t(j)));!少一个右括号;

看见了吗

lingo 这段那里错了?model:sets:sell/1..7/:p,s,x,m;need/1..15/:t,w,d;link(sell,need):c,y;endsetsdata:p=160 155 155 160 155 150 160;s=800 800 1000 2000 2000 2000 3000;d=104 301 750 606 194 205 201 680 480 300 220 210 420 500 0;c=170.7 160.3 140.2 求助!这是我第一次接触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 那里出错了啊?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请问这段程式错误 @@model:sets:A:i;B/PD1..PD6/:j;C(A,B)/1,X 1,Z 2,Y 3,X/:; C(A,B):; S/s1..s7/:k;time/t1..t12/:t;D(S,time):;E(A,S):;link(C,S,time):fit,match;endsetsdata:A = @OLE('fit_stut.xls','pro30 ') ;C = @OLE('fit_stut.xls','pg30');fit 请lingo高手检查一下这段程序,MODEL:SETS:kind/1,2,3/:k,l,h,c,e,s; k=三种发电机(Kind),l=最低功率级(Low),h=最高功率级(High),c=最低功率级的每小时费用(Cost);e=超过最低功率级的每兆瓦小时费用(Extra),s=启 lingo程序,这里哪里错了,提示是错误11.data那里有错吗.model:3发点4收点运输问题;集合部分;sets:warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost lingo的编程语法错误!@for(depot(k)|k#NE#1:@for(style(s):@sum(depot(j)|j#NE#1#AND#k#NE#j:@sum(way(w):z(k,k)*Q(1,k,w,s)-a(k,s)-z(k,k)*z(k,j)*Q(k,j,w,s)=0))));这句话的语法哪里错了,一直说我最后的等号那里少了一个右括号, lingo中model is illdefined什么意思? 这lingo程序错在哪?model:sets:num_i/1..4/;num_j/1..4/;num_t/1..7/;link(num_i,num_j,num_t):x;link2(num_i,num_j):s;endsetsdata:s=1000,800,600,500,1500,800,700,600,1300,900,700,400,1000,800,700,500;enddata[obj]max=@sum(num_i(i):@sum(num_j(j):@sum(n 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:sets:a/1,2,3/:x;b/1,2,3,4,5,6,7,8,9,10,11,12,13,14/:dy(a,b);x,d;endsets;data:d=458.1 269.9,242.6 0 63.5 183 220.4 250.2 162.6 176.8 88.1 149.6 367 284 406.4 247.9 180.8 176.4 209.6 340 14 请问这段Lingo程序错在哪里?MODEL:SETS:Add/1 2 3 4 5 6/:p;Demand/1 2 3 4 5 6/:d;Num/1 2 3 4 5 6/:x;Left/1 2 3 4 5 6 7/:y;ENDSETSDATA:p=0.1 0.1 0.2 0.2 0.3 0.3;d=42 32 41 67 25 29;ENDSETSmin=@SUM(0.5*(1+Add(I):p(I))*(Num(I):x(I))^2)+@SUM(0.05* 问一个LINGO的问题,这个程序有一行又语法错误,标出来了,那一行哪里错了啊MODEL:SETS:XIA/A,B/:X1,Y1,S;GO/1..6/:X2,Y2,D;LI(XIA,GO):M,YU;ENDSETSDATA:X1=5 2;Y1=1 7;X2=1.25 8.75 0.5 5.75 3 7.25;Y2=1.25 0.75 4.75 5 6.5 7.75;D=3 5 4 LINGO的,请各位高手看看我这怎么错了我用的lingo10.0model:sets:canshu/c1..c3/:;hangshu/h1,h2/:;shuju(hangshu,canshu):sh;xianzhi/xi1,xi2/:xian;canshus/can1..can3/:ca;bianliang/bian1..bian3/:x;endsetsdata:sh = 1 4 2 5 3 6;xian = 23 26;ca 在lingo最优化程序中,总说模型定义错误,还有15号错误,这是怎么回事,要怎么改,想了很久也没想出哪错model:sets:head/1..10/:;tail/1..10/:;links(head,tail):q,w;endsetsdata:w=0 0.8 0.5 0.9 1.2 1.4 1.2 1.6 1.7 2.20.8 0 0.9 这个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高手!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, this is Lin Fang's room 这句话那里错了