OR-Tools  8.1
scip_callback.cc File Reference

Go to the source code of this file.

Classes

struct  SCIP_ConshdlrData
 
struct  SCIP_ConsData
 
struct  CallbackSetup
 

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 
 operations_research::internal
 

Enumerations

enum  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 339 of file scip_callback.cc.

◆ SCIP_DECL_CONSDELETE()

static SCIP_DECL_CONSDELETE ( ConstraintHandlerDeleteC  )
static

Definition at line 244 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOLP()

static SCIP_DECL_CONSENFOLP ( EnforceLpC  )
static

Definition at line 253 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOPS()

static SCIP_DECL_CONSENFOPS ( EnforcePseudoSolutionC  )
static

Definition at line 356 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 234 of file scip_callback.cc.

◆ SCIP_DECL_CONSLOCK()

static SCIP_DECL_CONSLOCK ( VariableRoundingLockC  )
static

Definition at line 387 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPALP()

static SCIP_DECL_CONSSEPALP ( SeparateLpC  )
static

Definition at line 281 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPASOL()

static SCIP_DECL_CONSSEPASOL ( SeparatePrimalSolutionC  )
static

Definition at line 309 of file scip_callback.cc.