LP Assignment Model 9
LP Assignment Model 9
Problem description
• There is a set of employees/workers with varying degree of skill for
doing different jobs.
• A job that match a worker’s skill costs less than that in which the
operator is not as skillful.
• There is also a set of jobs to be completed by the workforce.
• Assumption: One worker does only one job and one job is done by
only one worker.
• Objective: How to optimally assign workers to jobs?
A general assignment model
Jobs
1 2 … … n
1 C11 C12 C1n
Workers 2 C21 C22 C2n
…
…
n Cn1 Cn2 Cnn
n n
Minimize z cij xij
i 1 j 1
subject to
n
x j 1
ij 1, i 1,2,....n
x
i 1
ij 1, j 1,2,....n
xij 0 or 1
1 if worker i is assigned to job j
xij
0 otherwise
Hungarian Method
STEP 1: For the original cost matrix, identify each
row’s minimum and subtract it from all the entries
of the row.
Programmers
A B C
I 120 100 80
Application II 80 90 110
Programs
III 110 140 120
Solution
Programmers
A B C
I 120 100 80
Application II 80 90 110
Programs
III 110 140 120
Row
Row Minimum =80
Minimum =80
Row
Minimum
=110
Programmers
A B C
I 120 100 80
Application II 80 90 110
Programs
III 110 140 120
Programmers
A B C
I 40 20 0
Application II 0 10 30
Programs
III 0 30 10
Programmers
A B C
I 40 20 0
Application II 0 10 30
Programs
III 0 30 10
Programmers
A B C
I 40 10 0
Application II 0 0 30
Programs
III 0 20 10
Programmers
A B C
I 40 10 0
Application II 0 0 30
Programs
III 0 20 10
Programmers
A B C
I 40 10 0
Application II 0 0 30
Programs
III 0 20 10
Programmers
A B C
I 120 100 80
Application II 80 90 110
Programs
III 110 140 120
Jobs
Persons 1 2 3 4
A 20 25 22 28
B 15 18 23 17
C 19 17 21 24
D 25 23 24 24
Jobs Jobs
Persons 1 2 3 4 Persons 1 2 3 4
A 20 25 22 28 A 0 5 2 8
B 15 18 23 17 B 0 3 8 2
C 19 17 21 24 C 2 0 4 7
D 25 23 24 24 D 2 0 1 1
Jobs Jobs
Persons 1 2 3 4 Persons 1 2 3 4
A 0 5 1 7 A 0 5 1 7
B 0 3 7 1 B 0 3 7 1
C 2 0 3 6 C 2 0 3 6
D 2 0 0 0 D 2 0 0 0
Jobs Jobs
Persons 1 2 3 4 Persons 1 2 3 4
A 0 5 1 7 A 0 4 0 6
B 0 3 7 1 B 0 2 6 0
C 2 0 3 6 C 3 0 3 6
D 2 0 0 0 D 3 0 0 0
Jobs
Persons 1 2 3 4
A 0 4 0 6
B 0 2 6 0
C 3 0 3 6
D 3 0× 0 0
Jobs
Persons 1 2 3 4
A 0 4 0× 6 A 1 20
B 0× 2 6 0 B 4 17
Jobs
C 3 0 3 6 C 2 17
Pers 1 2 3 4
ons D 3 0× 0 0× D 3 24
A 0 4 0 6 78
B 0 2 6 0
C 3 0 3 6 Jobs
D 3 0× 0 0 Persons 1 2 3 4
A 0× 4 0 6 A 3 22
B 0 2 6 0× B 1 15
C 3 0 3 6 C 2 17
D 3 0× 0× 0 D 4 24
78
EXAMPLE 3: Three new projects are to be added to a
company. Bids are submitted by five contractors. It has also
been decided that only one project is to be assigned to one
contractor. The bid figures in million rupees are given in the
table below. Find the optimal assignment of projects to the
contractors such that the total cost of all the projects is
minimum.
62 78 50 101 82
71 84 61 73 59 2. Identify the largest element (111).
87 92 111 71 81 Subtract all the elements from 111.
48 64 87 77 80 49 33 61 10 29
40 27 50 38 52
1. Introduce a dummy row to balance the
problem 24 19 0 40 30
62 78 50 101 82 63 47 24 34 31
87 92 111 71 81
3. Minimize this resultant matrix
48 64 87 77 80
0 0 0 0 0
EXAMPLE: An Airline, operating seven days a week, has given the
following schedule of its flights between New Delhi and Mumbai. The
crews should have a minimum of five hours break between the flights.
Obtain the pairing of the flights that minimizes layover time away from
home. For any given pairing, the crew will be based at the city that
results in the smallest layover.
101 5 AM 7 AM 201 7 AM 9 AM
102 7 AM 9 AM 202 8 AM 10 AM
103 1 PM 3 PM 203 1 PM 3 PM
104 7 PM 9 PM 204 6 PM 8 PM
New Delhi – Mumbai Mumbai – New Delhi
Flight No. Departure Arrival Flight No. Departure Arrival
101 5 AM 7 AM 201 7 AM 9 AM
102 7 AM 9 AM 202 8 AM 10 AM
103 1 PM 3 PM 203 1 PM 3 PM
104 7 PM 9 PM 204 6 PM 8 PM