Chapter#3 - Assignmnet Problem
Chapter#3 - Assignmnet Problem
PROJECT
PERSON 1 2 3
Brown 8 10 11
Cooper 9 12 7
Table 10.26
Assignment Model Approach
• Summary of Fix-It Shop assignment alternatives and
costs
PRODUCT ASSIGNMENT
LABOR TOTAL
1 2 3
COSTS ($) COSTS ($)
Adams Brown Cooper 11 + 10 + 7 28
Adams Cooper Brown 11 + 12 + 11 34
Brown Adams Cooper 8 + 14 + 7 29
Brown Cooper Adams 8 + 12 + 6 26
Cooper Adams Brown 9 + 14 + 11 34
Cooper Brown Adams 9 + 10 + 6 25
Table 10.27
The Hungarian Method
(Flood’s Technique)
• The Hungarian method is an efficient method of finding
the optimal solution to an assignment problem without
having to make direct comparisons of every option
• It operates on the principle of matrix reduction
• By subtracting and adding appropriate numbers in the
cost table or matrix, we can reduce the problem to a
matrix of opportunity costs
• Opportunity costs show the relative penalty associated
with assigning any person to a project as opposed to
making the best assignment
• We want to make assignment so that the opportunity
cost for each assignment is zero
Hungarian Assignment Method
• Step 1
Balance the problem if it is unbalanced
Place an M as the cost element if some
assignment is prohibited
Convert into equivalent min problem if it is
a max problem
Step 2: Identify the smallest cost element in each
row of the cost table. Subtract this smallest
element from each element in that row. As a
result there shall be at least one zero in each
row of this table called the reduced cost table.
Not
Set up cost table for problem Revise opportunity cost table in
optimal
two steps:
Step 1 (a) Subtract the smallest
number not covered by a line
from itself and every other
Find opportunity cost
uncovered number
(a) Subtract smallest number in
(b) add this number at every
each row from every number in
intersection of any two lines
that row, then
(b) subtract smallest number in
each column from every
number in that column Optimal solution at zero
locations. Systematically make
final assignments.
Step 2
(a) Check each row and column
for a unique zero and make the
Test opportunity cost table to see first assignment in that row or
if optimal assignments are column
possible by drawing the minimum
possible lines on columns and/or (b) Eliminate that row and column
rows such that all zeros are Optimal and search for another unique
covered zero. Make that assignment and
proceed in a like manner.
Figure 10.3
The Hungarian Method
(Flood’s Technique)
• Step 1: Find the opportunity cost table
– We can compute row opportunity costs and column
opportunity costs
– What we need is the total opportunity cost
– We derive this by taking the row opportunity costs and
subtract the smallest number in that column from
each number in that column
The Hungarian Method
(Flood’s Technique)
• Cost of each person- Row opportunity cost table
project assignment
PROJECT PROJECT
PERSON 1 2 3 PERSON 1 2 3
Brown 8 10 11 Brown 0 2 3
Cooper 9 12 7 Cooper 2 5 0
PROJECT PROJECT
PERSON 1 2 3 PERSON 1 2 3
Adams $5 $8 $0 Adams $5 $6 $0
Brown 0 2 3 Brown 0 0 3
Cooper 2 5 0 Cooper 2 3 0
PROJECT
PERSON 1 2 3
Adams $5 $6 $0
Cooper 2 3 0
This requires only two lines to cover the zeros so the solution is not
optimal
The Hungarian Method
(Flood’s Technique)
• Step 3: Revise the opportunity-cost table
– We subtract the smallest number not covered by a
line from all numbers not covered by a straight line
– The same number is added to every number lying
at the intersection of any two lines
– We then return to step 2 to test this new table
The Hungarian Method
(Flood’s Technique)
Revised opportunity cost table (derived by subtracting 2 from each cell
not covered by a line and adding 2 to the cell at the intersection of the
lines)
PROJECT
PERSON 1 2 3
Adams $3 $4 $0
Brown 0 0 5
Cooper 0 1 0
Table 10.32
The Hungarian Method
(Flood’s Technique)
Optimality test on the revised opportunity cost table
PROJECT
PERSON 1 2 3
Adams $3 $4 $0
Cooper 0 1 0
This requires three lines to cover the zeros so the solution is optimal
Making the Final Assignment
• The optimal assignment is Adams to project 3, Brown to
project 2, and Cooper to project 1
• But this is a simple problem
• For larger problems one approach to making the final
assignment is to select a row or column that contains
only one zero
• Make the assignment to that cell and rule out its row and
column
• Follow this same approach for all the remaining cells
Making the Final Assignment
• Total labor costs of this assignment are
Adams to project 3 6
Brown to project 2 10
Cooper to project 1 9
Total cost 25
Making the Final Assignment
• Making the final assignments
1 2 3 1 2 3 1 2 3
Table 10.34
Unbalanced Assignment Problems
• Often the number of people or objects to be assigned
does not equal the number of tasks or clients or
machines listed in the columns, and the problem is
unbalanced
• When this occurs, and there are more rows than
columns, simply add a dummy column or task
• If the number of tasks exceeds the number of people
available, we add a dummy row
• Since the dummy task or person is nonexistent, we enter
zeros in its row or column as the cost or time estimate
Unbalanced Assignment Problems
• The Fix-It Shop has another worker available
• The shop owner still has the same basic problem of
assigning workers to projects
• But the problem now needs a dummy column to
balance the four workers and three projects
PROJECT
PERSON 1 2 3 DUMMY
Adams $11 $14 $6 $0
Brown 8 10 11 0
Cooper 9 12 7 0
Davis 10 13 8 0
Table 10.35
Maximization Assignment Problems
SECTOR
SHIP A B C D
1 20 60 50 55
2 60 30 80 75
3 80 100 90 80
4 65 80 75 70
Table 10.36
Maximization Assignment Problems
Table 10.37
Maximization Assignment Problems
ASSIGNMENT EFFICIENCY
Ship 1 to sector D 55
Ship 2 to sector C 80
Ship 4 to sector A 65
M1 M2 M3 M4 M5
J1 65 40 90 80 90
J2 60 35 100 85 85
Job J3 60 38 105 90 95
J4 70 45 120 90 100
J5 65 40 105 87 90
2. A company has just developed a new item for
which it proposes to undertake a national
television promotional campaign. It has decided
to schedule a series of one minute commercials
during peak audience viewing hours of 1.00 pm
to 5.00 pm. To reach the widest possible
audience, the company wants to schedule one
commercial on each of the networks and to have
only one commercial appear during each of the
four one-hour time blocks. The exposure ratings
for each hour, which represents the number of
viewers per Rs.10,000 spent, are given under.
Network
A B C D
1-2 pm 27 18 11 9.5
Viewing 2-3 pm 19 16 17 11
hours
3-4 pm 19 19 9.9 7.7
4-5 pm 12 21 17 13
i) Which network should be scheduled
each hour to provide the maximum
exposure?
ii) How should the schedule change if it is
decided not to use Network A between
1.00 pm and 3.00 pm?