You are on page 1of 5

University of Pretoria

Department of Industrial and Systems Engineering

Operations Research BOZ 312


Internal examiner: Mrs Wilna L Bean
External examiner: Prof Johan W Joubert

This paper comprises 2 questions. Please answer all the questions.

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

BOZ 312 1 of 5 Semester test 2 Memorandum


https://www.coursehero.com/file/65094411/BOZ312-May2017-TestMemo-2pdf/
Test questions

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

xijt ≤ M yijt ∀ i ∈ I, j ∈ J, t ∈ T (4)


X
si1 = xij1 − di1 ∀ i∈I (5)
J
j∈J
is

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

BOZ 312 2 of 5 Semester test 2 Memorandum


https://www.coursehero.com/file/65094411/BOZ312-May2017-TestMemo-2pdf/
The following criteria are assessed using a 0-1-2-3 rubric:

1. Definition of decision variables.


2. Objective function.
3. Limit monthly assembly line capacity.
4. Linking of variables.
5. Determine inventory levels based on production and demand.
6. Accessibility of information.

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.

Table 1: Potential songs and their durations (in minutes)

Song Duration Song Duration Song Duration


1 4 min 11 4 min 21 7 min
2 5 min 12 5 min 22 5 min

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

j ∈ J = {1, 2}. The following variable can then be defined:


aC s
vi y re

(
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

parameters necessary to formulate this model.

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?

Below are the answers to the various subquestions in this question:

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

BOZ 312 3 of 5 Semester test 2 Memorandum


https://www.coursehero.com/file/65094411/BOZ312-May2017-TestMemo-2pdf/
The problem is then formulated as follows:
XX
max z = di xij (10)
i∈II j∈J
J

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).

The following criteria are assessed using a 0-1-2-3 rubric:

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:

i To include the first condition of 6 minute songs, an if-then construct is required.


o

required logical
aC s

if: f (x) > 0 if: x4,j > 0


vi y re


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

x7,j + x10,j + x15,j + x21,j + x26,j + x28,j − 1 ≤ M uj ∀j ∈ J (15)


ar stu

uj ∈ {0, 1} ∀j ∈ J (16)

It may seem as if the following constraint will be more elegant,


is

x4,j ≥ x7,j + x10,j + x15,j + x21,j + x26,j + x28,j ∀ j ∈ J ,


Th

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.

2x12,1 ≤ x17,2 + x28,2 (17)


2x12,2 ≤ x17,1 + x28,1 (18)

The following criteria are assessed using a 0-1-2-3 rubric:

1. If-Then construct for 6 minute and longer songs.


2. If song 12 is included on 1 then songs 17 and 28 must be included on 2.

This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:48:30 GMT -05:00

BOZ 312 4 of 5 Semester test 2 Memorandum


https://www.coursehero.com/file/65094411/BOZ312-May2017-TestMemo-2pdf/
c. The following constraints must be included to ensure that the average ratings of the songs on discs are
achieved:
P
pi xi,1
i∈II
P ≥9 (19)
xi,1
i∈II
P
pi xi,2
i∈II
P ≥7 (20)
xi,2
i∈II

The following criterion is assessed using a 0-1-2-3 rubric:

1. Enforce minimum required popularity rating.

??? end of paper ???

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

BOZ 312 5 of 5 Semester test 2 Memorandum


https://www.coursehero.com/file/65094411/BOZ312-May2017-TestMemo-2pdf/
Powered by TCPDF (www.tcpdf.org)

You might also like