Overview
This paper tackles the Dynamic Pickup and Delivery Problem (DPDP) at an industrial scale by proposing a novel hierarchical reinforcement learning (RL) framework. An upper-level agent learns dynamically when to cache incoming orders versus when to dispatch them, while a lower-level agent uses a Graph Neural Network to efficiently route vehicles for the dispatched batches. Deployed in Huawei's actual supply chain, the system significantly reduces both vehicle travel distances and order overtime compared to traditional greedy and meta-heuristic baselines.
The Challenge: Dynamic Pickup and Delivery
The Dynamic Pickup and Delivery Problem (DPDP) is a notoriously difficult (NP-hard) logistics challenge. In real-world supply chains, orders arrive dynamically throughout the day. Dispatchers must assign these orders to a fleet of vehicles to move goods from origins to destinations while minimizing travel distance and strictly adhering to complex constraints, such as vehicle capacity, time windows, and Last-In-First-Out loading.
Because future orders are unknown, you cannot plan the optimal daily route in advance. Existing solutions usually fall into two traps:
- Fixed-interval batching: They cache orders for a fixed time (e.g., 10 minutes) and then route them. This is myopic; waiting a bit longer might reveal a highly efficient combined route, but waiting too long causes earlier orders to miss their delivery deadlines.
- Computational bottlenecks: Traditional Operations Research (OR) solvers or meta-heuristics (like ALNS) are far too slow to solve these sub-problems in real-time when dealing with hundreds or thousands of orders.
A Two-Tiered Hierarchical RL Approach
To bridge the gap between long-term planning and real-time execution, the authors propose a two-tiered Hierarchical RL framework.
Upper-Level Agent (The Dispatcher)
Modeled as a Deep Q-Network (DQN), this agent evaluates the state of the system at fixed intervals. It decides whether to wait (keep caching incoming orders) or release the current buffer to the routing engine. Its reward function balances the reduction in overall travel distance against the penalty for order overtime, allowing it to make far-sighted batching decisions.
Lower-Level Agent (The Router)
Once a batch of orders is released, it becomes a static routing sub-problem. Instead of using end-to-end RL to magically output a perfect route, the authors use RL to guide traditional local search. Starting from a greedy initial route, a policy network based on a Graph Isomorphism Network (GIN) iteratively selects among four routing operators (inner-exchange, inner-relocate, inter-exchange, inter-relocate) to improve the solution. It alternates between "Improvement" and "Reconstruction" phases to escape local optima.
Key Insights
- Dynamic Batching Beats Fixed Batching: By learning when to dispatch rather than relying on a hardcoded timer, the system intelligently balances the risk of order overtime against the routing efficiency gained by having a denser pool of orders to optimize.
- Learning to Search is Highly Efficient: End-to-end RL often struggles with the hard constraints of vehicle routing. By using a Graph Neural Network to simply select the best traditional heuristic operator at any given step, the model combines the fast inference of neural networks with the feasibility guarantees of OR methods.
- Zero-Shot Generalization at Scale: The lower-level routing agent exhibits remarkable generalization. A model trained exclusively on medium-scale datasets (300 orders) performed almost identically to a model explicitly trained on massive datasets (1000 orders) when evaluated on the 1000-order benchmark.
Real-World Datasets and Results
The authors built a functional simulator using real historical data from the order dispatching system of Huawei Supply Chain Business Unit. The datasets are categorized into four scales to test robustness: 15 orders / 5 vehicles, 50 orders / 5 vehicles, 300 orders / 20 vehicles, and 1000 orders / 50 vehicles.
- Offline Performance: On the 50-order dataset, the hierarchical RL method improved the total objective (distance + overtime penalty) by 14.27% over the industry-standard Greedy approach, and beat state-of-the-art predictive models. On the massive 1000-order dataset, it maintained a 13.04% improvement.
- Speed: On static 50-order sub-problems, exact solvers (Gurobi) couldn't find a solution even after 100 hours due to constraint complexity. The lower-level RL agent reached highly optimized solutions in just ~24 minutes, whereas traditional meta-heuristics (ALNS) took nearly 3 hours to achieve worse results.
- Online Production: The framework was deployed live in Huawei's supply chain from January to April 2021. It consistently reduced average order overtime and vehicle travel distances in the real world compared to the previously deployed greedy algorithm.
Limitations and Future Work
Co-training two interacting RL agents can sometimes lead to instability, though the authors note the lower-level agent's iterative nature mitigates this in their specific setup. Additionally, because exact optimal baselines (via Gurobi) cannot be computed for problems larger than 50 orders, it is difficult to measure exactly how close the algorithm gets to the true mathematical optimum at the 1000-order scale.
Looking ahead, the authors plan to apply this "cache-then-dispatch" hierarchical RL framework to other time-evolving supply chain problems, such as dynamic job shop scheduling, dynamic bin packing, and other dynamic routing variants where tasks arrive unpredictably.
Summary updated