Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <linear_solver_callback.h>
Public Member Functions | |
MPCallback (bool might_add_cuts, bool might_add_lazy_constraints) | |
virtual | ~MPCallback () |
virtual void | RunCallback (MPCallbackContext *callback_context)=0 |
bool | might_add_cuts () const |
bool | might_add_lazy_constraints () const |
Extend this class with model specific logic, and register through MPSolver::SetCallback, passing a pointer to this object.
Definition at line 138 of file linear_solver_callback.h.
|
inline |
If you intend to call call MPCallbackContext::AddCut(), you must set might_add_cuts below to be true. Likewise for MPCallbackContext::AddLazyConstraint() and might_add_lazy_constraints.
Definition at line 143 of file linear_solver_callback.h.
|
inlinevirtual |
Definition at line 146 of file linear_solver_callback.h.
|
inline |
Definition at line 153 of file linear_solver_callback.h.
|
inline |
Definition at line 154 of file linear_solver_callback.h.
|
pure virtual |
Threading behavior may be solver dependent:
Implemented in operations_research::MPCallbackList.