334. p-Median

𝑝-Median Problem: place exactly 𝑝 facilities among candidates to minimize the total assigned distance / cost. No fixed facility cost — the constraint is “exactly 𝑝”.

334.1. Formulation

Choose 𝑝 facilities from candidate set 𝐽 to minimize:

min𝑖𝑑𝑖𝑗𝑐𝑖𝑗𝑥𝑖𝑗

s.t.:

𝑗𝑥𝑖𝑗=1,𝑖𝑥𝑖𝑗𝑦𝑗,𝑖,𝑗𝑗𝑦𝑗=𝑝𝑦𝑗{0,1},𝑥𝑖𝑗0

(Here 𝑑𝑖 is the demand weight of customer 𝑖.)

334.2. Picture

Customer disc size demand weight 𝑑𝑖𝑝=2 facilities chosen to minimize total weighted distance.

334.3. Difference from UFLP

In practice, the two are related: solving 𝑝-median for varying 𝑝 traces out the cost-vs-number-of-facilities trade-off curve that UFLP would balance via the fixed costs.

334.4. Solution methods

NP-hard. Methods:

334.5. Applications

334.6. Variants

334.7. See also