Professional Documents
Culture Documents
ST1202 04 Assignment Models
ST1202 04 Assignment Models
ST1202
Module 04:
Assignment Problems
1
ASSIGNMENT PROBLEMS cont…
Contents:
1. Learning Outcomes
2. Introduction
3. Formulating Assignment Models
4. Solving Assignment Problems
• Hungarian Method
5. Special Cases of Assignment Problems
• Unbalanced Assignment Problems
• Unacceptable Assignments
• Maximization Assignment Problems
6. Concluding Remarks
7. Review Questions 2
ASSIGNMENT PROBLEMS cont…
INTRODUCTION
The assignment model is a special case of a linear
programming model that is similar to the transportation
model.
4
ASSIGNMENT PROBLEMS cont…
FORMULATING ASSIGNMENT MODELS
5
ASSIGNMENT PROBLEMS cont…
SOLVING THE ASSIGNMENT MODELS
In solving the assignment models we use the algorithm
developed by a Hungarian mathematician, D. Konig.
6
ASSIGNMENT PROBLEMS cont…
Detailed steps are:
1.Prepare an opportunity cost table by first subtracting the
minimum value in each row (column) from all other row
(column) values and then repeating this process for each
column (row).
Machine
Job
A B C D
1 6 3 0 0
2 0 0 5 2
3 0 1 4 1
4 0 4 7 2
11
ASSIGNMENT PROBLEMS cont…
Thus, the following table is called “opportunity cost matrix.”
Machine
Job
A B C D
1 6 3 0 0
2 0 0 5 2
3 0 1 4 1
4 0 4 7 2
12
ASSIGNMENT PROBLEMS cont…
STEP 2: TEST FOR OPTIMALITY
Apply Line Test
• Now, draw minimum number of lines to cover all the zeros.
14
ASSIGNMENT PROBLEMS cont…
From opportunity cost matrix, the resulted solution after
unique assignment is:
Machine
Job
A B C D
1 6 3 0 0
2 0 0 5 2
3 0 1 4 1
4 0 4 7 2
The solution is not optimal since the number of lines crossing
all zeros is not equal to the number of rows (or columns).
15
ASSIGNMENT PROBLEMS cont…
After identifying the small number (i.e. 1) not covered by the
lines, then we subtract that entry to those entries (numbers
not covered by the lines) and add it to the number(s) covered
by two lines.
Then, the resulted assignment model is:
Machine
Job
A B C D
1 7 3 0 0
2 1 0 5 2
3 0 0 3 0
4 0 3 6 1 16
ASSIGNMENT PROBLEMS cont…
Applying the line test, we have:
Machine
Job
A B C D
1 7 3 0 0
2 1 0 5 2
3 0 0 3 0
4 0 3 6 1
The number of lines crossing all zeros is equal to the number
of rows (or columns).
Machine
Job
A B C D
1 7 3 0 0
2 1 0 5 2
3 0 0 3 0
4 0 3 6 1
18
ASSIGNMENT PROBLEMS cont…
Assignment Cost
1–C 2
2–B 7
3–D 6
4–A 5
Machine
Employee
A B C D E
1 1 0.5 0 0 0
2 0 0 0 0.5 0.5
3 0.5 1 0 1 0
4 1 1.5 0 2 1.5
5 0.5 0.5 0 1 2
23
ASSIGNMENT PROBLEMS cont…
STEP 2: TEST FOR OPTIMALITY
Apply Line Test
Machine
Employee
A B C D E
1 1 0.5 0 0 0
2 0 0 0 0.5 0.5
3 0.5 1 0 1 0
4 1 1.5 0 2 1.5
5 0.5 0.5 0 1 2
The number of lines crossing all zeros is less than number of
rows or columns; it indicates that the solution is not optimal.
24
ASSIGNMENT PROBLEMS cont…
After identifying the small number (i.e. 0.5) not covered by
the lines, then we subtract that entry to those entries
(numbers not covered by the lines) and add it to the
number(s) covered by two lines, we have:
Machine
Employee
A B C D E
1 1 0.5 0.5 0 0.5
2 0 0 0.5 0.5 1
3 0 0.5 0 0.5 0
4 0.5 1 0 1.5 1.5
5 0 0 0 0.5 2 25
ASSIGNMENT PROBLEMS cont…
Consequently; applying the line test, we have the following
improved tableau:
Machine
Employee
A B C D E
1 1 0.5 0.5 0 0.5
2 0 0 0.5 0.5 1
3 0 0.5 0 0.5 0
4 0.5 1 0 1.5 1.5
5 0 0 0 0.5 2
The number of lines crossing all zeros is equal to the number
of rows. Thus, there is an optimal solution.
26
ASSIGNMENT PROBLEMS cont…
The optimal assignment is shown below:
Machine
Employee
A B C D E
1 1 0.5 0.5 0 0.5
2 0 0 0.5 0.5 1
3 0 0.5 0 0.5 0
4 0.5 1 0 1.5 1.5
5 0 0 0 0.5 2
The optimal assignment with their respective costs is:
1D = 6, 2A = 2 3E = 3 4C = 2 5B = 7
Therefore, total minimum cost = 6 + 2 + 3 + 2 + 7 = 20 27
ASSIGNMENT PROBLEMS cont…
Alternatively; the optimal assignment is shown below:
Machine
Employee
A B C D E
1 1 0.5 0.5 0 0.5
2 0 0 0.5 0.5 1
3 0 0.5 0 0.5 0
4 0.5 1 0 1.5 1.5
5 0 0 0 0.5 2
2. Unacceptable Assignments
3. Maximization Problems 30
ASSIGNMENT PROBLEMS cont…
Unbalanced Assignment Models
We have two cases to be addressed:
and
31
ASSIGNMENT PROBLEMS cont…
These two cases they can be resolved by adding a dummy
variable with all costs elements as zeros to the given
assignment matrix to make it a square matrix as follows:
Row Reduction
Machine
Job
A B C E
1 0 5 2 8
2 0 3 8 2
3 2 0 4 7
Dummy Job (4) 0 0 0 0
35
ASSIGNMENT PROBLEMS cont…
Column Reduction
Column reduction is not necessary since all columns contain
zero value(s) as shown below.
Machine
Job
A B C D
1 0 5 2 8
2 0 3 8 2
3 2 0 4 7
Dummy Job (4) 0 0 0 0
36
ASSIGNMENT PROBLEMS cont…
STEP 2: TEST FOR OPTIMALITY
Machine
Job
A B C D
1 0 5 2 8
2 0 3 8 2
3 2 0 4 7
Dummy Job (4) 0 0 0 0
Machine
Job
A B C D
1 0 5 0 6
2 0 3 6 0
3 2 0 2 5
Dummy Job (4) 2 2 0 0
The revised assignment tableau indicates that there is
optimal solution since the minimum number lines crossing all
zeros is equal to the number of rows or columns.
38
ASSIGNMENT PROBLEMS cont…
The optimal assignment is shown below:
Machine
Job
A B C D
1 0 5 0 6
2 0 3 6 0
3 2 0 2 5
Dummy Job 2 2 0 0
(b) Find the cost involved for the optimal assignment of job.
43
ASSIGNMENT PROBLEMS cont…
SOLUTION:
Since from the given assignment problem there are restricted
assignments. Then, we have to assign largest cost, M, for
such assignments as follows:
Job
Men
A B C D E
1 16 12 11 M 15
2 13 15 11 16 18
3 20 21 18 19 17
4 16 13 M 16 12
5 20 19 18 17 19 44
ASSIGNMENT PROBLEMS cont…
Row Reduction or Row Minimum
Job
Men
A B C D E
1 5 1 0 M 4
2 2 4 0 5 7
3 3 4 1 2 0
4 4 1 M 4 0
5 3 2 1 0 1
45
ASSIGNMENT PROBLEMS cont…
Column Reduction or Column Minimum
Job
Men
A B C D E
1 3 0 0 M 4
2 0 3 0 5 7
3 1 3 1 2 0
4 2 0 M 4 0
5 1 1 1 0 1
46
ASSIGNMENT PROBLEMS cont…
Now, we draw minimum number of lines to cover all the
zeros, as shown below:
Job
Men
A B C D E
1 3 0 0 M 4
2 0 3 0 5 7
3 1 3 1 2 0
4 2 0 M 4 0
5 1 1 1 0 1
Since the number of lines crossing all the zeros is equal to
the number of rows (or columns), then there is optimal
solution. 47
ASSIGNMENT PROBLEMS cont…
The optimal assignment is shown below:
Job
Men
A B C D E
1 3 0 0 M 4
2 0 3 0 5 7
3 1 3 1 2 0
4 2 0 M 4 0
5 1 1 1 0 1
From the above optimal assignment we have to compute the
total minimum cost by taking:
Total cost = 11 + 13 + 17 + 13 + 17 = 71 48
ASSIGNMENT PROBLEMS cont…
CLASS ACTIVITY 04
In a plant layout, four different machines M1, M2, M3 and M4
are to be installed in a machine shop. There are five vacant
areas A, B, C, D and E.
49
ASSIGNMENT PROBLEMS cont…
Area
Machine
A B C D E
M1 4 5 9 4 5
M2 6 4 – 4 3
M3 4 5 8 5 1
M4 – 2 6 1 2
Sales Area
Sales
Representative A B C D E
1 10 3 0 12 0
2 0 16 13 19 4
3 0 8 7 10 5
4 15 2 0 4 4
5 33 0 21 28 23
54
ASSIGNMENT PROBLEMS cont…
Column Reduction or Column Minimum
Sales Area
Sales
Representative A B C D E
1 10 3 0 8 0
2 0 16 13 15 4
3 0 8 7 6 5
4 15 2 0 0 4
5 33 0 21 24 23
Now, we draw the minimum number of lines to cover all
zeros. 55
ASSIGNMENT PROBLEMS cont…
Sales Area
Sales
Representative A B C D E
1 10 3 0 8 0
2 0 16 13 15 4
3 0 8 7 6 5
4 15 2 0 0 4
5 of lines33
Since the number 0 all 21
crossing zeros 24
is less23than the
number of rows (or columns).
59
ASSIGNMENT PROBLEMS cont…
District
Salesman
A B C D E
1 32 38 40 28 40
2 40 24 28 21 36
3 41 27 33 30 37
4 22 38 41 36 36
5 29 33 40 35 39
• Why AP?
61
ASSIGNMENT PROBLEMS cont…
REVIEW QUESTIONS
1. Develop an assignment plan that will minimize the processing cost
given the information shown and interpret your answer.
Machines
Jobs
A B C
1 12 8 11
2 13 10 8
3 14 9 14
4 10 7 12
62
ASSIGNMENT PROBLEMS cont…
2. The following table contains information on the cost to run three
jobs on four available machines.
a) Determine an assignment plan that will minimize opportunity
costs.
b) Compute the total costs.
c) Interpret the assignment plan.
Machines
Jobs
A B C D
1 12 16 14 10
2 9 8 13 7
3 15 12 9 11
63
ASSIGNMENT PROBLEMS cont…
3. Using the assignment method to obtain a plan that will minimize
the processing cost in the following table under these conditions:
a) The combination 2–D is undesirable
b) The combination 1–A and 2–D are undesirable.
Machines
Jobs
A B C D E
1 14 18 20 17 18
2 14 15 19 16 17
3 12 16 15 14 17
4 11 13 14 12 14
5 10 16 15 14 13
64
ASSIGNMENT PROBLEMS cont…
4. A company has 6 sales areas and 6 salesmen, from past experience
it is known that the salesman perform differently in the different
areas. The sales director has estimated sales (in Tshs”000”) for
each person in each area. These are given in the following table:
Sales Area
Jobs
1 2 3 4 5 6
A 68 72 75 83 75 69
B 56 60 58 63 61 59
C 35 38 40 45 25 27
D 40 42 47 45 53 36
E 62 70 68 67 69 70
F 65 63 69 70 72 68
65
ASSIGNMENT PROBLEMS cont…
How should you assign each salesman to each of these areas in
order to maximize total sales.
66
ASSIGNMENT PROBLEMS cont…
Machine
Machinist
A B C D
1 12 11 8 14
2 10 9 10 8
3 14 8 7 11
4 6 8 10 9
Any Questions?
CLASS ACTIVITY 06
Thank you! 70