Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::ScipConstraintHandlerContext Class Reference

#include <scip_callback.h>

Public Member Functions

 ScipConstraintHandlerContext (SCIP *scip, SCIP_SOL *solution, bool is_pseudo_solution)
 A value of nullptr for solution means to use the current LP solution.
 
double VariableValue (const MPVariable *variable) const
 
int64_t CurrentNodeId () const
 
int64_t NumNodesProcessed () const
 
SCIPscip () const
 
bool is_pseudo_solution () const
 

Detailed Description

Definition at line 79 of file scip_callback.h.

Constructor & Destructor Documentation

◆ ScipConstraintHandlerContext()

operations_research::ScipConstraintHandlerContext::ScipConstraintHandlerContext ( SCIP * scip,
SCIP_SOL * solution,
bool is_pseudo_solution )

A value of nullptr for solution means to use the current LP solution.

Definition at line 76 of file scip_callback.cc.

Member Function Documentation

◆ CurrentNodeId()

int64_t operations_research::ScipConstraintHandlerContext::CurrentNodeId ( ) const

Definition at line 91 of file scip_callback.cc.

◆ is_pseudo_solution()

bool operations_research::ScipConstraintHandlerContext::is_pseudo_solution ( ) const
inline

Pseudo solutions may not be LP feasible. Duals/reduced costs are not available (the LP solver failed at this node).

Do not add "user cuts" here (that strengthen LP solution but don't change feasible region), add only "lazy constraints" (cut off integer solutions).

Todo
(user): maybe this can be abstracted away.

Definition at line 98 of file scip_callback.h.

◆ NumNodesProcessed()

int64_t operations_research::ScipConstraintHandlerContext::NumNodesProcessed ( ) const

Definition at line 87 of file scip_callback.cc.

◆ scip()

SCIP * operations_research::ScipConstraintHandlerContext::scip ( ) const
inline

Definition at line 89 of file scip_callback.h.

◆ VariableValue()

double operations_research::ScipConstraintHandlerContext::VariableValue ( const MPVariable * variable) const

Definition at line 82 of file scip_callback.cc.


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