<>model:
sets:
tou/1..4/:s,r,p,u,x,y;
endsets
data:
r=0.28 0.21 0.23 0.25;
p=0.01 0.02 0.045 0.065;
u=103 198 52 40;
enddata
max <a href="mailt=@sum" target="_blank" >=@sum</A>( tou(i):s(i)*r(i)-x(i)*(p(i)*u(i)+(s(i)-u(i))*p(i)*y(i)));
@sum(tou(i):s(i))<10000;
@for(tou( i)|s(i) #gt#0:
x(i)=1 );
@for(tou( i)|s(i) #eq#0:
x(i)=0 );
@for(tou( i)|u(i) #gt# s(i):
y(i)=0 );
@for(tou( i)|u(i) #le# s(i):
y(i)=1 );
init:
x=1 1 1 1;
y=1 1 1 1;
endinit
end</P>
|