Professional Documents
Culture Documents
This Study Resource Was: Operations Research
This Study Resource Was: Operations Research
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
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:49:48 GMT -05:00
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
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
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
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
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:49:48 GMT -05:00
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):
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
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
2. Objective function.
3. Adapted constraints to determine the number of truck trips, limit available supply from farms,
Th
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:49:48 GMT -05:00
subject to
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
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
This study source was downloaded by 100000826598227 from CourseHero.com on 05-22-2021 22:49:48 GMT -05:00