Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Modeling Toolset
Queueing
Markov
Theory PERT/
Chains
CPM Network
Dynamic
Simulation Programming
Markov Programming
Inventory Decision Linear
Theory Processes Programming
Forecasting Stochastic Integer
Decision Programming Programming
Analysis Nonlinear
Game
Programming
Theory
Transportation-1
Network Problems
Transportation-2
Types of Network Problems
• Shortest Path
Special case: Project Management with PERT/CPM
• Minimum Spanning Tree
• Maximum Flow/Minimum Cut
• Minimum Cost Flow
Special case: Transportation and Assignment Problems
• Set Covering/Partitioning
• Traveling Salesperson
• Facility Location
and many more
Transportation-3
The Transportation Problem
Transportation-4
The Transportation Problem
Transportation-5
Simple Network Representation
Sources Destinations
Supply s1 1 Demand d1
1
Supply s2 2
2 Demand d2
…
…
xij
n Demand dn
Supply sm m
Costs cij
Transportation-6
Example: P&T Co.
Transportation-7
Example: P&T Co. Map
2 3
3
2
1
Transportation-8
Example: P&T Co. Data
Warehouse
Supply
Cannery 1 2 3 4
(Truckloads)
Transportation-9
Example: P&T Co.
• Network representation
Transportation-10
Example: P&T Co.
Minimize
subject to
Transportation-11
General LP Formulation for Transportation
Problems
Transportation-12
Feasible Solutions
s d
i 1
i
j 1
j
Transportation-13
Integer Solutions Property: Unimodularity
Transportation-14
Transportation Simplex Method
Transportation-15
Transportation Simplex Method
Initialization
(Find initial CPF solution)
Is the
current
Yes
CPF Stop
solution
optimal?
No
Move to a better
adjacent CPF solution
Transportation-16
The Transportation Simplex Tableau
Destination
Supply ui
Source 1 2 … n
c11 c12 c1n
1 … s1
… … … … … …
Demand d1 d2 … dn
Z=
vj
Transportation-17
Prototype Problem
14 13 19 15
B 350
9 20 23 10
C 150
0 0 0 0
Dummy 90
Transportation-19
Finding an Initial BFS
Transportation-20
The Northwest Corner Rule
Transportation-21
The Northwest Corner Rule
Destination
Supply
Source N S E W
16 13 22 17
A 200
100 100
14 13 19 15
B 350
40 300 10
9 20 23 10
C 150
150
0 0 0 0
Dummy 90
90
Demand 100 140 300 250
Z = 10770
Transportation-22
Vogel’s Method
Transportation-23
Vogel’s Method (1): calculate differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy 90 0
diff 9 13 19 10
Transportation-24
Vogel’s Method (2): select xDummyE as basic
variable
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy 90
90 0
diff 9 13 19 10
Transportation-25
Vogel’s Method (3): update supply, demand
and differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy 90
--- ---
diff 5 0 3 5
Transportation-26
Vogel’s Method (4): select xCN as basic
variable
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 100 150 1
0 0 0 0
Dummy 90
--- ---
diff 5 0 3 5
Transportation-27
Vogel’s Method (5): update supply, demand
and differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C 100 50 10
0 0 0 0
Dummy 90
--- ---
diff --- 0 3 5
Transportation-28
Vogel’s Method (6): select xCW as basic
variable
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C 100 50
50 10
0 0 0 0
Dummy 90
--- ---
diff --- 0 3 5
Transportation-29
Vogel’s Method (7): update supply, demand
and differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
diff --- 0 3 2
Transportation-30
Vogel’s Method (8): select xAS as basic
variable
Destination
Supply diff
Source N S E W
16 13 22 17
A 140 200 4
14 13 19 15
B 350 2
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
diff --- 0 3 2
Transportation-31
Vogel’s Method (9): update supply, demand
and differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 140 60 5
14 13 19 15
B 350 4
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
Transportation-32
Vogel’s Method (10): select xAW as basic
variable
Destination
Supply diff
Source N S E W
16 13 22 17
A 140 60 60 5
14 13 19 15
B 350 4
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
Transportation-33
Vogel’s Method (11): update supply, demand
and differences
Destination
Supply diff
Source N S E W
16 13 22 17
A 140 60 --- ---
14 13 19 15
B 350 4
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
Transportation-34
Vogel’s Method (12): select xBW and xBE as
basic variables
Destination
Supply diff
Source N S E W
16 13 22 17
A 140 60 --- ---
14 13 19 15
B 210 140 ---
9 20 23 10
C 100 50
--- ---
0 0 0 0
Dummy 90
--- ---
Transportation-35
Optimality Test
Transportation-36
Optimality Test (1)
Destination
Supply ui
Source N S E W
16 13 22 17
A 140 60 200
14 13 19 15
B 210 140 350
9 20 23 10
C 100 50 150
0 0 0 0
Dummy 90 90
vj
Transportation-37
Optimality Test (2)
• Calculate ui, vj using cij – ui – vj = 0 for xij basic
(let ui = 0 for row i with the largest number of basic variables)
Destination
Supply ui
Source N S E W
16 13 22 17
A 140 60 200 0
14 13 19 15
B 210 140 350 -2
9 20 23 10
C 100 50 150 -7
0 0 0 0
Dummy 90 90 -21
N Demand = 100
Supply = 200 A 140
60
S Demand = 140
Supply = 350 B 210
140 E Demand = 300
100 (shortage of 90)
Supply = 150 C
50 Demand = 250
W
Cost Z = 10330
Transportation-40
An Iteration
Transportation-41
Initial Solution Obtained by the Northwest
Corner Rule
Destination
Supply ui
Source N S E W
16 13 22 17
A 200 0
100 100 3 2
14 13 19 15
B 40 300
350 0
-2 10
9 20 23 10
C 150
150 -5
-2 12 9
0 0 0 0
Dummy 90 -15
-1 2 -4 90
vj 16 13 19 15
Transportation-42
Iteration 1
Destination
Supply ui
Source N S E W
16 13 22 17
A 200 0
100 100
14 13 19 - 15 +
B 40 300
350 0
10
9 20 23 10
C 150
150 -5
0 0 0 + 0 -
Dummy ? 90
90 -15
vj 16 13 19 15
Transportation-43
End of Iteration 1
Destination
Supply ui
Source N S E W
16 13 22 17
A 200
100 100
14 13 19 15
B 40 210
350
100
9 20 23 10
C 150
150
0 0 0 0
Dummy 90 90
vj
Transportation-44
Optimality Test
Destination
Supply ui
Source N S E W
16 13 22 17
A 200 0
100 100 3 2
14 13 19 15
B 40 210
350 0
-2 100
9 20 23 10
C 150
150 -5
-2 12 9
0 0 0 0
Dummy 90 90 -19
3 6 4
Demand 100 140 300 250
vj 16 13 19 15
Transportation-45
Iteration 2
Destination
Supply ui
Source N S E W
16 - 13 + 22 17
A 200 0
100 100
14 + 13 - 19 15
B 210
350 0
? 40 100
9 20 23 10
C 150
150 -5
0 0 0 0
Dummy 90 90 -19
vj 16 13 19 15
Transportation-46
End of Iteration 2
Destination
Supply ui
Source N S E W
16 13 22 17
A 200
60 140
14 13 19 15
B 40 210
350
100
9 20 23 10
C 150
150
0 0 0 0
Dummy 90 90
vj
Transportation-47
Optimality Test
Destination
Supply ui
Source N S E W
16 13 22 17
A 200 2
60 140 1 0
14 13 19 15
B 40 210
350 0
2 100
9 20 23 10
C 150
150 -5
0 14 9
0 0 0 0
Dummy 90 90 -19
5 8 4
Demand 100 140 300 250
vj 14 11 19 15 Z = 10330
Transportation-48
Optimal Solution
Sources Destinations
60 N Demand = 100
Supply = 200 A
140
40 S Demand = 140
Supply = 350 B 210
Cost Z = 10330
Transportation-49
The Assignment Problem
1 4 5
Draco 1
2 4 4
Goyle 1
Demand 1 1 1
Transportation-51
Prototype Problem
Minimize
subject to
Transportation-52
General LP Formulation for Assignment
Problems
Transportation-53
Solving the Assignment Problem
Transportation-54
The Hungarian Method
1. Subtract row minimums from each element in the row
2. Subtract column minimums from each element in the column
3. Cover the zeroes with as few lines as possible
4. If the number of lines = n, then optimal solution is hidden in zeroes
5. Otherwise, find the minimum cost that is not covered by any lines
1. Subtract it from all uncovered elements
2. Add it to all elements at intersections (covered by two lines)
6. Back to step 3
Transportation-55
The Hungarian Method – Optimal Solution
Draco 1 4 5 Draco
Goyle 2 4 4 Goyle
Mentor Mentor
Student Snape McG Lupin Student Snape McG Lupin
Harry Harry
Draco Draco
Goyle Goyle
Transportation-57