The Facility Location Problem is a combinatorial optimization challenge that identifies the optimal number and geographic placement of physical nodes—such as warehouses, distribution centers, or manufacturing plants—within a network. The objective is to minimize the sum of fixed facility opening costs and variable transportation costs incurred while serving a geographically dispersed set of demand points, subject to capacity and service-level constraints.
Glossary
Facility Location Problem

What is Facility Location Problem?
The Facility Location Problem (FLP) is a critical class of optimization models in supply chain design that determines the optimal geographic placement of facilities to minimize total costs while satisfying demand constraints.
Solving an FLP involves balancing the trade-off between the economies of scale achieved by centralizing inventory in fewer locations and the increased outbound shipping expenses to distant customers. Advanced formulations, such as the Uncapacitated Facility Location Problem (UFLP) or the Capacitated Facility Location Problem (CFLP), are typically solved using Mixed-Integer Linear Programming (MILP) or heuristic methods to generate a prescriptive network design that minimizes total landed cost across the supply chain.
Key Variants of the Facility Location Problem
The Facility Location Problem (FLP) is not a single formulation but a family of optimization models. Each variant captures different strategic trade-offs between fixed facility costs, variable transportation expenses, and service-level constraints.
Uncapacitated Facility Location (UFLP)
The foundational variant where any facility can serve an unlimited amount of demand. The objective is purely to balance the fixed cost of opening a facility against the variable transportation costs to serve customers.
- Each customer is assigned to exactly one open facility
- No limit on throughput per facility
- Often solved using Lagrangian relaxation or dual-based heuristics
- Forms the basis for more complex, constrained models
Capacitated Facility Location (CFLP)
Introduces a hard capacity constraint on each facility, limiting the total demand it can serve. This transforms the problem from a simple assignment to a bin-packing hybrid, where both location and allocation must respect throughput limits.
- Facilities have a maximum service volume
- Often requires splitting customer demand across multiple facilities
- Solved via branch-and-cut or Benders decomposition
- Critical for modeling real-world warehouse and server farm constraints
P-Median Problem
Fixes the number of facilities to exactly P and seeks to minimize the total weighted distance between demand nodes and their assigned facilities. There are no fixed opening costs; the budget is expressed as a cardinality constraint.
- Pure focus on accessibility and coverage
- No facility cost trade-off; P is an input parameter
- Common in public sector: locating fire stations, schools, or clinics
- Solved using vertex substitution heuristics or exact LP methods
P-Center Problem
A minimax objective: fix the number of facilities to P and minimize the maximum distance any demand point must travel to its nearest facility. This optimizes for worst-case service equity rather than average efficiency.
- Guarantees a service radius for all customers
- Used for emergency response: ambulance depots, police stations
- Inherently a covering problem with a distance threshold
- More computationally challenging than the P-Median due to the bottleneck objective
Maximum Coverage Location
Flips the constraint structure: given a fixed number of facilities and a service radius, maximize the total demand that falls within the coverage zone. Not all demand must be served; the goal is maximal population reach.
- Binary coverage: a customer is either covered or not
- Used for retail site selection and sensor placement
- Often formulated as an integer programming problem
- Can be extended to gradual coverage decay functions
Hierarchical Facility Location
Models multi-tier systems where facilities at different levels (e.g., regional distribution centers vs. local warehouses) interact. Flow moves sequentially through the hierarchy, and each tier may have distinct cost structures and capacities.
- Captures transshipment and consolidation points
- Facilities at one level serve as demand points for the level above
- Essential for modeling global supply chains with echelons
- Solved using multi-commodity flow formulations
Facility Location Problem vs. Related Optimization Problems
A structural comparison of the Facility Location Problem against adjacent combinatorial optimization challenges in supply chain and logistics.
| Feature | Facility Location Problem | Vehicle Routing Problem | Knapsack Problem | Traveling Salesman Problem |
|---|---|---|---|---|
Primary Objective | Minimize total cost (fixed facility + transportation) while satisfying demand | Minimize total route cost for a fleet servicing customers | Maximize total value of selected items subject to a weight constraint | Minimize total distance of a single route visiting all nodes exactly once |
Decision Variables | Discrete facility locations and continuous allocation of demand | Sequence of customer visits per vehicle | Binary inclusion/exclusion of items | Permutation of node visit order |
Fixed Opening Costs | ||||
Capacity Constraints | ||||
Multiple Facilities/Vehicles | ||||
Demand Satisfaction Requirement | ||||
Typical Solution Method | Mixed-Integer Linear Programming, Lagrangian Relaxation | Branch-and-Price, Clarke-Wright Savings Heuristic | Dynamic Programming, Branch and Bound | Branch and Cut, Lin-Kernighan Heuristic |
Classic Variant | Uncapacitated Facility Location Problem (UFLP) | Capacitated Vehicle Routing Problem (CVRP) | 0/1 Knapsack Problem | Symmetric TSP |
Real-World Applications in Supply Chain
The Facility Location Problem (FLP) determines the optimal placement of warehouses, distribution centers, and manufacturing plants to minimize total logistics costs while satisfying customer demand. Below are key real-world applications where prescriptive analytics transforms supply chain network design.
Greenfield Distribution Center Siting
Determining the optimal geographic placement for a new warehouse in an existing network. The model balances inbound freight costs from suppliers, outbound delivery costs to customers, and fixed facility operating expenses. Modern solvers incorporate geospatial demand density, labor availability, and tax incentive zones as weighted constraints. A typical MILP formulation minimizes the sum of transportation costs and facility amortization over a 10-year horizon, often revealing that a location 50 miles from the intuitive choice saves millions annually.
Last-Mile Micro-Fulfillment Networks
Urban retailers use FLP solvers to identify micro-fulfillment center locations that enable sub-2-hour delivery. The objective function minimizes the maximum delivery radius while respecting real estate cost ceilings. Constraints include zoning restrictions, dock availability, and the requirement that 95% of a city's population falls within a 15-minute drive time. This is a capacitated p-median problem variant, where the number of facilities p is traded off against service level targets.
Supplier Consolidation Strategy
Procurement teams apply FLP to the inbound supply network by modeling which suppliers to retain and where to locate consolidation centers. The model ingests supplier risk scores, volume commitments, and multi-modal freight rates. A fixed-charge facility location formulation determines whether keeping a regional consolidation hub reduces total landed cost, even after accounting for additional handling. This often reveals that reducing the supplier base by 30% and routing through a single cross-dock yields lower total cost of ownership.
Disaster Relief Pre-Positioning
Humanitarian agencies solve a stochastic facility location problem to pre-position emergency supplies before a hurricane season. The model uses scenario-based demand forecasts derived from storm surge models and population vulnerability indices. The objective minimizes the expected deprivation cost—the economic value of human suffering due to delayed aid. Facilities are placed to ensure that, under the worst-case scenario ensemble, critical supplies reach affected populations within 72 hours.
Manufacturing Plant Footprint Optimization
Global manufacturers re-optimize their plant footprint every 3-5 years using multi-echelon FLP models. The decision variables include which plants to open, close, or retool, and which products to assign to each site. Constraints capture tariff differentials, local content requirements, and carbon border taxes. The objective function minimizes total landed cost to customer, including manufacturing, inter-facility transfers, and duties. A recent re-optimization for a consumer electronics firm identified $120M in annual savings by shifting production from 12 plants to 8 strategically located mega-factories.
EV Charging Station Placement
Electric vehicle fleet operators solve a flow-capturing facility location problem to place charging depots. Unlike traditional FLP, demand is not point-based but occurs along traffic flow corridors. The model maximizes the volume of vehicle-miles that can be electrified given a fixed budget for k stations. Constraints include grid capacity, charging dwell times, and vehicle range anxiety buffers. This ensures that a delivery fleet transitioning to EVs can complete all scheduled routes without stranding.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about solving the facility location problem, from core definitions to advanced algorithmic approaches.
The facility location problem (FLP) is a canonical optimization problem that determines the optimal geographic placement of facilities—such as warehouses, distribution centers, or manufacturing plants—to minimize total costs while satisfying a set of demand points. The problem works by mathematically modeling a trade-off: building fewer, larger facilities reduces fixed opening costs but increases transportation distances, while building more facilities reduces shipping costs but incurs higher capital expenditure. Formally, the objective function minimizes the sum of fixed facility opening costs and variable transportation costs subject to constraints ensuring all customer demand is met. The classic uncapacitated formulation assumes each facility can serve unlimited demand, while capacitated variants impose throughput limits. Solution methods range from exact algorithms like mixed-integer linear programming (MILP) and branch and bound to heuristic approaches such as genetic algorithms and simulated annealing for large-scale instances where exact solutions become computationally intractable.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Facility Location Problem is a foundational optimization challenge that intersects with numerous other prescriptive analytics and supply chain disciplines. Understanding these related terms provides the complete toolkit for solving complex network design challenges.
Multi-Echelon Inventory Optimization
Extends the facility location problem by adding inventory stocking decisions across multiple tiers of a distribution network. Rather than simply deciding where to place facilities, this approach determines:
- Which echelon (factory, regional DC, local depot) should hold stock
- Optimal safety stock levels at each location
- How inventory policies affect total network cost
The integration of location and inventory theory is formalized in the Joint Location-Inventory Problem.
P-Median and P-Center Problems
Two classical variants of facility location with distinct objective functions. The P-Median Problem minimizes the average distance between demand points and their assigned facilities, optimizing for overall efficiency. The P-Center Problem minimizes the maximum distance any demand point must travel, optimizing for equity and worst-case service guarantees. Both are NP-hard for general networks, requiring heuristic solutions at scale.
Gravity Model and Spatial Interaction
A foundational geographic concept used to estimate demand flows between facilities and customers. The model posits that interaction between two locations is proportional to their masses (e.g., facility capacity, population) and inversely proportional to the distance decay function. Modern facility location models incorporate gravity-based demand attraction to account for the reality that customers may not always choose the nearest facility.
Weber Problem
The continuous-space precursor to discrete facility location, first formalized by Alfred Weber in 1909. It seeks the optimal coordinates for a single facility that minimizes the sum of weighted Euclidean distances to a set of demand points. The iterative Weiszfeld algorithm provides a numerical solution. While modern problems use discrete candidate locations, the Weber problem established the foundational geometric intuition for all subsequent location theory.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us