Transportation, Assignment, and Transshipment Problem
Transportation, Assignment, and Transshipment Problem
c21
c22
2 2
c23
c31
c32
3 c33 3
WORKERS JOBS
min ∑∑c ij x ij
i j
€
Note: A modification to the right-hand side of the first constraint set
can be made if a worker is permitted to work more than one job.
} Write the objective function for the general LP
formulation of the Assignment Problem using only words
-- do not use any mathematical symbols.
0 16
28
30
Fed. B
18
0
35 32
20
Gol. C
0
25 25
14
Univ. Dum.
0
} STEP 0 Convert to standard form, with # rows = # columns
} STEP 1 Row reduction: find the smallest cost in each row, and reduce all
costs in the row by this amount.
} STEP 2 Column reduction: find the smallest cost in each column, and reduce
all costs in the column by this amount.
} STEP 3 Find the minimum number of lines through rows &/or columns
necessary to cover all of the zeroes in the cost matrix. If this equals n, then
STOP. (Zero assignment)
} STEP 4 Locate the smallest unlined cost. Subtract this cost from all unlined
costs, and add to costs at intersections of lines. Return to step 3.
Sub- Project
contractors
A B C
Westside 50 36 16
Federated 28 30 18
Goliath 35 32 20
Universal 25 25 14
} Step 1: Subtract minimum number in each row from all numbers in that row. Since
each row has a zero, we would simply generate the same matrix above.
} Step 2: Subtract the minimum number in each column from all numbers in the
column. For A it is 25, for B it is 25, for C it is 14, for Dummy it is 0. This yields:
A B C Dummy
Westside 25 11 2 0
Federated 3 5 4 0
Goliath 10 7 6 0
Universal 0 0 0 0
} Step 3: Draw the minimum number of lines to cover all zeroes. Although one can
"eyeball" this minimum, use the following algorithm. If a "remaining" row has only
one zero, draw a line through the column. If a remaining column has only one zero in
it, draw a line through the row.
A B C Dummy
Westside 25 11 2 0
Federated 3 5 4 0
Goliath 10 7 6 0
Universal 0 0 0 0
} Step 5: A B C Dummy
Universal 0 0 0 0
} Step 3:
Draw the minimum number of
lines to cover all zeroes. A B C Dummy
Westside 23 9 0 0
} Step 4: Federated 1 3 2 0
The minimum uncovered number Goliath 8 5 4 0
is 1 (circled).
Universal 0 0 0 2
A B C Dummy
} Step 5: Subtract 1 from
uncovered numbers. Add 1 Westside 23 9 0 1
Universal 0 0 0 3
Sub- Project
contractors
A B C
Westside 50 36 16
Federated 28 30 18
Goliath 35 32 20
Universal 25 25 14
} Machineco has four jobs to be completed. Each
machine must be assigned to complete one job. The
time required to setup each machine for completing
each job is shown in the table below. Machinco wants
to minimize the total setup time needed to complete
the four jobs.
Time (Hours)
Machine 1 14 5 8 7
Machine 2 2 12 6 5
Machine 3 7 8 3 9
Machine 4 2 4 6 10
Job/Mach A B C D
1 8 6 2 4
2 6 7 11 10
3 3 5 7 6
4 5 10 12 9
Play matchmaker and determine an allocation of each man
and woman’s time that earns the maximum total happiness for
the island. Assume that happiness earned by a couple is
proportional to the amount of time they spend together.
An Overview
} Transshipment problems are transportation problems in which
a shipment may move through intermediate nodes
(transshipment nodes) before reaching a particular
destination node.
} Transshipment problems can be converted to larger
transportation problems and solved by a special
transportation program.
} Transshipment problems can also be solved by general
purpose linear programming codes.
} The network representation for a transshipment problem with
two sources, three intermediate nodes, and two destinations
is shown on the next slide.
} Network Representation
Thomas Industries and Washburn Corporation supply
three firms (Zrox, Hewes, Rockwright) with customized
shelving for its offices. They both order shelving from the
same two manufacturers, Arnold Manufacturers and
Supershelf, Inc.
Currently weekly demands by the users are 50 for Zrox,
60 for Hewes, and 40 for Rockwright. Both Arnold and
Supershelf can supply at most 75 units to its customers.
Additional data is shown on the next slide.
Because of long standing contracts based on past orders, unit
costs from the manufacturers to the suppliers are:
Thomas Washburn
Arnold 5 8
Supershelf 7 4
5 1
75 Arnold Thomas 5
8 8
Hewes 60
3 4
7
Super Wash-
75 Shelf Burn
4 4
Rock-
Wright 40
} Linear Programming Formulation
◦ Decision Variables Defined
xij = amount shipped from manufacturer i to supplier j
xjk = amount shipped from supplier j to customer k
where i = 1 (Arnold), 2 (Supershelf)
j = 3 (Thomas), 4 (Washburn)
k = 5 (Zrox), 6 (Hewes), 7 (Rockwright)
1 d1
c11
s1 1 c12
c13
2 d2
c21 c22
s2 2
c23
3 d3
SOURCES DESTINATIONS
The transportation problem seeks to minimize the total
shipping costs of transporting goods
} from m origins (each with a supply si)
} to n destinations (each with a demand dj),
} when the unit shipping cost from an origin, i, to a
destination, j, is cij.
} LP Formulation
min ∑∑ c x ij ij
i j
15 30 20
S1 50
30 40 35
S2 30
Demand 25 45 10
} If Total supply equals to total demand, the problem is
said to be a balanced transportation problem:
i =m j =n
∑s = ∑d
i =1
i
j =1
j
} The transportation problem is solved in two phases:
◦ Phase I — Obtaining an initial feasible solution
◦ Phase II — Moving toward optimality
} In Phase I, several procedures can be used to establish
an initial basic feasible solution without doing numerous
iterations of the simplex method.
} In Phase II, the Stepping Stone Method, using the MODI
method for evaluating the reduced costs may be used to
move from the initial feasible solution to the optimal
one.
PHASE 1
There are three basic methods can be used:
1. Northwest Corner Method
2. Minimum Cost Method
3. Vogel’s Method
To find the BFS by the NWC method:
Begin in the upper left (northwest) corner of the
transportation tableau and set x11 as large as possible. Here
the limitations for setting x11 to a larger number, will be the
demand of demand point 1 and the supply of supply point 1.
Your x11 value can not be greater than minimum of this 2
values.
Supply
2
Demand
3 5 2 3
Supply
3 2
2
Demand
X 5 2 3
After we check the east and south After applying the same procedure, we saw
cells, we saw that we can go east that we can go south this time (meaning
(meaning supply point 1x still has demand point 2 needs more supply by
capacity to fulfill some demand). supply point 2).
3 2 X
3 2 1 X
2 X
X X X X
• The Northwest Corner Method does not utilize shipping
costs.
• It can find an initial BFS easily but the total shipping
cost may be very high.
• The minimum cost method uses shipping costs in
order to come up with a BFS that has a lower cost.
• To begin the minimum cost method, first we find the
decision variable with the smallest shipping cost (Xij).
Then assign Xij its largest possible value, which is the
minimum of si and dj
} After that, as in the Northwest Corner Method we should
cross out row i and column j and reduce the supply or
demand of the noncrossed-out row or column by the
value of Xij.
} Then we will choose the cell with the minimum cost of
shipping from the cells that do not lie in a crossed-out
row or column and we will repeat the procedure.
2 3 5 6
5
3 8 4 6
15
12 8 4 6
2 3 5 6
5
Step 2:
2 1 3 5
Cross-out column 2 2
8
3 8 4 6
15
12 X 4 6
2 3 5 6
5
Step 3:
Find the new cell with 2 1 3 5
minimum shipping cost X
2 8
and cross-out row 2
3 8 4 6
15
10 X 4 6
2 3 5 6
X
5
Step 4:
2 1 3 5
Find the new cell with X
2 8
minimum shipping cost
and cross-out row 1 3 8 4 6
15
5 X 4 6
2 3 5 6
Step 5: X
5
Find the new cell with 2 1 3 5
minimum shipping cost X
2 8
and cross-out column 1
3 8 4 6
10
5
X X 4 6
2 3 5 6
X
5
Step 6:
2 1 3 5
Find the new cell with X
2 8
minimum shipping cost
and cross-out column 3 3 8 4 6
6
5 4
X X X 6
Step 7: Finally assign 6 to last cell. The BFS is found
as: X11=5, X21=2, X22=8, X31=5, X33=4 and X34=6
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
X
5 4 6
X X X X
1. Begin with computing each row and column a penalty. The
penalty will be equal to the difference between the two
smallest shipping costs in the row or column.
2. Identify the row or column with the largest penalty.
3. Find the first basic variable which has the smallest shipping
cost in that row or column.
4. Then assign the highest possible value to that variable, and
cross-out the row or column as in the previous methods.
Compute new penalties and use the same procedure.
} Step 1: Compute the penalties.
6 7 8
10 7-6=1
15 80 78
15 78-15=63
Demand 15 5 5
6 7 8
5 8-6=2
5
15 80 78
15 78-15=63
Demand 15 X 5
6 7 8
0 _
5 5
15 80 78
15 _
Demand 15 X X
6 7 8
X _
0 5 5
15 80 78
15 _
Demand 15 X X
Column Penalty _ _ _
} Finally the bfs is found as X11=0, X12=5, X13=5, and
X21=15
6 7 8
X _
0 5 5
15 80 78
X _
15
Demand X X X
Column Penalty _ _ _
} Those three algorithms require the assumption of
i =m j =n
∑s = ∑d
i =1
i
j =1
j
} If total supply > total demand,
◦ adding dummy demand point.
◦ Since shipments to the dummy demand point are not real,
they are assigned a cost of zero.
} Step 3: Add this allocation to all cells where additions are to be made, and
subtract this allocation to all cells where subtractions are to be made along the
stepping stone path. (Note: An occupied cell on the stepping stone path now
becomes 0 (unoccupied).
If more than one cell becomes 0, make only one unoccupied; make the others
occupied with 0's.) GO TO STEP 1.
■ Initial Transportation Tableau
Since total supply = 100 and total demand = 80, a dummy
destination is created with demand of 20 and 0 unit costs.
24 30 40 0
Plant 1 50
30 40 42 0
Plant 2 50
Demand 25 45 10 20
Northwood Westwood Eastwood Dummy
24 30 40 0
Plant 1 25 5 0 20
30 40 42 0
Plant 2 0 40 10 0
} Iteration 1, MODI Method
1. Set u1 = 0
2. Since u1 + vj = c1j for occupied cells in row 1, then v1 = 24, v2 = 30, v4 = 0.
3. Since ui + v2 = ci2 for occupied cells in column 2, then u2 + 30 = 40, hence u2 = 10.
4. Since u2 + vj = c2j for occupied cells in row 2, then 10 + v3 = 42, hence v3 = 32.
24 30 40 0 u1 = 0
Plant 1 25 5 0 20
30 40 42 0
Plant 2 0 40 10 0 u2 = 10
v1 = 24 v2 = 30 v3 = 32 v4 = 0
} Calculate the reduced costs (circled numbers) by cij – ui - vj.
Unoccupied Cell Reduced Cost
(1,3) 40 - 0 - 32 = 8
(2,1) 30 - 24 -10 = -4
(2,4) 0 - 10 - 0 = -10
30 40 42 0
Plant 2 -4 40 10 -10 10
- +
Plant 2 40 0 10
vj 24 30 32 0
vj 24 30 32 -10
Northwood Westwood Eastwood Dummy
- +
25 25
+ -
0 20 10 20
30 40 42 0
Plant 2 20 +4 10 20 6
vj 24 30 36 -6
Since all the reduced
costs are non
negative, this is the
optimal table !!!
From To Amount Cost
Plant 1 Northwood 5 120
Plant 1 Westwood 45 1,350
Plant 2 Northwood 20 600
Plant 2 Eastwood 10 420
Total Cost = $2,490