Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Or Distance Constraints #142

Open
TGSMCQ opened this issue Nov 24, 2022 · 1 comment
Open

Time Or Distance Constraints #142

TGSMCQ opened this issue Nov 24, 2022 · 1 comment

Comments

@TGSMCQ
Copy link

TGSMCQ commented Nov 24, 2022

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
Copy link
Owner

Kuifje02 commented Nov 24, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants