FAQ

This is a list of frequently asked questions about PyVRP. Feel free to suggest new entries!

Installation

How do I install the latest PyVRP from main without having to compile things myself?

The latest prebuilt binaries can be found here.

How do I compile PyVRP from source on Windows machines?

None of the PyVRP developers have a functioning Windows development enviroment available, so we cannot help you troubleshoot this. If you have difficulty figuring out how to build PyVRP on Windows, consider using the Windows Subsystem for Linux (WSL) instead.

Modelling

How do I model vehicle load or service duration at the depots?

PyVRP’s Depot object indeed does not have a load or service duration attribute. Instead, this can be modelled by adding the time for loading or servicing the vehicle at the depot to the duration of all the edges leaving the depot. This is an equivalent way of modelling depot service duration.

How can I model vehicle-specific service durations?

Rather than specifying an explicit service duration for the clients or depots, add the service duration to the duration all the edges leaving the location. Using route profiles, you can then set up different travel duration matrices for the vehicles that include the vehicle-specific service durations.