Assignment Problem PDF 1
Assignment Problem PDF 1
Assignment Problem
"We don't have as many managers as we should, but we would rather have too few than too
many."
- Larry Pag,
PREVIEW
An assignment problem is a particular case of a transportation problem where the given resources are
allocated to an equal number of activities with an aim of either minimizing total cost, distance, time er
maximizing profit. Travelling salesman is a specific application of assignment model.
LEARNING OBJECTIVES
CHAPTER OUTLINE
10.1 Introduction 10.5 A Typical Assignment Problem
10.2 Mathematica! Model of Assignment Problem 10.6 Travelling ~alesman Problem
10.3 Solutlon Methods of Assignment Problem • Self Practice Problems C
• Conceptual Questions A • Hints and Answers
• Self Practice Problems A □ Chapter Summary
• Hints and Answers □ Chapter Concepts Quiz
10.4 Variations of the Assignment Problem □ Case Study
• Conceptual Questions B D Appendix : Important Results and Theorems
• Seif Practice Problems B
• Hints and Answers
Assignment Problem
ON
10. 1 INTRODUCTI
An assignment problem is a paiticular case of a transportation problem where the resources (say facilities)
. re assignees and the , destinations
,I ,
are activities (say jobs). Given II resources (or facilities) and n activities
(or jobs), with effecttve~ess (m terms of cost, profit, time, etc.) of each resource for each activity. Then
problem becomes to assign (or allocate) each resource to only one activity Qob) and vice-versa so that the
given measure of effect_iveness is o
_ ptimized.
The problem of assignment arises because the resources that are available such as men, machines, etc.,
have varying degree of efficiency for performing different activities. Therefore, the cost, profit or time of
perfom1ing different activities is also different. Thus, the problem becomes: How should the assignments
be made in order to optimize the given objective.
Some of the problems where the assignment technique may be useful are assignment of (i) workers
to machines, (ii) salesmen to different sales areas, (iii) clerks to various checkout counters, (iv) classes to Assignment table
rooms, (v) vehicles to routes, (vi) contracts to bidders, etc. is a convenient way
to summarize
available data.
10.2 MATHEMATICAL MODEL OF ASSIGNMENT PROBLEM
The general data matrix for assignment problem is shown in Table I 0.1. It may be noted that this data matrix
is the same as the transportation cost matrix except that the supply (dr availability) of each of the resources
and the demand at each of the destinations is taken to be one. It is due to this fact that assignments are
made on a one-to-on~ basis.
Table 10.1
Assignment Data
Matrix
Demand n
Suppose, xiJ represents the assignment of resource (facility) i to activity Qob) j such that
i XiJ
/=I
=I
'
for all) (activity requirement)
Make assignments in the opportunity cost matrix The procedure of making assignm ents
~tep 3:
1s as follows:
A'l<ilurnn,int f'rcA,1,,rn
• Repeat steps (a) and (b) successively until one of the following si tuations arise .
No
Add dummy row(s) or column(s)
• Make assignments rowwise that have only one zero and eliminate
the row and column once the assignment is made.
• Repeat same proce:;s columnw1se.
Step 5: Revise the opportunity cost matrix Draw a set of horizontal and vertical lines to
all the ,cros in the revi sed cost mall ix obtained from Step 3, by using the following procedure: cover
(a) For each 10w in whi ch no assig11111c11t was made, mark a tick( ✓) .
(b) Exa mine the marked rows. 1r any zero element is present in these rows, ,narl< a tick( ✓) to the respect·
. . iv,
co Iumns contammg zeros. th
(c) Examine marked columns. If any assigned zero element is present in csc column ~, trek (/) 1
respective rows containing assigned zeros. · hi'
(d) Repeal this process until no more rows or co lumns can be marked.
(e) Draw a straight line through each marked column and each unmarked row.
If the number of lines drawn (or total assignments) is equal to the number of rows (or colurnn, 1 ~
current solution is the optimal solution, otherwise go to Step 6.
Zeros in the
assignment table Step 6: Develop the new revised opportunity cost matrix
indicate opportunity
cost and show the (a) Among the elements in the matrix not covered by any line, choose the smallest element. Call thts
penalty of not
making the least
value k.
(b) Subtract k from every element in the matrix that is not covered by a line.
cost (or best)
(c) Add k to every element in the matrix covered by the two lines, i.e. intersection of two lines.
assignment.
(d) Elements in the matrix covered by one line remain unchanged.
The flow chart of steps in the Hungarian method for solving an assignment problem is shown in
Fig. IO.I.
Example 10.1 A computer centre bas three expert programmers. The centre wants three application
programmes to be de_veloped. The head of the computer centre, after carefully studying the programmes
to be developed, estunates the computer time in minutes requir~d by the experts for the application
programmes as follows:
Programmers
A B C
1 120 100 80
Programmes 2 80 90 I 10
3 110 140 120
Assign the programmers to the programmes in such a way that the total comp uter t·1me 1·s minimum.
· ·
Solution: Steps 1 and 2 The minimum time element in J ·
Subtract these elements from all t . th . rows , 2 and 3 is 80, 80 and 11 0, respectively.
I0.2(a). eIernen s m eir respective row. The reduced time matrix is shown in Table
(a) (b) B C
1 40 20 0 1 40 10 0
2 0 10 30 2 0 0 30
Table 10.2 3 0 30 10 3 0 20 10
In reduced Table I 0.2(a) the minimum time element in col . .
Subtract these clements from all elements . th . . umns A, B and C 1s 0, IO and 0, respecuvely.
. . 1n elf respective column in d . •
Th 1s 1s shown in Table 10.2(b). or er to get the reduced time maITLX.
Step 3 (a) Examine all the rows starting from the first .
element is found . In Table Io 2(b) rows and h ' one-by-one, unit! a row containing single zero
M k . · 1 3 1
ave on Y one zero in the cell (I C)
a e an assignment in these cells and cross off all zero elem
~ I
. .s ' and (3, ..-l), respecn, e ~-
J0.3(a). ents m the assigned column as sho\\11 1n TJ~k
(a) (b) C
A B
I 40 20 IT] 40 10 [D
2 ;fl 0 30 2 ;Q_ m 30
m
.
Table 10.3 3 IT] 30 10 10
3 20
Assignment Problem
(b) No" e\ ,111111\e each column st111t111g r,·0111 A in Table I OJ(a). There is one 1cro in column /J in the cell
(2. /l) r.fol..c ,111 n:,~1g11111c11t in this cell as shown in Table IOJ(b).
(d S111c~ the m1111bc1 or as~ignmcnls ( 3) equals the number of rows (= 3), the optimal solution ,s
obt,1111cd.
I he poltcm of o~signmcnts among programmers and programmes with their respective time (in minutes)
,~ gl\ 0:11 below:
Example 10.2 A department of a company has five employees with fi ve jobs to be performed. The time
(in hours) that each man takes lo perform each job is given in the effectiveness matrix.
J II
Employees
JV
,,,,,..-
lll V
A 10 5 13 15 16
B 3 9 18 13 6
Jobs 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 employee, so as to minimize the total man-hours?
Solution Applying Step 2 of Hungarian algorithm, the reduced opportunity time matrix is shown in Table
!0.4(a).
(a) (b)
A 5 0 8 IO 1.1 A 5 ,[QJ 8 10 I1
B 0 6 15 10 3 B w 6 15 IO 3
C 8 5 0 0 0 C 8 5 [QJ ll'. ;s.
D 0 4 2 0 5 D i 4 2 :a: 5
Steps 3 and 4: (a) Examine all the rows starting from A, one-by-one, until a row containing only single zero
element is found. Rows A, Band E have only one zero element in the cells (A, II) , (B, I) and(£, JV). Make an
assignment in these cells, and cross off all zeros in the assigned columns as shown in Table 10.4(b). .
(b) Now examine each column starting from column /. There is one zero in column III, cell (C, III).
Assignment is made in this cell. Thus cell (C, V) is crossed off. All zeros in the table are now either
assigned or crossed off as shown in Table I0.4(b). The solution is not optimal because only four
assignments are made.
(a) (b)
A 7 0 8 12 II
B 0 4 13 10
C 10 5 0 2 0
D 0 2 0 0 3
E 3 3 4 0 6
Table 10.5
Operations Research: Theory and Applications
Step 5: Cover the zeros with minimum number of lin es (= 4) as exp lained below:
(o) Mark ( ✓) row D where there is no assignment.
(b) Mark( ✓) columns/ and JV since row D has zero element in these co lumn s.
(c) Mark( ✓) rows Band E since columns/ and JV have an assignment in rows Bandt, re;
(d) Since no other rows or columns can be marked , draw straight lines through the unmarked rc_t...{.t
NI A''
C and the marked columns / and JV, as shown in Table I O.5(a). ~
Step 6: Develop the revised matrix by selecti ng the smallest element among all uncovered elern
the lines in Table 1O.5(a); viz., 2. Subtract k = 2 from uncovered elements inc ludi ng itself and ad~b', 11
elements 5, 10, 8 and O in cells (A,/), (A, JV), (C, I) and (C, IV) , respectivel y, which li e at the lilter i
of two lines. The revised matrix, so obtained is shown in Table I0.5(b). ~
Step 7: Repeat Steps 3 to 6 to find a new solution. The new assignments are shown in Table 10 6.
J.'
A 7 IT] 8 12 11
10
B IT] 4 13 I
C 10 5 ')I_ 2 C- o~
D :tl 2 [I] ;a: 3
Since the number of assignments (= 5) equals the number of rows (or columns), the solution is optimal.
The pattern ofassignments among jobs and employees with their respective time (in hours) is given belll!r
A II 5
B I 3
C V 2
D III 9
E IV 4
Total 23
Exa;'ple 1_0.J A so~icitors' firm employs typists on hourly piece-rate basis for their daily work. That
~be tve ~ 1sts and thetr _charges and speed are different. According to an earlier understandino only 1111
· t was pat"d cior a full hour, even if he worked for a fraction
the typ ts
d th to one typist and .
"
h was
JO p· given of11
our. ID 1
e east cost allocat10n for the following data:
Solution Develop a cost matrix based th d [Delhi Univ., MBA . :000. !00~
represe.nt the cost to be incurred due ton_ ~ ata of the ~roblem as shown in Table IO.7(a), where ?kni<'dl
..
.
, o assignment of Jobs t0 vanous . on a one-to-one bJSI).
typists
(a)
(b) R. s
A BS 7S 6S 125 75 0
A 2 2 6- -I
B 90 78 66 132 78
C 1S 66 S7 114
B 6 4 L9 10
69 C 0 '8.
D 80 72 60 120 72
Table 10.7 D 2 4 ~ -I
E 76 64 56 112 68 0
E 0 '6-
Assignment Problem
Applying Step 2_of ~ung~rian method, the reduced opportunity cost matrix is shown io Table 10.7(6).
To make assig~ments m Table 10.7(6), examine aU the rows starting from A until a row containing only
one ze~o elem_ent 1s found: Rows ~ and D have only one zero element in the cells (B, R) and (D, R),
respectively. First make assignment m cells (B, R), and cross off all zeros in the assigned columns as shown
in Table 10.7(b).
Now examine each column st~rting from column P There is one zero in columns P, Q, S and Tin the
cells (C, P), (E, Q), (E, S) and (A, T). Assignment is made in these cells. All zeros in the matrix are either
assigned or crossed off, as shown in Table 10.8(a).
(a) (b)
A 2 2 2 4 0
B 4 2 0 8 0
C 0 I 2 2
D 0 2 0 2 0
E 2 0 2 0 2
Table 10.8
The solution shown in Table 10.S(a) is not optimal since only four assignments are made. Thus, in order
to get the next best solution, apply following steps.
(a) Mark ( ✓) row D since it has no assignment.
(b) Mark(✓) column R since row D has zero in this column.
(c) Mark(✓) row B since column R has an assignment in row B.
(d) Since no other rows or columns can be marked, therefore draw straight lines through the unmarked
rows A, C and E and marked column R as shown in Table 10.S(a).
Develop the revised cost matrix by selecting the smallest element among all uncovered elements by
the lines (i.e., k = 2) in Table I0.8(a). Subtract this element (k = 2) from all uncovered elements including
itself and add it to elements in the cells (A, R), ( C, R) and (E, R), respectively which lie at the intersection
of two lines. Another revised cost matrix so obtained is shown in Table I0.8(b).
Again repeat the procedure to find a new solution. The new assignments are shown in Table I0.9(a).
(a) (b)
A 2 2 3 IT]
B 4 [I] 7 )1
C :& )i 2 CD 2
D [JJ :e )i
E 3 IT] 3 :fl. 3
Table 10.9
The solution shown in Table 10.9(a) is also not optimal since only four assignments are made. Thus, to
get the next best solution, follow Steps 6(a) to (d) of the algorithm to draw a minimum number of horizontal
and vertical lines to cover all zero elements in Table 10.9(a). The new opportunity cost matrix obtained from
Table J0.9(a) by subtracting the smallest element(= I) among all uncovered elements, including itself, by the
lines and adding it to elements at the intersection of two lines is shown in Table I0.9(b).
The new solutiop obtained by repeating the procedure as explained earlier is shown in Table I0.9(b).
Since both columns Q and Shave two zeros, the arbitrary selection of a cell in any of these columns will
give us an alternative solution with same total cost of assignment.
The pattern of assignments among typists and jobs, along with cost is as follows :
\
I
Operations Research : Theory and Applications
CONCEPTUAL QUESTIONS A
St t and discuss the methods of solving an assignrn
1. What is an assignment problem? Give two applications. 6
· · abel How is the Hungarian method better than other methent
2. Give the mathematical formulation of an assignment problem. pro em. ? Ods
for solving an assignment prob 1em .
How does it differ from a transportation problem?
3. Explain the conceptual justification that an assignment problem 7 _ (a) Give an algorithm 10 solve an assi~nment problem.
(b) Show that _an assignment problem 1s a special case of a
can be viewed as a linear programming problem.
transportation problem ..
4. Explain the difference between a transportation problem and an
assignment problem. 8_ Explain how an assignment problem can be solved by using the
transportation approach?
5. Specify the dual of an assignment problem. What are the
techniques used for solving an assignment problem?
e the allocations which minimize the total cost of 9. A shipbuilding company has been awarded a big conlracl for tho
oetennin
nsportat1on construction of five cargo vessels The contract stipulates lhat
tra rtmental head has four subordinates and four tasks to be lhe company musl subcontract a portion ol lhe lolal work lo al
5 A depa,ed The subordinates differ in efficiency and the tasks least five small ancillary companies. The company has invited
perfon1~ their Intrinsic difficulty. His estimates of lhe times that bids from the small ancillary companies (A 1, A2 , A:i,
A4 , and A5)
dltfehr man would take lo perform each task is given in the matrix to take care of lhe subcontract work In five f,elds - materials
eac
testing, fabrication, assembly, scrap removal and painting. The
1>elow: Tasks
bids received from the ancillary companies are given In lhe
II Ill IV table.
Subconlracl Bids (Rs)
A 8 26 17 11
B 13 28 4 Ancillary Materials Fabrication Assembly Scrap Paint,ng
26
Companies Testing Removal
Subordinates C 38 19 18 15
D 19 26 24 A1 2,50,000 3,00,000 3,80,000 5,00,000 1,50,000
10
A2 2,80,000 2,60,000 3,50,000 5,00,000 2,00,060
How should the tasks be allocated to subordinates so as to A3 3,00,000 3,50,000 4,00,000 5,50,000 1,80,000
A4 1,50,000 2,50,000 3,00,000 4,80,000 1,20,000
minimize the total man-hours?
As 3,00,000 2,70,000 3,20,000 4,80,000 1,60,000
An automobile dealer wishes to put four repairmen to four
6
' different jobs. The repairmen have somewhat different kinds of Which bids should lhe company accept in order lo complete lhe
skills and they exhibit different levels of efficiency from one job contract at minimum cost? Whal is lhe total cosl of lhe
to another. The dealer has estimated the number of man-hours subcontracts?
that would be required for each job-man combination. This is 10. In a textile sales emporium, four salesmen A, 8 , C and D are
given in matrix form in the following table: available to four counters W, X, Y and Z. Each salesman can
Jobs handle any counter. The service (in hours) of each counter
when manned by each salesman is given below:
A B C D
Salesmen
5 3 2 8
A B C D
2 7 9 2 6
Men w 41 72 39 52
3 6 4 5 7
Counters X 22 29 49 65
4 5 7 7 8 y 60 51
27 39
Find the optimal assignment that will result in minimum man- z 45 50 48 52
hours needed.
How should the salesmen be allocated to appropriate counters
7. A lead draftsman has five drafting tasks to accomplish and five so that the service time is minimized? Each salesman musl
idle draftsmen. Each draftsman is estimated to require the handle only one counter.
following number of hours for each task.
11. A hospital wants to purchase lhree different types of medical
Tasks equipments and five manufacturers have come forward to
A B C D E supply one or all the three machines. However, the hospital's
policy is not to accept more than one machine from any one of
60 50 100 85 95 the manufacturers The data relating to the price (In thousand
2 65 45 100 75 90 of rupees) quoted by the different manufacturers is given below.
Draftsmen 3 70 60 110 97 85 Machines
4 70 55 105 90 93
2 3
5 60 40 120 85 97
l
A 30 31 27
B 28 29 26
If each draftsman costs the company Rs 15.80 per hour,
Manufacturers C 29 30 28
including overhead, find the assignment of draflsmen to tasks
that will result in the minimum total cost. What would be the total D 28 31 27
E 31 29 26
cost?
8. A construction company has requested bids for subcontracts on Determine how best the hospital can purchase the three
five different projects. Five companies have responded. Their machines. [Delhi Univ., MBA (HCA), 2008]
bids are represented below. 12. The secretary of a school 1s taking bids on the city's four school
81d Amounts ('000s Rs) bus routes Four companies have made the bids (1n Rs) , as
II Ill IV V detailed in the following table:
25J
l
22 29 49 65 81 4,000 5,000
2
27 39 60 51 40 Bus 2 4,000 4,0C0
Bidders 3
45 50 48 52 37 3 3,000 2,000
4
29 40 45 26 30 4 4,000 5,000
5
------- Suµpose each bidder can be assigned only one route. Use the
Determine the minimum ;;;;~, assignment of subcontracts to assignment model to minimize the scllo" s c 'J" of rimnmg the
bidders, assuming that each bidder can receive only one four bus routes.
contract
Operations Research: Theory and Applications
tha marks awarded, what role should
13 - A large oil company operattng a number of drilling platforms In Based on lven in the rescue unit? each 01
the North Sea Is fom1ing a high speed rescue unit In order to
trainees be g
manager of ABC
c
ompany wants to .
~
1
cope ~ith emergency situations that may occur. The rescue unit 14. The perso~~~ to regional offices. But the firm also ha:Ss,g~ Mr
comprises 6 personnol who, for reasons of flexibility, undergo Mr Y a
nd
. office and would send one of the three I an 0pe,J
the same comprehensive training programme . The six personnel in its Chenna1 re economical than a move to Delhio that hr~~
. are assessed as to their suitability for various specialist tasks f
if it were ~ cost As 2 ooo to relocate Mr X to Chen' Mu~~.
1
Kolkata. It WI Mr y there: and As 3,000 lo move Mr Zn~,, As 1~
and the marks th€})( received in the training programme are 1
given in the follo~[~g table: to reallocat~ men! of personnel to offices? · /hat is a,'
pptim_l:ll assign s
Trainee Number ,.. Office
V{ Delhi Mumbai
Specialist Task II Ill IV V Ko1;i1ta
Unit Leader 21 5 21 15 15 28 Mr X 1,600 2,200 ---2,40o
Helicopter Pilot 30 11 16 8 16 4 1,000 3,200
25 25 Personnel Mr Y 2,60()
First Aid 28 2 11 16 Mr Z 1,000 2,000
19 8 4,600
Drilling Technology 19 16 17 15
Firefighting 26 21 22 28 29 24
Communications 3 21 21 11 26 26
c four sa le~men nlso d1tl'c1 their obi lilt 11 is estimated 1lrnt, worki ng under the sa me conditions, llrc1J
111
Th ·nlcs \\ Ollld he propo11101111tcly us follows:
year1y Sc C
Sabmcn : A B C D
Proportion 7 5 5 4
A 42 35 28 21 7
•
B 30 25 20 15 5
C 30 25 20 15 5 Table 10.10
24 20 16 12 4 Effectiveness
D
Matrix
Sales (in '000 Rs) 6 5 4 3
(a) (b)
A 0 3 6 9
B 0 2 3 Table 10.11
12 17 22 27 C 0 2 3 Equivalent Cost
C
30 D 0 0 0 0 Matrix
D 18 22 26
Apply Hungarian Method to get Optimal Solution: Apply Step 2 of the Hungarian method in order to
get the reduced matrix that has at least one zero, either in a row or column, as shown in Table 10.ll(b).
crossed as shown in Table
The assignment is made in row A. All zeros in the assigned column I are
column, and other zeros are
10.12. Column II has only one zero, in cell (D, If). Assignment is made in this
in Table I0.12.
crossed in row D. Now all zeros are either assigned or crossed off as shown
llli l 3 ✓
B 2
3 ✓
C 2
D
Table 10.12
✓
8 ✓
2 ✓
2 ✓
D
Table 10.13 L____l
✓_ _ ____!✓-=-----------~
·
Repeat Steps I to 3 to mark the assignments m Ta bl e Jo · J3· Two alternative optimal assi gnrnents a.,
·
(a)
- - - - -~ - - -
(b) r
A IT)
I
•
11
2
II!
A 2 4 7 4
-
;ti
Alternative C i IT] )1 C 0
c.___,
Example 10.5 A marketing manager has five salesmen and five sales districts. Considering the
capabilities of the salesmen and the nature of districts, the marketing manager estimates that the sales per
month (in hundred mpees) for each salesman in each district would be as follows:
Districts
A B C D E
32 38 40 28 40
2 40 24 28 21 36
Salesmen 3 41 27 33 30 37
4 22 38 41 36 36
5 29 33 40 35 39
Find the assignment of salesmen to districts that will result in maximum sales.
Solution The given maximization problem can be converted into a minimization problem by subtracung
from the largest element (i.e. 41) all the elements of the given table. The new cost data so obtained is g1,en
in Table 10.15.
(a) (b) C D E
I 9 3 I 13 I / 8 o o 7 0
2 I 17 13 20 5 2 O 14 12 14 -l
Table 10.15 J O 14 8 11 4 J O 12 8 6 -l
Equivalent Cost
Data
4 19 3 0 5 5 4 19 o o 5
5 12 8 6 2 5 11 5 O 0
Apply Step 2 of the Hungarian method to get the opportunity cost table as shown in Table IO.l5(b)-
Assignment Problem
Make assignments in Table I0. I5(b) by applying Hungarian method as shown in Table IO. I6(a).
A B C D E (b)
I A B C D E
-@ :ff 7 'll'.. I 12 0 0 7 0
14 12 14 4 ✓ 2 0 10 8 10 0
12 8 6 4 ✓ 3 0 0
8 4 2
4 4 23 I 0 0 5
5 5 15 5 0 0 I
Table 10.16
✓
The solution shown in Table 1O. l 6(a) is not optimal since only four assignments are made. Cover the zeros
with the minimum number of lines (= 4) as shown in Table IO. I6(a).
Develop the revised cost matrix by selecting the minimum element(= 4) among all uncovered elements
by the lines. Subtract 4 from all uncovered elements, including itself, and add it to the element at the
intersection of the lines. A revised cost table, so obtained, is shown in Table JO. I6(b).
Repeat the above procedure again to make the assignments in the reduced Table I0.16(b). The two
alternative assignments are shown in Tables 1O. l 7(a) and (b ). Two more alternative solutions exist due to
presence of zero element in cells (4, C), (4, D) and cells (5, C), (5, D).
(a) (b)
1
2
12
[!]
m 12
;Q
10 12
7 ,6.
;0.
1
2
12
;il
m12
;tl
10
7
12
,{l
,---,
0
l._.,_J
B 38 B 38
2 A 40 2 E 36
3 E 37 3 A 41
4 C 41 4 C 41
5 D 35 5 D 35
Total 191 Total 191
p,r1,c,,1,,r oe,o,,rcc is considered to be very large (wdllco as Mo, ~) so as lo prnhibil th, '"' j
poir of resource-activity into the final solution . ry of%
Example 10.6 In the modification of a plant layout of a factory four new machines M 1 , M , M3
M are to be installed in a machine shop. There are five vacant places A, B, C, D and E availabl~. 8 ' and
of4limited
.
space ' machine M2 cannot be placed at C and M3 cannot be placed at A. The cost of 1,:CaUse
"'-atin
a machme at a place (in hundred rupees) is as follows. g
Location
D £
B C
A
10 II
ll . 15
M1 9 9
JO
12 9
M2 ll 7
Machine Jl 14
M3 7 8
8 12
M4 14
Find the optimal a~signment schedule. [Delhi Univ., MBA , 2004, 2006]
Solution Since cost matrix is not balanced, add one dummy row (machine) with a zero cost elements•
that row. Also assign a high cost, denoted by M, to the pair (M2, C) and (M3, A). The cost matrix so obtaine~
is given in Table I0.J8(a).
Apply Hungarian method for solving this problem. An optimal assignment is shown in Table 10.18(b).
(b)
(a)
9 11 15 10 11
Ml M )l
10 9 3
Mz
M3
12
M
9
11
M
14 11 7 M3 M 4 7
5
4
[I]
rn
I
7 1
14 8 12 7 8 ~
M4
0 0 0 Ms )l )l IT] .:a :a
Table 10.18
L&.. 0 0
The total minimum cost (Rs) and optimal assignments made are as follows :
M1 A 9
M2 B 9
M3 E 7
M4 D 7
M5 (dummy) C 0
Total 32
Example
assist 10.7 An
in allocatin fi airl'~et com~any .has cir_awn up a new fhght · schedule that involves five flights. To
each flight a aum;e/:\p~ol~ t~h ~-fl~hts, it has asked them to _state their preference scores by giving
are unsuitable to someu ~ t . _e ig edr the n~ber, the gre~ter is the preference. A few of these flights
p1 o s, owmg to omest1c reasons. These have been marked with ' x '.
Flight Number
2 3 4 5
A 8 2 X 5 4
B 10 9 2 8 4
Pilot C 5 4 9 6 X
D 3 6 2 8 7
E 5 6 10 4 3
Solution Since tl~c pro~)lem is 10 maximize the t~tal preference score, in order to apply the llungarian
111
cthod to solve this nss1gnment problem, the equivalent cost matrix is required. This is obtained by
• . f rom the largest element (= 1O) including itself as shown
~nhtr:icling all the clements of t11e given matnx
111 Tnblc I0.19.
j
6
I 2 6
5 6 I 4 M Table 10.19
7 4 8 2 3 Equivalent Cost ·
E 5 4 0 6 7 'Matrix' · ..
Perfonn the Hungarian method on Table I0.19 to make assignments as shown in Table J0.20.
Table 10.20
Opportunity Cost
Table
The solution shown in Table 10.20 is not the optimal solution because there is no assignment in row
E. Draw minimum number of lines to cover all zeros in the table and then subtract the smallest element
(= 3) from all uncovered elements including itself and add it to the element at the intersection of two lines.
The new table so obtained is shown in Table 10.21.
B w 11 2 5
C M
D 1 9 IT]
E ~ m 3 3 Table 10.21
Repeat the Hungarian method to make assignments in Table I 0.21. Since the number of assignments
in Table I 0.21 is equal to the number of rows or columns, this solution is the optimal solution. The optimal
asslarunent is as follows:
Pilot Flight Number Preference Score
A 8
8 2 9
C 4 6
D 5 7
E 3 10
Tola) - 40
Example 10.8 A city corporation has decided to cany out road repairs on four main arteries of the city.
The government has agreed to make a special grant of Rs 50 lakh towards the cost with a condition that
the repairs be done at the lowest cost and quickest time. If the conditions warrant, a supplementary token
grant will also be considered favourably. The corporation has floated tenders and five contractors have sent
in their bids. In order to expedite work, one road will be awarded to only one contractor.
Operarions Roscarcl1: Tl1001y nnd l\ppllcullons
f I{ •plltl ~ (R ~ Ill l11 kh )
(. 'o ~I O I.: '
N, R,
u, U1
I <J I~
9 14
(' 19
I 20
7 17
C1 21 18
9 18
Co111ruc1ors/Road C.l 19
18
10 12
C4 21 16
10 15
Cs
i.: · t I b · · · •k to tt 1e contractors anJ Ihc co~ ts
n) ,·me t 1c est way of ass1gn111g t11e repair wot
( ·· · . h t should be the amount souuht'>
(b) II ti 1s necessary Lo seek supplementary giants, w a b ·
(c) Which of the live contractors will be unsuccessful in his bid? [AMIE lOo~
Solution (a) Since cost matrix is not balanced, therefore add one dummy column (road. Rs)\\ 1th a zero
cost clcmenls. The revised cost matrix is given in Table I0.22.
R4 R,
R1 1h
19 15 0
c, 9 14
20 19 0
C2 7 17
21 18 0
C3 9 18
18 19 0
C4 10 12
Table 10.22 0
15 21 16
Cost Matrix Cs 10
Apply the Hungarian method to solve this problem. This is left as an exercise for the rcmkr. An op1imal
assignment is shown in Table 10.23.
R:,
C2 [o] 5 2 'i 2
RI C2 7
R2 C4 12
R3 c, 19
R4 Cs 16
Rs C3 0
Total 54
(b) ~iucc the total cost exceeds 50 lakh ' the exc ess amount of Rs 4 lakl (- 54 50) 1·s to be: ,ot,,1"h'
,b supplementary grant. 1 - -
(l' ) Contractor C\ who has been assigned to dummy row. R (roads) loses out in 1he bid.
5
Assignment Problem
CONCEPTUAL QUESTIONS B
rojecl wori( consists of four major jobs for which an equal available to replace one of the existing ones and the associated
1· A p ber of contractors have submitted tenders. The tender of that machine costs are also given below.
num f ) . . . th I
amount quoted (in lakh o rupees 1s given 1n e matr x. Machines
Job
a b c d
M, Mz
24 30 15
w, 12 3 6 - 5 9
1 10 - - 8
16 22 28 12
w2 4 11 5
contractor 2 Workers W3 8 2 10 9 7 5
3 12 20 32 10
W4 - 7 8 6 12 10
4 9 26 34 16
Ws 5 8 9 4 6 1
Find the assignment which minimizes the total cost of the project
when each contractor has to be assigned at least one job. (a) Determine whether the new machine can be accepted.
each of which can manufacture (b) Also determine the optimal assignment and the associated
2. Alpha Corporation has four plants, saving in cost. •
any one of four products A, 8, C or D. Production costs differ
from one plant to another and so do the sales revenue. The 5. A fast-food chain wants to build four stores. In the past, the
revenue and the cost data are given below. Determine which chain has used six different construction companies , and having
product should each plant produce in order to maximize profit. been satisfied with each, has invited each to bid on each job.
'000 Rs) The final bids (in lakh of rupees) are shown in the following table:
Sales Revenue (in
Plant Constructio n Companies
2 3 4
2 3 4 5 6
A 50 68 49 62
Store 1 85.3 88.0 87.5 82.4 89.1 86.7
Product B 60 70 51 74
68 Store 2 78.9 77.4 77.4 76.5 79.3 78.3
C 52 62 49
48 66 Store 3 82.0 81 .3 82.4 80.6 83.5 81 .7
D 55 64
Store 4 84.3 84.6 86.2 83.3 84.4 85.5
Production Cost (in '000 Rs)
Plant
Since the fast-food chain wants to have each of the new stores
2 8 4 ready as quickly as possible, it will award at the most one job to
45 61 a construction company. What assignment would result in
A 49 60
minimum total cost to the fast-food chain?
Product . B 55 63 45 49 [Delhi Univ., MBA, 2001, 2003]
C 55 67 53 70
54 68 6. A methods engineer wants to assign four new methods to three
D 58 65
work centres. The assignment of the new methods will increase
3. A company has four machines that are to be used for three jobs. production. The methods are given below.
Each Job can be assigned to one and only one machine. The
cost of each job on each machine is given in the following table. Increase In Production (unit)
Machines Work Centres
w X y z A B C
A 18 24 28 32
Jobs B 13 17 18 1 10 7 8
8
22 2 8 9 7
C 10 15 19 Method 3 7 12 6
4 10 10 8
What are the job-assignment pairs that shall minimize the cost?
(Gauhal/, MCA, 2001] If only one method can be assigned to a work centre, determine
4 the optimum assignment.
Five wor1(ers are available to work with the machines and the
7. Consider a problem of assigning four clerks to four tasks. The
respective costs (In rupees) associated with each worker-
time (hours) required to complete the task is given below:
machine assignment are given below. A sixth machine is
Operations Research : Theory and Appltcations
Territory
Tasks
2 3
A
, 4
-
B
7
C
5
D
6 A 75
91
80
71
85
82
70
75
s
........ :---..
9o
Salesmen B
Clerks
2 - 8 7 4 C 78 90 85 80 as
3 3 - 3 65 75 88 as 8lj
5 D
4 911
6 6 4 2
timal assignment of the salesmen H ,0 , ,
t 0
Clerk 2 cannot be assigned task A and clerk 3 cannot be SU11Q8S ~ man D cannot be assigned lo lermor '-'!~~
I 3
assigned task B. Find all the optimum assignment schedules. reasons, s8: esment be different? If so, what would ~ , 1' 1 t ;
......i.nal assign [O / · ~ -. -
"¥":"
assignment sc
hedule?
.
e hi Univ . MCorn - ~
. 2'°-f.lJ
8. The marketing director of a multi-unit company is faced with a el manager of a med1um-s1zed cornpa
problem of assigning 5 senior managers to six zones. From past 12 The personn
. . tO recruit two employees
D d E.
an in a_ particular
n, '
~
experience he knows that the efficiency percentage judged by decided ·zation The section has five fairly defined b~ ""
sales, operating costs, etc., depends on the manager-zone of the4orgadrn5· and three employees A, B and C are -a- I
combination. The efficiency of different managers is given below: 2 3 an ' "d · th · · '~
e~ployed in the section. C?f~s1t· enng f the specialized na111,e d
Zones task 3 and the special qualr 1ca 1~ns o e recruit o for la5.(
3
I II Ill JV V VI the manager has decided to assign task_~ to employee OilrJJ
then assign the remaining t~sks to remaining employees so ai
A 73 91 87 82 78 80
76 74 85 10 maximize the total effectivenessk. ~he indexd of effectJve~
B 81 85 69 of each employee of different tas s 1s as un er.
Manager C 75 72 83 84 78 91
D 93 96 86 91 83 82 Tasks
E 90 91 79 89 69 76 2 3 4 5
Find out which zone should be managed by a junior manager A 25 55 60 45 30
due to the non-availability of a senior manager. B 45 65 55 35 40
Employees C 10 35 45 55 65
9~ A head of department in a college has the problem of assigning
D 40 30 70 40 60
courses to teachers with a view to maximize educational
E 55 45 40 55 10
quality in his department. He has available to him one professor,
two associate professors, and one teaching assistant (TA).
Four courses must be offered. After appropriate evaluation, he Assign the tasks for maximizing total effectiveness. Crmcat,
has arrived at the following relative ratings (100 = best rating) examine whether the decision of the manager to assign task 3
reg:::cl~,g tne ability of each instructor to teach each of the four to employee D was correct. [ Delhi Univ., MBA, ~
courses. 13 The casualty medical officer of a hospital has received IOUJ
Course 1 Course 2 Course 3 Course 4 requests for Ambulance van facility. Currently, six vans ara
-------------, available for assignment and their estimated response lime [111
Prof. 1 60 40 60 70
50 70 minu1es) are shown in the table below:
Prof. 2 20 60
Prof. 3 20 30 40 60 Van
TA 30 10 20 40
2 3 4 5 6
- - - - - - - - -- - - - - - ----'
How should he assign his staff to the courses in order to realize 1 16 15 13 14 15 18
his objective? [Delhi Univ., MBA (HCA), 1999] 2 18 16 12 13 17 16
1o. At the end of a cycle of schedules, a transport company has Incident 3 14 14 17 16 ·15 15
a surplus of one truck in each of the cities 1, 2, 3, 4, 5 and a 4 13 17 19 18 14 17
deficit of one truck in each of the cities A, B, C, D, E and F.
The distance (in kilometres) between the cities with a surplus, Determine which van should respond , and what will be the
and cities with a deficit, is given below:
average response time. [Delhi Univ. , MBA (HCA), 1990, 96, 981
To City 14. To stimulate interest and provide an atmosphere for intellectual
A B C D E
discussion a finance faculty in a management school decides to
F
hold special seminars on four contemporary topics: Lea s,ng
80 140 80 100 56 98 portfolio management, private mutual funds , swaps and options.
2 48 64 94 126 170 100 Such seminars are to be held be held once par week in tne
From City 3 56 80 120 100 70 64 afternoons. However, scheduling these seminars (one for each
4 99 100 1,100 104 80 90 topic, and not more than one seminar per afternoon) has 10 be
5 64 80 90 60 60 70 done carefully so that the number of students unable to att~
is kept to a minimum. A careful study indicates that the num~
How should the trucks be despatched so as to minimize the total
of students who cannot attend a particular seminar on a sp,,CI
distance travelled? Which city will not receive a truck?
day is as follows:
[Madras, MBA, 2000]
11 . A company is considering expanding Into five new sales territories.
The company has recruited four new salesmen. Based on the
salesmen's experience and personality traits, the sales manager
has assigned ratings to each of the salesmen for each of the
sales territories. The ratings are as follows:
Aaalgnmont Problem
free
Prlvn to Swnps • Chandru swims all slylos: back 1 . 10, bullorlly 1 . 12,
I NISlllg Po11fol/o
slyle 1 : 05 and broasl slroke 1 : 20.
Mnnngomont Mutual and s1111rns
Funds Options • Doral swims only Iha bullerfly 1 : 11, while Easwar
back slroke 1 : 20, breasl slroke 1 : 16, free style 1
lho
: 06 and lho bullerfly 1 : 10.
50 40 60 20
style?
Mo11dny
40 30 40 30 Which swimmer should be assigned which swimming
TuosdllY Who will nol be In Iha relay?
60 20 30 20
wednosday y has
Thursda y 30 30 20 30 16. (a) Al Iha end of a cycle of schedules, a lrucklng compan
vehicle In each of the cities
10 20 10 30 a surp lus of one
Friday ol lhe cities
- 1, 2, 3, 4 and 5 and a deflcll of one vehicle In each
Iola! F. The cost (in rupees) of transpo rtation and
Find an optimal schedule of the seminars. Also find out Iha A, 8, C, D, E and
with
number of students who will bo missing al least one semina r. handllng between the cities wllh a surplus and the cities
learn lhal Is deficits are shown In the followin g table:
Five swimmers are ellglblo to compet e In a relay
15 t swimming
' 10 conslsl of four swimmers swimming four differen To City
styles. The styles are - back slroke, breast slroke, free slyle 0 E F
A B C
Anand,
and butterfly . The time taken by the five swimmers - 97
and Easwar , lo cover a distanc e of 1 134 116 167 233 164
Bhaskar, Chandr u, Doral
In 114 195 260 166 178 130
100 metres In various swimming slyles Is given below, 2
101
From City 3 129 117 48 94 66
minutes , seconds . 136
stroke 4 71 156 92 143 114
• Anand swims the back stroke In 1 : 09, the breast 97 134 125 83 142 118
has never compet ed In the free style or 5
In 1 : 15 and
will
butterfly . Find the assignment of surplus vehicles to deficit cities that
the a
• Bhasker Is a free style specialist averaging 1 : 01 for result in a minimum total cost? Which city will not receive
16
100 metres but can also swim the breast stroke In 1 : vehicle? [Delhi Univ. , MBA, 2002]
and butterfly In 1 : 20.
7. (i) I - B, 2 - D, 3 - A, 4 - C
1. (i) I - b, 2 - c, 3 - d, 4 - a,
00. (ii) I - C, 2 - D, 3 - A, 4 - B. Minimum hours = 18.
(ii) I - c, 2 - b, 3 - d, 4 - a; Minimum cost= Rs 71,00,0
8. A - Ill, B - 11, C - Ill, D - I, E - IV, dummy - V.
(iii) I - c, 2 - d, 3 - b, 4 - a,
9. (i) Prof. I - Course 3, Prof. 2 - Course 2, Prof. 3 - Course 4,
(iv) I - b, 2 - c, 3 - d, 4 - a
= T.A. - Course I
2. Construct the profit matrix using the relationship: Profit 4,
(ii) Prof. I - Course I, Prof. 2 - Course 2, Prof. 3 - Course
Revenue - Cost educa1ional quality = 210.
T.A. - Course 3. Maximum
A - 2, B - 4, C - I, D - 3 and Maximum profit = Rs 42,000
10. I - E, 2 - B, 3 - A, 4 - F, 5 - D; Cost = Rs 326.
3. (i) A - W. B - X. C - Y.
I I. A - 5, B - I, C - 2, D - 3; 359.
(ii) A - W. B - Y. C - X Minimum cost = Rs 50.
W 12. A - 4, B - 2, C - 5, D - 3, E - · I; 300.
4. (a) W1- Ms, W2 - M6, W3 - M2, W4 - M4, Ws - M1 and 6
m cost = Rs 21 15. The assignment matrix with time expressed in seconds and
(dummy) - M3; Minimu
M4, adding a dummy style to balance it is given by
(b) W1 - Ms, W2 - Ml' W3 - M2, W4 - M3 and W5 -
Minimum cost = Rs 23. Back Stroke Breast Stroke Free Style Bulle,jly
The sixth machine should be accepted because saving in Anand 69 75
cost is Rs (23 - 21) = Rs 2 Bhasker 76 61 80
5. S1 - 4, S2 - 3, S3 - 2, S4 - I; Cost = Rs 325.4 Chandni 70 80 65 72
6. (i) I - A, 2 - dummy, 3 - B, 4 - C Dorai 71
66 70
(ii) I - C, 2 - dummy, 3 - B, 4 - A. Total production = 30 Easwar 80 76
units
Operations Research : Theory and Applications
Find out J;iow the planes should be assigned to the flights so as to minimize th e total layover cost. If you
have made any particular assumptions, state them clearly.
Solution· We have made the following assumptions:
(i) A plane cannot make more than two trips (to and fro).
(ii) A plane flying from a particular city must be back within 24 hours for the next scheduled trip from
the city.
From the given data, it is clear that there is no route behveen city B and C. Therefore, the present
problem can be divided into two subproblems: (i) routes between A and C , and (ii) routes between
A and B.
Let us now construct the cost matrix fM th P routes connecting cities A and C . This is given in Tabl e 10.24.
4 130 226
Table 10.24 5 146 178
The elements in the Table 10.24 are interpreted as follows : For route 4 - 9 a plane taking fl ight nu mber4
from A to C and number 9 from C to A, would have a layover time of 9 hours ( 11 .00 to 20.00) at city A
an~ 7 hours (midnight - 7 .00) at city C. Thus, the layover cost for the route 4 - 9 would be (9) 2 T (7)2
= 130 units. Similarly, the other route costs elements are also obtained.
The optimal assignment can now be obtained by applying the Hungarian ·method of ass ignment. The
optimal solution is given in Table 10.25.
4
64
Table 10.25 s
UJ
Optimal assignment 4 - 9, 5 - IO
Total cost 308 units .
Similarly, cost matrix for the routes connecting cities A and 8 b h . Table IO 26.
can e constructed as s own 111
I 260 M 23-4
2 234
Table 10.26 M 260
3 164 290 1\,/
Assignment Problem
Efl,rl,V""!ber 6 7 8
26 M m
2 IT] M 26
3 ~ m M Table 10.27
Optimal assignment I - 8, 2 - 6, 3 - 7
Total cost 758 units.
le of planes is arrived at and is
Hence, from the two solutions obtained above, the complete flight schedu
oiwn in Table 10.28.
" De art · Arrival J
Jln!e (hrs) G~ ~ .
I'
A 09.00 B 12.00
I
A 18.00
----- ----- -----
8
----- ----- ----- ----- ----- -----
B ----- ----- -
15.00
A 10.00 B 13.00
.2
A 07.00
2 6
----- ----- ----- ----- B
----- ----- 04.00
----- ----- ----- ----- ----- -
A 15.00 B 18.00
3
14.00
-----41 ----"\·---AB----------
11.00
----- ----- A
C
----- ----- ----
Midnight
20.00
07.00 A I 1.00 Table 10.28
- - - - --
----------- --95 -- - - - - - - -CA- - - - - - - - -22.00
- - - - - - - - .. - - - - - - - --- 0.200
C
Optimal Flight
Schedule
s 10 C 15.00 A 19.00
· · · . Z - L L diJ XiJ d t b
Mm1m1ze - 1__ 1 J= I . ver all . s mus e non-negai
. d .. == 00 for i == I Howe ' IJ ive, 1-t
Since d .. == d .. is not required, therefore I/
d > 0 ~nd d,: + d c d.k for all i, ), k. . . He wishes to start from a particular
iJ - IJ Jk ; ·t five c1t1es.
. C '000 Rs) f c11y
Example 10.10 A travelling salesma.n bas ~o v1s1 int. The travelling cost rn o each cay fr0r~
visit each city once and then re tu rn to bis startmg po
a particular city is given below:
To City
C D E
A B
5 7
A 00 2
00 3 8 2
B 6
00 4 7
From City C 8 7
4 6 5
D 12
3 2 8
E
. 200~
What should be the sequence of visit of the salesman so that the cost is minimum? [Delhi Univ. , A1BA,
. · bl as an assignment problem, by Hunganan method
Solution Solving ~e given tr~vel!rng sales:a.;.~~~e ~:29 . However, this solution is not the solution to
of assignment, an optunal solution is shown A E _ A This violates the condition that
·
the travelling salesman problem as it· gives th e sequence - ·
salesmen can visit each city only once.
B 00
a 6
From City 3 w 3
Table 10.29
D 8 w
Optimal Solution E w 2. 7
The 'next best' solution to the problem that also satisfies the extra condition of unbroken sequence
of visit to all cities, can be obtained by bringing the next (non-zero) minimum element, i.e. I, inw tbe
solution. In Table I 0.29, the cost element I occurs at three different places. Therefore, c;onsider all three
different cases one by one until the acceptable solution is reached.
Case 1: Make the unit assignment in the cell (A, B) instead of zero assignment in the cell (A, E) and
delete row A and column B so as to eliminate the possibility of any other assignment in row A and column
B. Now make the assignments in the usual manner. The resulting assignments are shown in Table I0J0.
From _City 4
6 ;a:
D 8
00
w J
Table 10.30
E
w :it
ll
00
7
OJ
Assignment Problem
3.5 3 4 2
Depol
A 3.5 4 2.5 3
Vendor
B 3 4 4.5 3.5
From Vendor
4 2.5 4.5 4
Vendor C
Vendor D 2 3 3.5 4
0.5 0.5
0.5
1.5
[TI Table 10.31
Optimal Solution
0.5 [I] 1.5
Vefldor D Vendor C
D•P,>I li,,dm
2
Depot l.'i 11
Vi·ndor A I 1.5
°tr.§
0[5
0
,(
CY.$
F$
From Vendor B
Vendor C
~[I ] -S~J 1.5
1-:5
es)
[Delhi Univ., MBA, 2001]
3. A salesma_n has to visit five cities A, B, c, o and
between the five cities
E. The
are as
The problem is to chalk out a rou te which enables
so that the total
him to
distance cover,,,.
v:
distances (1n hundred kilometr each of the cities only once,
follows: by him is minimu m . [Delhi Univ., MBA. ~wv1
on a machi; :
To City 6. Produc ts 1 , 2 , 3, 4 and 5 are to be processed
upon ade
A B C D E The set-up costs in rupees per change depend 111
tly on the machin e and the set-up to be
I product presen
A - 1 6 8 4 These are given by the following data:
C _" 8.
B
c
7 - 8 5 6 c, 2.=16 , c,3=4 , c ,4=12 , C23= 6 , CN=5 , ?o