Assignment Problem
Assignment Problem
The assignment problem can be stated as a problem where different jobs are to be
assigned to different machines on the basis of the cost of doing these jobs. The
objective is to minimize the total cost of doing all the jobs on different machines
The peculiarity of the assignment problem is only one job can be assigned to one
machine i.e., it should be a one-to-one assignment
The cost data is given as a matrix where rows correspond to jobs and columns to
machines and there are as many rows as the number of columns i.e. the number of
jobs and number of Machines should be equal
Assignment becomes a problem because each job requires different skills and the
capacity or efficiency of each person with respect to these jobs can be different.
This gives rise to cost differences. If each person is able to do all jobs equally
efficiently then all costs will be the same and each job can be assigned to any
person.
Y. Prasada Rao
QABD NOTES
Unbalanced assignment is one when the number of rows not equal to the number of
columns and vice versa. e.g. The number of machines may be more than the number of
jobs or the number of jobs may be more than the number of machines.
In such a situation we introduce dummy row/column(s) in the matrix. These rows or
columns have a zero cost element. Thus we can balance the problem and then use
Hungarian method to find optimal assignment.
Y. Prasada Rao
QABD NOTES
3) What is a Prohibited Assignment Problem?
Transportation
Problem
Complete
Enumeration
Simplex Method
Hungarian method
Y. Prasada Rao
QABD NOTES
1)Complete Enumeration Method: This method can be used in case of assignment.
problems of small size. In such cases a complete enumeration and evaluation of all
combinations of persons and jobs is possible.
One can select the optimal combination. We may also come across more than one optimal
combination The number of combinations increases manifold as the size of the problem
increases as the total number of possible combinations depends on the number of say,
jobs and machines. Hence the use of enumeration method is not feasible in real world
cases.
2) Simplex Method: The assignment problem can be formulated as a linear programming
problem and hence can be solved by using simplex method.However solving the problem
using simplex method can be a tedious job.
3)Transportation Method: The assignment problem is comparable to a transportation
problem hence transportation method of solution can be used to find optimum allocation.
Howver the major problem is that allocation degenerate as the allocation is on basis one
to one per person per person per job Hence we need a method specially designed to solve
assignment problems.
4 )Hungarian Assignment Method (HAM):
This method is based on the concept of opportunity cost and is more efficient in solving
assignment problems.
METHOD IN CASE OF A MINIMIZATION PROBLEM.
As we are using the concept opportunity this means that the cost of any opportunity that
is lost while taking a particular decision or action is taken into account while making
assignment. Given below are the steps involved to solve an assignment problem by using
Hungarian method.
Y. Prasada Rao
QABD NOTES
Step 1:
Determine the opportunity cost table
Step 2:
Determine the possibility of an optimal assignment
Step 3
Modify the second reduced cost table
Step 4:
Make the optimum assignment
Step 1:
Determine the opportunity cost tableI
Locate the smallest cost in each row and subtract it from each cost figure in that
row. This would result in at least one zero in each row. The new table is called
reduced cost table.
Locate the lowest cost in each column of the reduced cost table subtract this
figure from each cost figure in that column. This would result in at least one zero
in each row and each column, in the second reduced cost table.
Step 2:
Determine the possibility of an optimal assignment:
Y. Prasada Rao
QABD NOTES
Draw minimum number of straight lines vertical and horizontal, to cover all the
zero elements in the second reduced cost table. One cannot draw a diagonal
straight line. The aim is that the number of lines (N) to cover all the zero
elements should be minimum. If the number of lines is equal to the number of
rows (or columns) (n) i.e N=n it is possible to find optimal assignment .
Example :for a 3 x 3 assignment table we need 3 straight lines which cover all the
zero elements in the second reduced cost table. If the number of lines is less than
the number of rows (columns) N < n optimum assignment cannot be made. we
then move to the next step.
Step 3:
Modify the second reduced cost table:
Select the smallest number in the table which is not covered by the lines. Subtract
this number from all uncovered numbers aswell as from itself.
Add this number to the element which is at the intersection of any vertical and
horizontal lines.
Draw minimum number of lines to cover all the zeros in the revised opportunity
cost table.
Y. Prasada Rao
QABD NOTES
Step 4:
Make the optimum assignment:
If the assignment table is small in size it is easy to make assignment after step 3.
However, in case of large tables it is necessary to make the assignments systematically.
So that the total cost is minimum. To decide optimum allocation.
Select a row or column in which there is only one zero element and encircle it
Assign the job corresponding to the zero element i.e. assign the job to the circle
with zero element. Mark a X in the cells of all other zeros lying in the column
(row) of the encircled zero. So that these zeros cannot be considered for next
assignment.
Again select a row with one zero element from the remaining rows or columns.
Make the next assignment continue in this manner for all the rows.
Repeat the process till all the assignments are made i.e. no unmarked zero is left.
now we will have one encircled zero in each row and each column of the cost
matrix. The assignment made in this manner is Optimal.
Calculate the total cost of assignment from the original given cost table.
MAXIMIZATION METHOD
In order to solve a maximization type problem we find the regret values instead of
opportunity cost. the problem can be solved in two ways
Y. Prasada Rao
QABD NOTES
The first method is by putting a negative sign before the values in the assignment
matrix and then solves the sum as a minimization case using Hungarian methods
as shown above.
Second method is to locate the largest value in the given matrix and subtract each
element in the matrix from this value. Then one can solve this problem as a
minimization case using the new modified matrix.
Hence there are mainly four methods to solve assignment problem but the most efficient
and most widely used method is the Hungarian method
Q5 ) Notes on Traveling Salesmen problem.
Y. Prasada Rao
QABD NOTES
The peculiar nature of the problem and the various restrictions imposed on resulting
solution indicate that the method of solution to a traveling salesman problem should
include:
(1) Assigning an infinitely large element M in the diagonal of the distance matrix.
(2) Solve the problem using Hungarian Method as it gives shortcut route but,
(3) Test the solution for feasibility whether it satisfies the condition of a continues route
without visiting a city more than once.
If the route is not feasible, make adjustments with minimum increase in the total distance
traveled by the salesman. This is how one can solve traveling sales man problem
6) What is a Transportation Problem?
Y. Prasada Rao
QABD NOTES
aggregate demand
aggregate supply
(i)
(ii)
Such problems are called unbalanced problems. It is necessary to balance them before
they are solved.
Balancing the transportation problem
In such a case the excess supply is, assumed to go to inventory and costs nothing for
shipping(transporting). This type of problem is balanced by creating a fictitious
destination. This serves the same purpose as the slack variable in the simplex/method A
column of slack variables is added to the transportation tableau which represents a
dummy destination with a requirement equal to the amount of excess supply and the
transportation cost equal to zero. This problem can now be solved using the usual
transportation methods.
10
Y. Prasada Rao
QABD NOTES
When aggregate demand exceeds aggregate supply in a transportation problem a dummy
row is added to restore the balance. This row has an availability equal to the excess
demand and each cell of this row has a zero transportation cost per unit. Once the
problem is balanced it can be solved by the procedures normally used to solve a
transportation problem.
8) What is a Prohibited Transportation Problem?
Sometimes in a given transportation problem some route(s) may not be available.
This could be due to a variety of reasons like-
Strikes in certain
Unfavorable
weather
region
conditions
on
Entry restriction.
particular route
(i)
(ii)
(iii)
Entry restriction.
11
Y. Prasada Rao
QABD NOTES
Initial stage
When in the initial solution the number of occupied cells is less than
m+n1
Degeneracy may appear subsequently when two or more cells are vacated
simultaneously in the process of transferring the units, along the closed loop to
obtain an optimal solution.
When transportation problem becomes degenerate
When transportation problem becomes degenerate it cannot be tested for
optimality because it is impossible to compute u and, v values with MODI method. To
overcome the problem of insufficient number of occupied cell we proceed by assigning
12
Y. Prasada Rao
QABD NOTES
an infinitesimally small amount (close to zero) to one or more (if needed) empty cell and
treat that cell as occupied cell. This amount is represented by the Greek letter E (epsilon).
It is an insignificant value and does not affect the total cost. But it is appreciable enough
to be considered a basic variable. When the initial basic solution is degenerate, we assign
c to an independent empty cell. An independent cell is one from which a closed loop
cannot be traced. It is preferably assigned to a cell which has minimum per unit cost.
After introducing e we solve the problem using usual methods of solution.
10) Steps to solve a Transportation Problem.
A transportation problem can be solved in 2 phases
PHASE I
Step 1:
Check whether the given T.P. is balanced or not
Step 2:
Develop initial feasible solution by any of the five methods
Step 1:
Check whether the given T.P. is balanced or not. If it is unbalanced then balance it by
adding a row or a column.
Step 2:
Develop initial feasible solution by any of the THREE methods:
a) North West Corner Rule (NWCR)
13
Y. Prasada Rao
QABD NOTES
b) Least Cost Method (LCM)
e) Vogels Approximation Method (VAM)
We discuss here the two commonly used methods to make initial assignments
(1) Northwest corner rule
14
Y. Prasada Rao
QABD NOTES
(i) Consider each row of the cost matrix individually and find the difference between two
least cost cells in it. Then repeat this exercise for each column. Identify the row or
column with the Largest difference (select any one in case of a tie).
(ii) Now consider the cell with minimum cost in that column (or row) and assign the
maximum units possible to that cell.
(iii) Delete the row/column that is satisfied.
(iv) Again find out the differences and proceed in the same manner as stated in earlier
paragraph and continue until all units have been assigned.
15
Y. Prasada Rao
QABD NOTES
If the solution is non-optimal as found from MODI method then we improve the solution
by exchanging non-basic variable for a basic variable. In other words we rearrange the
allocation by transferring units from an occupied cell to an empty cell that has the largest
net cost change or improvement index, and then shift the units from other related cells so
that all the rim (supply, demand) requirements are satisfied. This is done by tracing a
closed path or closed loop.
Step 1:
Add a column u to the RHS of the transportation tableau and a
row v at the bottom of the tableau.
Step 2:
Assign, arbitrarily, any value to u or v generally u = 0.
Step 3
Having determined u1 and v calculate ij = (u1 + v1) for every
unoccupied cell.
Step 4:
If the solution is not optimal select the cell with largest positive
improvement index.
Step 5:
Test the solution again for optimality and improve fit if necessary
Step I:
Add a column u to the RHS of the transportation tableau and a row v at the bottom of the
tableau.
Step 2:
16
Y. Prasada Rao
QABD NOTES
Assign, arbitrarily, any value to u or v generally u = 0. This method of assigning values
to u1 and v1 is workable only if the initial solution is non-degenerate i.e., for a table there
are exactly m + n -1 occupied cells.
Step 3:
Having determined u1 and v calculate ij = (u1 + v1) for every unoccupied cell. This
represents the net cost change or improvement index of these cells
(1) If all the empty cells have negative net cost change ij, the solution is optimal and
unique
(2) If an empty cell has a zero Xij and all other empty cells have negative Xij the solution
is optimal but not unique.
(3) If the solution has positive Ai for one or more empty cells the solution is not optimal.
Step 4:
If the solution is not optimal select the cell with largest positive improvement index.
Then trace a closed loop and transfer the units along the route.
Tracing loop (closed path):
1) Choose the unused square to be evaluated.
(2) Beginning with the selected unused square trace a loop via used squares back to the
original unused squares. Only one loop exists for any unused square in a given solution.
(3) Assign (+) and () signs alternately at each square of the loop beginning with a plus
sign at the unused square. Assign these sign in clockwise or anticlockwise direction.
These signs indicate addition or subtraction of units to a square.
17
Y. Prasada Rao
QABD NOTES
(4) Determine the per unit net change in cost as a result of the changes made in tracing
the loop. Compare the addition to the decrease in cost. It will give the improvement
index. (It is equivalent to j in a LPP).
(5) Determine the improvement index for each unused square.
(6) In a minimization case. If all the indices are greater than or equal to zero, the solution
is optimal. If not optimal, we should find a better solution.
We may also note the following points:
(i) An even number of at least four cells participate in a closed loop. An occupied cell can
be considered only once.
(ii) If there exists a basic feasible solution with m + n 1 positive variables, then there
would be one and only one closed loop for each cell.
(iii) All cells that receive a plus or minus sign except the starting empty cell, must be the
occupied cells.
(iv) Closed loops may or may not be square or rectangular in shape. They may have
peculiar configurations and a loop may cross over itself.
Step 5:
Test the solution again for optimality and improve fit if necessary. Repeat the process
until an optimum solution is obtained.
11) SWhat are the differences between assignment problem (AP) and
transportation problem (TP)?
18
Y. Prasada Rao
QABD NOTES
The differences between AP and TP are the following:
1. TP has supply and demand constraints while AP does not have the same.
2. The optimal test for TP is when all cell evaluation \s are greater than or equal to
zero whereas in AP the number of lines must be equal to the size of matrix.
3. A TP sum is balanced when demand is equal to supply and an AP sum is balanced
when number of rows are equal to the number of columns.
4. for AP. We use Hungarian method and for transportation we use MODI method
5. In AP. We have to assign different jobs to different entities while in transportation
we have to find optimum transportation cost.
Q12) What are the advantages and disadvantages of LPP?
A LPP is concerned with the use of allocation of resources such as time, capital,
materials, etc.
THE ADVANTAGES LPP ARE:
1. It helps the sale manager to negotiate prices with customers. He can price on the basis
of customer demand and price on the basis of supply and demand of them market.
2. Production manager can formulate optimal maximum product mix.
3. it helps manager improve his decision making abilities.
4. it helps make the best decision for cost minimization and profit maximization.
THE DISADVANTAGES OF LPP ARE:
1. A primary requirement for LPP is the objective function and every consistent must be
linear. In practical situation it is not possible to state all coefficients in the objective
function and constraints with certainty.
2. There is no guarantee that LPP will give an integer value solution.
eg. a solution may call for 9.3 trucks or 8.7 units of product.
3. It does not take into consideration the effect of time and uncertainty.
4. There may be cases of infeasibility and unbounded ness.
19
Y. Prasada Rao