TL;DR
This paper introduces a novel machine learning pipeline that integrates combinatorial optimization to efficiently solve the complex dynamic vehicle routing problem with time windows (DVRP-TW). Their approach, which won the EURO Meets NeurIPS Vehicle Routing Competition, outperforms existing methods by effectively balancing the predictive power of machine learning with the structured decision-making of optimization.
What Problem Does This Paper Address?
The paper tackles the increasingly challenging problem of dynamic vehicle routing, particularly in the context of same-day deliveries driven by e-commerce. Traditional approaches to vehicle routing are often too slow for real-time, dynamic decision-making, while reinforcement learning methods struggle with the high-dimensional, combinatorial nature of these problems. The core challenge is to make efficient routing decisions in an online setting where customer requests arrive unpredictably over time, and each request has a specific time window for delivery. This requires anticipating future requests and their constraints while optimizing routes to minimize costs.
Methods
The authors propose a "CO-enriched ML pipeline" that combines machine learning (ML) with combinatorial optimization (CO). The ML component learns to predict "prizes" for each request based on the current system state. These prizes are then fed into a combinatorial optimization layer, which solves a prize-collecting vehicle routing problem. This approach allows the ML model to learn how to parameterize the optimization problem, effectively incorporating uncertainty about future requests.
Key methodological contributions include:
- CO-layer with Metaheuristics: Unlike previous work that relied on exact CO solvers, this paper uses a metaheuristic (Hybrid Genetic Search - HGS) within the CO-layer. This is crucial for handling the complexity of the DVRP-TW and allows for approximate gradients, enabling end-to-end training of the ML pipeline.
- Generalization of CO-enriched ML: The pipeline is designed to handle objective functions where the dimension of predicted costs doesn't match the decision variables, a common issue in many real-world optimization problems.
- Imitation Learning: The ML model is trained to imitate an "anticipative policy." This policy is derived by solving the problem offline with full knowledge of all requests, providing a strong target for the learning process.
Datasets
The study uses instances derived from real-world US-based grocery delivery data. These are initially treated as "static instances" and then used to generate dynamic problem instances. For training, they use instances with varying sample sizes (50 requests per epoch) and numbers of training instances (from 1 to 30). For evaluation, they use 25 dynamic test instances with a sample size of 100 requests per epoch.
Key Insights and Ideas
- ML + CO Synergy: Combining ML for prediction and CO for structured decision-making is a powerful paradigm for complex, dynamic optimization problems. The ML component learns to "guide" the CO solver by providing appropriate parameters (prizes).
- Metaheuristics in CO-enriched ML: Using metaheuristics in the CO-layer, rather than exact solvers, is feasible and effective for training ML pipelines, even though it doesn't guarantee optimal CO solutions. This significantly broadens the applicability of CO-enriched ML.
- Imitating Anticipation Works: Counterintuitively, imitating an anticipative strategy (which assumes perfect future knowledge) can lead to robust and high-performing policies in dynamic settings, even if the anticipative strategy itself isn't perfectly optimal. This suggests that learning to "think ahead" is more important than perfectly predicting the future.
- Feature Engineering Matters: While model-aware features (using distributional information) offer some improvement, a model-free approach (using only current state information) still performs very well, indicating that the core ML+CO structure is robust.
Key Results
- Competition Winner: The proposed ML-CO policy won the EURO Meets NeurIPS Vehicle Routing Competition.
- Outperforms Baselines: The ML-CO policy achieved the best performance among online policies, outperforming greedy policies by 13.18% and even Monte-Carlo policies (with longer runtimes) by 1.57% in terms of travel time.
- Robustness: The ML-CO policy exhibits lower variance in objective value across different instance seeds compared to some other policies, suggesting it finds more robust solutions.
- Training Efficiency: The ML-CO policy learns effectively with a relatively small number of training instances (around 10-15), indicating good generalization capabilities.
- Model Choice: Graph Neural Networks, particularly a sparsified version, performed best among the tested statistical models, suggesting that incorporating structural information about requests is beneficial.
Limitations and Future Work
- Assumptions: The paper acknowledges that assumptions like an unlimited fleet size and full knowledge of request distributions are unrealistic for real-world scenarios. However, they emphasize that their pipeline is adaptable to limited fleet sizes and incomplete knowledge with historical data.
- Anticipative Strategy: While imitating an anticipative strategy works well, the authors note that it might not be the absolute best strategy to imitate, suggesting that exploring other target strategies could yield even better results.
- Metaheuristic Optimality: The CO-layer uses a metaheuristic, meaning it doesn't guarantee optimal solutions. While this works well in practice, future work could explore ways to improve the quality of these heuristic solutions or integrate them more tightly with the learning process.
Summary updated