Ma 321 22 Slides 7 Removed
Ma 321 22 Slides 7 Removed
j =1 2 3 4 5 6 ai
i =1 7
2 17
3 5
4 24
dj 15 10 9 3 8 8
Let us first start with cell (2, 3) as a basic cell and then try
to construct a BFS of the above problem.
Since the minimum of a2 and d3 is d3 = 9, we take x23 = 9.
Delete the third column and change a2 from 17 to
a20 = 17 − 9 = 8.
In the reduced array choose a basic cell say (2, 4). Take
x24 = 3 since 3 = min{d4 = 3, a20 = 8}. Proceeding in this
way we get the following BFS.
j =1 2 3 4 5 6ai
i =1 [7] 7
2 [9] [3] [5] 17
3 [3] [2] 5
4 [15] [3] [6] 24
dj 15 10 9 3 8 8
North West Corner Rule for Initial BFS
ai
40 40
30
60
dj 50 20 40 20
ai
40 40
10 30
60
dj 50 20 40 20
North West Corner Rule
ai
40 40
10 20 30
60
dj 50 20 40 20
ai
40 40
10 20 30
0 60
dj 50 20 40 20
Delete the first column of the array and repeat the above
process by starting the North-West corner of the reduced
array. The following tables shows the various steps
following the North-West corner rule till a BFS is obtained.
North West Corner Rule
ai
40 40
10 20 30
0 40 60
dj 50 20 40 20
ai
40 40
10 20 30
0 40 20 60
dj 50 20 40 20
θ -loops
1 2 3 4
1 ◦ ◦
2 ◦ ◦
3
4
1 2 3 4
1 ◦ ◦
2 ◦ ◦
3 ◦ ◦
4 ◦ ◦
1 2 3 4
1 ◦ ◦
2 ◦ ◦
3 ◦
4
1 2 3 4
1 ◦ ◦
2 ◦ ◦
3 ◦ ◦
4 ◦ ◦
0 0 −5 40
0 0 0 30
−1 0 −3 30
30 50 20
Since all the cij − ui − vj values are not non negative, the
above table is not optimal.
The most negative value of cij − ui − vj is in cell (1, 3), so
this will be the entering variable of the new BFS.
The unique θ- loop in B ∪ {(1, 3)} is given by
{(1, 2), (2, 2), (2, 3), (1, 3)}.
Since (1, 3) is the entering variable, so if we give +θ
allocation to cell (1, 3) ( or value of x13 = +θ ) then
x12 = 10 − θ, x22 = 10 + θ, x23 = 20 − θ.
x13 = 10 is in the basis of the new BFS and x12 leaves the
basis.
New B = {(1, 1), (1, 3), (2, 2), (2, 3), (3, 2)} and the values
of the basic variables are given by:
x11 = 30, x13 = 10, x22 = 20, x23 = 10, x32 = 30.
If we take u1 = 0, then solving for cij − ui − vj = 0 for the
basic cells, that is by solving the 5 equations given below,
c11 − u1 − v1 = 0, where c11 =2
c13 − u1 − v3 = 0, where c13 =1
c23 − u2 − v3 = 0, where c23 =5
c22 − u2 − v2 = 0, where c22 =4
c32 − u3 − v2 = 0, where c32 = 5.
we get
v1 = 2, v2 = 0, v3 = 1, u2 = 4, u3 = 5.
c21 − u2 − v1 = 1 − 4 − 2 = −5, c12 − u1 − v2 = 5 − 0 − 0 = 5,
c31 − u3 − v1 = 1 − 5 − 2 = −6,
c33 − u3 − v3 = 3 − 5 − 1 = −3.
The following table gives the cij − ui − vj values for the
above BFS with
B = {(1, 1), (1, 3), (2, 3), (2, 2), (3, 2)}.
0 5 0 40
−5 0 0 30
−6 0 −3 30
30 50 20
0 −1 0 40
1 0 6 30
0 0 3 30
30 50 20