TL;DR
This paper introduces NEO-LRP, a novel framework that combines machine learning with mixed-integer optimization to tackle the complex Location-Routing Problem (LRP). By training neural networks to predict routing costs, NEO-LRP significantly speeds up the decision-making process for opening facilities and assigning customers, achieving near-optimal solutions much faster than traditional methods.
What Problem Does This Paper Address?
The Location-Routing Problem (LRP) is a critical challenge in logistics and operations research. It involves deciding where to establish facilities (like warehouses or depots) and how to route vehicles from these facilities to serve a set of customers. The goal is to minimize the total costs, which include facility opening costs, fixed vehicle costs, and the variable costs of transportation. A particularly challenging variant is the Capacitated LRP (CLRP), where both facilities and vehicles have limited capacities.
Traditional approaches often struggle with the sheer complexity of CLRP, especially for large-scale problems with many customers and potential depot locations. Exact methods become computationally intractable, while heuristics, though faster, may not guarantee optimal or near-optimal solutions. The core difficulty lies in the intertwined nature of location and routing decisions: where you place a facility directly impacts the efficiency and cost of the routes needed to serve customers. This paper aims to bridge this gap by developing a method that can efficiently solve large CLRP instances while maintaining high solution quality.
Methods
The authors propose a novel framework called NEO-LRP (Neural-Embedded Optimization for Location-Routing Problems). The core idea is to decompose the CLRP into two hierarchical levels:
- High-Level Location-Allocation: This stage decides which depots to open and which customers to assign to each depot.
- Low-Level Vehicle Routing: Once the location-allocation decisions are made, actual vehicle routes are constructed.
The key innovation is how the high-level stage is handled. Instead of solving the full, complex routing problem for every potential facility location, NEO-LRP uses a neural surrogate model. This model, trained on a separate dataset of Capacitated Vehicle Routing Problems (CVRPs), learns to predict the optimal routing cost for a given set of customers assigned to a single depot.
This neural surrogate is then embedded into a mixed-integer programming (MIP) formulation. This MIP model uses the predicted routing costs to guide the location-allocation decisions. The advantage is that the MIP formulation becomes significantly simpler and more scalable because it avoids the computationally expensive arc-flow variables typically used in exact routing models.
The neural surrogate itself is implemented using graph neural networks (GNNs), specifically exploring Deep Sets (DS) and Graph Transformers (GT) architectures. These GNNs take customer and depot features as input and output a predicted routing cost. The trained GNN is then converted into linear constraints within the MIP solver.
Finally, after the MIP determines the optimal facility locations and customer assignments, a standard off-the-shelf VRP solver (like VROOM or OR-Tools) is used to construct the actual vehicle routes for each open depot.
Datasets
- Training Data: The neural surrogate models are trained on a large dataset of 120,000 single-depot CVRP instances. These instances are generated using established methodologies and are completely independent of any LRP benchmarks to prevent overfitting and information leakage.
- Evaluation Benchmarks: The performance of NEO-LRP is evaluated on four widely used benchmark sets for LRP:
- P benchmark (Prins et al.)
- T benchmark (Tuzun and Burke)
- B benchmark (Barreto)
- S benchmark (Schneider and Löffler)
Key Insights and Ideas
- Neural Surrogates for Routing Costs: The most significant insight is that a neural network can effectively learn to approximate the complex routing costs associated with serving a subset of customers from a single depot. This approximation is accurate enough to guide high-quality location-allocation decisions.
- Decomposition and MIP Embedding: By decomposing the CLRP and embedding a neural surrogate for routing costs into a MIP, the problem becomes significantly more tractable. This approach leverages the strengths of both machine learning (for cost approximation) and optimization (for decision-making).
- Avoiding Overfitting: Training the neural surrogate on a dataset entirely separate from the LRP benchmarks is crucial. This design choice prevents the model from "memorizing" specific LRP instances and ensures it generalizes well to unseen problems.
- Modularity and Generalization: The framework's modular design allows it to handle various side constraints (like customer incompatibilities) and be extended to other routing variants (e.g., multi-depot VRP, two-echelon CVRP) without significant re-engineering.
- Routing-Aware Location Decisions: The neural surrogate provides routing-aware cost information during the location-allocation phase, leading to better decisions than traditional methods that might only consider direct travel costs. This is demonstrated by cases where NEO-DS makes different allocation decisions even when depot locations are identical, resulting in improved routing costs.
Key Results
- Computational Speedups: NEO-LRP achieves substantial computational speedups, ranging from 2x to 120x compared to state-of-the-art heuristics. For large instances with 600 customers and 30 depots, per-instance solve times are typically under five minutes, a dramatic improvement over heuristics that can take hours.
- Solution Quality: The method consistently achieves competitive solution quality, with median gaps to the best-known solutions (BKS) ranging from 1.21% to 7.06% across different benchmarks. For many instances, the gaps are within 1-2% of the BKS.
- Scalability: The neural-embedded MIP formulation significantly reduces model complexity, enabling the solution of much larger instances than exact methods. For example, the number of binary variables is reduced by a factor of up to 194 for larger instances.
- Training Efficiency: The one-time training cost for the neural network is around 6 hours, after which individual problem instances can be solved very quickly.
Limitations and Future Work
- Limitations:
- The paper notes that NEO-LRP provides location-allocation decisions but not the actual vehicle routes themselves; these must be computed in a post-processing step.
- While Deep Sets architecture is efficient, Graph Transformers, though more expressive, require more training data and computational resources, and their full potential might not have been realized due to limited training budgets.
- Future Work:
- Investigate alternative neural architectures for the graph transformer regressor to potentially improve solution quality while maintaining computational efficiency.
- Explore incorporating ranking-preserving loss functions during neural network training to better guide the optimization process, especially when absolute cost predictions might be slightly off.
- Extend the framework to handle more complex routing variants and constraints, such as time windows, fleet heterogeneity, and environmental considerations.
Summary updated