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

New feature: disallow vehicles #481

Open
chakravarthiKalyan opened this issue Nov 4, 2019 · 3 comments
Open

New feature: disallow vehicles #481

chakravarthiKalyan opened this issue Nov 4, 2019 · 3 comments

Comments

@chakravarthiKalyan
Copy link

refer:
https://discuss.graphhopper.com/t/new-feature-disallow-vehicles/2514

We need this feature to restrict some vehicles at some nodes. Wondering if this feature will be part of Jsprit anytime.

We are also open to contribute to the library but wondering if its going to be re-work. Kindly suggest how to go about it.

@quiqua
Copy link
Contributor

quiqua commented Nov 4, 2019

You can add such a feature by adding a HardActivityConstraint and/or HardRouteConstraint, when solving a VRP.

@chakravarthiKalyan
Copy link
Author

Thanks @quiqua, doing the same at the moment.

But looking forward to contribute this feature to the lib.

@grantm009
Copy link

Also restricting vehicles is a complex matter. It can involve vehicle skills and driver skills etc.
As quiqua says it is best handled in hard constraints.

As an example we have situations where vehicles are restricted based on body type, post code, load type etc etc

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

3 participants