Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <scip_callback.h>
Public Member Functions | |
ScipConstraintHandler (const ScipConstraintHandlerDescription &description) | |
virtual | ~ScipConstraintHandler () |
const ScipConstraintHandlerDescription & | description () const |
virtual std::vector< CallbackRangeConstraint > | SeparateFractionalSolution (const ScipConstraintHandlerContext &context, const Constraint &constraint)=0 |
virtual std::vector< CallbackRangeConstraint > | SeparateIntegerSolution (const ScipConstraintHandlerContext &context, const Constraint &constraint) |
virtual bool | FractionalSolutionFeasible (const ScipConstraintHandlerContext &context, const Constraint &constraint) |
Returns true if no constraints are violated. | |
virtual bool | IntegerSolutionFeasible (const ScipConstraintHandlerContext &context, const Constraint &constraint) |
This MUST find a violated constraint if one exists. | |
Definition at line 114 of file scip_callback.h.
|
inlineexplicit |
Definition at line 116 of file scip_callback.h.
|
inlinevirtual |
Definition at line 119 of file scip_callback.h.
|
inline |
Definition at line 120 of file scip_callback.h.
|
inlinevirtual |
Returns true if no constraints are violated.
Definition at line 139 of file scip_callback.h.
|
inlinevirtual |
This MUST find a violated constraint if one exists.
Definition at line 146 of file scip_callback.h.
|
pure virtual |
Unless SeparateIntegerSolution() below is overridden, this must find a violated lazy constraint if one exists when given an integral solution.
Implemented in operations_research::ScipConstraintHandlerForMPCallback.
|
inlinevirtual |
This MUST find a violated lazy constraint if one exists. All constraints returned must have is_cut as false.
Reimplemented in operations_research::ScipConstraintHandlerForMPCallback.
Definition at line 132 of file scip_callback.h.