0% found this document useful (0 votes)
42 views

Assignment - Problem - 2 Examples

The document describes the steps of the Hungarian method algorithm to solve assignment problems. It involves 1) subtracting the smallest value in each row/column from all values to find zeros, 2) if not solved, drawing lines through rows and columns to cross out values until finding a feasible assignment, and 3) assigning jobs to machines based on the remaining zero values. The example shows applying these steps to two different assignment problems to find optimal solutions.

Uploaded by

Sailesh Akkaraju
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Assignment - Problem - 2 Examples

The document describes the steps of the Hungarian method algorithm to solve assignment problems. It involves 1) subtracting the smallest value in each row/column from all values to find zeros, 2) if not solved, drawing lines through rows and columns to cross out values until finding a feasible assignment, and 3) assigning jobs to machines based on the remaining zero values. The example shows applying these steps to two different assignment problems to find optimal solutions.

Uploaded by

Sailesh Akkaraju
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

The Assignment

Problem
Hungarian Method Example

Step 1: Select the smallest value in each row.


Subtract this value from each value in that row

Step 2: Do the same for the columns that do not


have any zero value.
Hungarian Method Example

If not finished, continue


with other columns.
Hungarian Method Example
Step 3: Assignments are made at zero values.
 Therefore, we assign job 1 to machine 1; job 2
to machine 3, and job 3 to machine 2.
 Total cost is 5+12+13 = 30.

 It is not always possible to obtain a feasible


assignment as in here.
Hungarian Method Example 2
Hungarian Method Example 2
 A feasible assignment is not possible at this
moment.
 In such a case, The procedure is to draw a
minimum number of lines through some of the
rows and columns, Such that all zero values
are crossed out.
Hungarian Method Example 2

The next step is to select the smallest uncrossed out element. This
element is subtracted from every uncrossed out element and added
to every element at the intersection of two lines.
Hungarian Method Example 2
 We can now easily assign to the zero values.
Solution is to assign (1 to 1), (2 to 3), (3 to 2)
and (4 to 4).
 If drawing lines do not provide an easy
solution, then we should perform the task of
drwaing lines one more time.
 Actually, we should continue drawing lines
until a feasible assignment is possible.

You might also like