Transportation and Assignment Problems
Transportation and Assignment Problems
Assignment Problems
.
Transportation problem – LP formulations
Solution Methods
Economic Interpretation of TP and shadow
prices
Assignment Problem
Hungarian Algorithm
Duality and Managerial Implications
Stable Marriage problem
Case: Exchange students
Transportation problem
Sacramento Salt Lake Rapid City Albuquerque
City
80 65 70 85
300
Minimize
The quantity of sets received by a retailer should meet the demand. This is given by
X
i 1
ij bj
The quantity of sets supplied by a warehouse should not exceed the availability.
This is given by
X
j 1
ij ai
Minimize
Not solved as LP (Simplex) by hand
• Use hand calculations that give good starting
solutions
• These are optimized quickly
• If we use spreadsheet we can solve as LP
20 75
55
352 416 690 791
125
80 45
995 682 388 685
100
70 30
80 65 70 85
20 75
55
352 416 690 791
125
80 45
995 682 388 685
100
70 30
80 65 70 85
20 75
55
352 416 690 791
125
80 45
995 682 388 685
100
70 30
80 65 70 85
Colombo 16 13 22 17 50
River
Sacron 14 13 19 15 60
River
Calorie 19 20 23 -- 50
River
30 - 50 70 0-30 0 to any
Metro water district
B1 B2 LD SG1 HG
CR 16 16 13 22 17 50
SR 14 14 13 19 15 60
CR 19 19 20 23 M 50
Dummy M 0 M 0 0 50
30 20 70 30 60
Northwest Corner
B1 B2 LD SG1 HG
CR 16 16 13 22 17 50
30 20
SR 14 14 13 19 15 60
60
CR 19 19 20 23 M 50
10 30 10
Dummy M 0 M 0 0 50
50
30 20 70 30 60
Minimize
The supply constraints are equations because we want all the 160 to be
transported. If we have inequalities in the supply constraints, demand 3
and 4 will get zero allocation. D2 alone gets 70 while D1 will get 30.
Example
6 4 6 40
5 5 9 30
3 5 6 50
45 35 40
Assignment Problem
Let us consider an example where 4 jobs have to be assigned to four persons. The Cost of
assigning job j to resource i is given in following Table
1 2 3 4
J1 5 9 3 6
J2 8 7 8 2
J3 6 10 12 7
J4 3 10 8 6
• A feasible solution to the assignment problem is x11 = x22 = x33 = x44 = 1 where the first
person gets job 1 and so on.
1 2 3 4
J1 2 2 0 3
J2 6 1 6 0
J3 0 0 6 1
J4 0 3 5 3
Assignment Problem
Location 1 2 3 4
Machine
1 13 16 12 11
2 15 -- 13 20
3 5 7 10 6
LP/IP Formulation
Person 4 has to reduce all the costs by 2 to be able to quote for one new job. This reduces the base
price for job 3 to 4 which means that Person 1 has to reduce all the costs by 2 to be able to compete
for atleast one job
v3 = v3 - 2
Base 4 7 4 8
Vertical line represents reduction
u1 = u1 + 2 Person 1 6 8 4 10
in base price
2 4 7 6 9
3 5 7 10 8 Horizontal line represents
u4 = u4 + 2 4 5 7 4 8 reduction in cost by an entity
Wayne Winston Example (Page 379)
Tom Selleck, Burt Reynolds, Tony Geary and John Travolta are marooned in a
desert island with Olivia Newton John, Loni Anderson, Dolly Parton and Genie
Francis. The compatibility measures in the table indicate how much happiness
each couple would experience if they spent all their time together. The
happiness earned by a couple is proportional to the fraction of time they spend
together. For example, if Tony and Genie spend half the time together, happiness
is 9/2 = 4.5. The goal of the eight people is to maximize total happiness
7 5 8 2
7 8 9 4 Marriage theorem
3 5 7 9
5 5 6 7
Stable Marriage problem
Here the assignment X14 = X23 = X31 = X42 = 1 is not feasible because the
pair 3-3 is a blocked pair. Man 3 is assigned to woman 1 who has a lower
preference than woman 3 and woman 3 is assigned to man 2 who has a
lower preference than man 3. This assignment is not “stable”
We have the standard assignment constraints and extra constraints to
prevent “blocked pair”.
If we consider a 4 x 4 problem and there are 16 pairs possible. There are 16
constraints to prevent blocked pairs.
Consider the pair 2-4. The constraint is X24 + X22 + X34 + X14 ≤ 1.