Transportation Problems
Transportation Problems
Bernd Noche
MSc. Eng. Fathi Rhoma
Intermodal Transport
Transportation Problems
Outline
• Transportation Modeling
• MODI Method
– Degeneracy
Transportation Problem
• Terminology:
– Points of demand:
– Points of supply:
Sources Destinations
City 1
X11
Plant X21
X12
1
X22
Plant 2 City 2
Transportation Problem
2 30 20 50
So for an even harder
30 TC= 670 40 problem . . .
Transportation Problem
Transportation Problem
• Transportation models
– Find lowest cost shipping arrangement
– Used primarily for existing distribution systems
Transportation Problem
Learning Objectives
• Define the problem & prepare the transportation tableau
LP Notation
M N
Minimize z = ∑∑ cij xij
i =1 j =1
subject to :
M
∑x
i =1
ij ≤ Si for every source, i = 1,...M
N
∑x
j =1
ij = Dj for every destinatio n j = 1,...N
where :
xij = the number of units transporte d to destinatio n j from source i
cij = the cost of transporti ng one unit from source i to destinatio n j
Transportation Problem
Transportation formulation
From To
City 1 City 2 City 3 City 4 Supply (M kwh)
Plant 1 $8 $6 $10 $9 35
Plant 2 $9 $12 $13 $7 50
Plant 3 $14 $9 $16 $5 40
Demand (M kwh) 45 20 30 30
City 1
X11
X21
Plant 1 X12
X14 X13 X31 City 2
X22
Plant 2 X23 X32
X24
X33 City 3
Plant 3
X34
City 4
Transportation Problem
Transportation formulation
Decision Variable
Objective function
Minimize Z = 8X11+6X12+10X13+9X14
+9X21+12X22+13X23+7X24
+14X31+9X32+16X33+5X34
Transportation Problem
Sign Constraints
A negative amount of electricity can not be shipped all Xij’s must be
non negative
Xij >= 0 (i= 1,2,3; j= 1,2,3,4)
Transportation Problem
Formulation - LP
Min Z = 8X11+6X12+10X13+9X14+9X21+12X22+13X23+7X24
+14X31+9X32+16X33+5X34
demand.
capacity.
Transportation Problem
Required Information
• Demand values for each destination (blue)
A 2 4 1 3 300
B 8 2 6 5 300
C 6 1 4 2 200
Initial Solutions
• Common heuristics (rules of thumb):
– Select a cell & allocate as large a shipment as possible without violating capacity
– Continue selecting new cells until all row & column constraints are satisfied
• Examples:
– MODI Algorithm
– Others
Transportation Problem
200
Column Satisfied
A 2 4 1 3 300
B 8 2 6 5 300
C 6 1 4 2 200
B 8 2 6 5 300
C 6 1 4 2 200
200 100
A 2 4 1 3 300
Column Satisfied
B 8 100 2 6 5 300
C 6 1 4 2 200
200 – 100
Demand 200 = 100 300 100
Transportation Problem
200 100
A 2 4 1 3 300
100 200
6Row Satisfied 300 – 100 =
B 8 2 5
200
C 6 1 4 2 200
200 100
Column Satisfied
A 2 4 1 3 300
100 2 200
B 8 6 5 300
100
C 6 1 4 2 200
300 – 200
Demand 200 200 100
= 100
Transportation Problem
200 100
A 2 4 1 3 300
100 2 200
B 8 6 5 300
200 100
A 2 4 1 3 300
100 2 200
B 8 6 5 300
100 100
C 6 1 4 2 200
Limitations
(costs)
Total cost:
200 units ($2) + 100 units ($4) + 100 units ($2) + 200 units ($6) + 100 units ($4) +
Boston
(200 units required)
Albuquerque
(300 units required)
Evansville
(300 units
capacity)
Fort Lauderdale
(300 units capacity)
Transportation Problem
Evansville $8 $4 $3
Fort $9 $7 $5
Lauderdale
Transportation Problem
Unit Shipping Cost : 1Unit, Factory to Warehouse & Total Demand and Total Supply
Albuquerque Cleveland
Boston Factory
(A) (C)
(B) Capacity
Des Moines 5 4 3
100
(D)
Evansville 8 4 3
300
(E)
Fort 9 7 5
Lauderdale 300
(F)
Warehouse
Req. 300 200 200 700
Transportation Problem
– Exhaust the supply (factory capacity) of each row before moving down
to the next row.
Albuquerque Cleveland
Boston Factory
(A) (C)
(B) Capacity
Des Moines 5 4 3
100 100
(D)
Evansville 8 4 3
200 100 300
(E)
Fort 9 7 5
Lauderdale 100 200 300
(F)
Warehouse
Req. 300 200 200 700
Transportation Problem
Stepping-Stone Method
Transportation Problem
Albuquerque Cleveland
Boston Factory
(A) (C)
(B) Capacity
Des Moines 5 4 3
100 Start 100
(D) - +
Evansville 8 4 3
200 100 300
(E)
+ -
Fort 9 7 5
Lauderdale 100 200 300
(F) + -
Warehouse
Req. 300 200 200 700
Transportation Problem
Des Moines 5 4 3
100 100
(D)
Evansville 8 4 3
100 200 300
(E)
Fort 9 7 5
Lauderdale 100 200 300
(F)
Warehouse
Req. 300 200 200 700
Transportation Problem
Des Moines 5 4 3
100 100
(D)
Evansville 8 4 3
200 100 300
(E)
Ft Lauderdale 9 7 5
200 100 300
(F)
Warehouse
Req. 300 200 200 700
Transportation Problem
Find Rj + Kj
K1 K2 K3
Albuquerque Boston Cleveland Factory
(A) (B) (C) Capacity
Des Moines 5 4 3
R1 (D) 100 100
Evansville 8 4 3
R2 (E)
200 100 300
Ft Lauderdale 9 7 5
R3 (F)
100 200 300
Warehouse
Req. 300 200 200 700
Transportation Problem
K1 5 K2 1 K3 -1
Albuquerque Boston Cleveland Factory
(A) (B) (C) Capacity
Des Moines 5 4 3
0 R 1 (D) 100 100
Evansville 8 4 3
3 R 2 (E)
200 100 300
Ft Lauderdale 9 7 5
6 R 3 (F)
100 200 300
Warehouse
Req. 300 200 200 700
Transportation Problem
5 K1 1 K2 -1 K3
Albuquerque Boston Cleveland Factory
(A) (B) (C) Capacity
Des Moines 5 4 3
0 R 1 (D) 100 4-0-1=3 3-0+1=4
100
Evansville 8 4 3
3 R 200 100 300
2 (E) 3-3+1=1
Ft Lauderdale 9 7 5
6 R 3 (F) 9-6-5=-2
100 200 300
Warehouse
Req. 300 200 200 700
Des Moines 5 4 3
100
(D)
100
Evansville 8 4 3
300
(E) -200 100 +
Ft Lauderdale 9 7 5
Start 200 300
(F) + 100 -
Warehouse
Req. 300 200 200 700
Improved Solution
Des Moines 5 4 3
100 100
(D)
Evansville 8 4 3
100 200 300
(E)
Ft Lauderdale 9 7 5
100 200 300
(F)
Warehouse
Req. 300 200 200 700
Transportation Problem
Find Rj + Kj
Evansville 8 4 3
R 100 200 300
2 (E)
Ft Lauderdale 9 7 5
R 3 (F)
100 200 300
Warehouse
Req. 300 200 200 700
Transportation Problem
Evansville 8 4 3
R
3 100 200 300
2 (E)
Ft Lauderdale 9 7 5
R
4 3 (F)
100 200 300
Warehouse
Req. 300 200 200 700
Transportation Problem
Evansville 8 4 3
R
3 100 200 300
2 (E) 3-3-1=-1
Ft Lauderdale 9 7 5
R
4 3 (F)
100
7-4-1=2 200 300
Warehouse
Req. 300 200 200 700
Transportation Problem
Resulting Step
Is it Optimal?
Evansville 8 4 3
2 (E) 8-2-5=1 200 100 300
Ft Lauderdale 9 7 5
4 (F)
200
7-4-2=1 100 300
Warehouse
Req. 300 200 200 700
• Unbalanced Problem
• Degeneracy
• More Than One Optimal Solution
Transportation Problem
Customer Dummy
1 Customer 2 Factory
Capacity
Factory 1 8 5 0
170
Factory 2 15 10 0
130
Factory 3 3 9 0
80
Customer
Requirements 150 80 150 380
Transportation Problem
Factory 1 8 5 16
170
Factory 2 15 10 7
130
Dummy 0 0 0
80
Customer
Requirements 150 80 150 380
Transportation Problem
Degeneracy
Customer Customer Customer Factory
1 2 3 Capacity
Factory 1 5 4 3
100 100
Factory 2 8 4 3
100 20 120
Factory 3 9 7 5
80 80
Customer
Requirements 100 100 100 300
Transportation Problem
Factory 1 8 5 16
70 70
Factory 2 15 10 7
50 80 130
Factory 3 3 9 10
30 50 80
Customer
Requirements 150 80 50 280
Transportation Problem
Albuquerque Cleveland
Boston Factory
(A) (C)
(B) Capacity