PyVRP: a high-performance VRP solver package
About
We introduce PyVRP, a Python package that implements hybrid genetic search in a state-of-the-art vehicle routing problem (VRP) solver. The package is designed for the VRP with time windows (VRPTW), but can be easily extended to support other VRP variants. PyVRP combines the flexibility of Python with the performance of C++, by implementing (only) performance critical parts of the algorithm in C++, while being fully customisable at the Python level. PyVRP is a polished implementation of the algorithm that ranked 1st in the 2021 DIMACS VRPTW challenge and, after improvements, ranked 1st on the static variant of the EURO meets NeurIPS 2022 vehicle routing competition. The code follows good software engineering practices, and is well-documented and unit tested. PyVRP is freely available under the liberal MIT license. Through numerical experiments we show that PyVRP achieves state-of-the-art results on the VRPTW and capacitated VRP. We hope that PyVRP enables researchers and practitioners to easily and quickly build on a state-of-the-art VRP solver.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Vehicle Routing Problem | VRP 100 Customers (100 instances) | Objective Value15.5 | 28 | |
| Vehicle Routing Problem | OCVRP 48 standard 100-node benchmark instances | Objective Value9.72 | 18 | |
| Vehicle Routing Problem | VRP 500 Customers (100 instances) | Objective Value36.84 | 16 | |
| Vehicle Routing Problem | CVRP 48 standard 100-node benchmark instances | Objective Value15.62 | 12 | |
| Vehicle Routing Problem | OCVRP n=100 | Objective Value9.72 | 12 | |
| Vehicle Routing Problem | CVRP N=50 | Computation Time (m)10 | 12 | |
| Vehicle Routing Problem | VRPB n=50 | Computation Time (min)10 | 12 | |
| Vehicle Routing Problem | OVRP n=100 | Time (m)21 | 12 | |
| Vehicle Routing Problem with Time Windows | VRPTW 100 customers | Objective Value26.04 | 8 | |
| Vehicle Routing Problem with Time Windows | VRPTW 500 customers | Objective Value83.8 | 8 |