Kuifje02 / vrpy

A python framework for solving the VRP and its variants with column generation.
MIT License
173 stars 42 forks source link

Time Or Distance Constraints #142

Open TGSMCQ opened 1 year ago

TGSMCQ commented 1 year ago

Hello ! I am using VRPy for a CVRP case . I need to add a constraint of minimum ( not maximum ) time between two deliveries as 30 minutes . Also the maximum distance per route / trip should not be more than a specified value Can you let me know how this can be done ? A sample code will help as I am not an expert! Thanks

Kuifje02 commented 1 year ago

You can constrain the maximum distance per route with resource constraints. You can translate the maximum duration constraint to a maximum distance constraint with the average vehicle speed.

Adding a minimum time between two deliveries sounds complicated. Not sure this is possible.