MODEL:
SETS:
PERIODS/1,2,3,4,5,6,7,8,9,10,11,12/:DEM,M,W,HF,LF,HS,LS,I,C,OF,OS,PTE,PTT,PTEW,PTET;
ENDSETS
MIN=@SUM(PERIODS:15*63*8*(M*6+W)+22.5*(OF+OS)+3000*(HF+HS)+2500*(LF+LS)+10*PTT+60*C+2*PTE+5*PTEW+11*PTEW);
@FOR(PERIODS(T):DEM(T)<=PTT(T)+C(T));
M(1)=14+HF(1)/6-LF(1)/6;
@FOR(PERIODS(T)|T#GT#1:M(T)=M(T-1)+HF(T)/6-LF(T)/6);
W(1)=25+HS(1)-LS(1);
@FOR(PERIODS(T)|T#GT#1:W(T)=W(T-1)+HS(T)-LS(T));
@FOR(PERIODS(T):PTT(T)+C(T)<=2*(8*63*W(T)+OS(T)));
@FOR(PERIODS(T):PTE(T)<=2.85*(8*63*M(T)+OF(T)/6));
@FOR(PERIODS(T):OF(T)<=60*(6*M(T)));
@FOR(PERIODS(T):OS(T)<=60*(W(T)));
@FOR(PERIODS(T):W(T)<=25);
@FOR(PERIODS(T):M(T)<=14);
@FOR(PERIODS(T)|T#GT#1:I(T-1)
@FOR(PERIODS(T)|T#GT#1:PTT(T)=I(T-1)+PTET(T));
@FOR(PERIODS(T):PTE(T)=PTEW(T)+PTET(T));
@FOR(PERIODS(T):I(T)=PTEW(T));
DATA:
DEM=14112,22826,15187,17841,15858,25504,16947,19906,17602,28182,18708,21971;
ENDDATA
END