Assignment Model
Assignment Model
Hungarian method
The Hungarian method is an optimization method for assignment problems, known
thanks to the fact that the first contributions to the definitive classical method were made by Dénes
König and Jenő Egerváry are Hungarian mathematicians. The algorithm as will be detailed in
continuation is designed for the resolution of problems
of minimization only, it will then be a matter of adding an additional step to
address maximization exercises.
Steps
The Hungarian method works on a cost matrix n*m (in this case known as
matrix m*m, given that the number of rows is equal to the number of columns n = m), a
Once built, the smallest element in each row must be found.
matrix.
Once the previous procedure is completed, a new n*m matrix must be constructed,
in which the resulting values of the difference between each cost and the
minimum value of the row to which each cost corresponds (minimum value found in the
first step).
This step involves performing the same procedure as the previous two steps.
referring now to the columns, that is, the minimum value of each column is found, with
the difference that this is in the resulting matrix in the second step, then it
will build a new matrix in which the resulting values will be recorded
difference between each cost and the minimum value of the column to which each cost corresponds
corresponds, matrix called "Reduced Cost Matrix".
This step involves finding the smallest element among those values that are not
they are covered by the lines of step 4, now it will be subtracted from the remainder of
elements that are not covered by the lines; below, this same
value will be added to the values found at the intersections of the lines
horizontal and vertical, once this step is completed, one must return to step 4.
We will use two examples to present the mechanics of the new algorithm. The following
This section provides an explanation of the procedure based on simplex.
Example 1
Joe Klyne's three children, John, Karen, and Terri, want to earn some money for their
personal expenses. Mr. Klyne chose three tasks for his children: mowing the lawn,
paint the garage door and wash the family cars. To avoid the
early competition among the siblings, asks them to submit bids
individuals (secret) for what they consider a payment.
Like the transportation method, the classic Hungarian method (primarily designed
for manual calculations) is something of the past, and it is presented here for historical reasons.
Currently, that type of calculations is not required, since the problem can
to be resolved using highly efficient PL computer codes. Perhaps the
The benefit of studying these classic techniques is that they are based on a theory.
complex that reduces the solution steps to simple rules suitable for calculations
manuals.
Resolution
. Step 1. Determine pi, the minimum cost element in row i of the cost matrix
original, and subtract it from all the elements of row i, i 5 1,2,3.
. Step 2. For the matrix created in step 1, determine q j, the cost element.
minimum of column j, and subtract it from all elements of column j, j 5 1,2,3.
. Step 3. Based on the matrix from step 2, try to determine a feasible allocation.
among all the resulting zero entries. 3a. If that assignment can be found, it is
optimal. 3b. Otherwise, more calculations are required (as will be explained in the
example 5.4-2).
Table 5.33 demonstrates the application of the two steps to the current problem. The cells
with zero underline entries in step 3 gives the optimal (feasible) solution: John
Karen gets the job of painting, Karen the lawn mowing, and Terri gets the job of washing the
family cars. The total cost for Mr. Klyne is $27.
quantity will always be equal (p1 1 p2 1 p3) 1 (q1 1 q2 1 q3) 5 (9 1 9 1 8) 1 (0 1 1 1 0) 5
$27. (A justification for this result is provided in the following section.)
As indicated in step 3 of the Hungarian method, the zeros created by steps 1 and 2
they may not provide a feasible solution directly. In this case, more are needed
steps to determine the optimal (feasible) allocation. The following example demonstrates
this situation.
Example 2
The previous problem adds a child, expanding it to four children and four
tasks. Table 5.34 summarizes the cost elements of the problem.
Resolution
Resolution
Therefore, the assignment that represents the lowest cost for the maintenance day
the estimate determines that Team 1 performs maintenance on Machine 1, the
Team 2 perform maintenance on Machine 3 and Team 3 perform maintenance
from Machine 2, a journey that will have a total cost of 17 monetary units.