model:
sets:
year/1..5/:item1,item4,S;
endsets
data:
M=10;
enddata
max=S(5);
S(1)=M-item1(1)+0.06*item4(1);
S(2)=S(1)+1.15*item1(1)-item1(2)+0.06*item4(2)-item3;
S(3)=S(2)+1.15*item1(2)-item1(3)+0.06*item4(3)-item2;
S(4)=S(3)+1.15*item1(3)-item1(4)+0.06*item4(4);
S(5)=S(4)+1.15*item1(4)-item1(5)+0.06*item4(4)+1.25*item2+1.4*item3;
item1(1)+item4(1)<=M;
item1(2)+item4(2)+item3<=S(1);
item1(3)+item4(3)+item2<=S(2);
item1(4)+item4(4)<=S(3);
item1(5)+item4(5)<=S(4)
item3<=4;
end
你这个题目有没有算式