Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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.

Niels A. Wouda, Leon Lan, Wouter Kool• 2023

Related benchmarks

TaskDatasetResultRank
Multi-Depot Vehicle Routing ProblemCordeau MDVRP
Objective Value1.37e+3
125
Capacitated Vehicle Routing ProblemCVRP N=100
Objective Value15.628
87
Vehicle Routing Problem OptimizationVRPMB (100-node instances)
Objective Value11.89
45
Multi-Depot Vehicle Routing ProblemMDVRP n=100
Objective Value7.958
30
Vehicle Routing ProblemVRP 100 Customers (100 instances)
Objective Value15.5
28
Vehicle Routing ProblemOCVRP 48 standard 100-node benchmark instances
Objective Value9.01
27
Multi-Depot Vehicle Routing ProblemMDVRP n=50
Objective Value5.338
24
Vehicle Routing Problem with Time WindowsVRPTW 100 customers
Objective Value25.423
24
Asymmetric Capacitated Vehicle Routing ProblemReal-world ACVRP In-distribution
Cost69.739
22
Asymmetric Capacitated Vehicle Routing ProblemReal-world ACVRP Out-of-distribution city
Cost70.488
22
Showing 10 of 203 rows
...

Other info

Follow for update