Help me for solving the MATHEMATICAL PROGRAMMING QUESTION

JEAHO HAN
final.gms

$TITLE ECON 480 FINAL EXAM MATHEMATICAL PROGRAMMING QUESTION * This problem is from "Computational Economics" CH 1, Problem 7 * The product is Bar Stool. $OFFSYMLIST OFFSYMXREF *OPTION LIMROW = 0 *OPTION LIMCOL = 0 SETS I PLANTS Production Sites /P1,P2,P3,P4/ J MARKETS Market Sites /M1,M2,M3,M4,M5,M6/; *Data TABLE NETREV(I,J) Net Revenue in Dollars M1 M2 M3 M4 M5 M6 P1 29 51 59 54 56 27 P2 44 43 29 63 53 46 P3 63 37 63 62 46 47 P4 51 53 54 51 43 38; * The Net Revenues are different because the product is * sold at different prices in the six markets and the * transportation cost from each plant to each market is also different PARAMETERS CAPACITY(I) Capacity at each plant /P1 1200 P2 1800 P3 1100 P4 1900/ DEMAND(J) Demand at each market /M1 1000 M2 1200 M3 700 M4 1500 M5 500 M6 1000/; VARIABLES X(I,J) Montly Shippments from plant i to market j TOTPROF Objective Function Value; POSITIVE VARIABLE X; EQUATIONS OBJFUNC OBJECTIVE FUNCTION PLANCONS(I) PLANT CONSTRAINT DEMCONS(J) DEMAND CONSTRAINT; OBJFUNC .. TOTPROF =E= SUM((I,J), NETREV(I,J) * X(I,J)); PLANCONS(I) .. SUM(J, X(I,J)) =L= CAPACITY(I); DEMCONS(J) .. SUM(I, X(I,J)) =G= DEMAND(J); MODEL MAXPROF /OBJFUNC,PLANCONS,DEMCONS/; SOLVE MAXPROF USING LP MAXIMIZING TOTPROF; � [EXECUTE] [OPENWINDOW_1] MAXIM=1 TOP=0 LEFT=0 HEIGHT=254 WIDTH=480 FILE0=w:\econ480\final.gms FILE1=w:\econ480\final.lst FILE2=w:\econ480\final.gms [MRUFILES] 1=w:\econ480\final.lst 2=w:\econ480\final.gms