Q2. Write the mathematical model in open form of the following GAMS code. (30 Points)
(Do not use the summation sign)
sets
i supplier /1*3/
j customer /1*5/
;
Parameters
s(i)/
1 500
2 400
3 300
/
d(j)/
1 300
2 200
3 100
4 400
5 200
/;
Table c(i,j)
1 2 3 4 5
1 5 3 4 1 10
2 7 4 8 1 8
3 2 9 1 9 2
;
Variable
z;
Positive Variable
x(i,j);
Equations
obj
k1
k2
obj.. z=e=sum((i,j),x(i,j)*c(i,j));
k1 (1).. sum(j,x(i,j))=1=s(1);
k2 (j).. sum(1,x(1,3))=g=d(1);
model homeworkII /all/;
solve homeworkII using mip minimizing z;
display x.1, z.1;