Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
ScipConstraintHandlerForMPCallback (MPCallback *mp_callback) | |
std::vector< CallbackRangeConstraint > | SeparateFractionalSolution (const ScipConstraintHandlerContext &context, const EmptyStruct &) override |
std::vector< CallbackRangeConstraint > | SeparateIntegerSolution (const ScipConstraintHandlerContext &context, const EmptyStruct &) override |
MPCallback * | mp_callback () const |
Public Member Functions inherited from operations_research::ScipConstraintHandler< EmptyStruct > | |
ScipConstraintHandler (const ScipConstraintHandlerDescription &description) | |
virtual | ~ScipConstraintHandler () |
const ScipConstraintHandlerDescription & | description () const |
virtual bool | FractionalSolutionFeasible (const ScipConstraintHandlerContext &context, const EmptyStruct &constraint) |
Returns true if no constraints are violated. | |
virtual bool | IntegerSolutionFeasible (const ScipConstraintHandlerContext &context, const EmptyStruct &constraint) |
This MUST find a violated constraint if one exists. | |
Definition at line 224 of file scip_interface.cc.
|
explicit |
Definition at line 1122 of file scip_interface.cc.
|
inline |
Definition at line 235 of file scip_interface.cc.
|
overridevirtual |
Unless SeparateIntegerSolution() below is overridden, this must find a violated lazy constraint if one exists when given an integral solution.
Implements operations_research::ScipConstraintHandler< EmptyStruct >.
Definition at line 1128 of file scip_interface.cc.
|
overridevirtual |
This MUST find a violated lazy constraint if one exists. All constraints returned must have is_cut as false.
Reimplemented from operations_research::ScipConstraintHandler< EmptyStruct >.
Definition at line 1134 of file scip_interface.cc.