Or-Chapter 3.tutorial
Or-Chapter 3.tutorial
Transportation
and Assignment Models
Learning Objectives
After completing this chapter, students will be able
to:
1.Formulate the transportation, and assignment models.
destination. 9-4
Assumptions of Transportation Model
1.Total supply is equal to total demand
are m+n-1
columns (destinations)
Degenerate basic feasible solution- if the number of allocation
9-6
Steps in transportation
problem modeling
Step 1: Formulate LPM for transportation problem
Step 2: Develop a transportation tableau
To A B C SS
From
1 A A A Y
2 A A A Y
3 A A Y
DD X X X X=Y
There are three major methods of finding and initial solution for
transportation problems:
To
6 8 10
transportation cost.
2.Repeat step 1 until all requirements have been met.
A B C Supply capacity
From To
PC is determined by subtracting the lowest cell cost in the row or column from the
Step1: developing the penalty cost penalty cost is the difference between the
smallest cell cost and the next smallest cost cell in the same row/column.
Step 2: identify the largest penalty, it can be either from row penalty or column
penalty
Step 3: assign as many quantity as possible in the cell with the smallest cell cost
in the row/column with the largest penalty.
1 6 8 10 150 2
2 7 11 11 175
4
1
3 4 5 12 275
Demand 200 100 300 600
Penality 2 3 1
Cost
VAM allocates as much as possible to the minimum cost cell in the
row or column with the largest penalty cost
Row 2 has the highest penalty cost of $4.
We allocate as much as possible to the feasible cell in this row with the
minimum cost.
In row 2, cell 2A has the lowest cost of $7, and the most that can be
allocated to cell 2A is 175 tons.
To A B C Supply
From PC
1 150 2
2 175 175
3 275
1
Demand 200 100 300 600
PC 2 3 1
Next, we repeat the previous step and allocate to the row or
column with the highest penalty cost, which is now column B
with a penalty cost of $3
The cell in column B with the lowest cost is 3B, and we
allocate as much as possible to this cell, 100 tons.
A B C Supply
From To PC
1 150
2
2 175 175
3 100 275
8
Demand 200 100 300 600
PC 2 1
Since the highest penalty cost is now $8 for
row 3 and since cell 3A has the minimum
cost of $4, we allocate 25 tons to this cell
A B C Supply
From To
1 6 8 150 10 150
2 175 7 11 11 175
3 25 4 100 5 150 12 275
Demand 200 100 300 600
TO WAREHOUSE
WAREHOUSE - WAREHOUSE
- FACTORY
FROM A -C
B CAPACITY
$5 $4 $3
D-FACTORY 100
$8 $4 $3
E- FACTORY 300
$9 $7 $5
F-FACTORY 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
Cell representing a
Total supply source-to-destination (E
Cost of shipping 1 unit from C- to C) shipping
and demand
F- factory to B-warehouse warehouse assignment that could
demand be made
9-19
Developing an Initial Solution:
Northwest Corner Rule
Once we have arranged the data in a table, we must
establish an initial feasible solution.
One systematic approach is known as the
northwest corner rule.
Start in the upper left-hand cell and allocate units to
shipping routes as follows:
1. Exhaust the supply (factory capacity) of each row before
moving down to the next row.
2. Exhaust the demand (warehouse) requirements of each
column before moving to the right to the next column.
3. Check that all supply and demand requirements are met.
This problem takes five steps to make the initial
shipping assignments.
9-20
Developing an Initial Solution:
Northwest Corner Rule
1. Beginning in the upper left hand corner, we assign
100 units from D-Factory to A-Warehouse. This
exhaust the supply from D-factory but leaves A-
warehouse 200 desks short. We move to the second
row in the same column.
TO FACTORY
(A) (B) (C)
FROM CAPACITY
$5 $4 $3
100 100
(D)
$8 $4 $3
300
(E)
$9 $7 $5
(F) 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-21
Developing an Initial Solution:
Northwest Corner Rule
2. Assign 200 units from E- to A-. This meets A’s
demand. E- has 100 units remaining so we move
to the right to the next column of the second row.
TO FACTORY
(A) (C)
FROM (B) CAPACITY
$5 $4 $3
100 100
(D)
$8 $4 $3
200 300
(E)
$9 $7 $5
(F) 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-22
Developing an Initial Solution:
Northwest Corner Rule
3. Assign 100 units from E- to B-. The E- supply has
now been exhausted but B- is still 100 units
short. We move down vertically to the next row in
the B-column.
TO FACTORY
(A) (C)
FROM (B) CAPACITY
$5 $4 $3
100 100
(D)
$8 $4 $3
200 100 300
(E)
$9 $7 $5
(F) 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-23
Developing an Initial Solution:
Northwest Corner Rule
4. Assign 100 units from F-to B-. This fulfills B-’s
demand and F-still has 200 units available.
TO FACTORY
(A) (C)
FROM (B) CAPACITY
$5 $4 $3
100 100
(D)
$8 $4 $3
200 100 300
(E)
$9 $7 $5
(F) 100 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-24
Developing an Initial Solution:
Northwest Corner Rule
5. Assign 200 units from F-to C-. This exhausts F-’s
supply and C- demand. The initial shipment
schedule is now complete.
TO FACTORY
(A) (C)
FROM (B) CAPACITY
$5 $4 $3
100 100
(D)
$8 $4 $3
200 100 300
(E)
$9 $7 $5
(F) 100 200 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-25
Developing an Initial Solution:
Northwest Corner Rule
The cost of this shipping assignment:
ROUTE
UNITS PER UNIT TOTAL
FROM TO
SHIPPED x COST ($) = COST ($)
D A 100 5 500
E A 200 8 1,600
E B 100 4 400
F B 100 7 700
F C 200 5 1,000
4,200
9-27
Testing the Solution for
Possible Improvement
The stepping-stone method works by testing
each unused square in the transportation
table to see what would happen to total
shipping costs if one unit of the product was
tentatively shipped on an unused route.
There are five steps in the process.
9-28
Five Steps to Test Unused Squares
with the Stepping-Stone Method
1. Select an unused square to evaluate.
9-29
Five Steps to Test Unused Squares
with the Stepping-Stone Method
4. 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.
Steps 1 and 2.
2 Beginning with D-B route we trace a
closed path using only currently occupied squares,.
TO FACTORY
A B C
FROM CAPACITY
$5 $4 $3
D 100 100
$8 $4 $3
E 200 100 300
$9 $7 $5
F 100 200 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-33
Five Steps to Test Unused Squares
with the Stepping-Stone Method
Step 4.
4 Now compute an improvement index (Iij) for
the D–B route.
Add the costs in the squares with plus signs and
subtract the costs in the squares with minus signs:
Des Moines–
Boston index = IDB = +$4 – $5 + $5 – $4 = + $3
9-34
Five Steps to Test Unused Squares
with the Stepping-Stone Method
Now examine the D-C- unused route which is slightly
more difficult to draw.
9-35
Five Steps to Test Unused Squares
with the Stepping-Stone Method
Evaluating the D-C Shipping Route
TO FACTORY
A B C
FROM CAPACITY
$5 $4 Start $3
D 100 100
– +
$8 $4 $3
E 200 100 300
+ –
$9 $7 $5
F 100 200 300
WAREHOUSE
+ –
300 200 200 700
REQUIREMENTS
Table 9.5
9-36
Five Steps to Test Unused Squares
with the Stepping-Stone Method
Opening the D–C route will not lower our total shipping
costs.
Evaluating the other two routes we find:
E-C index
= IEC = + $3 – $4 + $7 – $5 = + $1
The closed path is
+ EC – EB + FB – FC
F–A index
= IFA = + $9 – $7 + $4 – $8 = – $2
The closed path is
+ FA – FB + EB – EA
Opening the F-A route will lower our total
transportation costs because its improvement index is
negative 9-37
Obtaining an Improved Solution
Step 5. Reallocation
The quantity to ship is found by referring to the closed path of plus
and minus signs for the new route and selecting the smallest number
found in those squares containing minus signs.
To obtain a new solution, that number is added to all squares on the
closed path with plus signs and subtracted from all squares the
closed path with minus signs.
All other squares are unchanged.
In this case, the maximum number that can be shipped is 100 desks
as this is the smallest value in a box with a negative sign (F-B route).
We add 100 units to the F-A and E-B routes and subtract 100 from
F-B and E-A routes.
This leaves balanced rows and columns and an improved
solution.
9-38
Obtaining an Improved Solution
$8 $4 $3
E 200 100 300
– +
$9 $7 $5
F 100 200 300
WAREHOUSE
+ –
300 200 200 700
REQUIREMENTS
9-39
Obtaining an Improved Solution
Second Solution to the Executive Furniture Problem
TO FACTORY
A B C
FROM CAPACITY
$5 $4 $3
D 100 100
$8 $4 $3
E 100 200 300
$9 $7 $5
F 100 200 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
$8 $4 $3
E 100 200 Start 300
– +
$9 $7 $5
F 100 200 300
WAREHOUSE
+ –
300 200 200 700
REQUIREMENTS
ROUTE
DESKS PER UNIT TOTAL
FROM TO
SHIPPED x COST ($) = COST ($)
D A 100 5 500
E B 200 4 800
E A 100 8 800
F A 100 9 900
F C 200 5 1000
4,000
9-42
Obtaining an Improved Solution
Third and final optimal solution: TC=3900
TO FACTORY
A B C
FROM CAPACITY
$5 $4 $3
D 100 100
$8 $4 $3
E 200 100 300
$9 $7 $5
F 200 100 300
WAREHOUSE
300 200 200 700
REQUIREMENTS
9-43
Unbalanced Transportation Problems
9-44
Special Situations with the
Transportation Algorithm
Unbalanced Transportation Problems
9-45
Example. Demand Less Than Supply
$8 $4 $3 0
E 50 200 50 300
$9 $7 $5 0
F 150 150 300
WAREHOUSE
300 200 200 150 850
REQUIREMENTS
9-46
Example. Demand Greater than Supply
$10 $5 $8
PLANT X 175
$12 $7 $6
PLANT Y 75
Totals
WAREHOUSE 450
DEMAND
250 100 150 do not
500
balance
9-47
Example. Demand Greater than Supply
$10 $5 $8
PLANT X 50 100 25 175
$12 $7 $6
PLANT Y 75 75
0 0 0
PLANT Y 50 50
WAREHOUSE
250 100 150 500
DEMAND
9-48
Degeneracy in Transportation
Problems
Degeneracy occurs when the number of occupied
squares or routes in a transportation table
solution is less than the number of rows plus the
number of columns minus 1.
9-50
3.2. Assignment Model
This type of problem determines the most efficient
assignment of people to particular tasks, etc.
Objective is typically to minimize total cost or total task
completion time.
Generally, the rows contain the objects or people we wish
to assign, and the columns comprise the tasks or things to
which we want them assigned.
9-52
Assignment Model Approach
Estimated Project Repair Costs for the Fix-It Shop
Assignment Problem
PROJECT
PERSON 1 2 3
Cooper $9 $12 7$
9-54
The Hungarian Method
(Flood’s Technique)
The Hungarian method is an efficient method of
finding the optimal solution to an assignment
problem without having to make direct comparisons
of every option.
It operates on the principle of matrix reduction.
By subtracting and adding appropriate numbers in the
cost table or matrix, we can reduce the problem to a
matrix of opportunity costs.
Opportunity costs show the relative penalty
associated with assigning any person to a project as
opposed to making the best assignment.
We want to make assignment so that the opportunity
cost for each assignment is zero.
9-55
Three Steps of the Assignment Method
1. Find the opportunity cost table by:by
(a) Subtracting the smallest number in each row
of the original cost table or matrix from every
number in that row.
(b) Then subtracting the smallest number in
each column of the table obtained in part (a)
from every number in that column.
2. Test the table resulting from step 1 to see
whether an optimal assignment can be made by
drawing the minimum number of vertical and
horizontal straight lines necessary to cover all
the zeros in the table.
If the number of lines is less than the number of
rows or columns, proceed to step 3.
9-56
Three Steps of the Assignment Method
9-57
The Hungarian Method
(Flood’s Technique)
Step 1: Find the opportunity cost table.
9-58
The Hungarian Method
(Flood’s Technique)
Cost of Each Person- Row Opportunity Cost
Project Assignment for Table for the Fix-it Shop
the Fix-it Shop Problem Step 1, Part (a)
PROJECT PROJECT
PERSON 1 2 3 PERSON 1 2 3
Brown 8 10 11 Brown 0 2 3
Cooper 9 12 7 Cooper 2 5 0
Adams $5 $6 $0
Brown 0 0 3
Cooper 2 3 0
9-60
The Hungarian Method
(Flood’s Technique)
Step 2: Test for the optimal assignment.
We want to assign workers to projects in such
a way that the total labor costs are at a
minimum.
We would like to have a total assigned
opportunity cost of zero.
The test to determine if we have reached an
optimal solution is simple.
We find the minimum number of straight lines
necessary to cover all the zeros in the table.
If the number of lines equals the number of
rows or columns, an optimal solution has been
reached.
9-61
The Hungarian Method
(Flood’s Technique)
Test for Optimal Solution to Fix-it Shop Problem
PROJECT
PERSON 1 2 3
Adams $5 $6 $0
Cooper 2 3 0
Covering line 2
9-63
The Hungarian Method
(Flood’s Technique)
Revised Opportunity Cost Table for the Fix-it Shop
Problem
PROJECT
PERSON 1 2 3
Adams $3 $4 $0
Brown 0 0 5
Cooper 0 1 0
9-64
The Hungarian Method
(Flood’s Technique)
Optimality Test on the Revised Fix-it Shop
Opportunity Cost Table
PROJECT
PERSON 1 2 3
Adams $3 $4 $0
Cooper 0 1 0
Table 9.27
Covering line 1 Covering line 3
Make the assignment to that cell and rule out its row and
column.
9-66
Making the Final Assignment
Total labor costs of this assignment are:
Adams to project 3 6
Brown to project 2 10
Cooper to project 1 9
Total cost 25
9-67
Unbalanced Assignment Problems
9-68
Unbalanced Assignment Problems
Suppose the Fix-It Shop has another worker
available.
The shop owner still has the same basic problem of
assigning workers to projects, but the problem now
needs a dummy column to balance the four
workers and three projects.
PROJECT
PERSON 1 2 3 DUMMY
Adams $11 $14 $6 $0
Brown 8 10 11 0
Cooper 9 12 7 0
Davis 10 13 8 0
9-69