The assignment problem deals with assigning machines to tasks, workers to jobs, soccer players to positions, and so on. The goal is to determine the optimum assignment that, for example, minimizes the total cost or maximizes the team effectiveness. The assignment problem is a fundamental problem in the area of combinatorial optimization.
Assume for example that we have four jobs that need to be executed by four workers. Because each worker has different skills, the time required to perform a job depends on the worker who is assigned to it.
The matrix below shows the time required (in minutes) for each combination of a worker and a job. The jobs are denoted by J1, J2, J3, and J4, the workers by W1, W2, W3, and W4.
J1 | J2 | J3 | J4 | |
W1 | 82 | 83 | 69 | 92 |
W2 | 77 | 37 | 49 | 92 |
W3 | 11 | 69 | 5 | 86 |
W4 | 8 | 9 | 98 | 23 |
Each worker should perform exactly one job and the objective is to minimize the total time required to perform all jobs.
It turns out to be optimal to assign worker 1 to job 3, worker 2 to job 2, worker 3 to job 1 and worker 4 to job 4. The total time required is then 69 + 37 + 11 + 23 = 140 minutes. All other assignments lead to a larger amount of time required.
The Hungarian algorithm can be used to find this optimal assignment. The steps of the Hungarian algorithm can be found here, and an explanation of the Hungarian algorithm based on the example above can be found here.
HungarianAlgorithm.com © 2013-2023
HungarianAlgorithm.com uses cookies to provide you with an optimal user experience.
We use techniques including cookies to offer you an optimal user experience. This also allows us to analyze the behavior of visitors and thereby improve our website. Cookies from ourselves and from our partner Google can be used to serve ads, to personalize content, and to provide social media features. We also share information about your use of our site with this partner, who may combine this information with other information that you have provided to them or that they have collected from your use of their services.