lingo哪错了?
问题描述:
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
答
没看出你那个i是用来做啥的.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=...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)));这一句似乎有问题没有语法错误,至于模型问题就需要你自己检查一下了。。。