Professional Documents
Culture Documents
Marks for each question, or sub-question, are indicated in a square frame next to the question
in the left margin.
You are allowed to use variables or parameters explicitly given in the test questions without
defining them in your own answers. However, you should define additional variables you use
m
that are not explicitly given.
er as
This is a closed book test.
co
eH w
Calculators are allowed.
o.
rs e
ou urc
Complete 2 questions for 42 marks
Total time: 90 minutes
o
aC s
vi y re
ed d
ar stu
is
Th
sh
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00
18 1. A South African automotive company assembles five different types of vehicles and sells them to independent
automotive dealers throughout the country. The estimated demand for different vehicle types during the
next six months is given by dit where i refers to the vehicle type and t to a particular month, such that
i ∈ I = {1, . . . , 5} and t ∈ T = {1, . . . , 6}.
The company currently has three assembly lines available at their facility with a maximum capacity of cj
vehicles per assembly line j per month, where j ∈ J = {1, 2, 3}. At present, the variable cost to assemble
one vehicle of type i ∈ I on assembly line j ∈ J is given by vij and the fixed cost incurred by the company
if any vehicles of type i ∈ I are assembled on line j ∈ J in a month is given by fij . Due to inflation, these
costs are estimated to increase by 0.4% per month from month two onwards.
The company can use vehicles assembled in earlier months to satisfy demand in later months but vehicles
held in inventory incur an inventory holding cost of hit per vehicle of type i ∈ I per month t ∈ T . The
company currently has no vehicles in inventory.
Formulate an Integer Linear Program (ILP) to help the company satisfy the estimated demand during the
next six months at the lowest possible cost.
Let:
m
(
er as
1 if vehicle i ∈ I is assembled on line j ∈ J during month t ∈ T .
yijt ,
0 otherwise
co
eH w
xijt , the number of vehicles of type i ∈ I assembled on line j ∈ J during month t ∈ T .
sit , the number of vehicles of type i ∈ I in stock at the end of month t ∈ T .
o.
rs e
ou urc
The problem is then formulated as follows:
XX XXX
min z = hit sit + fij (1.004)t−1 yijt (1)
i∈II t∈T
T i∈II j∈J
J t∈T
T
o
XXX
+ vij (1.004)t−1 xijt (2)
aC s
i∈II j∈J
J t∈T
T
vi y re
subject to
X
xijt ≤ cj ∀ j ∈ J,t ∈ T (3)
ed d
i∈II
ar stu
X
sit = si,t−1 + xijt − dit ∀ i ∈ I , t ∈ {2, . . . , 6} (6)
J
j∈J
Th
sit ≥ 0 ∀ i ∈ I, t ∈ T (7)
xijt ≥ 0 ∀ i ∈ I, j ∈ J, t ∈ T (8)
yijt ∈ {0, 1} ∀ i ∈ I, j ∈ J, t ∈ T (9)
sh
The objective (2) minimises the inventory holding cost, fixed assembly cost, and variable assembly cost
incurred to meet the demand over the next six months. Constraint (3) limits the monthly assembly capacity
on the different assembly lines and constraint (4) ensures that the binary and quantity variables for assembly
operations are linked. Inventory levels are calculated and demand satisfied in (5) and (6). Lastly, the variable
definitions are added in (7) through (9).
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00
2. You have been tasked with helping a music production company to plan the contents of a well-known music
artist’s latest album. The album should be a double album (2 discs) containing the greatest hits of this
artist over the last decade. The maximum duration for songs included is 60 minutes per disc. A list of the
30 songs that can be included and their durations is provided in Table 1.
m
3 3 min 13 3 min 23 4 min
er as
4 8 min 14 5 min 24 5 min
co
5 5 min 15 6 min 25 5 min
eH w
6 5 min 16 4 min 26 6 min
7 6 min 17 5 min 27 3 min
o.
8 4
rs e min 18 4 min 28 7 min
9 3 min 19 4 min 29 4 min
ou urc
10 6 min 20 5 min 30 5 min
Let I be the set of songs, such that i ∈ I = {1, . . . , 30} and J be the set of discs in the album, such that
o
(
1 if song i ∈ I is included on disc j ∈ J of the album.
xij ,
0 otherwise
15 (a) Formulate an Integer Linear Program (ILP) that can be used to determine the songs to include in
ed d
the album, whilst maximising the playing time of the album. Define all additional variables and/or
ar stu
6 (b) What additional constraints will you include if the artist has the following requirements?
is
i If song 4 is included on a disc then only one other song with a 6 minute or longer duration may
be included on that particular disc.
Th
ii If song 12 is included on a particular disc in the album then songs 17 and 28 must be included on
the other disc in the album.
3 (c) Let pi be the given popularity rating of song i ∈ I (a value between 0 and 10). What constraint(s)
sh
will you add to ensure that average popularity ratings of at least 9 and 7 are achieved for the songs
included on discs one and two, respectively?
a. Let:
di , the given duration of song i ∈ I .
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00
subject to
X
xij ≤ 1 ∀i ∈ I (11)
J
j∈J
X
di xij ≤ 60 ∀j ∈ J (12)
i∈II
xij ∈ {0, 1} ∀i ∈ I , j ∈ J (13)
The objective (10) maximises the playing time of songs included on the album. The introduction of
(11) ensures that a song is only included once in the album (if included). To ensure that the total
playing time per disc does not exceed 80 minutes, (12) is included. Lastly, the variable definition is
added in (13).
m
er as
1. Definition of parameter and variable definition constraint.
2. Objective function.
co
eH w
3. Ensure a song is only included once.
4. Ensure that maximum playing time is not exceeded.
o.
5. Accessibility of information.
rs e
ou urc
b. The following additional constraints must be included:
required logical
aC s
⇒
then: g(x) ≥ 0 then: x7,j + x10,j + x15,j + x21,j + x26,j + x28,j ≤ 1
The resulting constraints would then be
x4,j ≤ M (1 − uj ) ∀j ∈ J (14)
ed d
uj ∈ {0, 1} ∀j ∈ J (16)
but it will in fact force songs 7, 10, 15, 21, 26 and 28 to not be selected if song 4 is not se-
lected. So it is actually incorrect and an if-then construct is required in this instance.
sh
ii To ensure that songs 17 and 28 are included on the other disc if song 12 is included on a disc, (17)
and (18) is introduced.
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00