0% found this document useful (0 votes)
14 views25 pages

OR CH.4 - ASSIGNMENT Model

The document discusses an assignment problem to minimize costs by efficiently assigning workers to projects. It provides an example of a fix-it shop with 3 projects and 3 workers, and uses a linear programming model and the Hungarian method to find the optimal assignment with the lowest total cost.

Uploaded by

keyruebrahim44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views25 pages

OR CH.4 - ASSIGNMENT Model

The document discusses an assignment problem to minimize costs by efficiently assigning workers to projects. It provides an example of a fix-it shop with 3 projects and 3 workers, and uses a linear programming model and the Hungarian method to find the optimal assignment with the lowest total cost.

Uploaded by

keyruebrahim44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 25

Chapter 4

Assignment Models
The Assignment Problem
• This type of problem determines the most
efficient assignment of people to particular
tasks, etc.
• Objective is typically to minimize total cost or
total task time.
Linear Program for Assignment
Example
• The Fix-it Shop has just received three new
repair projects that must be repaired
quickly: a radio, a toaster oven, and a
coffee table.
• Three workers with different talents are
able to do the jobs.
• The owner estimates the cost in wages if
the workers are assigned to each of the
three jobs.
• Objective: minimize total cost.
Example of an Assignment Problem in a
Transportation Network Format
Linear Programing for Assignment
Example
Let:
– Xij = 1, if person i is assigned to project j, or
0 otherwise.
Where:
– i = 1,2,3 with 1 = Adams, 2 = Brown, and 3 = Cooper
– j = 1,2,3, with 1 = Project 1, 2 = Project 2, and 3 = Project 3.
Linear Program for Assignment
Example
Minimize total cost = 11X11 + 14X12 +
6X13 + 8X21 + 10X22 + 11X23 + 9X31
+ 12X32 + 7X33
Subject to:
–X11 + X12 + X13 ≤ 1
–X21 + X22 + X23 ≤ 1
–X31 + X32 + X33 ≤ 1
–X11 + X21 + X31 = 1
–X12 + X22 + X32 = 1
–X13 + X23 + X33 = 1
–Xij = 0 or 1 for all i and j
The Assignment Algorithm
• The second special-purpose of LP algorithm is the
assignment method.
• Each assignment problem has associated with a table, or
matrix.
• Generally, the rows contain the objects or people we wish
to assign, and the columns comprise the tasks or things to
which we want them assigned.
• The numbers in the table are the costs associated with
each particular assignment.
• An assignment problem can be viewed as a transportation
problem in which the capacity from each source is 1 and
the demand at each destination is 1.
Assignment Model Approach
• The Fix-It Shop has three rush projects to repair.
• The shop has three repair persons with different talents
and abilities.
• The owner has estimates of wage costs for each worker
for each project.
• The owner’s objective is to assign the three project to the
workers in a way that will result in the lowest cost to the
shop.
• Each project will be assigned exclusively to one worker.
Assignment Model Approach
Estimated Project Repair Costs for the Fix-It Shop Assignment
Problem

PROJECT

PERSON 1 2 3

Adams $11 $14 $6

Brown 8 10 11

Cooper 9 12 7
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
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.
Three Steps of the Assignment Method

1. Find the opportunity cost table by:


by
(a) Subtracting the smallest number in each row of the
original cost table or matrix from every number in
that row.
(b) Then subtracting the smallest number in each column
of the table obtained in part (a) from every number
in that column.
2. Test the table resulting from step 1 to see whether an
optimal assignment can be made by drawing the
minimum number of vertical and horizontal straight lines
necessary to cover all the zeros in the table. If the
number of lines is less than the number of rows or
columns, proceed to step 3.
Three Steps of the Assignment Method

3. Revise the opportunity cost table by subtracting the


smallest number not covered by a line from all numbers
not covered by a straight line. This same number is also
added to every number lying at the intersection of any
two lines. Return to step 2 and continue the cycle until
an optimal assignment is possible.
Steps in the
Assignment
Method
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-Project Row Opportunity Cost
Assignment for the Fix-it Table for the Fix-it Shop
Shop Problem Step 1, Part (a)
PROJECT PROJECT
PERSON 1 2 3 PERSON 1 2 3

Adams $11 $14 $6 Adams $5 $8 $0

Brown 8 10 11 Brown 0 2 3

Cooper 9 12 7 Cooper 2 5 0

The opportunity cost of assigning Cooper to


project 2 is $12 – $7 = $5.
The Hungarian Method (Flood’s
Technique)
Derive the total opportunity costs by taking the costs in Table
above and subtract the smallest number in each column
from each number in that column.
Total Opportunity Cost Table for the Fix-it
Shop Step 1, Part (b)
PROJECT
PERSON 1 2 3

Adams $5 $6 $0

Brown 0 0 3

Cooper 2 3 0
The Hungarian Method (Flood’s
Technique)
• Step 2: Test for the optimal assignment.
– We want to assign workers to projects in such a way
that the total labor costs are at a minimum.
– We would like to have a total assigned opportunity cost
of zero.
– The test to determine if we have reached an optimal
solution is simple.
– We find the minimum number of straight lines
necessary to cover all the zeros in the table.
– If the number of lines equals the number of rows or
columns, an optimal solution has been reached.
The Hungarian Method (Flood’s
Technique)
Test for Optimal Solution to Fix-it Shop Problem
PROJECT
PERSON 1 2 3

Adams $5 $6 $0

Brown 0 0 3 Covering line 1

Cooper 2 3 0

Covering line 2

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 for the Fix-it Shop
Problem

PROJECT
PERSON 1 2 3

Adams $3 $4 $0

Brown 0 0 5

Cooper 0 1 0
The Hungarian Method (Flood’s
Technique)
Optimality Test on the Revised Fix-it Shop
Opportunity Cost Table
PROJECT
PERSON 1 2 3

Adams $3 $4 $0

Brown 0 0 5 Covering line 2

Cooper 0 1 0

Covering line 1 Covering line 3

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.
• 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:

ASSIGNMENT COST ($)

Adams to project 3 6

Brown to project 2 10

Cooper to project 1 9

Total cost 25
• End of Chapter 4

You might also like