-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Which method does OR-Tools use for solving VRP ? #1867
Comments
first solution strategy with various heuristic |
I didn't even see this section, I feel a bit stupid. Thanks a lot though ! |
Maybe it was too hidden... |
Actually it's not hidden at all, after your answer I even noticed there was a link to the answer I was looking for directly on the page I was on 😅 I guess I was just half-asleep... Great work then ! |
Apart from the First Solution Heuristic strategy, does OR-Tools use the constraint programming solver to solve VRP? If not, how are the the custom constraints (added using routing.solver().Add() function) handled by the tool? I am not sure if the the heuristic first solution strategies would be able to adapt to these custom constraints. |
If I decide to use Local Search, does First Solution Strategy become optional? Thank you! |
no, First Solution Strategy is "disabled" only if you provide an initial solution, THEN the local search is used to improve over it... step 1: First solution Strategy or initial solution provided |
Understood. Appreciate you being there for us! |
@Mizux Can or-tools handles vrptw with additional customized constraints like general linear constraints? |
I have the exact same question. Thank you so much for the great work. |
Basically the routing lib is built on top of the Constraint Solver (CP) thus the code located in side note: You currently can't append expression to the objective expression (hard coded in the routing code). |
Oh I see. So it's running CP under the hood when new constraints are added. That's why the computation slows down exponentially. Edit:I read the Documentation and the source code, and vaguely understood how it works. I'll look into either defining my own routing search heuristics or editing the hard-coded objective function to minimize for the penalty function. Thanks for the quick response. |
Hello,
I'm currently using the OR-Tools to solve VRP instances by following this guide : https://developers.google.com/optimization/routing/vrp.
However, I was wondering which method is used by functions provided to resolve that kind of problem ?
It seems to be an heuristic method but I don't know exactly which one.
Thank you for your help
The text was updated successfully, but these errors were encountered: