The Hungarian Assignment Method: Solving Optimization Problems, Lecture notes of Operational Research

A step-by-step guide to the hungarian assignment method, a technique used to solve optimization problems in which resources must be allocated to tasks or tasks must be assigned to resources in order to minimize or maximize some objective function. The method involves creating a cost table, finding the opportunity cost table, making assignments in the opportunity cost matrix, and checking for optimality. Examples and variations of the assignment problem.

Typology: Lecture notes

2022/2023

Available from 05/30/2024

owen-mworia
owen-mworia 🇰🇪

47 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
The Hungarian Assignment method
Step 1: Develop the Cost Table from the given Problem:
If the no of rows are not equal to the no of columns and vice versa, a dummy row or dummy column must be
added. The assignment cost for dummy cells are always zero.
Step 2: Find the Opportunity Cost Table:
(a) Locate the smallest element in each row of the given cost table and then subtract that from each element
of that row, and (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: Make Assignment in the Opportunity Cost Matrix:
The procedure of making assignment is as follows: (a) Examine rows successively until a row with exactly
one unmarked zero is obtained. Make an assignment to row/column with single zero by making a square
around it. (b) For each zero value that becomes assigned, eliminate (Strike off) all other zeros in the same
row and/ or column (c) Repeat step 3 (a) and 3 (b) for each column also with exactly a single zero value all
that has not been assigned. (d) If a row and/or column has two or more unmarked zeros and one cannot be
chosen by inspection, then choose the assigned zero cell arbitrarily. (e) Continue this process until all zeros
in each row / column are either enclosed (Assigned) or struck off (x)
Step 4: Optimality Criterion:
If the number of assigned cells is equal to the number of rows / columns then it is an optimal solution. The
total cost associated with this solution is obtained by adding original cost figures in the occupied cells. If a
zero cell was chosen arbitrarily in step (3), there exists an alternative optimal solution. But if no optimal
solution is found, then go to step (5).
Step 5: Revise the Opportunity Cost Table:
Draw a set of horizontal and vertical lines to cover all the zeros in the revised cost table obtained from step
(3), by using the following procedure: (a) For each row in which no assignment was made, mark a tick (√)
(b) Examine the marked rows. If any zero occurs in those columns, tick the respective rows that contain
those assigned zeros. (c) Repeat this process until no more rows or columns can be marked. (d) Draw a
straight line through each marked column and each unmarked row. If a no of lines drawn is equal to the no
of (or columns) the current solution is the optimal solution, otherwise go to step 6.
Step 6: Develop the New Revised Opportunity Cost Table:
pf3

Partial preview of the text

Download The Hungarian Assignment Method: Solving Optimization Problems and more Lecture notes Operational Research in PDF only on Docsity!

The Hungarian Assignment method

Step 1: Develop the Cost Table from the given Problem:

If the no of rows are not equal to the no of columns and vice versa, a dummy row or dummy column must be added. The assignment cost for dummy cells are always zero.

Step 2: Find the Opportunity Cost Table:

(a) Locate the smallest element in each row of the given cost table and then subtract that from each element of that row, and (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: Make Assignment in the Opportunity Cost Matrix:

The procedure of making assignment is as follows: (a) Examine rows successively until a row with exactly one unmarked zero is obtained. Make an assignment to row/column with single zero by making a square around it. (b) For each zero value that becomes assigned, eliminate (Strike off) all other zeros in the same row and/ or column (c) Repeat step 3 (a) and 3 (b) for each column also with exactly a single zero value all that has not been assigned. (d) If a row and/or column has two or more unmarked zeros and one cannot be chosen by inspection, then choose the assigned zero cell arbitrarily. (e) Continue this process until all zeros in each row / column are either enclosed (Assigned) or struck off (x)

Step 4: Optimality Criterion:

If the number of assigned cells is equal to the number of rows / columns then it is an optimal solution. The total cost associated with this solution is obtained by adding original cost figures in the occupied cells. If a zero cell was chosen arbitrarily in step (3), there exists an alternative optimal solution. But if no optimal solution is found, then go to step (5).

Step 5: Revise the Opportunity Cost Table:

Draw a set of horizontal and vertical lines to cover all the zeros in the revised cost table obtained from step (3), by using the following procedure: (a) For each row in which no assignment was made, mark a tick (√) (b) Examine the marked rows. If any zero occurs in those columns, tick the respective rows that contain those assigned zeros. (c) Repeat this process until no more rows or columns can be marked. (d) Draw a straight line through each marked column and each unmarked row. If a no of lines drawn is equal to the no of (or columns) the current solution is the optimal solution, otherwise go to step 6.

Step 6: Develop the New Revised Opportunity Cost Table:

(a) From among the cells not covered by any line, choose the smallest element, call this value K (b) Subtract K from every element in the cell not covered by line. (c) Add K to very element in the cell covered by the two lines, i.e., intersection of two lines. (d) Elements in cells covered by one line remain unchanged.

Step 7: Repeat Step 3 to 6 until an Optimal Solution is Obtained:

The flow chart of steps in the Hungarian method for solving an assignment problem is shown in following figures:

Example 1. In a computer centre after studying carefully the three expert programmers, the head of the computer centre, estimates the computer time in minutes required by the experts for the application programs are as follows:

Application Program Programmer A B C 1 120 100 80 2 80 90 110 3 110 140 120 Assign the programmers to the programs in such a way that the total computer time is minimized.