Question: sets i 'canning plants' / seattle, san - diego / j 'markets' / new - york, chicago, topeka / r ' DCs ' / 1

sets
i 'canning plants' / seattle, san-diego /
j 'markets' / new-york, chicago, topeka /
r 'DCs'/1,2/;
parameters
a(i) 'capacity of plant i in cases'
/ seattle 350
san-diego 600/
b(j) 'demand at market j in cases'
/ new-york 325
chicago 300
topeka 275/
fixdc(r) 'fixed cost of opening DC r'
/1100
2100/
q(r) 'capacity of opening DC r'
/11000
21000/;
Table d1(i,r) distance btw i and j
12
seattle 0.80.5
san-diego 0.50.8 ;
Table d2(r,j) distance btw i and j
new-york chicago topeka
12.11.41.3
21.91.21.4 ;
Scalar f 'freight in dollars per case per thousand miles' /90/;
parameter
c(i,r,j) unit cost of transportation from i to j;
c(i,r,j)= f*d1(i,r)/1000+f*d2(r,j)/1000;
display c;
variable
z objective value (total cost of transportation)
positive variable
x(i,r,j) amount transported from i to j
binary variable
w(r)1 if DC is opened and 0 otherwise
Equation
objective_func this is ojective function
supply1 do not exceed capacity of plant
supply2 do not exceed capacity of DC
demand satisfy demand
;
objective_func .. z =E= sum((r), fixdc(r)*w(r))+ sum((i,j,r), c(i,r,j)*x(i,r,j));
supply1(i).. sum((j,r), x(i,r,j))=L= a(i);
supply2(r).. sum((i,j), x(i,r,j))=L= q(r)*w(r);
demand (j).. sum((i,r), x(i,r,j))=E= b(j);
model tesc /all/;
*option optcr =0;
solve tesc using MIP minimizing z;
display x.L, w.L, z.L;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!