I'm currently using OR-Tools to solve a Vehicle Routing Problem with a metaheuristic approach (TABU_SEARCH). Here’s a snippet of my code:

By default, it seems the solver keeps running until it hits the maximum time limit (total_time). Is there a way to configure an additional stopping criterion (like a certain number of iterations or a gap tolerance) so that it doesn’t necessarily run for the entire duration?
Another issue I’m facing is that the solution I get is always the same. I was under the impression that using a metaheuristic (TABU_SEARCH) would produce different solutions because it’s supposed to be somewhat stochastic. Am I missing some parameter or configuration that would introduce randomness into the search process?
Any tips?
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/or-tools-discuss/20bed9e6-b0aa-4228-847d-6b6f0fb685e2n%40googlegroups.com.

To view this discussion visit https://groups.google.com/d/msgid/or-tools-discuss/1c55e1d1-bde3-49f5-90d2-6157e10d6363n%40googlegroups.com.