Professional Documents
Culture Documents
INDE6372: LECTURE 11
Transportation, Assignment and
Transshipment Problems
Jiming Peng
Department of Industrial Engineering
University of Houston
Adopted from the lecture notes by Thomson Learning
A Summary of Exam 1
Exam students mean Median SD
• A 21 25 27 4.26
B 24 22.2 22.4 4.32
Comb. 45 23 24 4.6
Chart Title
25
20
15
10
Outline
• Basic Introduction: Modeling and Initialization
• Modeling: Balanced transportation problem; Transfer unbalanced
TP into a balanced TP; Dealing with flexible demand;
• Initialization: Northwest Corner Method; Minimum Cost Method
• Vogel’s Method;
• Simplex for Transportation Problem
• Other topics:
• Sensitivity Analysis
• Assignment and Transshipment Problems
Adopted from the lecture notes by Thomson Learning
Description
• A transportation problem basically deals with the problem,
which aims to find the best way to fulfill the demand of n
demand points using the capacities of m supply points.
While trying to find the best way, generally a variable cost
of shipping the product from one supply point to a demand
point or a similar constraint should be taken into
consideration.
Adopted from the lecture notes by Thomson Learning
Formulating the LP
• Decision Variables:
• we need to determine how much electricity is sent from each plant
to each city (also called decision matrix X);
• Xij = Amount of electricity produced at plant i and sent to city j
• X14 = Amount of electricity produced at plant 1 and sent to city 4
• Objective Function:
• we want to minimize the total cost of shipping from plants to cities;
• Minimize Z = 8X11+6X12+10X13+9X14
• +9X21+12X22+13X23+7X24
• +14X31+9X32+16X33+5X34
• Or in the matrix form, trace(CTX), the trace of a matrix is
defined as the sum of all the diagonal elements of the
matrix.
Adopted from the lecture notes by Thomson Learning
Generic Description
1 A set of m supply points
from which a good is shipped.
Supply point i can supply at
most si units. i m j n
min cijXij Tr (C ' X )
2. A set of n demand points i 1 j 1
Plant 1 8 6 10 10 9 35
Plant 2 9 12 13 13 17 50
Plant 3 14 9 16 16 5 40
Dummy 100 100 100 50 50 50
Committed 45 20 10 50 50
Roadmap
• Basic Introduction: Modeling
• Balanced transportation problem; Transfer unbalanced TP into a
balanced TP; Dealing with flexible demand.
• Initialization
• Northwest Corner Method
• Minimum Cost Method
• Vogel’s Method
• Simplex for Transportation Problem
• Other Topics:
• Sensitivity Analysis
• Assignment and Transshipment Problems
Adopted from the lecture notes by Thomson Learning
Initialization Method
• There are three popular methods to find a feasible
solution to the TP:
3. Vogel’s Method
Adopted from the lecture notes by Thomson Learning
The TP Example
• Min Z = ∑CijXij
• s.t.: X11+X12+X13+X14 <= 5 (Supply Constraints)
• X21+X22+X23+X24 <= 6
• X31+X32+X33+X34 <= 2
• X11+X21+X31 >= 3 (Demand Constraints)
• X12+X22+X32 >= 5
• X13+X23+X33 >= 2
• X14+X24+X34 >= 3
• Xij >= 0 (i= 1,2,3; j= 1,2,3,4)
• Observation: Since the above TP is balanced, we can replace all the
inequalities in the constraints by equalities.
Adopted from the lecture notes by Thomson Learning
3 5 2 3
3 2
X 5 2 3
Adopted from the lecture notes by Thomson Learning
After we check the east and south cells, we saw that we can go
east (meaning supply point 1 still has capacity to fulfill some
demand).
3 2 X
X 3 2 3
3 2 X
3 3
X X 2 3
Adopted from the lecture notes by Thomson Learning
3 2 X
3 2 1
X X X 3
3 2 X
3 2 1 X
X X X 2
Adopted from the lecture notes by Thomson Learning
3 2 X
3 2 1 X
2 X
X X X X
Adopted from the lecture notes by Thomson Learning
One criticism of the NWC Method is that it dos not utilize shipping costs,
and thus can yield an initial bfs with a very high total shipping cost.
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 NWC Method, we cross out row i and column j and
reduce the supply or demand of the non-crossed-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.
Adopted from the lecture notes by Thomson Learning
2 3 5 6
5
2 1 3 5
10
3 8 4 6
15
12 8 4 6
Adopted from the lecture notes by Thomson Learning
2 3 5 6
5
2 1 3 5
2
8
3 8 4 6
15
12 X 4 6
Adopted from the lecture notes by Thomson Learning
2 3 5 6
5
2 1 3 5
X
2 8
3 8 4 6
15
10 X 4 6
Adopted from the lecture notes by Thomson Learning
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
15
5 X 4 6
Adopted from the lecture notes by Thomson Learning
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
10
5
X X 4 6
Adopted from the lecture notes by Thomson Learning
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
6
5 4
X X X 6
Adopted from the lecture notes by Thomson Learning
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
Adopted from the lecture notes by Thomson Learning
2 3 5 6
X
5
2 1 3 5
X
Cost based on Min-cost method:
2 8
3 8 4 6 2*5+2*2+5*3+8*1+4*4+6*6=89
X
5 4 6
X X X X
2 3 5 6
5
5
2 1 3 5
Cost based on NWC-method:
10 2*5+7*2+1*3+5*8+4*4+6*6=119
7 3
3 8 4 6
15
5 4 6
12 8 4 6
Adopted from the lecture notes by Thomson Learning
15 80 78
15
Demand 15 5 5
For this problem, both the NWC and the min-cost methods generate
the same solution x11=10, x21=5, x22=5, x23=5.
Observation: when we try to maximize the value of x11, we also
maximize the values of x22 and x23, leading to a poor solution.
Causes: This is due to the large gap between the first choice and
second choice in some row/column.
Adopted from the lecture notes by Thomson Learning
Vogel’s Method
For each row/column, compute a penalty defined as the gap
between the two smallest elements in that row/column.
Identify the row/column with the largest penalty. Find the first
basic variable associated with the minimal cost in that row/
column.
Compute new penalties for the reduced cost matrix and repeat
the same procedure until a feasible solution is found.
Adopted from the lecture notes by Thomson Learning
15 80 78
15 78-15=63
Demand 15 5 5
For the above problem, column 2 has the highest penalty. Thus we
should maximize the value of x12 first and set x12=5!
Then we update the supply and demand constraints.
Adopted from the lecture notes by Thomson Learning
6 7 8
5 8-6=2
5
15 80 78
15 78-15=63
Demand 15 X 5
Next we choose to go with column 3 (the highest penalty cost), and set x13=5 (by
min-cost rule). Then we update the RHS of the constraints.
Adopted from the lecture notes by Thomson Learning
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 _ _ _
Adopted from the lecture notes by Thomson Learning
Demand X X X
Column Penalty _ _ _
2 3 5 6
X Cost based on Min-cost method:
5
2 1 3 5
X
2*5+2*2+5*3+8*1+4*4+6*6=89
2 8 Vogel’s method generates the
3 8 4 6
X
same feasible solution!
5 4 6
X X X X
2 3 5 6
5
5
12 8 4 6
Adopted from the lecture notes by Thomson Learning
Roadmap
• Basic Introduction:
• Balanced transportation problem; Transfer unbalanced TP into a
balanced TP; Dealing with flexible demand.
• Initialization
• Northwest Corner Method;
• Minimum Cost Method;
• Vogel’s Penalty method;
• Today’s topics: Simplex for Transportation Problem
• Other Topics:
• Sensitivity Analysis
• Assignment and Transshipment Problems
Adopted from the lecture notes by Thomson Learning
Simplex for TP
• In this lecture we demonstrate how the simplex algorithm
solves a transportation problem.
Adopted from the lecture notes by Thomson Learning
New bfs after X14 is pivoted into basis. Since there is no loop
involving the cells (1,1), (1,4), (2,1), (2,2), (3,3) and (3, 4), the
new solution is a bfs.
35-20 0+20 35
20-20
10+20 20 50
(nonbasic)
10+20 30-20 40
45 20 30 30
35 35
10 20 20 50
10 30 40
45 20 30 30
Adopted from the lecture notes by Thomson Learning
• u3+v2=9; u3+v4=5;
• u2+v3=13.
Adopted from the lecture notes by Thomson Learning
Final Solution
S.2: Calculate the values of the dual variables (start with u1=0)
(35, 8,0) 0
(10,9,0) (20,12,0) (20,13,0) 1
(10,16,0) (30, 5,0) 4
8 11 12 1
Adopted from the lecture notes by Thomson Learning
S.4: Choose a variable (X32) to enter the basis. Find a loop and determine
how to update the variables (Ө=10) in the loop.
(35, 8,0) (0,6,5) (0,10,2) (0,9,-8) 0
(10,9,0) (20,12,0) (20,13,0) (0,7,-5) 1
8 11 12 7
Adopted from the lecture notes by Thomson Learning
Based on the new reduced cost, we see that X13 should enter the basis.
We find a loop and determine the value of Ө=25.
8 6 12 2
Adopted from the lecture notes by Thomson Learning
6 6 10 2
Adopted from the lecture notes by Thomson Learning
Roadmap
• Basic Introduction: Modeling
• Balanced transportation problem; Transfer unbalanced TP into a
balanced TP; Dealing with flexible demand.
• Initialization
• Northwest Corner Method; Minimum Cost Method; Vogel’s Penalty
method;
• Today’s topics: Simplex for Transportation Problem
• Simplex method with different initialization methods;
• Degenerate cases in Simplex.
• Other Topics:
• Sensitivity Analysis
• Assignment and Transshipment Problems
Adopted from the lecture notes by Thomson Learning
8 6 12 1
6 6 10 -1
6 6 10 2
8 6 10 9 2 s1=35
9 12 13 7 2 s2=50
14 9 16 5 X34=30 4 s3=40
8 6 10 9 2 s1=35
9 12 13 7 3 s2=50
8 6 x12=10 10 9 2 s1=35
9 12 13 7 3 s2=50
14 9 x32=10 16 5 X34=30 X
8 6 x12=10 10 9 2 s1=25
9 x21=45 12 13 7 4 s2=50
14 9 x32=10 16 5 X34=30 X
1 d1=45 X 3 d3=30 X
Adopted from the lecture notes by Thomson Learning
8 6 x12=10 10 x13=25 9 X
9 x21=45 12 13 x23=5 7 X
14 9 x32=10 16 5 X34=30 X
X X X X
Adopted from the lecture notes by Thomson Learning
Degenerate TPs: I
• For some TP, there exist multiple solutions to the dual problem.
14 9 16 5 X34=30 s3=30
Degenerate TPs: II
Customer 1 Customer 2 Customer 3 Customer 4 Supply
Sensitivity Analysis
• In this section we discuss the following three aspects of
sensitivity analysis for the transportation problem:
• 1. Changing the objective function coefficient of a non-basic
variable.
• 2. Changing the objective function coefficient of a basic variable.
• 3. Increasing a single supply by Δ and a single demand by Δ.
Adopted from the lecture notes by Thomson Learning
variables & the reduced costs (0,14,-6) (10,9,0) (0,16,-4) (30, 5,0) 2
Continuing
•Compute
the new reduced cost for non-basic variables.
(0,8, Δ-2) (10,6,0) (25,10+Δ,0) (0,9,-7) 0
Case 2: When xij is a non-basic variable: Find the loop involving Xij
(x14) and some of the basic variables. Find an odd cell in the loop that
is in row I. Increase the value of this odd cell by Δ and go around the
loop, alternately increasing and then decreasing current basic
variables in the loop by Δ. In the following example, x14 is NBV. Δ
needs to satisfy the relation -10≤Δ as the basic variable .
+∆
-∆ +∆
Adopted from the lecture notes by Thomson Learning
Assignment Problems
Example: 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.
Adopted from the lecture notes by Thomson Learning
THE MODEL
According to the setup table Machinco’s problem
can be formulated as follows (for i,j=1,2,3,4):
Adopted from the lecture notes by Thomson Learning
9 0 3 2 0
0 10 4 31
4 5 0 64
0 2 4 86
0 0 0 2 min
Adopted from the lecture notes by Thomson Learning
9 0 x(1,2)=1 3 01
0 1(doubly 9 3 0 x(2,4)=1
crossed)
4 5 0 x(3,3)=1 4
0 (x(4,1)=1 1 3 5
Final Solution
Adopted from the lecture notes by Thomson Learning
Transshipment Problems
A transportation problem allows only shipments that go
directly from supply points to demand points. In many
situations, shipments are allowed between supply points or
between demand points.
(1) Each supply point will have a supply equal to it’s original
supply, and each demand point will have a demand to its
original demand. Let s= total available supply.
(2) Each transshipment point will have a supply equal to
(point’s original supply)+s and a demand equal to (point’s
original demand)+s.
Transshipment Example
• Example:
• Widgetco manufactures widgets at two factories, one in
Memphis and one in Denver. The Memphis factory can
produce as 150 widgets, and the Denver factory can
produce as many as 200 widgets per day. Widgets are
shipped by air to customers in LA and Boston. The
customers in each city require 130 widgets per day.
Because of the deregulation of airfares, Widgetco believes
that it may be cheaper first fly some widgets to NY or
Chicago and then fly them to their final destinations. The
cost of flying a widget are shown next. Widgetco wants to
minimize the total cost of shipping the required widgets to
customers.
Adopted from the lecture notes by Thomson Learning
A bfs from the min-cost method. We next compute the dual variables.
8
(0, 8,0) 13
(0,13,-1) (60, 25
25,0) 28
(0, 28,-4) 0
(90,0,0) 150 r1=5
u1=0
15
(0,15,-6) 12
(0,12,1) 26
(70,26,0) 25
(130,25,0) X25=90
(0,0,1)0 110
u2 =1r2=3
x31=350 0
(350,0,0) 6
(0,6,-2) 16
(0,16,1) 17
(0,17,-1) 0
(0,0-8) xu3=-8
6
(0,6,-2) 0
(350,0,0) 14
(0,14,-1) 16
(0,16,-4) 0
(0,0,-12) 350 r4=6
u4=-12
x
v1=8 350 c2=6
v2=12 130 c3=2
v3=25 130 c4=1
v4=24 x
v5=0
Adopted from the lecture notes by Thomson Learning
Both x33 and x11 can enter the basis. After one more update, we
obtain the optimal solution.
(130,88,0) 13
(0,13,-1) 25
(0, 25,-1) 28
(0, 28,-3) 0
(90,0,0) 150 r1=5
u1=0
15
(0,15,-7) 12
(0,12,0) 26
(0,26,-2) 25
(130,25,0) X25=90
(70,0,0)0 110
u2 =0r2=3
x31=350 0
(220,0,0) 6
(0,6,-2) 16
(130,16,0) 17
(0,17,-1) 0
(0,0-8) xu3=-8
6
(0,6,-10) 0
(350,0,0) 14
(0,14,-2) 16
(0,16,-4) 0
(0,0,-12) 350 r4=6
u4=-12
x
v1=8 350 c2=6
v2=12 130 c3=2
v3=24 130 c4=1
v4=25 x
v5=0
Adopted from the lecture notes by Thomson Learning
Summary
• Basic Introduction: Modeling and Initialization
• Modeling: Balanced transportation problem; Transfer unbalanced
TP into a balanced TP; Dealing with flexible demand;
• Initialization: Northwest Corner Method; Minimum Cost Method
• Vogel’s Method;
• Simplex for Transportation Problem:
• Find a BFS; Compute the values of the dual variables and the
reduced cost;
• Choose a variable to enter the basis, find a loop and update all the
variables in the loop;
• Other topics:
• Sensitivity Analysis
• Assignment and Transshipment Problems