Distribution and Network Problem (Transportation, Assignment and Transhipment)
Distribution and Network Problem (Transportation, Assignment and Transhipment)
Pertemuan ke-10
Distribution and Network Model
Dika Virginia
Assignment Problem
Network Representation
General LP Formulation
Transshipment Problem
Network Representation
General LP Formulation
Transportation, Assignment, and Transshipment Problems
s2 2 c22
c23
3 d3
Sources Destinations
Transportation Problem: Example #1
Northwood Westwood
Eastwood
Plant 1 24 30
40
Plant 2 30 40
Decision
42 Variables. the tons of concrete blocks,
xij , to be shipped from source i to destination j.
Northwood Westwood
Eastwood
Plant 1 x11 x12 x13
Plant 1 x21 x22 x23
Transportation Problem: Example
#1
Objective Function
Demand constraints:
(4) x11 + x21 = 25
(5) x12 + x22 = 45
(6) x13 + x23 = 10
Non-negativity of variables:
xij > 0, i = 1, 2 and j = 1, 2, 3
Transportation Problem: Example #1
≤ and ≥ Constraints
Define the Constraints
Supply constraints:
(1) x11 + x12 + x13 ≤ 50
(2) x21 + x22 + x23 ≤ 50
Demand constraints:
(4) x11 + x21 ≥ 25
(5) x12 + x22 ≥ 45
(6) x13 + x23 ≥ 10
Non-negativity of variables:
xij > 0, i = 1, 2 and j = 1, 2, 3
Transportation Problem: Example #1
Partial Spreadsheet Showing Problem
Data
A B C D E F G H
1 LHSCoefficients
2 Constraint X11 X12 X13 X21 X22 X23 RHS
3 #1 1 1 1 50
4 #2 1 1 1 50
5 #3 1 1 25
6 #4 1 1 45
7 #5 1 1 10
8 Obj.Coefficients 24 30 40 30 40 42 30
Transportation Problem: Example #1
Decision Variable Table
Northwood Westwood Eastwood LHS
Plant 1 5 45 0 50 ≤
Plant 2 20 0 10 30 ≤
LHS 25 45 10 2490
≥ ≥ ≥
RHS 25 45 10
Transportation Problem: Example #1
Optimal Solution
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
Transportation Problem: Example #1
Sensitivity Report
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$9 Plant 1 Northwood 5 0 24 4 4
$C$9 Plant 1 Westwood 45 0 30 4 36
$D$9 Plant 1 Eastwood 0 4 40 1E+30 4
$B$10 Plant 2 Northwood 20 0 30 4 4
$C$10 Plant 2 Westwood 0 4 40 1E+30 4
$D$10 Plant 2 Eastwood 10 0 42 4 42
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$B$11 LHS Northwood 25 30 25 20 20
$C$11 LHS Westwood 45 36 45 5 20
$D$11 LHS Eastwood 10 42 10 20 10
$E$9 Plant 1 LHS 50 -6 50 20 5
$E$10 Plant 2 LHS 30 0 50 1E+30 20
Transportation Problem: Example
#2
The Navy has 9,000 pounds of material in
Albany, Georgia that it wishes to ship to three
installations:
San Diego, Norfolk, and Pensacola. They require
4,000, 2,500, and 2,500 pounds, respectively.
Government regulations require equal
distribution of shipping among the three carriers.
Destination
Mode San Diego Norfolk
Pensacola
Truck $12 $6
$5
Railroad 20 11
9
Airplane 30 26
28
Transportation Problem: Example
#2
Define the Decision Variables
We want to determine the pounds of
material, xij , to be shipped by mode i to
destination j. The following table
summarizes the decision variables:
San Diego Norfolk
Pensacola
Truck x11 x12
x13
Railroad x21 x22
x23
Airplane x31 x32
x33
Transportation Problem: Example
#2
m n
Min c x
i 1 j 1
ij ij
x
j 1
ij si i 1,2, ,m Supply
m
x >d
i 1
ij j j 1,2, ,n Demand
Min: ( 12x11 + 6x12 + 5x13 )+( 20x21 + 11x22 + 9x23) + (30x31 + 26x32 + 28x33
Then?
a1 bj
i1 j
1
p.s. Jika tabel transportasi terdiri dari m baris dan n kolom, maka penyelesaian awal harus
menghasilkan m+n-1 buah variabel basis (sel yang terisi). Jika penyelesaian awalnya berisi kurang dari
m+n-1 buah variabel basis, maka harus ditambahkan variabel dummy agar proses pengecekan
keoptimalan dan iterasi dapat dilakukan.
B. Finding the Optimal Solution
Once an initial solution has been found, the next step is to test that solution for
optimality. The following two methods are widely used for testing the solutions:
Stepping Stone Method
Modified Distribution Method (MODI)
The two methods differ in their computational approach but give exactly the same
results and use the same testing procedure.
Optimality test: A BF solution is optimal if and only if for every such that is non-
basic
Tabel optimal jika untuk setiap sel bukan basis (non basis variable), nilai . Jika ada salah satu sel
saja yang nilai negatif, maka tabel tidak optimal dan perlu ditingkatkan optimalitasnya.
Untuk merevisi tabel, digunakan loop, yaitu barisan sel basis (sel tidak kosong) dengan sifat :
1. (Any two consecutive cells lie either in the same row/column) Terdapat 2 sell berurutan
yang teretak pada baris/kolom yang sama.
2. (No three or more cells lie either in the same row/column) Tidak ada 3 (atau lebih) sel
berurutan yang terletak pada baris/kolom yang sama.
3. (The last cell is in the same row/column as in the first cell) Sel pertama dan terakhir
barisan terletak pada baris/kolom yang sama.
4. (the is no cell appears more than once in the same row/column) Tidak ada sel yang
muncul lebih dari satu kali dalam barisan
Exercise!
Solve it by hand!
Alat-alat rumah tangga akan dikirim dari 4 buah distributor (A, B, C, D) ke 3 toko (1, 2, dan 3). Jumlah
barang yang siap dikirim dari distributor A, B, C dan D masing-masing adalah 300, 200, 600, dan 500
unit. Kebutuhan toko 1, 2, dan 3 masing-masing adalah 200, 1000 dan 400 unit. Biaya pengiriman
(ribuan) dari distributor ke toko tampak dalam tabel 5.4. Tentukan penyelesaian fisibel awal dengan
metode barat laut, lalu cek nilai optimalnya.
Special Case on Transportation
Problem
Unbalanced
Restricted Unfulfilled Maximization
Transportation Degeneracy
Area Demand Problem
Problem
Transportation Problem
LP Formulation Special Cases
• Total supply exceeds total demand:
No modification of LP formulation is necessary.
• Total demand exceeds total supply:
Add a dummy origin with supply equal
to the shortage amount. Assign a zero
shipping cost per unit. The amount
“shipped” from the dummy origin (in
the solution) will not actually be
shipped.
Transportation Problem
LP Formulation Special Cases (continued)
The objective is maximizing profit or revenue:
Unacceptable route:
If total demand is greater than total supply, introduce a dummy source (factory)
with a supply equal to the excess of demand over supply.
Attention!!
Regardless of whether demand or supply exceeds the other, shipping cost
coefficients of zero are assigned to each dummy location or route because no
shipments will actually be made from a dummy factory or to a dummy
warehouse.
Any units assigned to a dummy destination represent excess capacity, and units
assigned to a dummy source represent unmet demand.
Unbalanced Problem
Demand Less than Supply
Customer Customer Dummy
1 2 Factory
Capacity
8 5 0
Factory 1
170
15 10 0
Factory 2
130
3 9 0
Factory 3
80
Customer
Requirements 150 80 150 380
Unbalanced Problem
Supply Less than Demand
Customer Customer Customer Factory
1 2 3 Capacity
Factory 1 8 5 16
170
Factory 2 15 10 7
130
Dummy 0 0 0
80
Customer
Requirements 150 80 150 380
B. Degeneracy
In a transportation tableau with m rows and n columns, there must be
m + n - 1 cells with allocations; if not, it is degenerate.
The tableau in the figure does not meet the condition since 3 + 3
-1 = 5 cells and there are only 4 cells with allocations.
In a degenerate tableau, all the stepping-stone paths or MODI equations cannot be
developed.
To rectify a degenerate tableau, an empty cell must artificially be treated as an occupied cell.
Alat-alat rumah tangga akan dikirim dari 4 buah distributor (A, B, C, D) ke 3 toko (1, 2, dan 3). Jumlah
barang yang siap dikirim dari distributor A, B, C dan D masing-masing adalah 360, 120, 125, dan 200
unit. Kebutuhan toko 1, 2, dan 3 masing-masing adalah 220, 240, 125 dan 200 unit. Toko-2 tidak mau
menerima barang dari cabang A dan toko-3 tidak mau menetima barang dari cabang C. Biaya
pengiriman (ribuan) dari distributor ke toko tampak dalam tabel 5.4. Tentukan penyelesaian fisibel
awal dengan metode Vogel.
D. Penalty Given on Unfulfilled
Demand
Example:
Two reservoirs are available to supply the water needs of three cities. Each reservoir can
supply up to 50 million gallons of water per day. Each city would like to receive 40 million
gallons per day. For each million gallons per day of unmet demand, there is a penalty. At
city 1, the penalty is $20; at city 2, the penalty is $22; and at city 3, the penalty is $23. The
cost of transporting 1 million gallons of water from each reservoir to each city is shown in
Table 4. Formulate a balanced transportation problem that can be used to minimize the
sum of shortage and transport costs. The shipping cost for reservoir:
Assignment
Problem
Assignment Problem
c11
1 1
c12
c13
Agents Tasks
c21
c22
2 2
c23
c31
c32
3 3
c33
Assignment Problem: Example
An electrical contractor pays his subcontractors a fixed
fee plus mileage for work performed. On a given day
the contractor is faced with three electrical jobs
associated with various projects. Given below are the
distances between the subcontractors and the projects.
Projects
Subcontractor A B C
Westside 50 36 16
Federated 28 30 18
Goliath 35 32 20
Universal 25 25 14
Gol.
20
C
25
25
Univ. 14
Assignment Problem: Example
Linear Programming Formulation
Min 50x11+36x12+16x13+28x21+30x22+18x23
+35x31+32x32+20x33+25x41+25x42+14x43
s.t. x11+x12+x13 < 1
Agents
x21+x22+x23 < 1
x31+x32+x33 < 1
x41+x42+x43 < 1
x11+x21+x31+x41 = Tasks
1
x12+x22+x32+x42 = 1
x13+x23+x33+x43 = 1
xij = 0 or 1 for all i and j
Assignment Problem: Example
Linear Programming Formulation
Min 50x11+36x12+16x13+28x21+30x22+18x23
+35x31+32x32+20x33+25x41+25x42+14x43
s.t. x11+x12+x13 < 1
Agents
x21+x22+x23 < 1
x31+x32+x33 < 1
x41+x42+x43 < 1
x11+x21+x31+x41 ≥ Tasks
1
x12+x22+x32+x42 ≥ 1
x13+x23+x33+x43 ≥ 1
xij = 0 or 1 for all i and j
Transportation Problem: Example
#2
Cost Table
Project A Project B Project C
Westside 50 36 16
Federated 28 30 18
Goliath 35 32 20
Universal 25 25 14
`
0 otherwise
x
j 1
ij 1 i 1,2, ,m Agents
m
x
i 1
ij 1 j 1,2, ,n Tasks
Solve as a maximization
problem.
• An assignment is unacceptable:
Remove the corresponding decision
variable.
• An agent
n
xis permitted
j 1
to,m
t i 1,2,
ij
work t tasks:
A gents
Transshipment Problem
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.
Transshipment Problem
Network Representation
Transit
c36
Nodes 3
c13
s1 1 c37 6 d1
c14
c15 c46
Supply 4 c47 Deman
c23 d
c24 c56
s2 2 7 d2
c25
5 c57
Sources Destinations
Intermediate Nodes
Transshipment Problem
s.t.
arcs out
xij x
arcs in
ij si Origin nodes i
Supply Transit
arcs out
xij x
arcs in
ij 0 Transhipment nodes
x
arcs in
ij
arcs out
xij dj Destination nodes j
50
Zrox
5 1
Zeron
75 ARNOLD
Arnold
N 5
8 8
Hewes
HEWES 60
7 3
Super Zeron
WASH 4
75 Shelf S
BURN
4 4 Rock-
Rite 40
Transshipment Problem: Example
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 (Zeron N), 4 (Zeron S)
k = 5 (Zrox), 6 (Hewes), 7 (Rockrite)
Objective Function Defined
Minimize Overall Shipping Costs:
Min 5x13 + 8x14 + 7x23 + 4x24 + 1x35 + 5x36 + 8x37
+ 3x45 + 4x46 + 4x47
Transshipment Problem: Example
Constraints Defined
Amount Out of Arnold: x13 + x14 < 75
Amount Out of Supershelf: x23 + x24 < 75
Amount Through Zeron N: x13 + x23 - x35 - x36 - x37 = 0
Amount Through Zeron S: x14 + x24 - x45 - x46 - x47 = 0
Amount Into Zrox: x35 + x45 = 50
Amount Into Hewes: x36 + x46 = 60
Amount Into Rockrite: x37 + x47 = 40
0 = 0
0 = 0
Transshipment Problem: Example
Solution
ZROX
Zrox 50
50
5
75 1
Zeron
75 ARNOLD
Arnold
N 5 25
8 8
Hewes
HEWES 60
35
7 3 4
Super Zeron
WASH 40
75 Shelf S
4 75
BURN
4 Rock-
Rite 40
Transshipment Problem: Example
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$8 Arnold Zeron N 75 0 5 2 2
$C$8 Arnold Zeron S 0 2 8 1E+30 2
$B$9 Supershelf Zeron N 0 4 7 1E+30 4
$C$9 Supershelf Zeron S 75 0 4 2 1E+30
$I$8 Zeron N Zrox 50 0 1 3 6
$J$8 Zeron N Hewes 25 0 5 2 2
$K$8 Zeron N Rockrite 0 3 8 1E+30 3
$I$9 Zeron S Zrox 0 3 3 1E+30 3
$J$9 Zeron S Hewes 35 0 4 2 2
$K$9 Zeron S Rockrite 40 0 4 3 10
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$14 Zeron N 0 5 0 0 75
$D$15 Zeron S 0 6 0 0 25
$D$8 Arnold 75 0 75 1E+30 0
$D$9 Supershelf 75 -2 75 25 0
$I$10 Zrox 50 6 50 0 50
$J$10 Hewes 60 10 60 0 25
$K$10 Rockrite 40 10 40 0 25
Transshipment Transformed into
Transportation Problem
Cost Table
Zeron N Zeron S Zrox Hewes Rockrite
Arnold 5 8 1000 1000 1000
Supershelf 7 4 1000 1000 1000
Zeron N 0 1000 1 5 8
Zeron S 1000 0 3 4 4
`