Lecture 9. Transportation and Assignment Models
Lecture 9. Transportation and Assignment Models
Lecture 9. Transportation and Assignment Models
Prepared by:
MARITESS B. PANABANG lectured by
MARIA NORIZA Q. HERRERA
Dept. of Agribusiness Management & Entrepreneurship
CEM, UP Los Baos
INTRODUCTION
The
INTRODUCTION
o
DEFINITION
s1
Units of
supply
s2
sm
c11
cmn
d1
d2
dn
Units of
demand
DEFINITION
s1
Units of
supply
s2
sm
c11
cmn
d1
d2
dn
Units of
demand
DEFINITION
s1
Units of
supply
The
s2
sm
c11
cmn
d1
d2
dn
Units of
demand
DEFINITION
s1
Units of
supply
Note
s2
sm
c11
cmn
d1
d2
dn
Units of
demand
SAMPLE PROBLEM
Denver
1000, $80
1250, $100
1275, $102
Miami
2690, $215
1350, $108
850, $68
SAMPLE PROBLEM
1000
1500
80
215
Los Angeles
100
2
108
2300
Denver
Detroit 102
1200
68
New Orleans
Construct
1400
Miami
TRANSPORTATION TABLEAU
Sources
1
2
:
m
Demand
1
c11
x11
c21
x21
:
Destination
2
c12
x12
c22
x22
:
cm1
xm1
d1
cm2
xm2
d2
n
c1n
x1n
c2n
x2n
s1
s2
:
:
cmn
Supply
xmn
dn
sm
SAMPLE PROBLEM
Destination
Sources
Denver
Miami
80
215
Los Angeles
x11
x12
100
108
Detroit
x21
x22
102
68
New
Orleans
x31
x32
Demand
2300
1400
Supply
1000
1500
1200
3700
TRANSPORTATION MODEL
Min Z = 80x11 + 215x12 + 100x21 + 108x22 + 102x31 +68x32
subject to:
(supply constraints)
x11 + x12 =1000
x21 +x22 =1500
x31 +x32 =1200
(demand constraints)
x11 +x21 +x31 =2300
x12 +x22 +x32 =1400
(non-negativity)
xij >0, i= 1, 2, 3; j=1, 2
TRANSPORTATION MODEL
The
DUMMMY NODES
If
DUMMY NODES
Destination
Sources
Denver
Miami
80
215
Los Angeles
x11
x12
100
108
Detroit
x21
x22
102
68
New
Orleans
x31
x32
0
0
Dummy
x41
x42
Demand
2300
1400
Supply
1000
1300
1200
200
3700
DUMMY NODES
The
TRANSPORTATION ALGORITHM
Find an initial solution
1. Northwest corner method
2. Least-cost (greedy) method
3. Vogel approximation method (VAM).
The three methods, differ in the quality of
the starting basic solution they produce, in
the sense that a better starting solution
yields a smaller objective value.
1.
TRANSPORTATION ALGORITHM
2.
3.
4.
1
2
3
Demand
Mill
Supply
10
12
4
5
2
7
14
15
20
9
16
15
11
20
18
15
15
25
10
50
corner method
The method starts at the northwest corner
cell of the tableau
PROCEDURE:
1. Exhaust the supply of each row before
moving down to the next row and
exhaust the demand requirements of
each column before moving to the next
column to the right.
2. Check that all supply and demand
requirements are met.
Destination (Mills)
1
2
3
10
2
20
5
10
12
7
9
5
15
4
14
16
5
15
15
Supply
4
11
20
5
18
10
15
15
25
10
50
1.
2.
3.
method
Select an unused square to be evaluated.
Beginning at this square, trace a closed
path back to the original square via squares
that are currently being used and moving
with only horizontal and vertical moves.
Beginning with a plus (+) sign at the
starting unused square, place alternate
minus (-) signs and plus signs on each
square of the closed path just traced.
4.
5.
method
Calculate an improvement index by adding
together the unit cost figures found in each
square containing a plus sign and then
subtracting the unit costs in each square
containing a minus sign.
Repeat steps 1 to 4 until an improvement
index has been calculated for all unused
squares. If all Iij 0 (min); Iij 0 (max), an
optimal solution has been reached. If not, it
is possible to improve the current solution
and decrease total shipping costs.
method
1. Choose the route (unused square) with
the largest negative (positive for max)
improvement index.
2. Using the closed path of this route, select
the smallest number () found in the
squares with minus sign.
3. Change the shipping route by adding to
squares in the closed path with plus
signs and subtracting from squares with
minus sign.
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
Sources
(Silos)
1
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
OPTIMAL SOLUTION
The following table summarizes the optimal solution:
From
silo
To
mill
# of
truckloads
Unit cost
Total
cost
Warehouse
1
2
3
Demand
Customer
1
2
8
2
0
100
10
9
100
7
10
100
100
Supply
3
6
9
20
7
80
100
100
120
80
300
Multiple
The
SAMPLE PROBLEM
SAMPLE PROBLEM
Warehouse
Monthly
Demand
(Units)
Production
Plant
Monthly
Supply
Cost to
Produce 1
Unit ($)
Detroit
10,000 Cincinnati
15,000 48
Dallas
6,000 50
New York
15,000 Pittsburgh
14,000 52
Los Angeles
9,000
35,000
46,000
Supply needed from new plant = 46,000 35,000 = 11,000 units per
month
Estimated production cost per unit at proposed plants
Seattle
$53
Birmingham
$49
SAMPLE PROBLEM
Detroit
Dallas
New York
Los
Angeles
Cincinnati
$25
$55
$40
$60
Salt Lake
35
30
50
40
Pittsburgh
36
45
26
66
Seattle
60
38
65
27
Birmingham
35
30
41
50
Which of the new locations will yield the lowest cost for the firm in
combination with the existing plants and warehouses? Note that the cost
of each individual plant-to warehouse route is found by adding shipping
costs to the respective unit production costs.
To determine which new plant shows the lowest total systemwide cost of
distribution and production, we solve two transportation problems one
for each of the two possible combinations
LEAST-COST METHOD
This
LEAST-COST METHOD
If
LEAST-COST METHOD
Sources
(Silos)
1
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
LEAST-COST METHOD
Sources
(Silos)
1
2
3
Demand
Destination (Mills)
Supply
1
2
3
4
10
2
20
11
15
15
12
7
9
20
25
0
15
10
4
14
16
18
10
5
5
5
15
15
15
50
Destination (Mills)
Supply
1
2
3
4
10
2
20
11
15
12
20
14
16
18
3
Demand
15
15
15
25
10
10
50
2.
3.
4.
3
Demand
Destination (Mills)
Supply
1
2
3
4
10
2
20
11
15
X
12
7
9
20
25
X
4
14
16
18
10
5
5
15
15
15
50
6
8
2
10
5.
6.
3
Demand
Destination (Mills)
Supply
1
2
3
4
10
2
20
11
15
X
12
7
9
20
25
X
4
14
16
18
10
5
5
15
15
15
50
6
8
2
10
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Total cost =
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
Total Cost of
Initial Solution
# of Tableaus
3
2
2
MODI METHOD
The
MODI METHOD
We
let
Ri = value assigned to row i
Kj = value assigned to column j
Cij = cost in square ij (cost of shipping from
source i to destination j)
PROCEDURE:
1. For used squares, set Ri + Kj = Cij
2. After all the equations have been written, set
R1 = 0
3. Solve the system of equations for R and K
values
MODI METHOD
PROCEDURE:
4.
4.
MODI METHOD
Initial solution using the northwest corner method
Sources
(Silos)
1
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
MODI METHOD
Improvement Indices
MODI METHOD
Improved solution
Sources
(Silos)
1
Destination (Mills)
1
2
3
10
2
20
2
3
Demand
Supply
4
11
12
20
14
16
18
15
15
15
15
25
10
50
ASSIGNMENT ALGORITHM
DEFINITION
o
DEFINITION
One
1
c11
c21
:
cn1
2
c12
c22
:
cn2
:
cn3
n
c1n
c2n
:
cnn
SAMPLE PROBLEM
SAMPLE PROBLEM
Person
Adam
Ben
Carlo
1
11
8
9
Project
2
14
10
12
3
6
11
7
SOLVING
ASSIGNMENT PROBLEMS
Complete
Enumeration
List all possible assignments and their
respective costs
Works well for small problems but quickly
becomes inefficient as assignment
problems become larger
For example, a problem involving the
assignment of four workers to four
projects requires that we consider 4! Or
24 alternatives
Labor
Cost
11+10+7
11+12+11
8+14+7
8+12+6
9+14+11
9+10+6
Total
Cost
28
34
29
26
34
25
SOLVING
ASSIGNMENT PROBLEMS
Hungarian
HUNGARIAN METHOD
1.
1
11
8
9
Project
2
14
10
12
3
6
11
7
HUNGARIAN METHOD
b.
Person
Adam
Ben
Carlo
1
5
0
2
Project
2
8
2
5
3
0
3
0
HUNGARIAN METHOD
2.
Person
Adam
Ben
Carlo
1
5
0
2
Project
2
6
0
3
3
0
3
0
HUNGARIAN METHOD
HUNGARIAN METHOD
3.
1
5
0
2
Project
2
6
0
3
3
0
3
0
HUNGARIAN METHOD
Person
Adam
Ben
Carlo
Person
Adam
Ben
Carlo
1
5
0
2
Project
2
6
0
3
3
0
3
0
1
3
0
0
Project
2
4
0
1
3
0
5
0
HUNGARIAN METHOD
Repeat step 2
Project
Person
1
2
3
Adam
3
4
0
Ben
0
0
5
Carlo
0
1
0
Since the number of lines is equal to the
number of rows/columns, an optimal
assignment can be made
Person
Adam
Ben
Carlo
1
3
0
0
Project
2
4
0
1
3
0
5
0
HUNGARIAN METHOD
Therefore,
SPECIAL CASES
1.
SPECIAL CASES
1.
SPECIAL CASES
2.
A
20
60
80
65
B
60
30
100
80
C
50
80
90
75
D
55
75
80
70
A
20
60
80
65
B
60
30
100
80
C
50
80
90
75
D
55
75
80
70
A
80
40
20
35
B
40
70
0
20
C
50
20
10
25
D
45
25
20
30
SOURCES