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

Adding additional constraints to the VRP #103

Open
jinkai1205 opened this issue May 16, 2023 · 5 comments
Open

Adding additional constraints to the VRP #103

jinkai1205 opened this issue May 16, 2023 · 5 comments

Comments

@jinkai1205
Copy link

Is it possible to add additional constraints?

@reinterpretcat
Copy link
Owner

yes, that's possible when the logic is used as a library (rust crate). You would need to construct your own instance of VRP using desired constraints (wrapped by Feature concept). If you're using library through json pragmatic format, then it is not possible: this would require to support some domain specific language to express constraints in some form (e.g. AMPL).

@jinkai1205
Copy link
Author

jinkai1205 commented May 16, 2023 via email

@reinterpretcat
Copy link
Owner

yes, there is maxDistance and maxDuration constraints on vehicle's limits definition:

https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/vehicles.html

@jinkai1205
Copy link
Author

Is there any documentation on how to add additional constraint? I'm not familiar with Rust crate.

@reinterpretcat
Copy link
Owner

No, there is no comprehensive documentation how to extend the solver code wise, only how to use it with json as a command line application

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