On Aug 24, 2022, at 16:20, Solver Max <con...@solvermax.com> wrote:
I'm solving a CVRPTW model with a variety of data sets and settings. Generally the model returns a good - though perhaps not optimal - solution when given a time limit of, say, 60 seconds.If the model has a longer time limit, then it may find a better solution. The problem is that I don't know how large a time limit to set - 5 minutes, an hour, 8 hours? I don't want to wait 8 hours to find that no progress was made after the first few minutes.So, is there a way to instruct the solver to stop if it hasn't improved the objective function value in the last x seconds? e.g. set a time limit of 3600 seconds, with a stopping rule if there is no progress in the most recent 300 seconds.
--
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 on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a60cd938-04f1-440a-953d-5fc7c8f08f25n%40googlegroups.com.
I think this looks promising:
https://github.com/google/or-tools/discussions/2880#discussioncomment-1582227
Again, I think the problem is not knowing what to look for... I searched for "AddSearchMonitor" in github, but if you look for things like stop solver early etc you'll get nothing...or rather, lots of useless things
I do have a full working solution somewhere, so if this doesn't help you enough please repost and I'll dig it up.
Regards,
James
-- 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 on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a60cd938-04f1-440a-953d-5fc7c8f08f25n%40googlegroups.com https://groups.google.com/d/msgid/or-tools-discuss/a60cd938-04f1-440a-953d-5fc7c8f08f25n%40googlegroups.com?utm_medium=email&utm_source=footer .
-- 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 on the web visit https://groups.google.com/d/msgid/or-tools-discuss/c1c8324e-0db9-4068-bf73-6fe67f8ebd72n%40googlegroups.com.