L22 - Iterative Computations of The Transportation Algorithm
L22 - Iterative Computations of The Transportation Algorithm
of the Transportation
algorithm
Iterative computations of the Transportation algorithm
After determining the starting BFS by any one of the
three methods discussed earlier, we use the following
algorithm to determine the optimum solution
Step1: Use the Simplex optimality condition to
determine the entering variable as a current non-basic
variable that can improve the solution. If the
optimality condition is satisfied by all non-basic
variables, the current solution is optimal and we stop.
Otherwise we go to Step 2.
Step 2. Determine the leaving variable using the
Simplex feasibility condition. Change the basis
and go to Step 1.
Demand 3 3 2 2
Demand 3 3 2 2
Demand 3 3 2 2
Demand 3 3 2 2
v3=6 u2= -9
Thus the closed loop is
(1,4) (1,2) (2,3) (3,4) (1,4)
Thus will become 2 and in the process both the
basic variables x12 and x32 will become
simultaneously zero. Since only one of them should
leave the basis we make x32 leave the basis and
keep x12 in the basis but with value zero. Also x32
becomes 3. Thus the transportation cost reduces by
1*2+4*2=10 and we say third iteration is over. The
resulting new tableau is on the next slide.
Destination
Start of Iteration 4 Total Cost =32
v1=3 v2=7 v3=6 v4=4 Supply
3 7 6 4
S u1=0 3 0 0 2 5
o
u 2 4 3 2
u2= -3 2 2
r -2 0 -1
c 4 3 8 5
u3= -4 3 3
e -5 -6 -5
Demand 3 3 2 2
1 1 2 2
Column
Penalties 1 1 - M-3
1 1 - -
- 1 - -
Total shipping cost = 240
Destination
Starting Tableau Total Cost =240
v1=2v2=3 v3=3 v4=3 Supply
1 2 1 5
S u1=-2 20 20
o -1 -1 -4
u 3 4 5 M
u2= 1 30 10 40
r -1 4-M
c 2 3 3 3
u3= 0 10 0 20 30
e 0
Demand 30 20 20 20
Demand 20 5 30 80
5
2 3 2 2
1 - 2 2
- - 2 2
- - 3 5
Destination
v1= -9 v2= -7 v3= -5 v4= -7
u1= 0 -8 -7 -5 -2
S -1 60 0 -5
o u2= 4 -5 -2 -1 -3
u 40 -5 0 40
r -6 -4 -3 -5
u3= 2 20 20
c -1 -9
e M M 0 0
u4= 5 60
-4-M -2-M -2
1 1 1 1 0
1 1 4 2 -
1 1 - 2 -
Destination
Starting Tableau
v1=5 v2=2 v3=3 v4=4 v5=0 Supply
S 4 1 2 6 0
o u1= -1 1 1 2
0 -3 -1
u
6 4 3 5 0
r u2= 0 2 2
c -1 -2 0 -1
e 5 2 6 4 0
2
0
u3= 0 1 0 1
-3
Demand 1 1 1 1 2