Assignment+Problems
Assignment+Problems
Chapter 4
ASSIGNMENT PROBLEMS
"Assignment
alternatives."
Problem is the technique of selecting the best possible assignment of tasks from a number of
Assignment problems are associated with matching of objects in two distinct set or bringing out optimal pairing. For
example. in a children's garment aales depot, there are four sales counter and four salesmen. Now the problem is how
assignment of salesmen should b done to the counters in such amanner that the total service time is minimised altogether.
4.1.2. Mathematical Model of Assignment Problem
Given n facilities (resources) and jobs (or activities), and effectiveness (in terms of time, profit, cost, etc.) of each
facility (resource) for each job (activity), the problem lies in assignment of each resource to one and onty one job
(activity)
table 4.1.
such that there is optimisation of given efectiveness measure. For this problem, the data matrix is shown in
Table 4.1
Resources Supply
(workers) J,
W, C2 .... Cin
W: C21 C22 .. C2n 1
W, Cn2 . Cnn
Demand 1... 1
It is observed from the table that the data matrix looks exactly like the transpòrtation cost matrix. Only exception
being availability (or supply) of cach resource and the demand is takcn to be one at each destinations. The fact that
lies behind this is assignment on a one-to-one basis.
Let x; denote the assignment of facility i to job j such that:
if facility is assigned to job j
X; |0otherwise
Then. the mathematical model of the assignment problem can be stated as:
2) Simplex Method Simplex method can be used for solving the assignment problem because each assignment
problem can be formulated as a or iateger LPP which are solved simply by simplex method. In the genera!l
mathematical formulation of assignment problen, it is seen that there are n + n o, 2h equalities and nxn
decision. For example, to solve a problem with 5 workers/jobs, there will be 10 equalities and 25 deci_ion
variables which are hard to solve manually.
3) (Transportation Method Assignment problem is known to be aspecial case of transportation problem and thus it
can be solved by the use of transportation methods. However, for a generai assignment problem, every basic
feasible solution having a square payoff matrix of order nmust have assignments m+n -i=ntñ-1n-tBut
any solution cannot possess more than nassignments due to special structure of the problem. Thus, there is inherent
degeneration of the assignment problem. So, for removing the degeneracy, dummy allocation of (n - 1) number is
required so as to proceed with such transportation method. Thus, it can be evaluated that degeneracy problem at
each solution makes the method of transportation inefficient computationally for assignment problem solution.
4 Hungarian Assignment Method (HAM):)It is observable that none of the above mentioned three working
methods tuSotve un assignment problem is efficient. Amethod specially designed to handle assignment problems is
an efficient way that is based on the opporturity cost concepi, known as Hungarian Assignment Method.
This HAM method modifies successively the colugns and rows of the efiectiveness mazix uail there is
observance of at least one zem compePeR in-cachcolumn and rowsothat acomplete assgnment can be made
correspondingtothese zeros. When applied to the original effectiveness matrix, the complete assignment conzs
out to be an optimal assignment in which the resulting total effectiveness comes out to De miuimal, There will
always be aconvergence of this method to optimal assignments in finite steps which are sechnically termed as
assign1nent algorithm.
95
Assignment Problems (Chapter 4)
Step 4: In the case when minimum number of lines in n xn matrix is less than n then smallest number is-selected
which do not hav a line through it.
Step 5: Thi_ number is then subtracted from all elements that are. covered by lines and added to the elements which
are located at the intersection of two lnes. Step (3) is applied again to find a solution among the new set of zeros. In
case, no result is found, this step is repeated and usage of step (3) and (4) is continued until we find a solution of the
assignment problem.
START
It is a maximization Yes
minimization problem by
subtracting all the elements
problem? from the largest element
.No
Stop
Figure 4.1: Flow Chart for the Hungarian Method
96 (Unit-Il)
MBA Second Semester (Operations Research) MDU
Step 6: The job assignments are made with the help of given optimal solution as indicated by the 'zero' elements.
The procedure for this is as
follows:
Slocated whichis containingonly one zero' element. The job coresponding to dhis clemcnt is assigned
iOrresponding person. All zeros in the column corresponding to the element are crossed out, if any. This
Indicates the fact that there is no moe availability of particular person or job.
)srepeated for cach of such rows that contains only one zero in that. The same operation is performed
ilariy with respect to each column containing only one 'zero' element in the row in which there is element, if any.
ae when there is no column or row with only one 'zero' element left in them, then arbitrarily selection of a
Tow/cotumn is made and one of the iobs or person is chosen to make assignment. Now the remaining zeros are
Crossed in the row and column with respect to which we have done the assignment.
V) Repeat steps (i) to (iii) until we have dore all the
assignments.
V) Total cost is determined with refereruce to the original cost table. Sallet
Example 1: Solve the following assignment problem using Hungarian Method.
Tasks
Men |A B D
1 45 40 50 67
57 12 63 55
3 4 5 48 64
4 41 45 60 55
Step 2) Column Reduction: Select the lowèst elemént of each column and subtract it from the other elements of
that column às follows:
Tasks
Men A olel D
1 0 14
2 15 21
3 3 3
4 4 19 1
Step 3) Draw Lines: Now we have to draw minimum number of lines in auch a manner that it covers all zeros. For
this one has to first cover those rows/columns that contain maximum zeros.
Men
Tasks o 21 2G
B
A
5
C D
14
4 32 og
t5
3
-
As the total number of ines drawn is 4 which are equal to rows/columns (n = 4), so ie solutioa is opün
The assignment can be made oy scanning all zeros. The assignments are shown by square svmbol às shown
in lable 4.2: Table 4.2: Assignaleat of Tasks
Tasks
Meu
X
1 2
97
Assignment Problems (Chapter 4)
third ad
SIep 4) Optimal Solution: The assignment madc occur in the following seauence. Since the first, assigned
[-B. 3-Cand 4-À, As the task B is 1o e
rows have only one zero, hcnce assignment will be second row is O
zero occur in the
men l, we cross-out other zeros oCcur in the sccond column. The only
men 2 and task D. Hence the assignment will be 2-D.
The optimal soution will be as follows:
Men Tasks Cost
1 B 40
2 D 55
3 C 48
4 A 41
Total 184
R Cabmn Reduction: Select the lowest element of each column and subtract it from the other
elements f
that column as follows:
A C D
P 35 25
30 30 5
R 10 10
S 20 20 33
98 (Unit-ll)
MBA Second Semester (Operations Rescarch) MDU
p that
Brawit Lines:Now we have to draw minimum number of lines (horizontal and vertiçal) in such a manner
S n a l l eht t
covers all zeros.
B C
uncudala
P 35 10
Od
addral
30
S 20 20
Here the number of lines drawn (3) is less than the order of cost matrix (n = 4), bence this solution is not
opimal. For obtaining the optimal solution, we have to subtract the minimurh unçovered value of cost
matrix from other uncovered clements af matrix, except intersection point of lines where the values are
Sdded.
A C
P 30 25 0 5
25 30
R 0 15 15
S 15 5 0 15
D L e l
30 25
Ro 4 5 - - 5 . f
15
Since again the total number of lines that covering the all zeros (3) is not equal to order of the matrix (n=4),
hence the solution is not optimal. Again deduct the mininmum uncovered value from all other uncovered
vafues, exceptfrom the values of point of interseçion lines, where the values are added.
A B C D
P 25 20
25 35 0
R 15 20 0
S 10 0 10
Now, the numbers of ine (4) is equal to order of matrix (n =4). Hence this provides optimal solution. The
assignment will be as follows: A D
P 25 20 O
25 |O 35
RO 15 20
S 10| O 10
Example 3: A computer science faculty of a college decides to arrange special seminars on four modern topics n
order to motivate students for academic discussion. These topics are Computer Network, Information System,
Operating System and E-Commerce. Each seminar should be held once per week at 12:00 0' Clock. The schedul1ng
of these seminars should be done in such a manner that number of students (not attending) is kept to a
The number of students which are unable to attend a soecificsemtnar of partictular day is shown in minimum.
table below:
Computer Network Information System Operating System E-Commerce
(CN) (IS) (OS) (E-Comm)
Monday 40 60 20
Tuesday 40 30
54 Wednesday
Thursday.
60
30
20
30
40
30
20
30
20
30
Friday 10 20 10 30
Find the optima! schedule of these seminars, Also, find the number of students who are unable to attend at
seminar. least one
Solution: It is an unbalanced problem with five numbers of days and four seminar topics. For
problem, we introduce a ummy coluinn with zero values as fottows: balancing this
Computer Network Information SystemOperating System E-Commerce Dummy
(CN) (S) (OS) (E-Comm) (E)
Monday 50 40 50 20
Tuesday 40 30 40 30
Wednesday 60 20 30 20
Thursday 30 30 20 30 0
Friday 10 20 10 30
Since the number of lines (4)is less than the order of matrix (n=5), hence this solution is not oplimal.
FOr obtaining the optimal solution, we have to subtract the minimum uncovered value of matrix from other
uncovered elements of matrix, except interscction point of lines where the values are added.
CN IS OS E-Comm
Monday 30 10 30 -
Tuesday 20 20-+ 10
Wednesday 0 20 10 10
Thursday 10 10
Friday 20 10
Wednesday 50 0 10
Thursday 10 10
Friday 200
Now, the numbers of line (5) is equal to order of matrix (n =5). Hence it is optimal solution. The assignment
will be as follows:
CN IS OS E-CommE
Monday 30 10 30
Tuesday 20 20 10
Wednesday 50 0 20 10 10
Thursday 10 10
Friday X 20
Solution: After applying the Hungarian method, we have the following steps:
subtract it from the other elements or hat Iow
Dlep 1) Kow Reduction: Select the lowest element of cach row and
as follows:
Salesman Regions
R R, R R4
S 10
S, 6 2 12
S. 11 8 9
SA 8 58
Step 2) Column Reduction: Select the lowest clement of each column and subtract it from the other elements Of
that column as follows:
Salesman Regions
R, R R, R
S 8 0 1
S 6 1 3
S 11 .7
S ( 0 49
Step 3) Draw Lines: Now we have to draw minimum number of lines (horizontal and vertical) in such a manner
that it covers all zeros.
Salesman Regions
R1 R, R3 R4
S
S 6 1 3
Since the number of lines (4) is equal to the order of matrix (n=4), hence solution is optimal. The assignment
can be made by scanning all zeros. Assign zero with the symbol I in the rowthat contains only one zero and
Cross out all other zeros of corresponding column. Same process will be done along column. The
assignments are shown in table below:
Regions
Salesman
R R, R3 R
S 8 0
S 6 3
S 11 7
S. 8 49
S; > Ra
S4’ R3
Hence Minimum Cost = 27 +28 + 33+ 25 =113.
t p l e , the following matrices show the transfomation of profit matrix (maximization) to cost matrix
(minimization): Profit Matrix Cost Matrix
6 1
12| 17 1
Subtract from 18
14 16 12
15 18 13 3 0
Example 5: Let consider the following matrix that shows the four jobs (J1, Je, Js, J4) done by four machines (M;. Me,
M3, M4). Using Hungarian method, assign the jobs in sucha manner that it maximizes the total profit.
M M; M, M4
J 15 11 13 15
J, 13 12 12 13
J3 14 15 16 14
Ja 16 13 11 17
J
J, 3 2 3
J 1 4 6
Step 2) Row Reduction: Now, select the smallest element of each row and subtract it from the other elements of
that row as follows:
M, M,M, M,
4
1
0
J, 6 0
Step 3) Column Reduction: Similar processis applied on column, that is, select the smallest element of cach
column and subtract it from the other elements of that column. We get the following table:
M, M M M
J 3 2 0
J 1
J5 2 2
Ji13 6
Step 5) Draw Lines: Now we have to draw minimùn number of lines (horizontal and vertical) in such a manner
that it covers all zeros.
MM,| M3: M4
J3 2
J
Ja it
Assignment Problems (Chapter 4) 103
Since the number of lines (4) is equalto the order of matrix (n=4), hence solution is optimal. The assignment
Can be made by scanning all zeros. The assignments are shown below:
M, M M, M4
J,o 3 2
Js 2
Ja 1 3 6
B 6 7 6 1
Worker
6 5 3
4 2 3 1
E|5 3 1
Find the assignment of workers to different jobs in order to minimise the working tim. Also calculate the minimum
time needs for the completion of jobs.
Solution: Applying Hungarian method, we have the following steps:
Step 1) Row Reduction: First, select the smallest element of each row and subtract it from the other elements of
that row. We get following table:
Job
J, J J, J4 J,
|<aA A 1
5
1
6
6
Worker
C3 5 2 0
D3 6 2
E4 2
Step 2) Column Reduction: Similar process is applied on column, that is, select the smallest element of each
column and subtract it from the other elementsof that column. We get the following table:
Job
A 4
B 4 6 3
Worker
D 2 5
E3 2
104 (Unit-il) MDU
MBASecond Semester (Opcrations Research)
Sep 3) Draw Lines: Now we have todraw minimum number of lines (horizontal and vertical) in such a manner
that it covers al zeros.
Job
J J
B 4 5
Worker
C24
D
E3 I | 7 2 |
Since the number of ines drawn (4) is less than the order of the matrix (n = 5), hence the solution is not
optimal.
For obtaining the optimal solution, we have to subtract thg minimum uncovered value (1) of matrix from
other uncovered elements of matrix, except intersectionpoint of lines where the values are added.
Job
A 0 4
B 2 0
Worker
4 3
D 5 1
Now, again lines are drawn in order to cover all zeros at least once. We get the following table:
Job
J Ja
A
B 3
Worker 2 A
2 5
E 2 6
Now, the numbers of line (4) is again less than the order of matrix (n =5). Hence it is not optimal solution.
Again we have to apply similar method as shown above. We get the following table:
Job
J
A0 9 0 6 3
B 1 5 2 2 0
Worker
C 4 0
D 3 1
4 1
Again we have to draw minimum number of lines for determining optimal solution.
Job
J Jh J J, J.
A -
B 2
Worker
C0 4 1
D 3
E 4
Assignment Problems (Chapter 4) 105
Now, the numbers of line (5) is cqual to order of matrix (n =5). Hence it is optimal solution. The ass1gament
will be as follows:
Job Job
J, J, J JA J J
<e 3 A lol6 3
20 R 1 5 2 0
Worker Worker 4
4 1 0 1
|
DXo DX 1
E O4 o41
Optimal Assignment I Optimal Assignment II -
Job
A 3
B 1 2 2 0
Worker 4 1
D X 3 ol 1
EX[01 4 A BC D
Optimal Assignment II
A
Step 4) Optimai Solution: There exists three optimal assignments as shown below:
Table 4.3: Optimal Assignments
Optimal Assignment| Optimal Assignment Optimal Assignment
(I) ()
Worker Job Working Time Job Working TimeJob Working Time
A
B J. 1 J
C J. 3 J
4 J 3
D J, J,
5 3 J 3
J
Total 13 13 13
Hence from the table above, it is clear that the minimum tine required for the completion of jobs is 13
hours.
sl.6.6. ]TraveBing Salesman's Proble returns back to the starting city by incurring the minimum cost and
In sucha problem, asalesman travel in cities and
problem is that all the
Travelling across one city is allowed only once. The assumption made in traveling salesman
by the cost incurred.
cities are connected with each other. The di_tance betwcen two cities is indicated
arranged by him in
For example, assume how posts are delivered by the postnan to the addre_see. Allthe letters are
If arrangement of
an order and then only he starts from post office to deliver all the posts and comes back finally. addressee. Same
posts to the
posts in an order is not done, he may need to travel longer distance so as to clear all the
Way, a raveling salesman needs to plar his visits in a particulár sequence.
back to head office. During his
Let us consider his journey starts from head office to branch offices and then finally
branches.
travel, he would not visit the brench onçe visited and he will be back only after visiting all the
Different types of traveling salesman's problems do exist. Some of these are as follows:
Hungarian method. In this, a
1) Cyclic Problem: This type of problem is solved by Assignment method or theand finally comes back to the
traveling salesman starts journey from_the headquarters and visits al branches
headquarters.
2) Acvclic problem: This is the second type of traveling salesman problem solved by the Dynamic prograrng
salesman starts from the headquarters and he
method. In this type of traveling salesman prcblem, journey of
visits all intermediate branches and reaches the iast branch finally and stays there.
106 (Unit-ll) (Operations Research) MDU
MBA Second Semester
This type of problenn is further classificd into two types:
1) Symmetrical: When the distancc (or time or cost) between cvery cities pair is not dependent on he jou
direction, it is said to be symmctrical acyclic problem.
ii) Asymmetrical: When for one or more cities pair, the distance (or time or cost) is dependent on ine jouy
direction i.c., it changes with the dircction, it is said tÛ be as vmmetrical acyclic problem. For exanpes
while salcsman has to visit two cities only, A and B. there is no choice as such, But while he has to ViStt
cities, there are 2! Possible routes for the jourmey. While having 4 cities, he has 3! Possible routes for tne
travel: Gcnerally, to visit n cities there are (n - 1)! Possible routes for travelling along.
There is much similarity in the ravelling salesman problem and the assignment problem. The only point where these
two varies is an additional restriction in case of travelling salesman problem that is X; is chosen such tnat nere
double visit to any city before completion of travel to all the citics.
Example 7: Solve the travelling-salesman problem given in the matrix form as shown below:
To
A C D 24
P 46 16 40
41 50
From 40 o
R 82 32 6 -
40 40 36
Step 2) Coiumn Reduction: Similar method is applied on column, that is, select the
smallest
column and subtract it from the other elements of that column. We get the following table: element of each
A B C
P 30 24
0 10 0
49 0 28
S3 4 0
R
3 3 4
Since the number of lines drawn (3) is less than the order of
optimal. For obtaining the optimal solution, we have to subiractthethe matsx(n =4), hence the solution is not
fYom other uncovered elements of matrix, except intersection point ofminimum uncovered value (3) of matriy
lines where the values are added
A B
P 27 21
0 13
49 28
Assignment Problems (Chapter 4) 107
Again we have to draw minimum number of lines for determining optimal solution.
B C
5
P -24..
R -49-0
S
Now, the numbers of line (4) is equal to order of matrix (n 4), Hence it is optimal solution. Now the
assignment will be as follows:
A D
27 0 21
13
R 49 28
1
4.2. EXERCISE
4.2.1. Short Answer Type Questions annual sales (in rupees of lac) that can be generated by each
1 What is assignment problem? salesman in each territory.
2) List-out models in assignment problems. Find the optional assignment.
3) What are the advantages of assignment problem?
4) What are the limitations of assignment problem? Territory
5 What is the optimality criterion in the assignment problem? Salesmen T,| T, T: T4 Ts
S 26 4 10 !2
6) Explain Hungarian method of assignment problems?
7) What is an unbalanced case in an assignment model? S, 31 27 14
S 15 18 16 25 30
4.2.2. Long Answer Type Questions 17 12 21 30 25
1) Five Salesmen are to be assigned to five Territories based S. 20 19 25 16 10
on the past performance; the following table shows the
[Ans: S, ’ T;, S, ’ T, S, ’T, S,’T, S; ’ T}
108 (Unit-ll)
MBA Sccond Semester (Operations Research) MDU
2) Solve the assignment problem for optimal solution
using given in the table below. Dctermine he assignment pattern
hungarian method. that:
Job Minimises the total time taken,
Worker
ii) Minimises the total cost of getting the five jobs done.
A R C
Table: Employee
45 40 6 8oloell
A B C D
57 42 63 9 3 3 2
49 52 46 64
4 41 45 60 Job 3 4 10 7
55
5 4
|Ans: |B,2-’D,3C, 4-A) 6 6
3) Solve the problem of (Ans:
maximise the sales:
assignment for the given table to
i) 1-C, 2- B, 3 - A, 4 - D. 5 - E: 11hours.
Machines ii) 1-D, 2 -B, 3- A, 4-C,5- E; E;45]
A B D
7) Solve the following assignment problem to minimise time:
Table: Jobs
32 38 40 28 40) 1 2 3 4 5
40 24 28 21 36 1|2 937|1
sqof 2 6 8 7 6
3 27 33 30 37
Men 3 6 5
41 36 36 4 42 3 1
33 40 35 39 5 539 1