Question: sets i 'canning plants' / seattle, san - diego / j 'markets' / new - york, chicago, topeka / r ' DCs ' / 1
sets
i 'canning plants' seattle, sandiego
j 'markets' newyork, chicago, topeka
r DCs;
parameters
ai 'capacity of plant i in cases'
seattle
sandiego
bj 'demand at market j in cases'
newyork
chicago
topeka
fixdcr 'fixed cost of opening DC r
qr 'capacity of opening DC r
;
Table dir distance btw i and j
seattle
sandiego ;
Table drj distance btw i and j
newyork chicago topeka
;
Scalar f 'freight in dollars per case per thousand miles' ;
parameter
cirj unit cost of transportation from i to j;
cirj fdirfdrj;
display c;
variable
z objective value total cost of transportation
positive variable
xirj amount transported from i to j
binary variable
wr if DC is opened and otherwise
Equation
objectivefunc this is ojective function
supply do not exceed capacity of plant
supply do not exceed capacity of DC
demand satisfy demand
;
objectivefunc z E sumr fixdcrwr sumijr cirjxirj;
supplyi sumjr xirjL ai;
supplyr sumij xirjL qrwr;
demand j sumir xirjE bj;
model tesc all;
option optcr ;
solve tesc using MIP minimizing z;
display xL wL zL;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
