NETNetwork designStop 3 of 11
- What network design decides
- Six distribution network designs
- Facility location models
- Greenfield studies
- Manufacturing footprint & plant roles
- Channel design & omnichannel
- Cross-docking vs stocking
- Postponement in the network
- Reverse logistics networks
- Carbon-aware network design
- 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.
Read atChange any time
“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 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 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.
Centre of gravity, worked
Weight each customer’s coordinates by its volume (times freight rate, if rates differ), and average:
Customer A at (0, 0) takes 500 units, B at (100, 0) takes 300 and C at (0, 100) takes 200.
- Centre of gravity: , , 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:
- = 1 if site is opened, 0 otherwise; is its fixed cost and its capacity.
- = quantity shipped from site to customer zone , at unit cost ; is the zone’s demand.
subject to: every zone’s demand is met, ; nothing ships from a closed site and open sites stay within capacity, ; and , .
The term is the clever part: a closed site has zero capacity, so the model must pay to use it.
Choosing between the models
| Model | Minimizes | Typical use |
|---|---|---|
| Centre of gravity | Weighted squared distance, with no costs | A first look at the map |
| p-median | Total demand-weighted distance, for sites | Cost-driven networks |
| p-center | The worst distance to any customer | Service guarantees, emergency services |
| Covering | Sites needed so every customer is within a limit | “Everyone within 4 hours” promises |
| Fixed-charge MILP | Total cost: fixed + flow, with capacities | Real open/close decisions |
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.
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
- Daskin, M. S. (2013). Network and Discrete Location: Models, Algorithms, and Applications (2nd ed.). Wiley.
- Hakimi, S. L. (1964). Optimum locations of switching centers and the absolute centers and medians of a graph. Operations Research, 12(3), 450–459.
- Chopra, S. & Meindl, P. Supply Chain Management: Strategy, Planning, and Operation. Pearson. Chapter on network design models.
- Church, R., & ReVelle, C. (1974). The maximal covering location problem. Papers of the Regional Science Association, 32(1), 101–118.