求修改lingo代码!比较急的!model:sets:decli/1..4/:p,n;endsets[ObJ] min=@sum(P(i));n(1)=10;p(1)=n(1)+120;@for(decli(i)|i#GE#1:p(i)=0.85*p(i-1)+n(i));60*n(1)+65*120>=000;65*0.85*p(1)+60*n(2)>=7500;65*0.85*p(2)+60*n(3)>=5500;62*0.85*p(3)+60*n(4)>
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 13:36:52
求修改lingo代码!比较急的!model:sets:decli/1..4/:p,n;endsets[ObJ] min=@sum(P(i));n(1)=10;p(1)=n(1)+120;@for(decli(i)|i#GE#1:p(i)=0.85*p(i-1)+n(i));60*n(1)+65*120>=000;65*0.85*p(1)+60*n(2)>=7500;65*0.85*p(2)+60*n(3)>=5500;62*0.85*p(3)+60*n(4)>
求修改lingo代码!比较急的!
model:
sets:
decli/1..4/:p,n;
endsets
[ObJ] min=@sum(P(i));
n(1)=10;
p(1)=n(1)+120;
@for(decli(i)|i#GE#1:p(i)=0.85*p(i-1)+n(i));
60*n(1)+65*120>=000;
65*0.85*p(1)+60*n(2)>=7500;
65*0.85*p(2)+60*n(3)>=5500;
62*0.85*p(3)+60*n(4)>=9000;
end
其实,我感觉是没有问题的呀!
model:
sets:
decli/1..4/:p,n;
endsets
[ObJ] min=@sum(P(i));
n(1)=10;
p(1)=n(1)+120;
@for(decli(i)|i#GE#2:p(i)=0.85*p(i-1)+n(i));
60*n(1)+65*120>=000;
65*0.85*p(1)+60*n(2)>=7500;
65*0.85*p(2)+60*n(3)>=5500;
62*0.85*p(3)+60*n(4)>=9000;
end
求修改lingo代码!比较急的!model:sets:decli/1..4/:p,n;endsets[ObJ] min=@sum(P(i));n(1)=10;p(1)=n(1)+120;@for(decli(i)|i#GE#1:p(i)=0.85*p(i-1)+n(i));60*n(1)+65*120>=000;65*0.85*p(1)+60*n(2)>=7500;65*0.85*p(2)+60*n(3)>=5500;62*0.85*p(3)+60*n(4)>
model:
sets:
decli/1..4/:p,n;
endsets
[ObJ] min=@sum(decli(i):P(i));
n(1)=10;
p(1)=n(1)+120;
@for(decli(i)|i#GT#1:p(i)=0.85*p(i-1)+n(i));
60*n(1)+65*120>=000;
65*0.85*p(1)+60*n(2)>=7500;
65*0.85*p(2)+60*n(3)>=5500;
62*0.85*p(3)+60*n(4)>=9000;
end
另外 60*n(1)+65*120>=000;里面的000是什么 写错了吧