lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 13:03:11
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
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
没看出你那个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
再问: 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))); 这一句似乎有问题
再答: 没有语法错误,至于模型问题就需要你自己检查一下了。。。
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
再问: 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))); 这一句似乎有问题
再答: 没有语法错误,至于模型问题就需要你自己检查一下了。。。
lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k
lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d
lingo错误model:sets:quarter/1..4/:DEM,RP,OP,INV;endsetsdata:DE
lingo 整数规划model:sets:P/1,2/;Q/1..6/:a,b,d;R(P,Q):c,z;endsets
lingo 程序sets:k/1..5/;z/1..8/:m;link(k,z):a,c,l,t,s;endsetsmi
lingo程序:model:sets:product/1..3/:a,b; row/1..5/:c,d,y; num/1
lingo 哪错了model:sets:year/1..15/:bank,st,xz;endsets@for(year:
lingo找错model:sets:quarters/1..45/xr,yr,wr,zr,tr;endsetsmin=@
lingo题求助!model:sets:plants / a,b,c,d /:;closed(plants) / b /
MODEL:SETS:WH/W1..W13/:X,Q,C,D,N,K;LINKS(WH,WH):A,B,G,S,W,H;
在lingo中编程model:sets:time/1..51/:t;capacity/1..51/:c;order/1.
Lingo MODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y= 53