Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::ScipConstraintHandlerForMPCallback Class Reference
Inheritance diagram for operations_research::ScipConstraintHandlerForMPCallback:
operations_research::ScipConstraintHandler< EmptyStruct >

Public Member Functions

 ScipConstraintHandlerForMPCallback (MPCallback *mp_callback)
 
std::vector< CallbackRangeConstraintSeparateFractionalSolution (const ScipConstraintHandlerContext &context, const EmptyStruct &) override
 
std::vector< CallbackRangeConstraintSeparateIntegerSolution (const ScipConstraintHandlerContext &context, const EmptyStruct &) override
 
MPCallbackmp_callback () const
 
- Public Member Functions inherited from operations_research::ScipConstraintHandler< EmptyStruct >
 ScipConstraintHandler (const ScipConstraintHandlerDescription &description)
 
virtual ~ScipConstraintHandler ()
 
const ScipConstraintHandlerDescriptiondescription () 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.
 

Detailed Description

Definition at line 224 of file scip_interface.cc.

Constructor & Destructor Documentation

◆ ScipConstraintHandlerForMPCallback()

operations_research::ScipConstraintHandlerForMPCallback::ScipConstraintHandlerForMPCallback ( MPCallback * mp_callback)
explicit

Definition at line 1122 of file scip_interface.cc.

Member Function Documentation

◆ mp_callback()

MPCallback * operations_research::ScipConstraintHandlerForMPCallback::mp_callback ( ) const
inline

Definition at line 235 of file scip_interface.cc.

◆ SeparateFractionalSolution()

std::vector< CallbackRangeConstraint > operations_research::ScipConstraintHandlerForMPCallback::SeparateFractionalSolution ( const ScipConstraintHandlerContext & context,
const EmptyStruct & constraint )
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.

◆ SeparateIntegerSolution()

std::vector< CallbackRangeConstraint > operations_research::ScipConstraintHandlerForMPCallback::SeparateIntegerSolution ( const ScipConstraintHandlerContext & context,
const EmptyStruct & constraint )
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.


The documentation for this class was generated from the following file: