SETS I depot /SOLLEFT, GAVLE / J demandarea /STOCKHOLM, BODEN/ M transportation /TRAIN, AIRPLANE/ V equipment /TANK, TGB11 / T timeperiod /DAY1, DAY2, DAY3, DAY4, DAY5, DAY6/; ALIAS(T,TT); TABLE DIST(I,J) STOCKHOLM BODEN SOLLEFT 400 350 GAVLE 250 550 ; TABLE A(I,V) available equipment TANK TGB11 SOLLEFT 100 100 GAVLE 100 50 ; TABLE DEM(J,V,T) demand DAY2 DAY3 DAY4 DAY5 STOCKHOLM.TANK 20 30 40 STOCKHOLM.TGB11 10 20 20 BODEN.TANK 10 10 10 BODEN.TGB11 10 10 10 10 ; TABLE CAP(I,M,T) transportation capacity available in tons DAY1 DAY2 DAY3 DAY4 DAY5 SOLLEFT.AIRPLANE 50 50 100 100 SOLLEFT.TRAIN 100 100 100 100 100 GAVLE.AIRPLANE 100 50 50 50 50 GAVLE.TRAIN 100 100 100 100 100 ; PARAMETERS W(V) weight in tons /TANK 7 TGB11 2 / C(M) cost of transporting a ton of goods in dollars /TRAIN 2 AIRPLANE 10/; VARIABLES * Insert the variables here. POSITIVE VARIABLE X; EQUATIONS SATDEM(J,V,T) fullfillment of aggregate demand * Insert the declarations of the other equations here SATDEM(J,V,T) .. SUM((I,TT)$(ORD(TT) LE ORD(T)), X(I,J,V,"TRAIN",TT-2) + X(I,J,V,"AIRPLANE",TT-1)) =G= SUM(TT$(ORD(TT) LE ORD(T)), DEM(J,V,TT)); * Insert the definitions of the other equations here * Observe the syntax carefully. MODEL TRANS4 /ALL/ SOLVE TRANS4 USING LP MINIMIZING Z; DISPLAY X.L, Z.L;