FIT3158 Tutorial 4 Solution
FIT3158 Tutorial 4 Solution
FIT3158 Tutorial 4 Solution
Tutorial 4 Solution
ILP, GP and MOLP
The city manager would like to determine the minimum number of lifeguards that will
have to be hired.
a. Formulate an ILP for this problem.
b. Implement it in a spreadsheet and solve it.
c. What is the optimal solution?
d. Several lifeguards have expressed preference to be off on Saturdays and
Sundays. What is the maximum number of lifeguards that can be off on
weekends without increasing the total number of lifeguards required?
Tropicsun wants to determine how many bushels to ship from each grove to each
processing plant to minimise the total transportation cost.
a. Formulate an ILP model for this problem
b. Create a spreadsheet model for this problem and solve it
c. What is the optimal solution?
(Hint: – try using ‘big M’).
Solution
Exercise 1 (Ragsdale 6.10)
a. MIN X1 + X2 + X3 + X4 + X5 + X6 + X7
ST X2 + X3 + X4 + X5 + X6 18
X3 + X4 + X5 + X6 + X7 17
X1 + X4 + X5 + X6 + X7 16
X1 + X2 + X5 + X6 + X7 16
X1 + X2 + X3 + X6 + X7 16
X1 + X2 + X3 + X4 + X7 14
X1 + X2 + X3 + X4 + X5 19
Xi 0 & integer
b. See file Prb6_10.xls
c. X1 =5, X2 =2, X3 =6, X4 =2, X5 =6, X6 =2, X7 =1 (alternate optimal solutions
exist).
d. 3
3|Page
X3 - 750 Y3 0
X4 - 400 Y4 0
X5 - 600 Y5 0
X6 - 800 Y6 0
Xi 0
All Yi are binary
b. See file: Prb6_17.xlsm
c. X1=500, X2=600, X4=100, X5=600
Total cost = $42,300
a. Let Xij = bushels (in 1000s) shipped from grove i to processing plant j
Yij = 1 if Xij 0, 0 otherwise
a. MIN Q
ST 1(66100 - 350X1 - 300X2 ) Q
2(15X1 + 10X2 - 0 ) Q
X1 + X2 200
9X1 + 6X2 1566
12X1 + 16X2 2880
X1, X2 0
b. See file: Prb7_12.xls
c. Aqua-Spas = 61, Hydro-Luxes = 134
4|Page
Exercise 5 (Ragsdale 7.1, 7.2 and 7.4)
5|Page