Professional Documents
Culture Documents
Science 461
Lecture 4b P-median
problems
September 30, 2008
Example Network
100
250
14
10
200
150
17
23
13
16
12
Demand
D
125
4
Problem Description
Need to locate facilities and allocate
customers to the facility so as to minimize
total distance traveled
Decision variables
Locate
Allocate
Problem Description
Cant allocate a customer to facility j if no
facility located at j linking constraints
Need to allocate each customer to a
single facility
Need to locate exactly P facilities
Formulation
Minimize
Subject to
Y AA
XA
XA
Y BA
Y CA
Y EE
X A X B XC X D X E
Y AA Y AB Y AE
XA
XE
P
1
Y EA Y EB Y EE 1
X A, X B , X C , X D , X E
Y AA ,..., Y EE
0,1
0,1
Cannot assign
demands to an
unopened
facility
No. to locate
Each demand assigned
once
Integrality
7
A
10
14
13
17
23
C
200
250
16
12
150
Locate at B for
a total demand
weighted
distance of
10,075
Demand
125
General Formulation
minimize
h d
i
ij
Y ij
iI jJ
subject to
ij
i I
jJ
jJ
Y ij X j
X j 0,1
Y ij 0,1
i I , j J
j J
i I , j J
9
Extensions
Facility costs
Need
10
Solving 1-Median
Demo in Excel
11
Hakimi Proof
B
C
H
G
12
Hakimi Proof
B
C
H
J
G
These nodes access
the facility through E
13
Hakimi Proof
We collapse the network, and assign all demand that
would flow through E to node E, and the same for
node F.
wA + wD + wE + wG + wH
(Say, 30 units)
E
a units
wB + wC + wF + wJ
(Say, 40 units)
b units
14
Hakimi Proof
So having the facility at a=3, b=7 means total travel
is 370 km. But what happens when we locate on
node E (a=0, b=10)? What about a=10,b=0?
wA + wD + wE + wG + wH
(Say, 30 units)
E
a units
wB + wC + wF + wJ
(Say, 40 units)
b units
Hakimi Proof
What happens if both E and F have the same
demand of 35?
wA + wD + wE + wG + wH
(Say, 35 units)
E
a units
wB + wC + wF + wJ
(Say, 40 units)
b units
Complexity of P-median
Original problem has n choose p
solutions: n! / [(n-p)!p!]
For n=10 and p=3, 120 solutions
For n=100 and p=15, 2.5E17 solutions
At
Neighborhood search
(Maranzana, 1965, Operations Research Quarterly)
20