TP VAM Solved Examples
TP VAM Solved Examples
• This method also takes costs into account in allocation. Five steps are
involved in applying this heuristic:
• Step 1: Determine the difference between the lowest two cells in all rows and
columns, including dummies.
• Step 2: Identify the row or column with the largest difference. Ties may be
broken arbitrarily.
• Step 4: Stop the process if all row and column requirements are met. If not,
go to the next step.
• Step 5: Recalculate the differences between the two lowest cells remaining in
all rows and columns. Any row and column with zero supply or demand
should not be used in calculating further differences.
One study found that VAM yields an optimum solution in 80 percent of the
sample problems tested.
Destination
Origin 1 2 3 4 Supply
1 20 22 17 4 120
2 24 37 9 7 70
3 32 37 20 15 50
Demand 60 40 30 110 240
Solution.
17 - 4 = 13, 9 - 7 = 2, 20 - 15 = 5
24 - 20 = 4, 37 - 22 = 15, 17 - 9 = 8, 7 - 4 = 3
Table 1
Destination
Origin 1 2 3 4 Supply Penalty
1 20 17 4 120 80 13
2 24 37 9 7 70 2
3 32 37 20 15 50 5
Demand 60 40 30 110 240
Penalty 4 15 8 3
The highest penalty occurs in the second column. The minimum cij in this column is c12 (i.e.,
22). So x12 = 40 and the second column is eliminated. The new reduced matrix is shown below:
Table 2
The highest penalty occurs in the first row. The minimum cij in this row is c14 (i.e., 4). So x14 = 80
and the first row is eliminated. The new reduced matrix is shown below:
Table 3
The highest penalty occurs in the second column. The minimum cij in this column is c23 (i.e., 9).
So x23 = 30 and the second column is eliminated. The reduced matrix is given in the following
table.
Table 4
The following table shows the computation of penalty for various rows and columns.
Destination
Origin 1 2 3 4 Supply Penalty
1 20 17 120 13 13 - - - -
2 37 70 2 2 2 17 24 24
3 37 20 15 50 5 5 5 17 32 -
Demand 60 40 30 110 240
4 15 8 3
4 - 8 3
8 - 11 8
Penalty
8 - - 8
8 - - -
24 - - -
22 X 40 + 4 X 80 + 24 X 10 + 9 X 30 + 7 X 30 + 32 X 50 = 3520 units.
Destination
Origin 1 2 3 Supply
1 2 7 4 5
2 3 3 1 8
3 5 4 7 7
4 1 6 2 14
Demand 7 9 18 34
Solution.
Table 1
Destination
1 7 4 5 2
2 3 3 1 8 2
3 5 4 7 7 1
4 1 6 2 14 1
Demand 72 9 18 34
Penalty 1 1 1
The highest penalty occurs in the first row. The minimum cij in this row is c11 (i.e., 2). Hence, x11
= 5 and the first row is eliminated.
Now again calculate the penalty. The following table shows the computation of penalty for
various rows and columns.
Final table
Destination
1 7 4 5 2 - - - - -
2 3 8 2 2 2 2 3 3
3 5 7 7 1 1 3 3 4 -
4 6 14 1 1 4 - - -
Demand 7 9 18 34
1 1 1
2 1 1
- 1 1
Penalty
- 1 6
- 1 -
- 3 -
5 X 2 + 2 X 3 + 6 X 1 + 7 X 4 + 2 X 1 + 12 X 2 = 76 units.