vrp
vrp copied to clipboard
Adding additional constraints to the VRP
Is it possible to add additional constraints?
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).
Is the solver able to handle tour length constraint?
On Tue, May 16, 2023 at 3:48 PM Ilya Builuk @.***> wrote:
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).
— Reply to this email directly, view it on GitHub https://github.com/reinterpretcat/vrp/issues/103#issuecomment-1549168772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHL7QFYHJO7MA4JT62OXI3XGMWOJANCNFSM6AAAAAAYDBIEG4 . You are receiving this because you authored the thread.Message ID: @.***>
yes, there is maxDistance and maxDuration constraints on vehicle's limits definition:
https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/vehicles.html
Is there any documentation on how to add additional constraint? I'm not familiar with Rust crate.
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