Module-3 Assignment Problem
Module-3 Assignment Problem
Assignment problem is one of the special cases of transportation problems. The goal of the assignment
problem is to minimize the cost or time of completing a number of jobs by a number of persons. An
important characteristic of the assignment problem is the number of sources is equal to the number of
destinations.It is explained in the following way.
Management has faced with problems whose structures are identical with assignment problems.
Ex: A manager has five persons for five separate jobs and the cost of assigning each job to each person
is given. His goal is to assign one and only job to each person in such a way that the total cost of
assignment is minimized.
Balanced assignment problem: This is an assignment where the number of persons is equal to
the number of jobs.
Unbalanced assignment problem: This is the case of assignment problem where the number
of persons is not equal to the number of jobs. A dummy variable, either for a person or job (as it
required) is introduced with zero cost or time to make it a balanced one.
Maximization Problem: There are problems where certain facilities have to be assigned to a
number of jobs so as to maximize the overall performance of the assignment. The problem can
be converted into a minimization problem in the following ways and then Hungarian method
can be used for its solution.
Select the highest element in the entire assignment table and subtract all the elements of the
table from the highest element.
Change the signs of all values given in the table.
Mathematical Model
Solution of Assignment Problem
The assignment problem can be solved by the following four methods:
a) Complete enumeration method
b) Simplex Method
c) Transportation method
d) Hungarian method
Hungarian method
Step 1:In a given problem, if the number of rows is not equal to the number of columns and vice versa,
then add a dummy row or a dummy column. The assignment costs for dummy cells are always
assigned as zero.
Step 2: Reduce the matrix by selecting the smallest element in each row and subtract with other
elements in that row.
Step 3: Reduce the new matrix column-wise using the same method as given in step 2.
Step 4:Draw the minimum number of horizontal and vertical lines through appropriate rows and
columns so that all the zero entries of the cost matrix are covered.
Step 5: If Number of lines drawn = order of matrix, then optimally is reached, so proceed to step 7. If
optimally is not reached, then go to step 6.
Step 6: Select the smallest element of the whole matrix, which is NOT COVERED by lines. Subtract
this smallest element with all other remaining elements that are NOT COVERED by lines and add the
element at the intersection of lines. Leave the elements covered by single line as it is. Now go to step 4.
Step 7: Take any row or column which has a single zero and assign by squaring it. Strike off the
remaining zeros, if any, in that row and column (X). Repeat the process until all the assignments have
been made.
Note: While assigning, if there is no single zero exists in the row or column, choose any one zero and
assign it. Strike off the remaining zeros in that column or row and repeat the same for other
assignments also. If there is no single zero allocation, it means multiple numbers of solutions exist. But
the cost will remain the same for different sets of allocations.
Step 8: Write down the assignment results and find the minimum cost/time.
Problems
1. A plant manager has four subordinates, and four tasks to be performed. The subordinates differ in
efficiency and the tasks differ in their intrinsic difficulty. This estimate of the times each man would
take to perform each task is given in the effectiveness matrix below.
I II III IV
A 8 26 17 11
B 13 28 4 26
C 38 19 18 15
D 19 26 24 10
How should the tasks be allocated, one to a man, so as to minimize the total man hours?
I II III IV
A 8 26 17 11
B 13 28 4 26
C 38 19 18 15
D 19 26 24 10
Conclusion
Subordinates Tasks Man hours
A I 8
B III 4
C II 19
D IV 10
Total Minimum Man Hours = 41
2. A dairy plant has five milk tankers I, II, III, IV & V. These milk tankers are to be used on five
delivery routes A, B, C, D, and E. The distances (in kms) between dairy plant and the delivery routes
are given in the following distance matrix.
I II III IV V
A 160 130 175 190 200
B 135 120 130 160 175
C 140 110 155 170 185
D 50 50 80 80 110
E 55 35 70 80 105
How the milk tankers should be assigned to the chilling centers so as to minimize the distance
travelled?
Solution
No. of rows = No. of Columns
5=5
Hence, the given problem is balanced assignment problem
Step1: Identify minimum element from each row and subtract it from the respective row
elements
I II III IV V Row Minimum
A 160 130 175 190 200 130
B 135 120 130 160 175 120
C 140 110 155 170 185 110
D 50 50 80 80 110 50
E 55 35 70 80 105 35
Draw the minimum number of horizontal and vertical lines covers all zeros in the matrix
I II III IV V
A 15 0 20 15 0
B 15 15 0 10 0
C 15 0 20 15 5
D 0 15 20 0 5
E 5 0 10 0 0
I II III IV V
A 160 130 175 190 200
B 135 120 130 160 175
C 140 110 155 170 185
D 50 50 80 80 110
E 55 35 70 80 105
Conclusion
Chilling centers Milk Tankers Distance (kms)
A V 200
B III 130
C II 110
D I 50
E IV 80
570
Total Minimum distance travelled milk tankers is 570km to various chilling centers.
1. Assign the four tasks to four operators. The assigning costs are given in Table.
2. Solve the following assignment problem shown in Table using Hungarian method. The matrix
entries are processing time of each man in hours.
Row Subtraction
Cities A B C D E Row Minimum
A -- 10 25 25 10 10
B 1 -- 10 15 2 1
C 8 9 -- 20 10 8
D 14 10 24 -- 15 10
E 10 8 25 27 -- 8
Cities A B C D E
A -- 0 15 15 0
B 0 -- 9 14 1
C 0 1 -- 12 2
D 4 0 14 -- 5
E 2 0 17 19 --
Column Subtraction
Cities A B C D E
A -- 0 15 15 0
B 0 -- 9 14 1
C 0 1 -- 12 2
D 4 0 14 -- 5
E 2 0 17 19 --
Column 0 0 9 12 0
Minimum
Cities A B C D E
A -- 0 6 3 0
B 0 -- 0 2 1
C 0 1 -- 0 2
D 4 0 5 -- 5
E 2 0 8 7 --
Draw the minimum number of horizontal and vertical lines to cover all zeros
Cities A B C D E
A -- 0 6 3 0
B 0 -- 0 2 1
C 0 1 -- 0 2
D 4 0 5 -- 5
E 2 0 8 7 --
Cities A B C D E
A -- 2 6 3 0
B 0 -- 0 2 1
C 0 3 -- 0 2
D 2 0 3 -- 3
E 0 0 6 5 --
Conclusion
The salesman will follow the A-B-C-D-E-A sequence to minimize the distance to cover all cities.
Minimum distance is 10+10+20+15+10=65kms
2. A travelling salesman has to visit 5 cities. He wishes to start form a particularcity visit each city once
and then return to his starting point. The travelling time (in hours) foreach city from a particular city is
given below:
What should be the sequence of visit of the salesman, so that the total travelled time is minimum.
Cities A B C D E
a ∞ 4 7 3 4
b 4 ∞ 6 3 4
c 7 6 ∞ 7 5
d 3 3 7 ∞ 7
e 4 4 5 7 ∞
Row subtraction
Cities A B C D E
a ∞ 1 4 0 1
b 1 ∞ 3 0 1
c 2 1 ∞ 2 0
d 0 0 4 ∞ 4
e 0 0 1 3 ∞
Column subtraction
Cities A B C D E
a ∞ 1 3 0 1
b 1 ∞ 2 0 1
c 2 1 ∞ 2 0
d 0 0 3 ∞ 4
e 0 0 0 3 ∞
Draw the minimum number of horizontal and vertical lines to cover all zeros
Cities A B C D E
a ∞ 1 3 0 1
b 1 ∞ 2 0 1
c 2 1 ∞ 2 0
d 0 0 3 ∞ 4
e 0 0 0 3 ∞
No. of lines ≠No. of rows/columns
The minimum element is 1 from uncovered elements. Subtract it from uncovered and add it to
intersection elements.
Cities A B C D E
a ∞ 0 2 0 0
b 0 ∞ 1 0 0
c 2 1 ∞ 3 0
d 0 0 3 ∞ 4
e 0 0 0 4 ∞
No. of lines = No. of rows/columns
5=5
Hence, the optimal solution is reached.
Go for the assignment
Cities A B C D E
a ∞ 0 2 0 0
b 0 ∞ 1 0 0
c 2 1 ∞ 3 0
d 0 0 3 ∞ 4
e 0 0 0 4 ∞
a-D, d-B, b-A, the salesman not covering E city. Hence, it is not correct sequence.
Next minimum value of Zero is ‘1’.
Final Solution
Cities A B C D E
a ∞ 0 2 0 0
b 0 ∞ 1 0 0
c 2 1 ∞ 3 0
d 0 0 3 ∞ 4
e 0 0 0 4 ∞
A-D-B-C-E-A
3+6+5+3+4=21
Cities A B C D E
a ∞ 0 2 0 0
b 0 ∞ 1 0 0
c 2 1 ∞ 3 0
d 0 0 3 ∞ 4
e 0 0 0 4 ∞
A-D-E-C-B-A
3+4+6+7+5=25
3. A salesman has to visit 4 cities A, B, C, and D. The distance (100 kms) between 4 cities is:
If the salesman starts from city 'A' and comes back to city 'A', which route should he select so that total
distance travelled by him is minimum?
4. Solve the following travelling salesman problem with the following matrix.