Assignment Problem: NOTE: The Pay Off Matrix of Assignment Problem Is A Square Matrix. It
Assignment Problem: NOTE: The Pay Off Matrix of Assignment Problem Is A Square Matrix. It
For e.g : A departmental head may have six people available for
assignment and six jobs to assign. He may like to know which job should
be assigned to which person so that all these jobs can be completed in
the shortest possible time.
Starting with first row , locate the smallest cost element in each
row of the cost table. Subtract this smallest element from each
element in that row.
In reduced table, starting with first row , locate the smallest cost
element in each column of the cost table. Subtract this smallest
element from each element in that column.
Examine the rows successively, until a row with exactly one zero is
found . Put a square around it and cross out all zeros appearing in
the corresponding column.
Examine the columns successively, until a column with exactly one
zero is found . Put a square around it and cross out all zeros
appearing in the corresponding row.
Repeat the procedure until all
zeros in rows and columns are either in square box or crossed out.
If there is exactly one square box ( one assignment) in each row
and each column, number of assignments made equal to number
of rows / columns, then we get an optimal solution of the
problem.
In for any row or column without assignment, we proceed to
following steps.
Draw the minimum numbers of horizontal and vertical lines
necessary to cover all the zeros in the reduced matrix.
MAXIMIZATION CASE
In some cases, the pay off elements of the assignment problem may
represent profits instead of cost so that the objective will be to
maximize total profit.
The problem of maximization can be converted into minimization case
by selecting the largest element among all elements of the profit
matrix and then subtracting it from all other elements. Now Hungarian
method can be used to obtain optimal solution by adding the original
values of these cells to which the assignments have been made.