Docsity

Moving Towards Optimality-Operation Research-Handouts, Lecture notes of Operational Research

Toggle sidebar
bg1
MOVING TOWARDS OPTIMALITY
The rationale behind optimality
Given an initial non-degenerate basic feasible solution, a question may arise as to how we can find a
successively better basic feasible solution. This means that we have to select an entering variable, a leaving basic
variable and identify the corresponding solution. In the transportation model, selecting an entering variable means
selecting a new cell in which to make a non-zero allocation in the transportation matrix. The principle of selecting
the variable which improves the value of the objective function (minimizes the total transportation cost), at the
fastest rate is still valid. So we select an unoccupied cell and make a unit allotment, so that the cost of transportation
will decrease by the greatest amount.
To illustrate, suppose that in the example 4.1 we choose arbitrarily the cell (B, P) which is unoccupied and
make + 1 allotment in this cell. This new allocation automatically violates the supply situation and demand
requirements of the origin B and destination P. So changes are required in other cells to restore feasibility. This
necessitates a reallocation in the cells to restore feasibility. This necessitates a reallocation in the cells (B, P), (A, P),
(A, Q) and (B, Q). The row total and column total will be unaltered. This idea is illustrated in tables 17 to 19.
Table 17
P
Q
R
A
B
C
5
7
8
4
4
6
6
7
7
Unit cost of transportation
Table 18
P
R
A
65
70
B
30
C
43
50
65
42
43
Table 19
P
Q
R
A
B
C
65-1
5+1
70
1
30-1
30
7
43
50
65
42
43
Changed allotment
The unit costs in the cells (B, P), (A, P), (A, Q) and (B, Q) are 4, 5, 7, 4 respectively (refer table 17). The
total change in the total cost will be 4 - 5 + 7 - 4 = + 2. We see that this arbitrary unit allotment to cell (B, P)
increases the transportation cost by rupees 2. Hence an allocation to the cell (B, P) is not recommended.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Moving Towards Optimality-Operation Research-Handouts and more Lecture notes Operational Research in PDF only on Docsity!

MOVING TOWARDS OPTIMALITY

The rationale behind optimality Given an initial non-degenerate basic feasible solution, a question may arise as to how we can find a successively better basic feasible solution. This means that we have to select an entering variable, a leaving basic variable and identify the corresponding solution. In the transportation model, selecting an entering variable means selecting a new cell in which to make a non-zero allocation in the transportation matrix. The principle of selecting the variable which improves the value of the objective function (minimizes the total transportation cost), at the fastest rate is still valid. So we select an unoccupied cell and make a unit allotment, so that the cost of transportation will decrease by the greatest amount.

To illustrate, suppose that in the example 4.1 we choose arbitrarily the cell (B, P) which is unoccupied and make + 1 allotment in this cell. This new allocation automatically violates the supply situation and demand requirements of the origin B and destination P. So changes are required in other cells to restore feasibility. This necessitates a reallocation in the cells to restore feasibility. This necessitates a reallocation in the cells (B, P), (A, P), (A, Q) and (B, Q). The row total and column total will be unaltered. This idea is illustrated in tables 17 to 19.

Table 17

P Q R

A

B

C

Unit cost of transportation

Table 18

P Q R

A 65 5 70

B 30 30

C 7 43 50

Table 19

P Q R

A

B

C

Changed allotment

The unit costs in the cells (B, P), (A, P), (A, Q) and (B, Q) are 4, 5, 7, 4 respectively (refer table 17). The total change in the total cost will be 4 - 5 + 7 - 4 = + 2. We see that this arbitrary unit allotment to cell (B, P) increases the transportation cost by rupees 2. Hence an allocation to the cell (B, P) is not recommended.

This procedure is repeated by choosing some other unoccupied cell for allocation. This requires corresponding changes in the allocation in the occupied cells to restore feasibility and calculation of the marginal cost. If, by this procedure, we get a +ve value, it indicates that the total cost is not decreasing but increasing.

Consider the objective function to minimize,

m (^) n

ij ij i (^) j

Z c x

and the restrictions as

1

1

for = 1,2, , m

0 for j = 1,2, , n

0

n

i ij j

m

j ij i

x i

b x

a

 

Multiply each of these equations by a number and add this multiple to the objective function. This resultant can be used to eliminate the basic variable. Let us represent the multiples by ui ( i = 1, 2, ..., m ) and vj = ( j = 1, 2, ..., n ) respectively for rows and columns. These multipliers are called the simplex multipliers.

Therefore,

(^1 1 )

(^1 )

1 1 1 1

m (^) n m n

ij (^) ij i i ij i (^) j i j

n (^) m

j j ij j (^) i

m (^) n m n

ij i j (^) ij i i j j i (^) j i i

c x u a x

v b x

c u v x u a v b

Z

 (^)   

 (^) 

 (^)   

    ^  

  ^   

Thus in order to have a zero coefficient (for a basic variable) it is necessary that

STEP 1 : Write the matrix of allotment found by NWC rule or by Vogel's Approximation Method. Check for conditions for optimality (i.e.) there must be (m + n - 1) alloted cells and all of them must be in independent positions. If these two conditions are satisfied, proceed to step 2.

STEP 2: Write the matrix of the cost of the alloted cells.

STEP 3: Determine a set of ( m + n ) numbers,

ui , i = 1, 2, ..., m vj , j = 1, 2, ..., n

called simplex multipliers such that for each occupied cell (r, s).

crs = ur + vs

where crs is the individual cost of an allocation from origin r to destinations s.

This can be done by arbitrarily assigning, any one of the ui's or vj's , any value (say 0) and satisfying the above equation for all the occupied cells.

STEP 4 : Write the matrix of cost elements for all unoccupied cells.

STEP 5 : Find ( ur + vs ) for each unoccupied cell and form the matrix of ( ui + vj ) for each of the unoccupied cell.

STEP 6 : Calculate cij - ( ui + vj ) for each of the unoccupied cells. This is the matrix of cell evaluation or square evaluation. If the value of cell evaluation is positive, it indicates that the solution already found is optimal. If it is negative there is a scope for relocation of items so that the total cost of transportation can be made minimum. If there are many negative entries in the matrix of cell evaluation, select the cell yielding the most negative entry as the entering variable. This requires reallotment of the allocation matrix. By including this cell for occupation, the allocations of the other occupied cells require a revision to fulfill the row and column restrictions. If the value of cell evaluation is zero, then this indicates that there exists another solution to the transportation problem without reducing the total cost.

Consider the example whose cost matrix is as in table 21

Table 21

Origin Destination Supply P Q R A B C

4 4 6 30 Cost Matrix 6 7 7 50 Demand 65 42 43

We have the allocation as per NWC rule as in table 22

Table 22

Origin Destination Supply P Q R A B C

30 30 Allotment Matrix 7 43 50

Next we write the matrix of the cost of alloted cells and using explained below and shown in table 23

Table 23

Origin Destination ui P Q R A B C

5 7 - u 1 0

  • 4 - u 2 -3 Finding ui, vj using the
  • 7 7 u 3 0 cost of the occupied cells vj v 1 v 2 v 3 5 7 7

To determine ui's and vj's we arbitrarily assign one of the multipliers say u 3 the value 0. Then it follows that v 2 = 7 because we have the equation

u 3 + v 2 = 7

Since u 3 + v 3 = 7

we have v 3 = 7

Similarly using the cost elements of the occupied cells and with the equation crs = ur + vs , we can find the values of ui's and vj's.

The unoccupied (un-allotted) cells are indicated by placing dots in the cells.

Next we write the matrix of the cost elements cij of the unoccupied cells as in table 24.

Table 24

Origin Destination P Q R A B C

4 6 cost of 6 unoccupied cells

Table 27

Warehouse Factory D E F Supply A B C

There are five allotments. As per the optimality test conditions there must be (3 + 3 - 1) cells occupied and we see that this condition is satisfied. Secondly all the cells should be in independent positions.

To test the cells whether they are independent or not, we take an occupied cell and alter the allotment in that cell by one unit. This requires the change in other occupied cells without violating the constraints. Or if we start from one occupied cell and we do come back to the starting cell, then the cells are in dependent positions. In the above problem all the cells are independent.

Having satisfied the two conditions we proceed to the optimality test as described above and are carried in tables 28 to 33 Table 28

Factory Warehouse D E F A 5 1 7 B 6 4 6 C 3 2 5 Cost Matrix

Table 29

Factory Warehouse D E F A 10 B 35 20 25 C 15 Allotment Matrix

Table 30

Factory Warehouse D E F ui A 5 - - u 1 0 B 6 4 6 u 2 1 C - - 5 u 3 0 vj v 1 v 2 v 3 5 3 5 Evaluation ui and vj

Table 31

Factory Warehouse D E F A 1 7 B C 3 2

Cost of un-allotted cells

Table 32

Factory Warehouse D E F A 3 5 B C 5 3

( u 1 + vj ) for un-allotted cells

Table 33

Factory Warehouse D E F A -2 2 B C -2 -

Cell Evaluation

In the matrix of cell evaluation, there are three cells (A, E), (C, D), and (C, E) having negative entries indicating the scope of minimizing the cost by bringing any of these cells for occupation. But the most negative

Table 37

Factory Warehouse D E F A 5 1 7 B 6 4 6 C 3 2 5

Cost Matrix

Table 38

Factory Warehouse D E F A 10 B 20 20 40 C 15 Allotment Matrix

Table 39

Factory Warehouse D E F ui A B C

vj 6 4 6 Cost of alloted cells & Evaluation of ui and vj

Table 40

Factory Warehouse D E F A 1 7 B C 2 5 Cost of unalloted cells

Table 41

Factory Warehouse D E F A 3 5 B C 1 3 ( ui + vj ) for unalloted cells

Table 42

Factory Warehouse D E F A -2 2 B C 1 2 Cell Evaluation

Table 43

Factory Warehouse D E F A 10 B 30 10 40 C 15

Reallotment

Vogel's Approximation Method for maximization problem

The VAM method can be used in a maximization problem making a slight modification. The required modification is to multiply all the elements in the (profit) matrix by -1, with the concept that minimizing the negative of a function maximizes the original function.

Consider the example given below.