Extracting specific data from EnableOutput in OR-Tools every 10 seconds #3900
Unanswered
gerymueller
asked this question in
General
Replies: 1 comment
-
I doubt that there is much prebuilt functionality. MP wrappers are relatively thin imho. During solving? That's much harder than after solving. If the latter is enough, just use a python script or similar and parse it. I have done that in the past with some more verbose SCIP output (w/o ortools) as getting access to some stats @ scip internally is surprisingly annoying. If you really need it during solving, i would prefer setting up a callback to obtain improved incumbents and calc the gap myself before i would redirect streams and parse stuff. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello OR-Tools community,
I've been using OR-Tools with the SCIP solver, specifically using the following setup:
While the solver is running, the EnableOutput method provides a detailed console output with a lot of useful information, like this:
For my specific use-case, I'd like to capture specific data points from this output, say, the gap, every 10 seconds while the solver is running. Is there a built-in way within OR-Tools to extract this data? Alternatively, I'm open to monitoring and parsing the console output using external tools or methods if that's a recommended approach.
Any guidance, recommendations, or workarounds would be much appreciated.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions