Or Assignment Problem
Or Assignment Problem
ASSIGNMENT PROBLEMS
• Assignment problem like the transportation problem is a special class of
LP problems which can be formulated and solved as linear problem.
• This occurs when m objective must be assigned to n facilities on a one-to-
one basis.
• This involves efficient assignment of workers to tasks/projects,
salespersons to sales territories, contracts to bidders, jobs to
machines, and so on a one-to-one basis.
• The objective is to assign a number of resources to an equal number of
activities so as to minimize total costs or total time or maximize total profit
of the assignment.
• Assignment models are special type of LP models where
• Number of sources = Number of destinations
• Each capacity and requirement value = 1
Cont’d
Assumption:
• The AP is a special case of TP under the condition that the number of
origins is equal to the number of destinations. Viz. m=n .Hence assignment
is made on the 1:1 basis.
i.e.,
• Number of jobs is equal to the number of machines or persons
• Each man or machine is loaded with one and only one job.
• Each man or machine is independently capable of handling any of the jobs
being presented.
• Each capacity and requirement value = 1 ( i.e., the supply at each source
and the demand at each destination are always one unit.).
c21
c22
2 2
c23
c31 c32
3 3
c33
4 4
5 5
JOBS
WORKERS
Cont’d
• Linear Programming Formulation
Min ∑cijxij
s.t.
∑ xij = 1 for each resource (row) i
j
∑ xij = 1 for each job (column) j
i
xij = 0 or 1 for all i and j.
Expanded form of the concise model can be obtained like TP
LP formulation
Jobs J1 J2 J3 Jn Capacity
Work crews (ai)
W1 X11, C11 X12, C12 X13, C13 X1n, C1n 1
.. .. .. .. .. ..
W3 .. .. .. .. ..
.. .. .. .. .. ..
Step 1: Subtract minimum number in each row from all numbers in that row.
Step 1: Subtract minimum number in each row from all numbers in that row
to get the first reduced cost matrix
Step 2: Subtract the minimum number in each column from all numbers in
that column to get the second reduced cost matrix
Step 2: Subtract the minimum number in each column from all numbers in
that column to get the second reduced cost matrix
Work crew, i Jobs, j
1 2 3 4 5
1 16 40 3 27 0
2 0 0 16 43 59
3 0 5 22 24 13
4 8 6 0 15 0
5 3 7 8 0 4
No. 0 7 11 0 0
subtracted
Is the initial solution optimal?
The solution is optimal
Optimal Solution
The optimal assignments among workers and jobs with
respective cost of assignment is:
1 5 25
2 2 29
3 1 48
4 3 9
5 4 26
Total cost of assignment $155
Note that it is not always possible to obtain an optimal assignment from
the second reduced cost matrix.
Ex. Cont’d
Modify the original tableau by interchange the final two elements in the 4th
column of the original tableau to show the above situation.
Jobs, j
Work crew, i 1 2 3 4 5
1 41 72 39 52 25
2 22 29 49 65 81
3 27 39 60 51 40
4 45 50 48 26 37
5 29 40 45 52 30
Initial tableau
Work crew, i Jobs, j Smallest Number
1 2 3 4 5 Subtracted
1 16 47 14 27 0 25
2 0 7 27 43 59 22
3 0 12 33 24 13 27
4 19 24 22 0 1 26
5 0 11 16 23 4 29
Second tableau Ex. Cont’d
Work crew, i Jobs, j
1 2 3 4 5
1 16 40 0 27 0
2 0 0 13 43 59
3 0 5 19 24 13
4 19 17 8 0 11
5 0 4 2 23 1 Minimum
no.
Smallest Number Subtracted 0 7 14 0 0
Third tableau
Work crew, i Jobs, j
1 2 3 4 5
1 17 40 0 27 0
2 1 0 13 43 59
3 0 4 18 23 12
4 20 17 8 0 11
5 0 3 1 22 0
Check for optimality!
Optimal Solution
The optimal assignments among workers and jobs with respective cost
of assignment is:
1 3 39
2 2 29
3 1 27
4 4 26
5 5 30
Total cost of assignment $151
Note that if this was not the optimal solution, we would have repeated step
4 until an optimal solution is reached.
Exercise 1:
A computer center has three programmers. The center wants three
application programs to be developed. The head of the computer center,
after studying carefully the programs to be developed, estimated the
computer time in minutes required by the experts for the application
programs as follows:
1 120 100 80
2 80 90 110
3 110 140 120
Assign the programmers to the programs in such a way that the total
computer time is minimized.
Exercise 1:
Solution
The pattern of assignment among programmers and programs with
their respective time (in minute) is given below:
1 C 80
2 B 90
3 A 110
Total time 280 minutes
ASSIGNMENT PROBLEMS
Exercise 2:
A department has five employees with five jobs to be performed .The
time (in hours) each man will take to perform each job is given in the
effectiveness matrix.
Employees
I II III IV V
A 10 5 13 15 16
Jobs
B 3 9 18 13 6
C 10 7 2 2 2
D 7 11 9 7 12
E 7 9 10 4 12
How should the jobs be allocated, one per employees, so as to minimize
the total man-hours?
Solution
The pattern of assignments among jobs and employees with respective
time (in hours) is given below:
Job Employee Time (In hours)
A II 5
B I 3
C V 2
D III 9
E IV 4
Total time 23 Hours
SPECIAL CASES IN ASSIGNMENT PROBLEMS
1. Multiple optimal solution
2. Maximization Cases
3. Unbalanced Assignment Problems
4. Prohibited Assignments
1 70 80 75 64
2 55 52 58 54
3 58 56 64 68
4 62 60 67 70
Required:
a) Determine the minimum-cost assignment for this problem
b) What is the total cost for the optimal assignment?
c) Is there an alternative optimal assignment? What is it? Calculate the total
cost for the alternate optimal assignment.
ASSIGNMENT PROBLEMS
Solution
1 D 64 1 D 64
2 C 58 2 C 58
3 B 56 3 A 58
4 A 62 4 B 60
Total Cost $240 Total Cost $240
SPECIAL CASES IN ASSIGNMENT PROBLEMS
2. Maximization case in assignment problems
• This may arise in a variety of situations when the assignment problem is
maximization of profit, revenue, etc as the objective function. Such
problem may be solved by stating the given maximization problem into
its corresponding opportunity cost matrix (minimization problem) by the
following procedure:
• Find the largest profit coefficient in the table or column
maximum.
• Subtract each entry in the original table from the largest profit
coefficient in the table or subtract each number in each column
from column maximum.
• Then the transformed assignment problem (opportunity cost matrix) can
be solved by using the Hungarian method.
Example: A company has four territories open, and four salesmen available
for an assignment. The territories are not equally rich in their sales
potential. Based on the past performance, the following table shows the
annual sales (in $) that can be generated by each salesman in each
territory. Find the optimal assignment and the maximum expected total
sales.
Territory (Annual Sales in $)
I II III IV
Salesmen
A 42 35 28 21
B 30 25 20 15
C 30 25 20 15
D 24 20 16 12
Territory (Annual Sales in $)
Opportunity
Cost Matrix I II III IV
Salesmen
A 0 7 14 21
B 12 17 12 27
C 12 17 12 27
D 18 12 26 30
Solution
A I 42 A I 42
B III 20 B II 25
C II 25 C III 20
D IV 12 D IV 12
Total $99 Total $99
SPECIAL CASES IN ASSIGNMENT PROBLEMS
C. Unbalanced Assignment problem
• The Hungarian method of assignment requires that the number of
columns and rows in the assignment matrix be equal. However, when the
given cost matrix is not a square matrix, the assignment problem is called
an unbalanced problem. In such cases a dummy row(s) or column(s)
are added in the matrix (with zeros as the cost elements) to make it a
square matrix. After making the given cost matrix a square matrix, the
Hungarian method may be used to solve the problem.
SPECIAL CASES IN ASSIGNMENT PROBLEMS
Example: MEGA printing press, a publisher headquartered in Addis
Ababa, wants to assign three recently hired college graduates, Marta,
Bacha and Hirut to regional sales districts in Mekelle, Bahir Dare, and
DireDawa. But the firm also has an opening in Gambela and would send
one of the three there if it were more economical than a move to Mekelle,
Bahir Dar and Dire Dawa. It will cost Br. 1,000 to relocate Marta to
Gambela, Br. 800 to relocate Baklcha there, and Br. 1,500 to move
Hirut. What is the optimal assignment of personnel to offices?
City
C1 C2 C3 C4(Gambela)
Person
City
C1 C2 C3 C4(Gambela)
Person
Location
A B C D E
Machine
M1 9 11 15 10 11
M2 12 9 - 10 9
M3 - 11 14 11 7
M4 14 8 12 7 8
ASSIGNMENT PROBLEMS
Solution
M1 A 9
M2 B 9
M3 E 7
M4 D 7
M5 (Dummy) C 0
Project Customers
leader 1 2 3
Takele 10 16 32
Paulos 14 22 40
Hirut 22 24 34
• Formulate the problem as a LP and determine the optimal assignment
with possible total time required to complete the project
Take-home Test
Two: A product is produced at three plants and shipped to three warehouses. The
transportation cost/unit are shown below.
a) Develop a LPM for minimizing transportation cost and determine the minimum cost
solution or the optimal transportation plan. What does the optimal tableau signify?
b) Determine the optimal transportation plan for the same problem if the entries were
profit/ unit instead of cost/unit.