INDUS UNIVERSITY
Assignment Problem
~ by
Shah Smruti
What We'll Discuss
TOPIC OUTLINE
What is Assignment Problem?
What is Hungarian method(HAM METHOD)?
Rules for solving HAM Method
How to solve HAM Method
S H A H S M R U T I
Assignment Problem
An assignment problem is a particular case
of transportation problem where the
objective is to assign a number of resources
to an equal number of activities so as to
minimise total cost or maximize total profit
of allocation.
S H A H S M R U T I
Hungarian
method
1955 by Harold Kuhn
The Hungarian method of assignment provides
us with an efficient method of finding the
optimal solution without having to make a-direct
comparison of every solution. It works on the
principle of reducing the given cost matrix to a
matrix of opportunity costs.
S H A H S M R U T I
RULES FOR SOLVING
HAM METHOD
Identify the minimum
element in each row and
subtract it from each
element of that row.
Identify the minimum
element in each column
and subtract it from every
element of that column.
If number of rows is not
equal to number of
columns, then add dummy
rows or columns with cost
0, to make it a square
matrix.
S H A H S M R U T I
Identifyrowswithexactlyoneunmarked0.Makeanassignmmenttothissingle0bymakeasquare([0]
)arounditandcrossoffallother0inthesamecolumn.
Identifycolumnswithexactlyoneunmarked0.Makeanassignmmenttothissingle0bymakeasquare
([0])arounditandcrossoffallother0inthesamerows.
Ifarowand/orcolumnhastwoormoreunmarked0andonecannotbechosenbyinspection,then
choosethecellarbitarily.
Continuethisprocessuntilall0inrows/columnsareeitherassignedorcrossoff( ).
Makeassignmentintheopporunitycosttable
S H A H S M R U T I
Ifthenumberofassignedcells=thenumberofrows,thenanoptimal
Ifoptimalsolutionisnotoptimal,thengotoStep-5.
assignmentisfoundandIncaseyouhavechosena0cellarbitrarily,thentheremaybeanalternate
optimalsolutionexists.
S H A H S M R U T I
Tick(✓)markalltherowsinwhichnoassigned0.
ExamineTick(✓)markedrows,Ifany0celloccursinthatrow,thentick(✓)markthatcolumn.
ExamineTick(✓)markedcolumns,Ifanyassigned0existsinthatcolumns,thentick(✓)markthatrow.
Repeatthisprocessuntilnomorerowsorcolumnscanbemarked.
Drawastraightlineforeachunmarkedrowsandmarkedcolumns.
Ifthenumberoflinesisequaltothenumberofrowsthenthecurrentsolutionistheoptimal,otherwise
gotostep-6
Drawasetofhorizontalandverticallinestocoverallthe0
S H A H S M R U T I
Repeat stpes 3 to 6 until an
optimal solution is arrived.
Select the minimum element,
say k, from the cells not
covered by any line.
Subtract k from each element
not covered by a line.
c. Add k to each intersection
element of two lines.
Develop the new revised
opportunity cost table
S H A H S M R U T I
EXAMPLE 1
S H A H S M R U T I
STEP 1
Number of rows = Number of
columns
S H A H S M R U T I
STEP 2
Identify the
minimum element in
each row and
subtract it from each
element of that row.
Identify the minimum
element in each
column and subtract it
from each element of
that column .
STEP 3
STEP 4
if(Number of assign zero=Number
of rows)
{
optimal solution arrived
} else {
goto step 5
}
STEP 5
S H A H S M R U T I
STEP 6
S H A H S M R U T I
STEP 3
STEP 4
if(Number of assign zero=Number
of rows)
{
optimal solution arrived
} else {
goto step 5
}
STEP 4
EXAMPLE 2
S H A H S M R U T I
STEP 1
Number of rows = Number of
columns
S H A H S M R U T I
STEP 2
Identify the
minimum element in
each row and
subtract it from each
element of that row.
Identify the minimum
element in each
column and subtract it
from each element of
that column .
STEP 3
STEP 4
if(Number of assign zero=Number
of rows)
{
optimal solution arrived
} else {
goto step 5
}
STEP 5
S H A H S M R U T I
STEP 6
S H A H S M R U T I
STEP 3
STEP 4
if(Number of assign zero=Number
of rows)
{
optimal solution arrived
} else {
goto step 5
}
STEP 4
Any Questions ?
IT'S A PROCESS EVEN THE MOST
TRADITIONAL THINKERS CAN ADOPT.
S H A H S M R U T I
I N D U S U N I V E R S I T Y
IMCA-IV
Thank You...
SHAH SMRUTI

Assignment problem