Abstract
We introduce a combinatorial optimization-enriched machine learning pipeline and a novel learning paradigm to solve inventory routing problems with stochastic demand and dynamic inventory updates. After each inventory update, our approach reduces replenishment and routing decisions to an optimal solution of a capacitated prize-collecting traveling salesman problem for which well-established algorithms exist. Discovering good prize parametrizations is non-trivial; therefore, we have developed a machine learning approach. We evaluate the performance of our pipeline in settings with steady-state and more complex demand patterns. Compared to previous works, the policy generated by our algorithm leads to significant cost savings, achieves lower inference time, and can even leverage contextual information.
Introduction
The Inventory Routing Problem (IRP) is a fundamental challenge in logistics, requiring the simultaneous optimization of vehicle routing and inventory management. In real-world applications, demand is rarely deterministic. The Dynamic and Stochastic IRP (DSIRP) introduces further complexity: demand is revealed incrementally, and decisions must be made in real-time as inventory levels fluctuate. Traditional exact methods struggle with the uncertainty, while stochastic optimization methods often face exponential computational growth.
Problem Formulation
In the DSIRP, a central depot manages a fleet to replenish customers over a planning horizon. At each time step $t$, the current inventory levels are observed, decisions are made regarding which customers to visit and how much to deliver, and then stochastic demand is realized, updating the state for $t+1$.
The goal is to minimize the total expected cost, which includes transportation costs, inventory holding costs, and penalties for stock-outs. The challenge lies in the "combinatorially vast" state and action space, making standard Reinforcement Learning or pure Optimization difficult to implement in real-time.
The ML-CO Pipeline
To address the complexity of the DSIRP, we propose a two-layer hybrid architecture that separates predictive reasoning from structural optimization.
1. The ML Layer (The "Brain")
The first stage employs a Machine Learning model—specifically a Physics-informed Neural Network (PINN)—to act as the predictive engine. It processes the current state $x^t$, including inventory levels and contextual features, to output a vector of "prizes" $\theta$. Each prize represents the estimated value or desirability of visiting a specific customer at that moment.
2. The CO Layer (The "Muscle")
The predicted prizes are passed to a Combinatorial Optimization (CO) oracle. This layer solves a Capacitated Prize-Collecting Traveling Salesman Problem (CPCTSP). By maximizing the collected prizes minus travel costs subject to vehicle capacity, the oracle produces a high-quality routing decision $u^t$ in real-time.
Training and Evaluation
The pipeline is trained using a variation of imitation learning called Anticipative-DAgger. We use an "anticipative" oracle—a solver with perfect foresight of future demand—to generate expert demonstrations. This ensures the model remains robust over long horizons and avoids "end-of-horizon" depletion strategies where the model might otherwise fail to maintain healthy inventory levels.
We evaluated our approach against standard policies like MEAN (averaging history) and SAA (Sample Average Approximation) across four demand patterns: Normal, Uniform, Bimodal, and Contextual.
Key Results
- Superior Performance: The ML-CO policy outperformed all benchmarks. On average, its costs were only 23.43% higher than the "perfect foresight" baseline, whereas the best traditional benchmark (MEAN) was 32.55% higher.
- Contextual Awareness: Unlike traditional rolling-horizon policies, this pipeline can ingest contextual information (e.g., weather or promotions), allowing it to proactively replenish stock before predicted surges.
- Lightning-Fast Inference: While traditional stochastic methods can take days or weeks to compute a single decision for complex instances, our pipeline provides an answer in less than a second, making it viable for real-time dispatching.
Conclusion
By bridging the gap between Machine Learning and Combinatorial Optimization through a "prize-collecting" formulation, we provide a scalable and efficient solution for the DSIRP. Future work will focus on scaling this approach to larger customer networks and exploring heuristic oracles to further accelerate the training phase.
Paper Citation: Greif, T., Bouvier, L., Flath, C. M., Parmentier, A., Rohmer, S. U. K., & Vidal, T. (2024). Combinatorial Optimization and Machine Learning for Dynamic Inventory Routing. arXiv:2402.04463v1 [math.OC].
Summary updated