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,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