Professional Documents
Culture Documents
Chapter-Three
Transportation and Assignment Problems
3.1 Introduction
The transportation model deals with a special class of linear programming problem in which the
objective is to transport a homogeneous commodity from various origins or factories to different
destinations or markets at a total minimum cost.
Note: Vogel’s Approximation Method generally gives a solution closer to the optimum
solution. Hence, it is preferred over other methods.
A. North-West Corner Method: Start from the left hand side top corner or cell and make
allocations depending on the availability and requirement constraint. If the availability
constraint is less than the requirement constraint, then for that cell make allocation in units
which is equal to the availability constraint. In general, verify which is the smallest among
the availability and requirement and allocate the smallest one to the cell under question. Then
proceed allocating either sidewise or downward to satisfy the rim requirement. Continue this
until all the allocations are over.
Once all the allocations are over, i.e., both rim requirement (column and row i.e., availability
and requirement constraints) are satisfied, write allocations and calculate the cost of
transportation.
The Steps of North-West Corner Method are:
1) Allocate as much as possible to the cell in the upper left-hand corner, subject to
the supply and demand constraints.
2) Allocate as much as possible to the next adjacent feasible cell.
3) Repeat step-2 above until all rim requirements has been met.
B. Least Cost Method: The least cost method is also known as the Matrix Minimum Method or
Inspection Method. It starts by making the first allocation to the cell for which the shipping
cost (transportation cost) per unit is lowest of the other cost. The row or column for which
the capacity is exhausted or requirement is satisfied is removed from the transportation table.
The process is repeated with the reduced matrix till all the requirements are satisfied.
If there is a tie for the lowest cost cell while making any allocation, the choice may be made
for a row or a column by which maximum requirement is exhausted. If there is a tie in
making this allocation as well, then we can arbitrarily choose a cell for allocation.
DDU CBE OR CH-3
Now Let Us Compare the Three Methods of Getting Basic Feasible Solution:
A. North – West Corner Method:
1. The allocation is made from the left hand side top corner irrespective of the
cost of the cell.
2. As no consideration is given to the cost of the cell, naturally the total
transportation cost will be higher than the other methods.
3. It takes less time. This method is suitable to get basic feasible solution
quickly.
DDU CBE OR CH-3
Required: Based on the information of the above transportation table, find the basic feasible
solution by using the following methods:
A. Northwest Corner Method (NWCM)
B. Least Cost Method (LCM) and
DDU CBE OR CH-3
Once the initial basic feasible solution is determined for transportation problem, the next duty is
performing the optimality test to find whether the obtained feasible solution is optimal or not.
This can be done by two methods.
1. Stepping Stone Method, and
2. Modified Distribution Method, (MODI)
These methods reveal whether the initial basic feasible solution is optimal or not. They also
improve the solution until the optimal solution is obtained. The Stepping Stone method is applied
to a problem of small dimension as its application to a problem of large dimension is quite
tedious and cumbersome. The MODI method is usually preferred over the Stepping Stone
method.
Conditions for Performing Optimality Test
An optimality test can be applied to that feasible solution which satisfies the following
conditions:
a. It contains exactly (m + n−1) allocations where m and n represent the number of
rows and columns, respectively, of the transportation table.
To give an optimality test to the solution obtained, we have to find the opportunity cost of empty
cells. As the transportation problem involves decision making under certainty, we know that an
optimal solution must not incur any positive opportunity cost. Thus, we have to determine
whether any positive opportunity cost is associated with a given progarmme, i.e., for empty cells.
Once the opportunity costs of all empty cells are negative, the solution is said to be optimal. In
case anyone cell has got positive opportunity cost, then the solution is to be modified. The
Stepping stone method is used for finding the opportunity costs of empty cells. Every empty cell
is to be evaluated for its opportunity cost.
DDU CBE OR CH-3
2. Evaluate all unoccupied cells for the effect of transferring one unit from an occupied cell to
the unoccupied cell as follows:
b. Starting from this cell, form a closed path (or loop) through at least three
occupied cells. The direction of movement is immaterial because the result will
be the same in both directions. Note that except for the evaluated cell, all cells at
the corners of the loop have to be occupied.
c. At each corner of the closed path, assign plus (+) and minus (−) sign
alternatively, beginning with the (+) sign for the unoccupied cell to be
evaluated.
d. Compute the net change in cost with respect to the costs associated with each cell
traced in the closed path.
e. Repeat steps 2(a) to 2(d) until the net change in cost has been calculated for all
occupied cells.
3. If all net changes are positive or zero, an optimal solution has been arrived at. Otherwise go
to the next step.
4. If some net changes are negative, select the unoccupied cell having the most negative net
change. If two negative values are equal, select the one that results in moving more units into
the selected unoccupied cell with the minimum cost.
5. Assign as many units as possible to this unoccupied cell.
6. Go to Step 2 and repeat the procedure until all unoccupied cells are evaluated and the value
of net change, i.e., net evaluation is positive or zero.
DDU CBE OR CH-3
The Modified Distribution Method (MODI) is an improved form of the Stepping Stone Method
for obtaining an optimal solution of a transportation problem. The difference between the two
methods is that in the Stepping Stone Method, closed loops are drawn for all unoccupied cells for
determining their opportunity costs. However, in the MODI Method, the opportunity costs of all
the unoccupied cells are calculated and the cell with the highest negative opportunity cost is
identified without drawing any closed loop. Then only one loop is drawn for the highest negative
opportunity cost.
The Steps of Modified Distribution (MODI) Method:
1) Develop an initial solution using one of the three methods available (Northwest Corner
Method, Modified Distribution (MODI) Method or Vogel’s Approximation Method).
2) Compute Ui and Vj values for each row and column by applying the formula Ui + Vj = Cij
.to each cell that has an allocation.
3) Compute the cost change, Kij, for each empty cell using Kij = Cij – (Ui + Vj).
I. If all Δij 0, an optimal solution has been arrived at.
II. If some of Δijs are negative, the current solution is not optimal. Then select the
cell having the most negative Δij and tick it.
4) Allocate as much as possible to the empty cell that will result in the greatest net decrease
in cost (most negative Kij). Allocate according to the Stepping-Stone Path for the selected
cell.
5) Repeat steps 2 through 4 until all Kij values are positive or zero.
The Modified Distribution (MODI) Method of evaluating a transportation problem solution for
optimality involves the use of index numbers that are established for the rows and columns.
These are based on the unit cost of the occupied cells.
Example 4: A company is spending 1000 on transportation of its units from three plants to four
distribution centers. The availability of unit per plant and requirement of units per distribution center,
with unit cost of transportation are given as follows:
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 30 50 12 7
P2 70 30 40 60 10
P3 40 10 60 20 18
35
Requirement 5 8 7 15 35
Required: Perform the following
A. Find the Initial Basic Feasible Solution Using One of the Three Methods.
B. Test the Optimality of the Solution Using Stepping Stone Method.
C. Test the Optimality of the Solution Using Modified Distribution Method.
Solution:
A) The Initial Basic Feasible Solution is (By applying Northwest Corner Method):
Initial Feasible Solution Obtained by Using Northwest Corner Method
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 30 50 12 7 2
5 2 0
P2 70 30 40 60 10 4
6 4 0
P3 40 10 60 20 18 15
3 15
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
P1D3
+ -
50 40
30 30
+80 - 70
Difference = + 10
DDU CBE OR CH-3
Interpretation: If we use this path (P1D3) for reallocation the total cost would increase
by $ 10 per unit. Hence, this path would be undesirable.
2. Loop for Unoccupied Cell (P1D4)
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 (-) 30 50 (+) 12 (+) 7 2
5 2 0
P2 70 30 40 60 10 4
6 (+) 4 (-) 0
P3 40 10 60 20 18 15
3 (+) 15 (-)
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
P1D4
+ -
12 20
60 30
30 30
+ 102 - 80
Difference = + 22
Interpretation: If we use this path (P1D4) for reallocation the total cost would increase
by $ 22 per unit. Hence, this path would be undesirable.
DDU CBE OR CH-3
P2D1
+ -
70 30
30 19
100 49
Difference = + 51
Interpretation: If we use this path (P2D1) for reallocation the total cost would increase
by $ 51 per unit. Hence, this path would be undesirable.
4. Loop for Unoccupied Cell (P2D4)
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 30 50 12 7 2
5 2 0
P2 70 30 40 60 10 4
6 4 (-) (+) 0
P3 40 10 60 20 18 15
3 (+) 15 (-)
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
DDU CBE OR CH-3
P2D4
+ -
60 20
60 40
120 60
Difference = + 60
Interpretation: If we use this path (P2D4) for reallocation the total cost would increase
by $ 60 per unit. Hence, this path would be undesirable.
5. Loop for Unoccupied Cell (P3D1)
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 (-) 19 (+) 30 50 12 (+) 7 2
5 2 0
P2 70 (-) 30 (+) 40 60 10 4
6 4 0
P3 40 10 60 20 18 15
(+) 3 (-) 15
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
P3D1
+ -
40 60
40 30
30 19
+ 110 - 109
Difference = + 1
Interpretation: If we use this path (P3D1) for reallocation the total cost would increase
by $ 1 per unit. Hence, this path would be undesirable.
DDU CBE OR CH-3
P3D2
+ -
10 60
40 30
50 90
Difference = - 40
Interpretation: The negative value for cell P3D2 indicates an improved solution is
possible. For each unit can shift into that cell (P3D2), the total cost will decrease by $ 40
per unit. Hence, this path would be preferable for reallocation.
The (+) signs in the path indicate units to be added whereas the (-) signs indicate units to
be subtracted.
The limit of subtraction is the smallest quantity in a negative position along the cell path.
In this case there are two negative quantities, 6 and 3, because 3 is the smallest quantity,
that amount will be shifted in the following manner:
Subtract 3 units from each cell on the path with a (-) sign, and add 3 units
to the quantity of each cell with a (+) sign in it. The result is shown in the
following table.
DDU CBE OR CH-3
Improved or Reallocation Table (by making new allocation for the unoccupied cell P3D2)
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 30 50 12 7
5 2
P2 70 30 40 60 10
3 7
P3 40 10 60 20 18
3 15
35
Requirement 5 8 7 15 35
When cell evaluations are positive or zero, an optimal solution has been found. If one or more is
negative, the cell with the largest negative value should be brought into solution because that
route has the largest potential for improvement per unit. In this case, it is found that cell P3D2
had an evaluation of (-40), which represented an improvement potential of $40 per unit. Hence,
an improvement solution is possible.
Loop for Unoccupied Cell (P3D2)
Centers (D)
Plants D1 D2 D3 D4 Availability
P1 19 30 50 12 7 2
5 2 0
P2 70 (-) 30 40 (+) 60 10 4
6 4 0
P3 40 10 60 20 18 15
(+) 3 (-) 15
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
In this case there are two negative quantities, 6 and 3, because 3 is the smallest quantity,
that amount will be shifted in the following manner:
DDU CBE OR CH-3
Subtract 3 units from each cell on the path with a (-) sign, and add 3 units
to the quantity of each cell with a (+) sign in it. The result is shown in the
following table.
Distribution Plan after Reallocation of 3 Units to cell P3D2
Centers K1 = 19 K2 = 30 K3 = 40 K4 = 40
D1 D2 D3 D4 Availability
Plants
R1 = 0 P1 19 30 50 12 7 2
5 2 0
R2 = 0 P2 70 30 40 60 10 4
3 7 0
R3 = -20 P3 40 10 60 20 18 15
3 15
5 8 6 7 3 15 35
Requirement 0 0 0 0 35
In this case there are two negative quantities, 2 and 15, because 2 is the smallest quantity,
that amount will be shifted in the following manner:
Subtract 2 units from each cell on the path with a (-) sign, and add 2 units
to the quantity of each cell with a (+) sign in it. The result is shown in the
following table.
Cell evaluation:
P1D2 = CC – (RI + CI) = 30 – (0 + 2) = 30 – 2 = 28
P1D3 = CC – (RI + CI) = 50 – (0 + 12) = 50 – 12 = 38
P2D1 = CC – (RI + CI) = 70 – (28 + 19) = 70 – 47 = 23
P2D4 = CC – (RI + CI) = 60 – (28 + 12) = 60 – 40 = 20
P3D1 = CC – (RI + CI) = 40 – (8 + 19) = 40 – 27 = 13
P3D3 = CC – (RI + CI) = 60 – (8 + 12) = 60 – 20 = 40
Since, all values of cell evaluation are positive the solution had been optimal.
TC = (5 x 19) + (2 x 12) + (3 x 30) + (7 x 40) + (5 x 10) + (13 x 20)
= 95 + 24 + 90 + 280 + 50 + 260 = 799
DDU CBE OR CH-3
We can solve this problem using VAM to determine the basic feasible solution and then use the
MODI method to find the optimal solution. We have solved this problem in Example 3. You may
like to try the remaining solution yourself.
2. Degeneracy: It may happen sometimes that the number of occupied cells is less than (m+n-
1). Such a solution is called a degenerate solution. We handle such a situation by
introducing an infinitesimally small allocation say (e) in the least cost and independent cell.
This means that if ‘e’ is added to or subtracted from any quantity, the quantity remains
unaltered, i.e., the value of ‘e’ is nothing but zero. But we do not write ‘0’ in place of ‘e’ as it
is one of the allocations and will not come into counting if it is written as zero. So we write
‘e’ and not zero in its place and count it as one of the allocations.
Test of Degeneracy:
Number of occupied cells must equal (R + C – 1)
Where;
R = Number of rows
C = Number of columns
3. Alternative Optimal Solutions: Such solutions exist if all net-evaluations, i.e., ij= Cij - (ui
+ vj) 0 but one or more of them are equal to zero. To determine the alternative optimal
solution, we tick the cell having zero value of net-evaluation and make a closed loop
beginning from this cell. The transportation allocation might not be the same, yet the total
transportation cost is same.
DDU CBE OR CH-3
Example: Solve the following transportation problem (It has a multiple solution):
To A B C Capacity
From
X 4 2 8 100
Y 5 1 9 200
Z 7 6 3 200
Requirement 50 150 300 500
500
3.5 Maximization Transportation Problem: The data given in the transportation problems may
be such that we have to maximize it. This may be possible if instead of costs, the profits (or
anything else like revenue which needs maximization) are given in the cells. To handle such a
problem, we find the opportunity loss matrix by subtracting the value of each cell from the
largest value chosen from amongst all the given cells. When the value of a cell is subtracted from
DDU CBE OR CH-3
the highest value, it gives the loss of amount caused by not getting the opportunity which would
have given the highest value. The matrix so obtained is known as the opportunity loss matrix. It
is handled in the same way as the minimization problem.
The assignment problem is a special case of the transportation problem, which can be solved
using algorithms that solve transportation problems. But, due to the specifics of the problem,
there are more efficient algorithms to solve it.
Assumption of assignment problems are:
One worker to one job assignment.
One job to one worker assignment.
Objective is minimizing the total cost.
3.6.1. Comparison between Transportation Problem and Assignment Problem
Now let us see what are the similarities and differences between Transportation problem and
Assignment Problem.
d. Both are basically minimization problems. For converting them into maximization
problem same procedure is used.
Differences Transportation Problem:
a. The problem may have rectangular matrix or square matrix.
b. The rows and columns may have any number of allocations depending on the rim
conditions.
c. The basic feasible solution is obtained by northwest corner method or matrix
minimum method or VAM
d. The optimality test is given by stepping stone method or by MODI method.
e. The basic feasible solution must have m + n – 1 allocation.
f. The rim requirement may have any numbers (positive numbers).
g. In transportation problem, the problem deals with one commodity being moved
from various origins to various destinations.
Differences Assignment Problem:
a. The matrix of the problem must be a square matrix.
b. The rows and columns must have one to one allocation. Because of this property,
the matrix must be a square matrix.
c. The basic feasible solution is obtained by Hungarian method or Flood's technique
or by Assignment algorithm.
d. Optimality test is given by drawing minimum number of horizontal and vertical
lines to cover all the zeros in the matrix.
e. Every column and row must have at least one zero. And one machine is assigned
to one job and vice versa.
f. The rim requirements are always 1 each for every row and one each for every
column.
g. Here row represents jobs or machines and columns represent machines or jobs.
3.6.2 Methods of Solving the Assignment Problem
The assignment method is based on minimization of opportunity costs that would result from
potential pairings. There is additional cost that would be incurred if the lowest cost assignment is
not made, either in terms of jobs (i.e., rows) or employees (i.e., columns).
DDU CBE OR CH-3
Row Reduction: We can perform row reduction for each rows by identifying the lowest
cost for each row and, then, subtracting that value from each of the other costs in that row
to obtain job opportunity costs for all job assignments. This is usually referred to as a row
reduction.
The procedure for a row reduction is summarized as follows:
1. Identify the minimum value in each row.
2. Subtract the minimum value in each row from all the values in that row.
3. Use the resulting values to develop a new table.
DDU CBE OR CH-3
Column Reduction: We can perform column reduction for each column by identifying
the lowest cost for each column and, then, subtracting that value from each of the other
costs in that column to obtain job opportunity costs for all job assignments. This is
usually referred to as a column reduction.
The Procedures for column reduction:
1. Identify the lowest-cost value in each column.
2. Subtract the lowest cost value in each column from each of the values in
that column.
3. Use the resulting values to form a new table
Example: In this example we have to assign 5 workers to 5 machines. Each worker causes
different costs for the machines. Our goal is to minimize the total cost in a way that each
machine goes to exactly 1 person and each person works at exactly 1 machine. For
comprehension: Worker 1 causes a cost of 65 for machine 1 and so on....
Machine 1 Machine 2 Machine 3 Machine 4 Machine 5
Worker 1 65 73 63 57 43
Worker 2 67 70 65 58 75
Worker 3 68 72 69 73 55
Worker 4 67 75 70 59 66
Worker 5 71 69 75 57 63
Solution: Here is the cost matrix and the minimum of each row:
Machine 1 Machine 2 Machine 3 Machine 4 Machine 5 Row Minima
Worker 1 65 73 63 57 43 43
Worker 2 67 70 65 58 75 58
Worker 3 68 72 69 73 55 55
Worker 4 67 75 70 59 66 59
Worker 5 71 69 75 57 63 57
DDU CBE OR CH-3
Note: The first three columns of costs have no zero, so we need to use the rule of column
minima.
Step-2: Subtract 8 from the first column, 12 from the second column, and 7 from the
third column.
Machine 1 Machine 2 Machine 3 Machine 4 Machine 5
Worker 1 22-8 = 14 30-12 = 18 20-7 =13 14 0
Worker 2 9-8 = 1 12-12 = 0 7-7 = 0 0 17
Worker 3 13-8 = 5 17-12 = 5 14-7 = 7 18 0
Worker 4 8-8 = 0 16-12 = 4 11-7 = 4 0 7
Worker 5 14-8 = 6 12-12 = 0 18-7 = 11 0 6
Column Min 8 12 7 0 0
Step-4: The lowest uncovered entry is 5, so we subtract 5 from all uncovered entries
in the above table and add to entries which are covered by two lines (at
intersections).
Machine 1 Machine 2 Machine 3 Machine 4 Machine 5
Worker 1 14-5 = 9 18-5 = 13 13-5 = 8 14-5 = 9 0
Worker 2 1 0 0 0 17+5 = 22
Worker 3 5-5 = 0 5-5 = 0 7-5 = 2 18-5 = 13 0
Worker 4 0 4 4 0 7+5 = 12
Worker 5 6 0 11 0 6
Worker 3 0 0 2 13 0
Worker 4 0 4 4 0 12
Worker 5 6 0 11 0 6
Solution: Here the number of rows (3) is less than the number of columns (4), so we have
obligated to add one additional dummy row in order to balance the number of rows with
that of the number of columns.
Row and Column Balanced Table
Job
1 2 3 4
A 15 19 12 16
Machine B 23 21 18 17
C 20 16 11 19
Dummy 0 0 0 0
DDU CBE OR CH-3
C. Undesirable Matches:
Example: Determine the optimal set of pairings given the following cost table. Note that
assignments B-3 is undesirable, as denoted by M in that position.
Job
1 2 3
Machine A 8 7 2
B 1 4 M
C 7 9 3
DDU CBE OR CH-3
Solution:
The first assignment must be: A-2, B-1, and C-3
The alternative assignment should be: A-3, B-1, and C-2
Exercise: A manager has prepared a table that shows the cost of performing each of four jobs by
each of four employees. According to the following table, Job 1 will cost $15 if done by
Employee A, $20 if it is done by Employee B, and so on. The manager has stated that his goal is
to develop a set of job assignments that will minimize the total cost of getting all four jobs done.
It is further required that the jobs be performed simultaneously, thus requiring one job being
assigned to each employee.
Employees
A B C D
1 $15 20 18 24
2 12 17 16 15
Job
3 14 15 19 17
4 11 14 12 13
Required: Assign each jobs to each employees and calculate the total cost?