Professional Documents
Culture Documents
cij
si dj
LP Formulation (balanced TP)
Decision Variables:
xij : Quantity shipped from source i to destination j.
Minimize Z = i j cij.xij
subject to: j xij = si i = 1 ,..., m
i xij = dj j = 1, ..., n
xij 0 i = 1 ,..., m j = 1, ..., n
cij , xij
si dj
• A general transportation model has two kinds of
constraints:
– “<=“ type capacity constraints (j xij <= si)
– “>=” demand constraints (i xij >= dj)
Minimize Z = 80 x11 + 215 x12 + 100 x21 + 108 x22 + 102 x31 + 68 x32
s.t.
Supply constraints:
x11 + x12 = 1000
x21 + x22 = 1500
x31 + x32 = 1200
Demand constraints:
x11 + x21 + x31 = 2300
x12 + x22 + x32 = 1400
Non-negativity constraints:
x11, …, x32 >= 0
Lets now see the “A-matrix”
X11 X12 X21 X22 X31 X32
1 1 0 0 0 0
0 0 1 1 0 0
0 0 0 0 1 1
1 0 1 0 1 0
0 1 0 1 0 1
Observe:
A-matrix has only values 0 and 1.
Each column has only two ones.
DEN
D.T 2300
.
1300
1200 N.O.
Cij = ? MI
1400
200 dummy
P1
Minimize Z = 80 x11 + 215 x12 + 100 x21 + 108 x22 + 102 x31 + 68 x32 + 0 x41 + 0 x42
s.t.
Supply constraints:
x11 + x12 = 1000
x21 + x22 = 1300
x31 + x32 = 1200
x41 + x42 = 200 //dummy supply node
Demand constraints:
x11 + x21 + x31 + x41 = 2300
x12 + x22 + x32 + x42 = 1400
Non-negativity constraints:
x11, …, x32, x41, x42 >= 0
Another unbalanced problem: P2
Destinations (demand points)
Supply points Denver Miami Supply capacity
(units)
Los Angeles 80 215 1000
Detroit 100 108 1500
New Orleans 102 68 1200
Demand (units) 1900 1400
1200 N.O.
dummy 400
Non-negativity constraints:
x11, …, x32, x13, x23, x33 >= 0
Going back to specialized algorithm
• In a TP with m sources, n destinations: we have
(m + n ) equality constraints.
• How many basic variables? (m+n) ?
• Are all constraints independent? Or, some redundancy is there?
Note: If we ignore any one constraint, it will automatically be satisfied
if the rest are satisfied.
Source = 3
Destination = 4
Total supply = 15+25+10 = 50
Total demand = 5+15+15+15 = 50
x11 = 5;
x12 = 10;
x22 = 5;
x23 = 15;
x24 = 5;
x34 =10
Z = 5*10+10*2+5*7+15*9+5*20+10*18 = 520
Use of Duality Theory in TP algorithm
Primal (balanced TP) Dual
Minimize i j cij.xij Maximize i ui .si + j vj dj
subject to: dual vars. subject to: dual vars.
j xij = si i = 1 ,..., m (ui) ui + vj <= cij (xij)
i xij = dj j = 1, ..., n (vj) i = 1 ,..., m
j = 1, ..., n
xij 0 i = 1 ,..., m ui, vj unrestricted
j = 1, ..., n i = 1 ,..., m ; j = 1, ..., n
In Dual problem, when the “<=“ type constraints become binding, their
shadow prices become positive.
Shadow prices of Dual constraints => xij = Primal’s decision variables!
We are only interested in xij > 0 i.e., basic variables of Primal. (non-basic xij’s
are zero anyway.)
Optimality test of TP
So, at optimality:
ui + vj = cij for all (i,j) where xij are basic variables
ui + vj < cij for all (i,j) where xij are nonbasic variables
Source 3 4 14 16 18 (10) 10
Demand 5 15 15 15
Z = 10 * 5 + 2 * 10 + 7 * 5 + 9 * 15 + 20 * 5+ 18 * 10 = 520
• Is this solution optimal? A 2-step verification
process:
– Step1: Calculate ui and vj values for all “basic cells”
C11 = 10 = u1 + v1
C12 =2 = u1 + v2
C22 =7 = u2 + v2
C23 =9 = u2 + v3
C24 = 20 = u2 + v4
C34 = 18 = u3 + v4
Set u2 = 0.
u1 + v3 - C13 = -5 + 9 – 20 = -16
u1 + v4 - C14 = -5 + 20 – 11 = 4 (POSITIVE)
u2 + v1 - C21 = 0 + 15 -12 = 3 (POSITIVE)
u3 + v1 - C31 = -2 + 15 – 4 = 9 (POSITIVE)
u3 + v2 - C32 = -2 + 7 – 14 = -9
u3 + v3 - C33 = -2 + 9 -16 = -9
Just like simplex, choose the most +ve entry as the “entering variable” for next
iteration.
Demand 5 15 15 15
Source 1 10 2 (15) 20 11 15
Demand 5 15 15 15
C12 =2 = u1 + v2
C22 =7 = u2 + v2
C23 =9 = u2 + v3
C24 = 20 = u2 + v4
C31 =4 = u3 + v1
C34 = 18 = u3 + v4
Set u2 = 0.
u1 + v1 - C11 -9
u1 + v3 - C13 -16
u1 + v4 – C14 +4
u2 + v1 – C21 -6
u3 + v2 – C32 -9
u3 + v3 - C33 -9
Demand 5 15 15 15
u1 + v1 - C11 = -13
All <= 0
u1 + v3 - C13 = -16
u2 + v1 – C21 = -10 OPTIMALITY REACHED.
u2 + v4 – C24 = -4
u3 + v2 – C32 = -5
u3 + v3 - C33 = -5