Assignment Problem - Hungarian Method
Assignment Problem - Hungarian Method
Assignment Problem - Hungarian Method
(b) In the reduced matrix obtained from 2 (a) locate the smallest
element in each column and then subtract that from each element.
Each row and column now have at least one zero value.
Step 3: Draw minimum no. of lines covering all zeros. If no. of lines
drawn < n (order of the matrix), then proceed to next step.
Choose any row or column with a single zero. If it is a row, draw a line
through the column the zero is in; if it is a column, draw a line through
the row the zero is in. Continue in this fashion until you cover all the
zeros.
Step 5: Repeat step 3 with the reduced matrix obtained in step 4. If no.
of lines drawn = n (order of the matrix), then stop and assign jobs by
marking zeros (only one per row/ column), else proceed to step 4 till
you get the equality.
Machines
A B C D E
1 1
1 13 8 16 8 9
1
2 9 15 24 9 2
Jobs
3 12 9 4 4 4
1
4 6 12 10 8 3
1 2
5 15 17 18 2 0
A B C D E
1 1
1 5 0 8 0 1
1
2 0 6 5 0 3
3 8 5 0 0 0
4 0 6 4 2 7
5 3 5 6 0 8
No. of min lines = 4 < 5
x=3
A B C D E
1
1 5 0 5 0 8
1
2 0 6 2 0 0
1
3 1 8 0 3 0
4 0 6 1 2 4
5 3 5 3 0 5
No. of lines = 5
Optimal Allocation:
A B C D E
1 5 0 5 10 8
2 0 6 12 0 0
3 11 8 0 3 0
4 0 6 1 2 4
5 3 5 3 0 5
Jobs Machines
1 B
2 E
3 C
4 A
5 D
Min cot of job assignment = 8+12+4+6+12 = 42