You are on page 1of 7

University of Pretoria

Department of Industrial and Systems Engineering

Operations Research BOZ 312


Lecturer: Mrs Wilna L Bean

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

Marks for each question are indicated in a square frame next to the question in the left
margin.

You are allowed to use variables explicitly given in the test questions without defining
them in your own answers. However, you should define additional variables you use that are

m
er as
not explicitly given.

co
This is a closed book test.

eH w
o.
rs e Calculators are allowed.
ou urc
Complete all 2 questions for 43 marks
o

Total time: 90 minutes


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:49:48 GMT -05:00

16 May 2019 1 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
Test questions
1. Safeway Carriers transports 10kg packets of dried peaches from farms (denoted by i ∈ I ) to markets
(denoted by j ∈ J ) in South Africa. The production capacity (in number of 10kg packets) of each
farm i ∈ I is given by si , while the demand of each market j ∈ J (in number of 10kg packets) is
given by dj .
Packets of dried peaches can be transported with three types of vehicles: 1 ton bakkies, 3 ton light
delivery vehicles, and 8 ton medium delivery vehicles. Transport cost is incurred on a per-trip
basis and is a function of the distance transported and the vehicle type’s cost per kilometer (a
combination of vehicles may be used). The distances between farms i ∈ I and markets j ∈ J are
given tij . In addition, the transportation rate (in R/km) for the three vehicle types are R 9.20/km
for bakkies (1 ton), R 12.70/km for light delivery vehicles (3 ton) and R 19.30/km for medium
delivery vehicles (8 ton).

15 (a) Formulate an Integer Linear Program that will assist Safeway Carriers to satisfy market
demand for dried peaches whilst minimising their own transportation cost.

In addition to the sets given in the question, let K denote the set of vehicle types such that

m
er as

1 1-ton bakkies,

co
K = 2 3-ton light delivery vehicles, and

eH w

3 8-ton medium delivery vehicles.

o.
We let:
rs e
ou urc
xijk , the number of 10kg-packets to transport from farm i ∈ I to market j ∈ J in truck
type k ∈ K .
nijk , the number of trips between farm i ∈ I and market j ∈ J with truck type k ∈ K .
o

wk , the given weight capacity (in kg) of truck type k ∈ K .


aC s

ck , the given transportation cost (R/km) of truck type k ∈ K .


vi y re

We can then proceed to model the problem as follows.


XX X
ed d

min z = tij ck nijk (1)


i∈II j∈J
J k∈K
K
ar stu

subject to

10xijk
is

≤ nijk ∀ i ∈ I, j ∈ J, k ∈ K (2)
wk
Th

XX
xijk ≤ si ∀ i∈I (3)
J k∈K
j∈J K
XX
xijk ≥ dj ∀ j ∈J (4)
sh

i∈II k∈K
K
xijk , nijk ≥ 0 and integer ∀ i ∈ I, j ∈ J, k ∈ K (5)

The objective of the model in (1) minimises the total cost of transporting peaches, incurring
cost on trips, and not packets. Constraint (2) determines the number of truck trips per truck
type from the number of packages transprted. Capacity constraints are enforced with (3) while
(4) ensures demand is met. Finally, nonnegativity and integrality constraints are introduced
with (5).

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

16 May 2019 2 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
The following criteria are assessed using a 0-1-2-3 rubric:

1. Definition of decision variables.


2. Objective function.
3. Determine the number of truck trips per truck type.
4. Limit available farm supply and satisfy market demand.
5. Accessibility of information.

An alternative formulation would define xij as the number of 10kg-packets to transport from
farm i ∈ I to market j ∈ J . The formulation can then be adapted as follows:

XX X
min z = tij ck nijk (6)
i∈II j∈J
J k∈K
K

subject to

m
w1 nij1 w2 nij2 w3 nij3

er as
xij = + + ∀ i ∈ I, j ∈ J (7)
10 10 10

co
X
xij ≤ si ∀ i∈I (8)

eH w
J
j∈J

o.
X
xij ≥ dj rs e ∀ j ∈J (9)
i∈II
ou urc
xij ≥ 0 and integer ∀ i ∈ I, j ∈ J (10)
nijk ≥ 0 and integer ∀ i ∈ I, j ∈ J, k ∈ K (11)
o
aC s

3 (b) What constraint(s) would you include to ensure that if any peaches are transported in a
vi y re

bakkie between a farm and market pair, then no peaches may be transported with a light
delivery vehicle between that same farm and market pair (For example, if any peaches are
transported in a bakkie between farm 1 and market 2, then no peaches may be transported
in a light delivery vehicle between farm 1 and market 2).
ed d
ar stu

xij1 ≤ M (1 − yij ) ∀ i ∈ I, j ∈ J (12)


xij2 ≤ M yij ∀ i ∈ I, j ∈ J (13)
yij ∈ {0, 1} ∀ i ∈ I, j ∈ J (14)
is

The If-Then construct is included in constraints (12) through (14) where M is a sufficiently
Th

large number.
required logical adapted
if: f (x) > 0 ⇒ xij1 > 0 ⇒ xij1 > 0
sh

then: g(x) ≥ 0 ⇒ xij2 ≤ 0 ⇒ −xij2 ≥ 0

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

1. Correct application of If-Then construct.

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

16 May 2019 3 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
18 (c) Safeway Carriers is planning to open a centralised distribution centre at one of three potential
locations, denoted by l ∈ L = {1, 2, 3}. After the distribution facility is opened no direct
shipment between farms and markets will be allowed any more (i.e. all packets of peaches
will be transported from farms to the centralised distribution centre and then transported
from the centralised distribution centre to the different markets).
The estimated cost of opening a distribution centre at potential facility location l ∈ L , where
I = {1, 2, 3}, is given by Ol . In addition, the distance between potential facility location
l ∈ L and farm i ∈ I is given by tFil , and the distance between potential facility location l ∈ L
and market j ∈ J is given by tM lj .
How would you modify your formulation in Question 1(a) to help Safeway Carriers decide
where to open the centralised distribution centre in order to satisfy market demand at the
lowest possible transportation and warehousing cost? Show your full model formulation.

We define the following new variables (some of the parameters defined in question 1(a) will
also be used here, but I don’t have to redefine them):

xFilk , the number of 10kg-packets to transport from farm i ∈ I to the DC at location

m
l ∈ L in truck type k ∈ K .

er as
xM
ljk , the number of 10kg-packets to transport from the DC at location l ∈ L to market

co
j ∈ J in truck type k ∈ K .

eH w
nFilk , the number of trips between farm i ∈ I and the DC at location l ∈ L with truck

o.
type k ∈ K . rs e
nM
ljk , the number of trips between the DC at location l ∈ L and market j ∈ J and with
ou urc
truck
( type k ∈ K .
1 if a DC is opened at location l ∈ L .
bl ,
0 otherwise
o
aC s
vi y re

!
XX X X X
min z = ck tFil nFilk + ck tM M
lj nljk + Ol bl (15)
L k∈K
l∈L K i∈II J
j∈J L
l∈L
ed d
ar stu
is
Th
sh

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

16 May 2019 4 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
subject to

10xFilk
≤ nFilk ∀ i ∈ I , l ∈ L , k ∈ K (16)
wk
10xM
ljk
≤ nMljk ∀ l ∈ L, j ∈ J , k ∈ K
wk
(17)
XX
xFilk ≤ si ∀ i∈I (18)
L k∈K
l∈L K
XX
xM
ljk ≥ dj ∀ j ∈J (19)
L k∈K
l∈L K
X
bl = 1 (20)
L
l∈L
XX
xFilk ≤ M bl ∀ l∈L (21)
i∈II k∈K
K
XX XX
xFilk ≥ xM
ljk ∀ l∈L (22)

m
i∈II k∈K
K J k∈K
j∈J K

er as
xFilk , nFilk ≥0 and integer ∀ i ∈ I, l ∈ K, k ∈ K

co
(23)

eH w
xM M
ljk , nljk ≥0 and integer ∀ l ∈ L, j ∈ J , k ∈ K

o.
rs e (24)
bl ∈ {0, 1} ∀ l∈L (25)
ou urc
The objective of the model in (15) minimises the total cost of opening the DC and transporting
peaches, incurring cost on trips, and not packets. Constraints (16) and (17) determine the
o

number of truck trips per truck type from the number of packages transported. Capacity
aC s

constraints are enforced with (18) while (19) ensures demand is met. Constraint (20) ensures
vi y re

that only one DC is opended and constraint (21) ensures that when peaches are sent to a DC,
it is indeed open. Constraint (22) is included to ensure that inflow and outflow of the DC
are balanced. Finally, nonnegativity, integrality and binary conditions are introduced with
(23) through (25).
ed d
ar stu

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

1. Definition of decision variables.


is

2. Objective function.
3. Adapted constraints to determine the number of truck trips, limit available supply from farms,
Th

and satisfy market demand.


4. Ensure that only one distribution centre is opened and used (linking of variables).
5. Distribution centre flow conservation.
6. Accessibility of information.
sh

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

16 May 2019 5 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
7 2. Use the branch-and-bound method to solve the following Mixed Integer Linear Program (MILP).

min z = 2x1 + 4x2 (26)

subject to

3x1 − 2x2 ≥ 6 (27)


x1 + x2 ≥ 4 (28)
−2x1 + 4x2 ≥ 8 (29)
x1 ≥ 0 (30)
x2 ≥ 0 and integer (31)

Copy the partially completed branch-and-bound tree (provided below) into your answer book and
use the branch-and-bound and graphical solution techniques to find the optimal solution to the
MILP provided above. You should add additional branches to the tree where necessary. Show all
your calculations.

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:49:48 GMT -05:00

16 May 2019 6 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
The branch-and-bound tree is shown in the figure below.

m
er as
The optimal solution to the model is z = 30 23 ; x1 = 5 13 ; x2 = 5. The solution of LP2 is calculated

co
using the graphical solution.

eH w
o.
LP2 solution rs e
ou urc
The solution space for LP2 is shown below. The solution of LP2 is z = 30 32 ; x1 = 5 13 ; x2 = 5. This
is the optimal solution.
o
aC s
vi y re
ed d
ar stu
is
Th
sh

??? end of paper ???

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

16 May 2019 7 of 7 Semester test 2 Memorandum


https://www.coursehero.com/file/42542796/BOZ312-May2019-TestMemopdf/
Powered by TCPDF (www.tcpdf.org)

You might also like