Home > Operation Research > Assignment Problem > Assignment Problem example (Using Hungarian method)

1. Assignment Problem using Hungarian method example ( Enter your problem )
  1. Introduction
  2. Algorithm & Example-1
  3. Example-2
  4. Unbalanced Assignment Problem
  5. Maximization case in Assignment Problem
  6. Multiple optimal solutions in Assignment Problem
  7. Restrictions on Assignment Problem
  8. Restrictions and Unbalanced Assignment Problem

3. Example-2





Find Solution of Assignment problem using Hungarian method (MIN case)
Work\JobIIIIII
A635
B592
C578


Solution:
The number of rows = 3 and columns = 3
   `I`  `II`  `III`    
 `A` 635
 `B` 592
 `C` 578
   


Here given problem is balanced.

Step-1: Find out the each row minimum element and subtract it from that row
   `I`  `II`  `III`    
 `A`  3 `3=6-3` 0 `0=3-3` 2 `2=5-3` (-3) Minimum element of `1^(st)` row
 `B`  3 `3=5-2` 7 `7=9-2` 0 `0=2-2` (-2) Minimum element of `2^(nd)` row
 `C`  0 `0=5-5` 2 `2=7-5` 3 `3=8-5` (-5) Minimum element of `3^(rd)` row
   


Step-2: Find out the each column minimum element and subtract it from that column.
   `I`  `II`  `III`    
 `A`  3 `3=3-0` 0 `0=0-0` 2 `2=2-0`
 `B`  3 `3=3-0` 7 `7=7-0` 0 `0=0-0`
 `C`  0 `0=0-0` 2 `2=2-0` 3 `3=3-0`
    (-0) Minimum element of `1^(st)` column (-0) Minimum element of `2^(nd)` column (-0) Minimum element of `3^(rd)` column


Step-3: Make assignment in the opporunity cost table

a. Identify rows with exactly one unmarked 0. Make an assignmment to this single 0 by make a square ( [0] ) around it and cross off all other 0 in the same column.

b. Identify columns with exactly one unmarked 0. Make an assignmment to this single 0 by make a square ( [0] ) around it and cross off all other 0 in the same rows.

c. If a row and/or column has two or more unmarked 0 and one cannot be chosen by inspection, then choose the cell arbitarily.

d. Continue this process until all 0 in rows/columns are either assigned or cross off( ).

Step-3: Make assignment in the opporunity cost table
(1) Rowwise cell `(A,II)` is assigned

(2) Rowwise cell `(B,III)` is assigned

(3) Rowwise cell `(C,I)` is assigned


Rowwise & columnwise assignment shown in table
   `I`  `II`  `III`    
 `A` 3 [0] (1) Rowwise cell `(A,II)` is assigned2
 `B` 37 [0] (2) Rowwise cell `(B,III)` is assigned
 `C`  [0] (3) Rowwise cell `(C,I)` is assigned23
   


Step-4: Number of assignments = 3, number of rows = 3
Which is equal, so solution is optimal

Optimal assignments are
   `I`  `II`  `III`    
 `A`  3 Original cost 6 [0] Original cost 3 2 Original cost 5
 `B`  3 Original cost 5 7 Original cost 9 [0] Original cost 2
 `C`  [0] Original cost 5 2 Original cost 7 3 Original cost 8
   


Optimal solution is
WorkJobCost
`A``II`3
`B``III`2
`C``I`5
Total10





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.