graphhopper/jsprit

New feature: disallow vehicles

chakravarthiKalyan opened this issue · 3 comments

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.

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

Thanks @quiqua, doing the same at the moment.

But looking forward to contribute this feature to the lib.

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