A Curriculum-Based Deep Reinforcement Learning Framework for the Electric Vehicle Routing Problem
About
The electric vehicle routing problem with time windows (EVRPTW) is a complex optimization problem in sustainable logistics, where routing decisions must minimize total travel distance, fleet size, and battery usage while satisfying strict customer time constraints. Although deep reinforcement learning (DRL) has shown great potential as an alternative to classical heuristics and exact solvers, existing DRL models often struggle to maintain training stability-failing to converge or generalize when constraints are dense. In this study, we propose a curriculum-based deep reinforcement learning (CB-DRL) framework designed to resolve this instability. The framework utilizes a structured three-phase curriculum that gradually increases problem complexity: the agent first learns distance and fleet optimization (Phase A), then battery management (Phase B), and finally the full EVRPTW (Phase C). To ensure stable learning across phases, the framework employs a modified proximal policy optimization algorithm with phase-specific hyperparameters, value and advantage clipping, and adaptive learning-rate scheduling. The policy network is built upon a heterogeneous graph attention encoder enhanced by global-local attention and feature-wise linear modulation. This specialized architecture explicitly captures the distinct properties of depots, customers, and charging stations. Trained exclusively on small instances with N=10 customers, the model demonstrates robust generalization to unseen instances ranging from N=5 to N=100, significantly outperforming standard baselines on medium-scale problems. Experimental results confirm that this curriculum-guided approach achieves high feasibility rates and competitive solution quality on out-of-distribution instances where standard DRL baselines fail, effectively bridging the gap between neural speed and operational reliability.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Electric Vehicle Routing Problem with Time Windows (EVRPTW) | EVRPTW C5S2 | D2.03 | 4 | |
| Electric Vehicle Routing Problem with Time Windows (EVRPTW) | EVRPTW C10S3 | Metric D (Distance/Time)3.28 | 4 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen (N=5) (test) | Success Rate94.5 | 4 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen instances (N=10) (test) | Success Rate95.5 | 4 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen instances (N=20) (test) | Success Rate92.3 | 3 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen N=30 (test) | Success Rate87.4 | 3 | |
| Electric Vehicle Routing Problem with Time Windows (EVRPTW) | EVRPTW C20S3 | D5.68 | 3 | |
| Electric Vehicle Routing Problem with Time Windows (EVRPTW) | EVRPTW C30S4 | D6.91 | 3 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen N=40 (test) | Success Rate74.7 | 2 | |
| Electric Vehicle Routing Problem with Time Windows | EVRPTW unseen (N=50) (test) | Success Rate68.9 | 2 |