Describe The Assignment Problem and A Common Method Used To Solve It
Describe The Assignment Problem and A Common Method Used To Solve It
Mathematical Formulation
Let nnn be the number of tasks and agents. We represent the assignment problem
using a cost matrix CCC, where CijC_{ij}Cij denotes the cost of assigning agent iii
to task jjj.
The objective is to find a permutation of assignments that minimizes the total cost.
Formally, we are looking to solve:
subject to:
One of the most widely used methods to solve the assignment problem is the
Hungarian Algorithm. This method is known for its efficiency and effectiveness
in finding the optimal solution for assignment problems.
4. Cover All Zeros with Minimum Number of Lines:Cover all zeros in the
adjusted matrix using the minimum number of horizontal and vertical lines.
5. Create Additional Zeros:If the minimum number of lines required to cover
all zeros is equal to the size of the matrix, then an optimal assignment exists
among the zeros. If not, modify the matrix as follows:
o Find the smallest uncovered value.
o Subtract this value from all uncovered elements and add it to the
elements covered twice.
6. Repeat Steps 4 and 5: Continue covering zeros and adjusting the matrix
until the number of lines equals the matrix size.
7. Construct the Optimal Assignment:After achieving the condition in step
5, construct the optimal assignment from the zeroes.
Example of the Hungarian Algorithm
Suppose you have the following cost matrix for assigning 3 agents to 3 tasks:
Agent 1 4 2 5
Agent 2 6 3 4
Agent 3 8 7 9
Step-by-Step Process:
Cover zeros using the minimum number of lines (horizontal and vertical).
After covering and adjusting the matrix, you would find the optimal
assignment for the minimal cost.
o Agent 1 to Task 2
o Agent 2 to Task 3
o Agent 3 to Task 1
You can verify that this assignment indeed results in the minimum total cost.
Conclusion