Clingo
|
Interface to handle events during solving. More...
#include <solve.hh>
Public Member Functions | |
SolveEventHandler ()=default | |
The default constructor. | |
SolveEventHandler (SolveEventHandler &&other)=delete | |
Disable copy and move operations. | |
virtual | ~SolveEventHandler ()=default |
The default destructor. | |
auto | model (Model model) -> bool |
Callback to interact with the model found during solving. | |
void | unsat (SumSpan lower_bound) |
Callback to inspect lower bounds found during solving. | |
void | stats (Stats step, Stats accu) |
Callback to update solving statistics. | |
void | finish (SolveResult result) noexcept |
Callback to handle the end of solving. | |
Interface to handle events during solving.
|
inlinenoexcept |
Callback to handle the end of solving.
The main purpose of this callback is synchronization when solving asynchronously.
result | the result of the solving process |
Callback to interact with the model found during solving.
model | the model found during solving |
Callback to update solving statistics.
step | the statistics for the current step |
accu | the accumulated statistics |
Callback to inspect lower bounds found during solving.
lower_bound | the lower bound found during solving |