Closed tlambert03 closed 5 months ago
@funkey @cmalinmayor curious to get your initial thoughts on this
Attention: Patch coverage is 24.47552%
with 216 lines
in your changes are missing coverage. Please review.
Project coverage is 64.83%. Comparing base (
0fdfae7
) to head (0b3248c
). Report is 1 commits behind head on main.:exclamation: Current head 0b3248c differs from pull request most recent head 289f60c. Consider uploading reports for the commit 289f60c to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
callbacks working for gurobi now as well, with dualbound, primalbound and gap reported for each backend. The remainder of the work now is in
note also @funkey , I've bumped this to c++17 to use std::variant
... but can find an alternative if you'd prefer to keep it at c++11
Wonderful, this is great! :)
No problem with C++17. Looks all good to me. Thanks a lot!
This pull request adds an event callback feature to the SolverBackend class, and exposes it on the ilpy.Solver object with
set_event_callback()
. (currently only implemented for the SCIP backend)This takes a python callable that will be called with a mapping of key/value metadata for each event that occurs during the solving process. Structure of that payload, and exact events that occur remain to be seen. However, as a current example, the following script:
would print out
( not a very interesting one since it gets solved in one step)...