SCD HW1 Solution - Revised
SCD HW1 Solution - Revised
Sunchem, a manufacturer of printing inks, has five manufacturing plants worldwide. Their locations and
capacities are shown in Table 5-7 along with the cost of producing 1 ton of ink at each facility. The
production costs are in the local currency of the country where the plant is located. The major markets
for the inks are North America, South America, Europe, Japan, and the rest of Asia. Demand at each
market and transportation costs from each plant to each market in U.S. dollars are shown in Table 5-7.
The expected exchange rates are shown in Table 5-8. Management must come up with a production
plan for the next year.
a. Build a Mixed-Integer Linear Programming model which minimize the total cost based on this
problem (Indices, Parameters, Decision Variables, Objective function, Constraints should be also
included).
b. How much should each plant produce and which markets should each plant supply? What is the
total cost for this production strategy?
c. If no plant can run below 50 percent of capacity, which constraints should be added or revised?
Then, how much should each plant produce and which markets should each plant supply? What
is the total cost for this production strategy?
a. MILP model:
● Indices:
i: index of Market (i=1,…,5)
j: index of Plant (j=1,…,5)
● Parameters:
Tij: Transportation cost from Plant i to Market j (USD)
Ci: Capacity of Plant i (Tons)
Pi: Production cost per Ton at Plant i (local currency)
Ei: Exchange rate of local currency at Plant i to USD
Dj: Demand at Market j (Tons)
● Decision variables:
xij: Production quantity of demand at Market j assign to Plant i
yij: Binary, =0 if some demand at Market j assign to Plant I, =0 if otherwise
● Objective function:
i j i j
Minimize ∑ ∑ T ij × x ij + ∑ ∑ Pi × E i × x ij
1 1 1 1
or
i j i j
Minimize ∑ ∑ T ij × y ij + ∑ ∑ P i × E i × xij
1 1 1 1
Constraints:
i
(1) ∑ x ij=D j , for j=1, … , 5
1
j
(2) ∑ x ij ≤ K i , for i=1 , … , 5
1
● CPLEX Code:
//Indices:
int numPlant=5;
int numMarket=5;
range Plant=1..numPlant;
range Market=1..numMarket;
//Parameters:
float T[Plant][Market]=[[600,1300,2000,1200,1700],
[1300,600,1400,1400,1300],
[2000,1400,300,2100,900],
[1200,1400,2100,800,2100],
[2200,1300,1000,2300,800]];
float C[Plant]=[185,475,50,200,80];
float P[Plant]=[10000,15000,1800000,13000,400000];
float E[Plant]=[1,0.502,0.0093,0.562,0.023];
float D[Market]=[270,200,120,190,100];
//Decision Variables:
dvar int+ x[Plant][Market];
//Objective function:
minimize sum(i in Plant,j in Market)T[i][j]*x[i][j] + sum(i in Plant,j in Market)P[i]*E[i]*x[i][j];
//Constraints:
subject to{
//Constraint 1:
forall(j in Market){
sum(i in Plant)x[i][j] == D[j];
}
//Constraint 2:
forall(i in Plant){
sum(j in Market)x[i][j] <= C[i];
}
}
x[i][j] Market, j
1. North 4. South
Plant, i America 2. Europe 3. Japan America 5. Asia
1. United States 125 0 0 0 0
2. Germany 135 200 120 0 20
3. Japan 0 0 0 0 0
4. Brazil 10 0 0 190 0
5. India 0 0 0 0 80
Question 2:
A good place to start looking for locations is around (31.6, 29.27). No warehouse is close to this location,
so it might be better to look for an entirely new location at (X0, Y0) =(31.6, 29.27).
b. Given the transportation costs of Supplier i={1,2,3,4} and Warehouse j={1,2,3,4,5,6} are
respectively ($/Ton Mile): (1.4,0.4,1.6,0.3,1.4,0.7,0.6,0.3,1.8,1.7). Calculate the Total
Transportation Cost of this supply-demand network.
c. Use Excel Solver to find a new location for building new Distribution Center to minimize the
Total Transportation Cost.
Location X co-ordinates Y co-ordinates Supply or $/Ton Distance Cost
demand Mile
Supplier 1 59 45 70 1.4 17.4642 1711.496421
5
Supplier 2 11 5 70 0.4 45.9673 1287.086633
8
Supplier 3 37 25 24 1.6 14.3178 549.8043288
2
Supplier 4 6 23 52 0.3 39.9249 622.8289011
3
Warehouse 64 21 71 1.4 27.0185 2685.64011
1 1
Warehouse 28 7 31 0.7 34.4383 747.3122105
2 5
Warehouse 17 60 67 0.6 34.0587 1369.162664
3 7
Warehouse 9 6 21 0.3 46.6904 294.1499618
4 7
Warehouse 43 38 49 1.8 0 0
5
Warehouse 8 42 24 1.7 35.2278 1437.29546
6 3
64 60 Total 10704.77669
Optimal x 43
Optimal y 38
Question 3: Given the dataset of a supply network in the following table:
a. Calculate the Euclidean distance from every potential site to every supplier
n
LD = ∑ I i d i
i=1
Site1 Site 2 Site 3 Site 4
Warehouse 1 24.52 55.36 27.29 58.03
Warehouse 2 49.04 17.12 20.12 27.20
Warehouse 3 44.60 55.33 40.31 38.60
Warehouse 4 63.41 2.24 33.84 17.26
Warehouse 5 17.46 45.97 14.32 39.92
Warehouse 6 51.09 37.12 33.62 19.10
Load Distance 9662.433487 11358.50351 7481.581565 10327.331
Site 3 has the lowest load-distance value, therefore choose site 3 as the best site.
Question 4:
Beika Tower Shopping Mall would like to build up a new Distribution Center to deliver orders to 6 cities,
with locations, distances and demands shown in the following figure.
City Demand
A 97
B 121
C 100
D 60
E 84
F 87
a.
To A B C D E F Demand
From
A 0 3 2 8 10 13 97
B 3 0 1 5 7 10 121
C 2 1 0 6 8 11 100
D 8 5 6 0 2 5 60
E 10 7 8 2 0 3 84
F 13 10 11 5 3 0 87
b.
For example : Weight – distance of city A is: 90*0 + 120*3 + 110*2 + 65*8 + 80*10 + 95*13 = 3135
To Deman
A B C D E F
From d
A 0 3 2 8 10 13 97
B 3 0 1 5 7 10 121
C 2 1 0 6 8 11 100
D 8 5 6 0 2 5 60
E 10 7 8 2 0 3 84
F 13 10 11 5 3 0 87
Total 3014 2149 2304 2584 2998 4123
Question 5:
Beika Tower Shopping Mall would like to build up a new Distribution Center to deliver orders to 6 cities,
with locations, distances and demands shown in the following figure.
City Demand
A 97
B 121
C 100
D 60
E 84
F 87
a.
b In conclusion, logistics center should locate at city D to give the shortest travel distances over the
network.
c. To give maximum travel distance of 3 kilometers to any other city, the possible distance matrix is:
A F C B E
A 0 2 3
B 3 1 0
C 2 0 1
D 2
E 3 0
F 0 3
Maximu 3 3 2 1 3
m
We can choose E and A, E and B, E and C with the maximum travel time of 3 kilometers.