Decision Atlas
NETNetwork designStop 3 of 11
  1. What network design decides
  2. Six distribution network designs
  3. Facility location models
  4. Greenfield studies
  5. Manufacturing footprint & plant roles
  6. Channel design & omnichannel
  7. Cross-docking vs stocking
  8. Postponement in the network
  9. Reverse logistics networks
  10. Carbon-aware network design
  11. Scenario modeling & digital twins

Facility location models

Center of gravity, p-median, p-center and fixed-charge models, from a quick first guess to a full optimization.

3 min gist, 11 min in full Draft, review pending

Read atChange any time

Four models, each answering a slightly different 'where'.

“Where should the warehouse go?” sounds like one question, but different models answer different versions of it.

Center of gravity gives a quick first guess. Weight each customer’s location by how much it ships (volume times freight rate) and take the weighted average of the coordinates. If Mumbai takes most of the volume, the answer is pulled towards Mumbai. It is fast and intuitive, but it ignores roads, real estate, labour and capacity, and the “optimal” point may land in a field or the sea. Use it to narrow the search, not to sign a lease.

p-median chooses the best pp sites from a list of candidates to minimize the total demand-weighted distance: the average customer gets as close as possible. It suits cost-focused networks.

p-center chooses pp sites to minimize the worst distance: the farthest customer gets as close as possible. It suits service promises such as “every customer within 4 hours”, or emergency services.

Fixed-charge (capacitated) location is what companies actually use for big studies. It decides which candidate sites to open, a yes-or-no binary decision with a fixed cost each, and how much flows from plants to warehouses to customers, minimizing:

fixed cost of open sites + production cost + transport cost (+ inventory, + duties)

subject to meeting all demand and staying within each site’s capacity. Because it mixes yes/no decisions with flow quantities, it’s a mixed-integer linear program (MILP), solved with tools such as Gurobi, CPLEX or open-source solvers.

Words to use

Center of gravity
Volume- and rate-weighted average of customer locations: a quick starting point.
p-median vs p-center
Minimize total weighted distance, or minimize the maximum distance to any customer.
Fixed-charge model
MILP with binary open/close decisions and flows, minimizing fixed plus variable cost.

A centre-of-gravity calculation, why it can mislead, and the fixed-charge location model written out in full.

Centre of gravity, worked

Weight each customer’s coordinates by its volume (times freight rate, if rates differ), and average:

x∗=∑wixi∑wiy∗=∑wiyi∑wix^{*} = \frac{\sum w_i x_i}{\sum w_i} \qquad y^{*} = \frac{\sum w_i y_i}{\sum w_i}
Worked example: three customers on a grid (km)

Customer A at (0, 0) takes 500 units, B at (100, 0) takes 300 and C at (0, 100) takes 200.

  • Centre of gravity: x∗=100×300/1000=30x^{*} = 100 \times 300 / 1000 = 30, y∗=100×200/1000=20y^{*} = 100 \times 200 / 1000 = 20, the point (30, 20).
  • Total weighted distance from there: about 56,956 unit-km.
  • Total weighted distance from A’s own location: 300 × 100 + 200 × 100 = 50,000 unit-km, about 12% less.

The centre of gravity minimizes the weighted squared distances, not the distances themselves. The point that minimizes total weighted distance (the Weber point) is found iteratively, and when one customer carries at least half of the total weight, as A does here, the best spot is at that customer. Use the centre of gravity as a rough starting area, never as the answer.

The fixed-charge location model

For real decisions, list candidate sites and let an optimizer choose:

  • yjy_j = 1 if site jj is opened, 0 otherwise; fjf_j is its fixed cost and KjK_j its capacity.
  • xijx_{ij} = quantity shipped from site jj to customer zone ii, at unit cost cijc_{ij}; did_i is the zone’s demand.
min⁡  ∑jfj yj+∑i∑jcij xij\min \; \sum_j f_j\,y_j + \sum_i \sum_j c_{ij}\,x_{ij}

subject to: every zone’s demand is met, ∑jxij=di\sum_j x_{ij} = d_i; nothing ships from a closed site and open sites stay within capacity, ∑ixij≤Kj yj\sum_i x_{ij} \le K_j\,y_j; and yj∈{0,1}y_j \in \lbrace 0, 1 \rbrace, xij≥0x_{ij} \ge 0.

The Kj yjK_j\,y_j term is the clever part: a closed site has zero capacity, so the model must pay fjf_j to use it.

Choosing between the models

ModelMinimizesTypical use
Centre of gravityWeighted squared distance, with no costsA first look at the map
p-medianTotal demand-weighted distance, for pp sitesCost-driven networks
p-centerThe worst distance to any customerService guarantees, emergency services
CoveringSites needed so every customer is within a limit“Everyone within 4 hours” promises
Fixed-charge MILPTotal cost: fixed + flow, with capacitiesReal open/close decisions

Multi-echelon models, demand zones and road distances, coverage models, and solving large location problems.

More than one echelon

Real networks have plants, central warehouses, regional warehouses and customers. The model adds a layer of flows for each echelon, with flow-balance constraints (what leaves a warehouse equals what arrives, give or take stock changes). It can also choose among capacity options per site (small, medium or large modules, each with its own fixed cost) and enforce single sourcing, where each customer zone is served by exactly one warehouse, which customers and operations often prefer.

Getting the inputs right

  • Demand zones: thousands of customers are grouped into zones, for example by PIN-code areas, each represented by a weighted centre. Too few zones distort distances; too many slow the model without improving decisions.
  • Road distances and times: straight-line distance understates real road distance, and some routes are far slower than distance suggests. Use network distances and transit times.
  • Freight rates: rates aren’t linear in distance. Full truckloads, part loads and parcels are priced differently, and lanes with good backhaul are cheaper.
  • Inventory: safety stock rises with the square root of the number of sites, a non-linear effect that models approximate in steps or add after optimizing flows.

Service-driven models

When the promise to customers matters more than cost, covering models apply. The set-covering model finds the fewest sites so that every customer is within a time or distance limit; the maximal covering model (Church and ReVelle, 1974) places a fixed number of sites to cover as much demand as possible. Both are common for emergency services and same-day delivery networks.

Solving large problems

Mixed-integer solvers, commercial and open-source, handle networks with hundreds of candidate sites and thousands of zones, especially with good formulations. Very large or detailed problems use heuristics, decomposition or a two-step approach: optimize the strategic structure first, then refine flows. Whatever the method, test the answer: if a small change in one assumption flips the recommendation, the decision is not robust yet.

Interview kit

Practise it out loud

Answer each question yourself before opening the model answer.

Say it in 30 seconds

I’d use center of gravity as a quick first look at where demand pulls the network, then a proper optimization. p-median picks facilities to minimize demand-weighted distance, and p-center to minimize the worst-case distance for service guarantees. For real decisions I’d use a capacitated fixed-charge MILP: binary variables to open sites, flow variables for quantities, minimizing fixed plus production plus transport cost subject to demand and capacity constraints.

Why can't you just use center of gravity to pick a warehouse site?

It only looks at weighted straight-line distance. It ignores roads, land and labour costs, taxes, capacity and existing facilities, and its answer might be impractical. It’s a good way to find the right region; the final choice needs candidate sites and a cost model.

How would you formulate a warehouse location problem as a MILP?

Binary variable y_j = 1 if warehouse j opens; continuous x_ij = flow from warehouse j to customer i. Minimize the sum of fixed costs f_j·y_j plus transport cost c_ij·x_ij. Constraints: each customer’s demand is fully met, flow out of j is at most its capacity times y_j, so closed sites ship nothing, and all flows are non-negative.

Connected stops

Where this idea feeds in, or gets its inputs from.

Sources and further reading

  1. Daskin, M. S. (2013). Network and Discrete Location: Models, Algorithms, and Applications (2nd ed.). Wiley.
  2. Hakimi, S. L. (1964). Optimum locations of switching centers and the absolute centers and medians of a graph. Operations Research, 12(3), 450–459.
  3. Chopra, S. & Meindl, P. Supply Chain Management: Strategy, Planning, and Operation. Pearson. Chapter on network design models.
  4. Church, R., & ReVelle, C. (1974). The maximal covering location problem. Papers of the Regional Science Association, 32(1), 101–118.

Reading settings

Saved on this device. Changes apply as you choose them.

Theme
Text size
Typeface for reading
Line spacing
Line length
Start each topic at

Deeper levels stay one click away whichever you choose.

Preview

Safety stock covers the surprises while you wait for a delivery. It grows with the square root of lead time, not with lead time itself.

Lines

↑ ↓ move ↵ open Topics marked “Soon” open their line