OR-Tools  9.3
scip_callback.cc File Reference

Go to the source code of this file.

Classes

struct  SCIP_ConshdlrData
 
struct  SCIP_ConsData
 
struct  CallbackSetup
 

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 
namespace  operations_research::internal
 

Enumerations

enum class  ScipSeparationResult { kLazyConstraintAdded , kCuttingPlaneAdded , kDidNotFind }
 

Functions

bool LinearConstraintIsViolated (const ScipConstraintHandlerContext &context, const LinearRange &constraint)
 
ScipSeparationResult RunSeparation (internal::ScipCallbackRunner *runner, const ScipConstraintHandlerContext &context, absl::Span< SCIP_CONS * > constraints, bool is_integral)
 
static SCIP_DECL_CONSFREE (ConstraintHandlerFreeC)
 destructor of constraint handler to free user data (called when SCIP is exiting) More...
 
static SCIP_DECL_CONSDELETE (ConstraintHandlerDeleteC)
 
static SCIP_DECL_CONSENFOLP (EnforceLpC)
 
static SCIP_DECL_CONSSEPALP (SeparateLpC)
 
static SCIP_DECL_CONSSEPASOL (SeparatePrimalSolutionC)
 
static SCIP_DECL_CONSCHECK (CheckFeasibilityC)
 
static SCIP_DECL_CONSENFOPS (EnforcePseudoSolutionC)
 
static SCIP_DECL_CONSLOCK (VariableRoundingLockC)
 
void AddConstraintHandlerImpl (const ScipConstraintHandlerDescription &description, std::unique_ptr< ScipCallbackRunner > runner, SCIP *scip)
 
void AddCallbackConstraintImpl (SCIP *scip, const std::string &handler_name, const std::string &constraint_name, void *constraint_data, const ScipCallbackConstraintOptions &options)
 

Function Documentation

◆ SCIP_DECL_CONSCHECK()

static SCIP_DECL_CONSCHECK ( CheckFeasibilityC  )
static

Definition at line 341 of file scip_callback.cc.

◆ SCIP_DECL_CONSDELETE()

static SCIP_DECL_CONSDELETE ( ConstraintHandlerDeleteC  )
static

Definition at line 246 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOLP()

static SCIP_DECL_CONSENFOLP ( EnforceLpC  )
static

Definition at line 255 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOPS()

static SCIP_DECL_CONSENFOPS ( EnforcePseudoSolutionC  )
static

Definition at line 358 of file scip_callback.cc.

◆ SCIP_DECL_CONSFREE()

static SCIP_DECL_CONSFREE ( ConstraintHandlerFreeC  )
static

destructor of constraint handler to free user data (called when SCIP is exiting)

Definition at line 236 of file scip_callback.cc.

◆ SCIP_DECL_CONSLOCK()

static SCIP_DECL_CONSLOCK ( VariableRoundingLockC  )
static

Definition at line 389 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPALP()

static SCIP_DECL_CONSSEPALP ( SeparateLpC  )
static

Definition at line 283 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPASOL()

static SCIP_DECL_CONSSEPASOL ( SeparatePrimalSolutionC  )
static

Definition at line 311 of file scip_callback.cc.