Output logs from pyscipopt #881
Replies: 1 comment 8 replies
-
Hello, @sheepone12138! When you say error, do you mean an error in SCIP, or some sort of error in your project? If you know what is causing your error and when it's happening (in relation to the solving process), you can try implementing an event handler. For example, suppose your error shows up when solving the LP in some node. Then, in the event handler you need to catch the event SCIP_EVENTTYPE_LPSOLVED in Here is a list of all events available in SCIP. You can look here for an example on using event handlers. If you're having problem with this, you can tell me more details and I can try to help out. To ouput the log into a file, you can try using redirectOutput(). I've never used this, so I don't know how it works, sorry :( |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project where I need to output the error during the iteration when the solver is running and plot it as a curve. How should I do this and how can I output the running log as a file?
Beta Was this translation helpful? Give feedback.
All reactions