Closed tlambert03 closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.62%. Comparing base (
a6ce446
) to head (7c6dc0a
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@cmalinmayor, this is ready for review
This pull request adds an optional
on_event
callback parameter to thesolve()
method in the code. Theon_event
callback function will be called when the solver emits an event and should accept an event data dictionary.It can be used to monitor progress of the solution. At the moment, due to the different APIs in SCIP and Gurobi, the approach will slightly depend on the backend. But I can also help with how to interpret the data that the callback is receiving (hint, it will always be a dict following the
ilpy.EventData
declaration)