lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,800,1000;t=13,12,12,10;p=7.04,7.04,7.04,7.04;enddatamin=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters(

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/09 06:02:19
lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,80

lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,800,1000;t=13,12,12,10;p=7.04,7.04,7.04,7.04;enddatamin=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters(
lingo哪错了?
MODEL:
sets:
Quarters/1..4/:a,k,d,c,t,p;
endsets
data:
k=25,35,30,10;
d=10,15,25,20;
c=1000,800,800,1000;
t=13,12,12,10;
p=7.04,7.04,7.04,7.04;
enddata
min=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters(i):@sum(quarters(j)|j#LE#i:a(j)-d(j)));
@for(quarters:a>=0);
@for(quarters:a=0);
end

lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,800,1000;t=13,12,12,10;p=7.04,7.04,7.04,7.04;enddatamin=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters(
没看出你那个i是用来做啥的.
MODEL:
sets:
Quarters/1..4/:a,k,d,c,t,p;
endsets
data:
k=25,35,30,10;
d=10,15,25,20;
c=1000,800,800,1000;
t=13,12,12,10;
p=7.04,7.04,7.04,7.04;
enddata
min=@sum(Quarters:a*c*p*0.0001+(0.75*t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters(i):@sum(quarters(j)|j#LE#i:a(j)-d(j))));
!@for(quarters:a>=0);!lingo默认变量非负的;
@for(quarters:a=0);
end

这个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程序错在哪了?model: sets: row/1..3/:b; col/1..2/:c,x,l,u; matrix(row,col):A; endsetsmin=@sum(col:c*x);@for(col:@bnd(l,x,u));@for(row(i): @sum(col(j):A(i,j)*x(j) lingo编程提示error code 1017 错哪了?model:sets:b/1.2.3/:x,a,v,;endsetsdata:a=400,300,100;v=3,2,1;enddatamax=@sum(b(i):x(i)*a(i));@for(b(i):x(i)v(i)) 急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.MODEL:SETS:WH/W1..W13/:Q,C;NE/N1..N13/:N;LINKS(WH,NE):W,B;ENDSETSDATA:C=2,1,4,4,4,5,3,2,1,4,3,10,8;N=48757.8,29912.3,76360.4,68715.1,61605.9,1724 lingo 哪错了model:sets:year/1..15/:bank,st,xz;endsets@for(year:bank(i)=100*(1+0.05)^i);@for(year:st(i)=50*@exp(i^0.5/6));@for(year:xz(i)=st(i)/((1+0.05)^i));end 在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高手!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中sets是什么? 高手给看看哪错了 lingo 在这里谢谢了model:sets:part/1..7/:a;equipment/1..5/:g;time/1..6/:t;machine_hour(equipment,part):d;machine(equipment,time):h,n,m;pxt(time,part):c,v,x;endsetsdata:a=100 60 80 40 110 90 30;g=2 2 3 1 1;h=4 4 4 4 4 4 2 求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8 lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,800,1000;t=13,12,12,10;p=7.04,7.04,7.04,7.04;enddatamin=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters( 目标函数的lingo语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 请高手看看这个LINGO程序那错了model:sets:people/1..6/:c,x;endsetsdata:c=20 30 25 10 20 15;enddatamax=@sum(people:c*x);@sum(people(i)|i#le#3:x(i))25*x3+15*x6;@for(people:@gin(x));end我的本意是接出来后所有解都要大于1的.希 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 tsp 错误代码 11 哪里错了啊MODEL:SETS:CITY / 1..20/:U;LINK( CITY,CITY):DIST,X;ENDSETSDATA:dist=0 9.7 12.2 7.8 10.4 7.6 4.6 12.8 10 11.2 10.2 16.1 9.8 10.7 17.2 14.8 9.5 11.8 7.45.1 0 10.5 6.1 8.9 5.2 9.4 3 5.7 2.8 8.3 7.8 2.9 1.2 14.9 3 请问一下这个LINGO程序错在哪里了啊.为什么老是不执行model:飞机排队问题;sets:planes:passengerALL,passengerEXHANGE,PDT,PAT,delay,MD;time:e;links(planes,time):cost,sequence;endsets目标函数;min=@sum(links:cost*sequence);飞 求修改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)) 小弟编了一个超简单的lingo程序,不知错在哪里~望指教~大谢!MODEL:SETS:warehouse/w1,w2,w3/:w;costomer/v1..v4/:d;links/warehouse,costomer/:c,x;ENDSETSDATA:c=6,22,6,20;2,18,4,16;14,8,20,10;d=9,18,15,18;w=21,22,27;ENDDATAMIN=@SUM(links