Professional Documents
Culture Documents
Problem
Amelia Kurniawati ST., MT.
OUTLINE
2
GOAL
• Understand the concept of
transportation method and its
application
• Understand the concept of optimum
solution of transportation problem
• Understand search methods for feasible
solution and optimum solution 3
Introduction
4
Transportation Problem
5
Transportation Problem
Factory Distribution Center
1 5
100 1 25
4
70 2 7 3 30
2
4 5
6 7 3 100
How many product should be shipped
from warehouse 1 and 2 to each 4 15
customer so the cost at the minimum? 6
Linear Programming Formulation
• There are m sources (eg warehouse)
where the product is stored.
• There are n destinations (eg market)
where the product is needed.
• Availability of supplies from sources: ai (i =
1, 2, …, m)
• Demand from destinations: bj (j = 1, 2, …,
n)
7
Linear Programming Formulation
• Shipping cost from source i to destination j :
cij (i = 1, 2, …, m; j = 1, 2, …, n). If a source i
can not supply to a destination j, then cij =
M (M is a very large positive number).
• The problem is determining the number of
products shipped from source i to
destination j (represented by xij) that
minimize the total transportation cost
(shipping).
8
Linear Programming Formulation
m n
Minimize Z cij xij
i 1 j 1
Subject to:
n
x
j 1
ij ai i = 1, 2, …, m
m
x
i 1
ij bj j = 1, 2, …, n
xij 0 i, j
9
Transportation Problem in Network Form
Source Destination
a1 1 cij 1 b1
a2 2 2 b2
ai ... ... bj
am m n bn
10
Standard/Balanced Transportation Problem
m n
m
Z cij xij
n
a i bj
Minimize i 1 j 1
j 1 i 1
Subject to:
n
x
j 1
ij ai i = 1, 2, …, m
m
x
i 1
ij bj j = 1, 2, …, n
xij 0 i, j
11
Unbalanced Transportation problem
m n 1
x
j 1
ij ai i = 1, 2, …, m
m
x
i 1
ij bj j = 1, 2, …, n, n+1
xij 0 i, j
m n
and ci , n 1 0, i 1,2,..., m
12
Unbalanced Transportation problem
m 1 n
i 1 j 1 a
j 1
i bj
i 1
Subject to: n
x
j 1
ij ai i = 1, 2, …, m+1
m 1
x
i 1
ij bj j = 1, 2, …, n
xij 0 i, j
n m
15
To
Albuquerque Boston Cleveland
From
Des Moines $5 $4 $3
Evansville $8 $4 $3
Fort Lauderdale $9 $7 $5
Boston
Cleveland (200 units
Des Moines (200 units required)
(100 units required)
capacity)
Albuquerque
(300 units Evansville
required) (300 units
capacity)
Fort Lauderdale
(300 units
capacity)16
Transportation Matrix
To Factory Des Moines
From Albuquerque Boston Cleveland capacity capacity
constraint
$5 $4 $3
Des Moines 100
Cell
$8 $4 $3 representing
Evansville 300 a possible
source-to-
$9 $7 $5 destination
Fort Lauderdale 300 shipping
assignment
Warehouse (Evansville to
requirement 300 200 200 700
Cleveland)
Plant 1 $8 $6 $10 $9 35
Plant 2 $9 $12 $13 $7 50
Plant 3 $14 $9 $16 $5 40
Demand (Million 45 20 30 30
kwh)
18
LP Formulation of Powerco’s Problem
Min Z = 8X11+6X12+10X13+9X14+9X21+12X22+13X23+7X24
+14X31+9X32+16X33+5X34
20
Solving Algorithms
• Step 0:
− Formulation of the problem in the standard
transportation problem
• Step 1:
− Determination of initial feasible basic solution
• Step 2:
− Examination of optimality. If the solution is optimum
then stop.
− Determination of a new basic solution and back to
step 2 21
Initial Feasible Basic Solution
Determination Methods
22
Northwest Corner Rule (0)
It is an initial feasible solution, but not optimum yet and should
be proceed to the next stage by using optimization method.
Procedure:
(1) Charging cell / box starting from the top left corner.
(2) Give allocation with the maximum (largest) as per the terms so it is
feasible to meet demand.
(3) Move to the right box when there is sufficient supplies. If not, move to
below box to fulfill the demand. Moving continue until the supply runs
out and the demand fulfilled.
23
Northwest Corner Rule (1)
Product Supply
Consumer
2 2 2 1
3
10 8 5 4
Factory 7
7 6 6 8
5
4 3 4 4
Demand 24
Northwest Corner Rule (2)
2 2 2 1
0
3
10 8 5 4
7
7 6 6 8
5
1 3 4 4
25
Northwest Corner Rule (3)
2 2 2 1
0
3
10 8 5 4
6
1
7 6 6 8
5
0 3 4 4
26
Northwest Corner Rule (4)
2 2 2 1
0
3
10 8 5 4
3
1 3
7 6 6 8
5
0 0 4 4
27
Northwest Corner Rule (5)
2 2 2 1
0
3
10 8 5 4
0
1 3 3
7 6 6 8
5
0 0 1 4
28
Northwest Corner Rule (6)
2 2 2 1
0
3
10 8 5 4
0
1 3 3
7 6 6 8
4
1
0 0 0 4
29
Northwest Corner Rule (7)
2 2 2 1
0
3
10 8 5 4
0
1 3 3
7 6 6 8
0
1 4
0 0 0 0
30
Northwest Corner Rule
Feasible Basic Solution
2 2 2 1
0
3
10 8 5 4
0
1 3 3
7 6 6 8
0
1 4
0 0 0 0
10 8 5 4
7
7 6 6 8
5
4 3 4 4
32
Least Cost Rule (2)
2 2 2 1
0
3
10 8 5 4
7
7 6 6 8
5
4 3 4 1
33
Least Cost Rule (3)
2 2 2 1
0
3
10 8 5 4
6
1
7 6 6 8
5
4 3 4 0
34
Least Cost Rule (4)
2 2 2 1
0
3
10 8 5 4
2
4 1
7 6 6 8
5
4 3 0 0
35
Least Cost Rule (5)
2 2 2 1
0
3
10 8 5 4
2
4 1
7 6 6 8
2
3
4 0 0 0
36
Least Cost Rule (6)
2 2 2 1
0
3
10 8 5 4
2
4 1
7 6 6 8
0
2 3
2 0 0 0
37
Least Cost Rule
Initial Feasible Basic Solution
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
Penalty
2 2 2 1
3 1
10 8 5 4
7 1
7 6 6 8
5 0
4 3 4 4
Penalty 5 4 3 3
40
Vogel’s Approximation Method (VAM) (2)
Penalty
2 2 2 1
0
3
10 8 5 4
7 1
7 6 6 8
5 0
1 3 4 4
Penalty 3 2 1 4
41
Vogel’s Approximation Method (VAM) (3)
Penalty
2 2 2 1
0
3
10 8 5 4
3 3
4
7 6 6 8
5 0
1 3 4 0
Penalty 3 2 1
42
Vogel’s Approximation Method (VAM) (4)
Penalty
2 2 2 1
0
3
10 8 5 4
0
3 4
7 6 6 8
5
1 3 1 0
Penalty
43
Vogel’s Approximation Method (VAM)
Initial Feasible Basic Solution
Supply
2 2 2 1
3
3
10 8 5 4
7
3 4
7 6 6 8
5
1 3 1
Demand 4 3 4 4
46
u-v Method (2)
For non-basic variables:
cij cij ui v j
If the condition has not optimum, the variable that enters the
basic is those which has the most negative cij (in minimization
problem)
47
For example, an initial feasible basic solution is
given by Least Cost Method
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
48
Implementation of u-v
Method
Six equations with seven
u1 v4 1 unknown variables
u2 v1 10 there are an infinite number of
u2 v3 5 possible solutions
u2 v4 4
To obtain a solution,
u3 v1 7
a certain variable value can be
u3 v2 6 set randomly, and the value of
others can be solved.
For example, u1 = 0 49
Examination of Optimality
v1 = v2 = v3 = v4 =
2 2 2 1
u1 = 0 3
3
10 8 5 4
u2 = 7
2 4 1
7 6 6 8
u3 = 5
2 3
4 3 4 4
50
Examination of Optimality
v1 = 7 v2 = 6 v3 = 2 v4 = 1
2 2 2 1
u1 = 0 3
3
10 8 5 4
u2 = 3 7
2 4 1
7 6 6 8
u3 = 0 5
2 3
4 3 4 4
51
Examination of Optimality
cij cij ui v j
v1 = 7 v2 = 6 v3 = 2 v4 = 1
-5 2 2 2 1
u1 = 0 3
3
10 8 5 4
u2 = 3 7
2 4 1
7 6 6 8
u3 = 0 5
2 3
4 3 4 4
52
Examination of Optimality
cij cij ui v j
v1 = 7 v2 = 6 v3 = 2 v4 = 1
-5 2 -4 2 0 2 1
u1 = 0 3
3
10 -1 8 5 4
u2 = 3 7
2 4 1
7 6 4 6 7 8
u3 = 0 5
2 3
4 3 4 4
2 2 2 1
u1 = 0 3
+ 3
10 8 5 4
u2 = 3 7
2 4 1+
7 6 6 8
u3 = 0 5
2 3
4 3 4 4
2 2 2 1
3
2 1
10 8 5 4
7
4 3
7 6 6 8
5
2 3
4 3 4 4
2 2 2 1
u1 = 0 3
2 1
10 8 5 4
u2 = 3 7
4 3
7 6 6 8
u3 = 5 5
2 3
4 3 4 4
56
Examination of Optimality
v1 = 2 v2 = 1 v3 = 2 v4 = 1
2 1 2 0 2 1
u1 = 0 3
2 1
5 10 4 8 5 4
u2 = 3 7
4 3
7 6 -1 6 2 8
u3 = 5 5
2 3
4 3 4 4
2 2 2 1
u1 = 0 3
2+ 1
10 8 5 4
u2 = 3 7
4 3+
7 6 6 8
u3 = 5 5
2 3 +
4 3 4 4
2 2 2 1
3
3
10 8 5 4
7
3 4
7 6 6 8
5
1 3 1
4 3 4 4
Total transportation cost Z = 68
59
Examination of Optimality
v1 = 2 v2 = 1 v3 = 1 v4 = 0
2 2 2 1
u1 = 0 3
3
10 8 5 4
u2 = 4 7
3 4
7 6 6 8
u3 = 5 5
1 3 1
4 3 4 4
2 1 2 1 2 1 1
u1 = 0 3
3
4 10 3 8 5 4
u2 = 4 7
3 4
7 6 6 3 8
u3 = 5 5
1 3 1
4 3 4 4
Optimum solution 61
Optimum Solution
2 2 2 1
3
3
10 8 5 4
7
3 4
7 6 6 8
5
1 3 1
4 3 4 4
63
64
1. Set U1= 0
2. Calculate the value of Ui and Vj using the equation Cij = Ui + Vj, for
cells that receive allocations.
3. Calculate Reduced Cost (Kij)= Cij-Ui-Vj, for cells that do not receive
allocations.
V1 V2 V3 V4
cells that receive
allocation.
Cij = Ui + Vj
U1
U2
cells that don’t U3
receive allocation.
U1, U2, U3, V1, V2, V3, V4, K12, K14, K21, K23, K24, K33 ?
Kij= Cij-Ui-Vj 65
Example
66
67
Optimum
68
Solution given from Least Cost Method
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
69
Stepping-Stone Method
Stepping Stone Method: Pressing down transportation cost by including non-basic variables
which is the allocation of goods to the empty box) into the solution.
By using the initial solution obtained from the North West Corner method which is not optimum
yet, it will be shown the evaluation of each non-basic.
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
Start from cell x11, we create a closed path through cells which get the
allocation to the selected empty cell (x11) 71
Stepping Stone (2)
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
Begin with a (+) sign in selected empty cells, we put the (-) and (+) sign alternately on
each corner of the closed path. 72
Stepping Stone (3)
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
then, C11 = 2 – 1 + 4 – 10 = - 5 73
Stepping Stone (4)
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
cell x12
74
Stepping Stone (5)
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
C11 = -5
C12 = -4
C13 = 0
C22 = -1
C33 = 4
C34 = 7
Stepping-Stone Method
1. If an improvement is possible, choose the route
(unused square) with the largest negative
improvement index.
2. On the closed path for that route, select the smallest
number found in the squares containing minus signs.
3. Add this number to all squares on the closed path
with plus signs and subtract it from all squares with a
minus sign.
4. Repeat the iteration until there’s no negative
improvement index.
77
Stepping Stone (8)
2 2 2 1
0
3
10 8 5 4
0
2 4 1
7 6 6 8
0
2 3
0 0 0 0
From x11 cell route, select the smallest number found in the squares containing minus
signs (-)
79
Stepping Stone (10)
2 2 2 1
0
0+2 3 3- 2
10 8 5 4
0
2 2- 2 4 12
1+
7 6 6 8
0
2 3
0 0 0 0
Add number 2 to all squares on the closed path with plus signs and subtract it from all
squares with a minus sign
80
Stepping Stone (11)
2 2 2 1
0
2 1
10 8 5 4
0
0 4 3
7 6 6 8
0
2 3
0 0 0 0
New solution = 69
81
Stepping Stone (12)
2 2 2 1
0
2 1
10 8 5 4
0
0 4 3
7 6 6 8
0
2 3
0 0 0 0
Repeat the stepping stone method iteration, calculate the improvement index for
every empty cell
82
Stepping Stone (13)
C12 = 1
C13 = 0
C21 = 5
C22 = 4 It still has a negative
C33 = -1 value. Reallocation the
C34 = 2 x33 cell
Stepping Stone (14)
2 2 2 1
0
2 1
10 8 5 4
0
0 4 3
7 6 6 8
0
2 3
0 0 0 0
2 2 2 1
0
2+1 1-1
10 8 5 4
0
0 4-1 3+1
7 6 6 8
0
2-1 3 0+1
0 0 0 0
New Allocation
85
Stepping Stone (16)
2 2 2 1
0
3 0
10 8 5 4
0
0 3 4
7 6 6 8
0
1 3 1
0 0 0 0
New Solution = 68
86
Stepping Stone (17)
C12 = 1
C13 = 1
There’s no negative
C14 = 1
value, therefore 68 is
C21 = 4
the optimum solution.
C22 = 3
C34 = 3
Implementation Example
-Stepping Stone Method-
88
Transportation Matrix
To Factory Des Moines
From Albuquerque Boston Cleveland capacity capacity
constraint
$5 $4 $3
Des Moines 100
Cell
$8 $4 $3 representing a
Evansville 300 possible
source-to-
$9 $7 $5 destination
Fort Lauderdale 300 shipping
assignment
Warehouse (Evansville to
requirement 300 200 200 700
Cleveland)
90
Northwest-Corner Rule
1. Assign 100 tubs from Des Moines to Albuquerque (exhausting Des
Moines’s supply)
2. Assign 200 tubs from Evansville to Albuquerque (exhausting
Albuquerque’s demand)
3. Assign 100 tubs from Evansville to Boston (exhausting Evansville’s
supply)
4. Assign 100 tubs from Fort Lauderdale to Boston (exhausting Boston’s
demand)
5. Assign 200 tubs from Fort Lauderdale to Cleveland (exhausting
Cleveland’s demand and Fort Lauderdale’s supply)
91
Northwest-Corner Rule
To (A) (B) (C) Factory
From Albuquerque Boston Cleveland capacity
$5 $4 $3
(D) Des Moines 100 100
$8 $4 $3
(E) Evansville 200 100 300
$9 $7 $5
(F) Fort Lauderdale 100 200 300
Warehouse
requirement 300 200 200 700
First, $3 is the lowest cost cell so ship 100 units from Des
Moines to Cleveland and cross off the first row as Des
Moines is satisfied Figure C.4 93
Intuitive Lowest-Cost Method
To (A) (B) (C) Factory
From Albuquerque Boston Cleveland capacity
$5 $4 $3
(D) Des Moines 100 100
$8 $4 $3
(E) Evansville 100 300
$9 $7 $5
(F) Fort Lauderdale 300
Warehouse
requirement 300 200 200 700
99 $5 1 $4
100 +
-
+ -
201 $8 99 $4
Figure C.5 200 100
100
Stepping-Stone Method
To (A) (B) (C) Factory
From Albuquerque Boston Cleveland capacity
$5 $4 Start $3
(D) Des Moines 100 - + 100
$8 $4 $3
(E) Evansville 200 100 300
+ -
$9 $7 $5
+100 - 200 300
(F) Fort Lauderdale
Warehouse
requirement 300 200 200 700
106
Degeneration
• Feasible basic solution of the transportation
problem is said to degenerate if one or more
basic variables have a value of zero.
• Basic solution may be degenerate if the rest of
the remaining supply and demand is the same
for the variables which will be chosen as the basic.
• Number of basic solution of transportation
problem should be: m + n – 1 (m = number of
rows, n = number of columns)
107
Illustration of Degeneration (1)
2 2 2 1
4
10 8 5 4
5
7 6 6 8
8
4 5 4 4
108
Illustration of Degeneration(2)
Supply
2 2 2 1
0
4
10 8 5 4
5
7 6 6 8
8
Demand 0 5 4 4
109
Illustration of Degeneration(3)
Supply
2 2 2 1
0
4
10 8 5 4
0
5
7 6 6 8
8
Demand 0 0 4 4
110
Illustration of Degeneration(6)
Supply
2 2 2 1
0
4
10 8 5 4
0
5
7 6 6 8
4
4
Demand 0 0 0 4
111
Illustration of Degeneration(7)
• Do a solution improvement with stepping stone method
Supply
2 2 2 1
4
4
10 8 5 4
5
5
7 6 6 8
8
4 4
Demand 4 5 4 4
112
Ilustrasi Degenerasi (8)
• Choose an empty cell then make the route → C21 Supply
2 2 2 1
4
4
10 8 5 4
5
5
7 6 6 8
8
4 4
Demand 4 5 4 4
??? 113
Illustration of Degeneration(9)
→ C21 (alternative path)
Supply
2 2 2 1
4
4
???
10 8 5 4
???
5
5
7 6 6 8
8
4 4
Demand 4 5 4 4
114
Illustration of Degeneration(9)
• add new points (new feasible solution cell) on other empty cell with
zero
Supply
2 2 2 1
4
4
10 8 5 4
5
0 5 0
7 6 6 8
8
4 4
Demand 4 5 4 4
115
Illustration of Degeneration(9)
Supply
2 2 2 1
4
4
10 8 5 4
5
0 5 0
7 6 6 8
8
4 4
Demand 4 5 4 4
116
Illustration of Degeneration(9)
• A point can be added freely with a condition that every empty cell
can be covered
Supply
2 2 2 1
4
4
10 8 5 4
5
5
7 6 6 8
8
0 0 4 4
Demand 4 5 4 4
117
Illustration of Degeneration(9)
Supply
2 2 2 1
4
4
10 8 5 4
5
5
7 6 6 8
8
0 0 4 4
Demand 4 5 4 4
118
If Supply ≠ Demand
To (A) (B) (C) Factory
Dummy
From Albuquerque Boston Cleveland capacity
$5 $4 $3 0
(D) Des Moines 250 250
$8 $4 $3 0
(E) Evansville 50 200 50 300
$9 $7 $5 0
(F) Fort Lauderdale 150 150 300
Warehouse
requirement 300 200 200 150 850
New
Des Moines
capacity 119
Task
Known to transport tables from a case of distributing goods from the 4 factories to 3
storage warehouses as follows:
Warehouses
Factories Number of Product
Surabaya Yogyakarta Jakarta Barat
to be Distributed
200 100 70
Bandung 50
90 150 80
Bogor 50
60 10 90
Sukabumi 50
50 20 60
Bekasi 50
Warehouse
60 60 80
Capacity 120
Task
122