- Introduced by
- Leon Cooper; S. L. Hakimi
- Year
- 1963
- Type
- Spatial facility-location optimization
- Family
- Network GIS
What does it do?
Location-allocation models decide where to place a set of facilities and, in the same optimization, assign demand points to those facilities so as to minimize an objective such as total weighted travel cost, the largest distance any demand point travels, or the demand covered within a service distance.
The modelling foundations trace to the operations-research work of Cooper (1963) and Hakimi (1964), and the models are widely used in network GIS for questions such as where to site hospitals, fire stations, warehouses, or schools.
The intuition behind the method
Consider a city that must open a fixed number of clinics. Two decisions are coupled: which candidate sites to open, and which neighbourhoods each open clinic serves. The best sites depend on how demand is assigned, and the best assignment depends on which sites are open. Location-allocation solves both together over the road or travel-time network, under one of three common objectives: minimize total weighted travel (p-median), minimize the longest travel distance for any demand point (p-center), or maximize the demand within a coverage distance (maximal covering). The result is a chosen set of facilities and the demand each one serves.
History
Cooper (1963) presented calculational methods for classes of location-allocation problems, including exact extremal equations and a heuristic procedure. Hakimi (1964) analyzed absolute centers and medians of weighted graphs, showing that an optimal switching-center location lies at a vertex of a communication network, while a police-station location need not coincide with an intersection. The p-median and p-center are commonly used network formulations in this field, and the maximal covering formulation is another named variant.
When to use it
Choose location-allocation when the decision is where to place a limited number of facilities and how demand should be served over a real network, for example siting clinics, emergency stations, warehouses, or charging points. Match the objective to the goal: p-median when total or average travel is the concern, p-center when the worst-served demand must be limited, and maximal covering when a service standard defines adequate access. Do not use it to combine many map-based suitability layers without a network objective; multi-criteria suitability analysis is better suited to that, and it can be used beforehand to screen candidate areas. Once facilities are fixed and the question is how vehicles should travel, shortest-path or routing methods apply instead. The model needs a credible network cost model and demand weights, and its results depend on the candidate set and the cost metric.
Limitations and considerations
- Exact solution of large instances is computationally hard, so solutions for big networks typically come from heuristics that may not be globally optimal.
- Results depend on the demand weights and the network cost model; errors in either can change which sites are selected.
- The candidate site list constrains the answer: a better location outside the list cannot be selected.
- The standard formulation is static and treats demand as fixed, so shifts in population are not captured unless they are modelled explicitly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Chooses facility sites and demand assignments together, so the siting decision accounts for how demand will actually be served.
- Supports distinct objectives (total efficiency, worst-case equity, coverage standard) through the p-median, p-center, and maximal covering formulations.
- Outputs are directly usable: a set of selected sites and the demand allocated to each.
- Costs can be computed on the actual network, so road distance or travel time drives the result.
Applications
- Siting hospitals, clinics, and emergency services for population access.
- Locating warehouses and distribution centres in supply chains.
- Planning retail or branch networks to capture demand.
- Positioning EV charging stations or public facilities.
- Redistricting service areas to balance load and travel.
How it works
How it works
Demand points are defined with weights, such as population counts, together with a set of candidate facility sites. The cost between each demand point and each candidate, usually travel distance or travel time over a transportation network rather than straight-line distance, forms the cost matrix on which the model operates.
Formula
\text{demand points } i,\ \text{candidate sites } j,\ \text{cost } c_{ij}The objective should follow the goal. The p-median minimizes total weighted travel cost to the open facilities; the p-center minimizes the largest cost any demand point incurs, which targets worst-case access; the maximal covering formulation maximizes the demand that falls within a stated coverage distance.
Formula
\min \sum_i \sum_j d_i\, c_{ij}\, x_{ij}\quad (\text{p-median})Each demand point must be assigned to exactly one facility, demand can be assigned only to open sites, and exactly p facilities are opened. The assignment variables are linked to the siting variables, so an assignment is allowed only where the corresponding site is open. Capacity limits can be added when facilities cannot serve unlimited demand.
Formula
\sum_j x_{ij}=1,\ \sum_j y_j = p,\ x_{ij} \le y_jThe resulting integer (or mixed-integer) program can be solved exactly for small instances. For large networks, heuristic and metaheuristic search procedures are used to find good solutions that are not necessarily provably optimal. GIS implementations compute the network costs and return the selected facilities and their service areas.
Formula
\text{integer program / heuristics over the network}Common pitfalls
- Using straight-line distance where network travel time is the quantity that matters can shift the selected sites.
- Choosing the p-median when the stated concern is equity for the worst-served residents; a p-median solution can leave some demand points far from any facility.
- Restricting candidate sites too narrowly, which can exclude the locations that would perform best.
- Reporting a heuristic solution as optimal; compare results across runs or against an exact solution on a smaller instance before drawing conclusions.
Frequently asked questions
What is the difference between p-median and p-center?
The p-median minimizes the total (population-weighted) travel cost to facilities — an efficiency objective. The p-center minimizes the maximum distance any demand point travels — an equity/worst-case objective. They can yield very different solutions, so the choice should reflect whether you care about average access or protecting the worst-served.
Does it use straight-line or network distance?
Properly, network distance or travel time, computed over the road network, because real access follows routes, not crow-flight lines. Using Euclidean distance is a simplification that can misplace facilities, especially where the network is irregular.
How is this different from GIS-MCDA suitability?
Location-allocation optimizes a single network objective (cost/coverage) and assigns demand. GIS-MCDA combines many weighted criteria layers into a suitability surface for siting. They are complementary: MCDA can screen suitable areas, and location-allocation can then optimize exact sites and service assignment.
Related methods
Sources
Cooper, L. (1963). Location-allocation problems. Operations Research, 11(3), 331–343.
Open DOI referenceHakimi, S. L. (1964). Optimum locations of switching centers and the absolute centers and medians of a graph. Operations Research, 12(3), 450–459.
Open DOI reference