Linear Programming: Assignment Problem
Linear Programming: Assignment Problem
Slide 1 of 27
Assignment Problem
Assignment Problem
Network Representation
11
c11
c12
11
c13
c21
22
c22
22
c23
c32
c31
33
WORKERS
c33
33
JOBS
Slide 3 of 27
Sweep
floors
Wash
windows
Hungarian Method
Slide 5 of 27
Example 1: AP
A contractor pays his subcontractors a fixed fee plus mileage for
work performed. On a given day the contractor is faced with
three electrical jobs associated with various projects. Given
below are the distances between the subcontractors and the
projects.
Project
A
B
C
Westside
50 36 16
Subcontractors Federated
28 30 18
Goliath
35 32 20
Universal
25 25 14
How should the contractors be assigned to minimize total costs?
Note: There are four subcontractors and three projects. We
create a dummy project Dum, which will be assigned to one
subcontractor (i.e. that subcontractor will remain idle)
Slide 6 of 27
Example 1: AP
Westside
Federated
Goliath 35
Universal
50
32
25
A
36
28
20
25
B
16
30
Dummy
0
18
0
0
14
Slide 7 of 27
Example 1: AP
Westside
50 36 16
Federated
28 30 18
Goliath
35 32 20
Universal
25 25 14
Dummy
0
0
0
0
Slide 8 of 27
Example 1: AP
Westside
Federated
Goliath
Universal
A
25
3
10
0
B
11
5
7
0
C Dummy
2
0
4
0
6
0
0
0
Slide 9 of 27
Example 1: AP
0
0
0
0
Example 1: AP
Westside
Federated
Goliath
Universal
A
B
C Dummy
23
9
0
0
1
3
2
0
8
5
4
0
0
0
0
2
Slide 11 of
Example 1: AP
Slide 12 of
Example 1: AP
B
23
0
7
0
C
9
2
4
0
Dummy
0
1
1
0
3
0
0
3
Slide 13 of
Example 1: AP
Find the minimum cover:
A
Westside
Federated
Goliath
Universal
B
23
0
7
0
C
9
2
4
0
Dummy
0
1
1
0
3
0
0 3
Example 1: AP
The optimal assignment occurs at locations of
zeros such that there is exactly one zero in each
row and each column:
A
Westside
Federated
Goliath
Universal
B
23
0
7
0
C
9
2
4
0
Dummy
0
1
1
0
3
0
0 3
Slide 15 of
Example 1: AP
The optimal assignment is (go back to the original
table for the distances):
Subcontractor Project Distance
Westside
C
16
Federated
A
28
Universal
B
25
Goliath
(unassigned)
Total Distance = 69 miles
Slide 16 of
Hungarian Method
Steps:
Slide 17 of
Example 2
Construction
Crane 1
s
90
75
75
80
35
85
55
65
125
95
90
105
45
110
95
115
Slide 18 of
Solution:
Sites-----
Sites-----
Construction
Crane 1
s
Crane 1
s
90
75
75
80
15
35
85
55
65
50
20
30
125
95
90
105
35
15
45
110
95
115
65
50
70
Construction
Sites-----
Cranes
15
50
20
25
35
10
65
50
65
Slide 19 of
Sites-----
Construction
Crane 1
s
35
30
55
10
Sites-----
45
30
45
Crane 1
s
40
25
55
40
30
40
Construction
Solution:
Crane1
Slide 20 of
Example 1: AP via LP
Slide 21 of
Example 1: AP via LP
Contractor
West Side
Federated
Goliath
Universal
Distances From
Contractors to Projects at:
A
B
C
50
36
16
28
30
18
35
32
20
25
25
14
Dummy
0
0
0
0
Contractor
West Side
Federated
Goliath
Universal
Assigned
Capacity
Assignment of Contractors
to Projects at:
A
B
C
0
0
1
1
0
0
0
0
0
0
1
0
1
1
1
1
1
1
Dummy
0
0
1
0
1
1
Total Distance:
Assigned Available
1
1
1
1
1
1
1
1
69
Slide 22 of
Slide 23 of