Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#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 |
SCIP * | scip () const |
bool | is_pseudo_solution () const |
Definition at line 79 of file scip_callback.h.
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.
int64_t operations_research::ScipConstraintHandlerContext::CurrentNodeId | ( | ) | const |
Definition at line 91 of file scip_callback.cc.
|
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).
Definition at line 98 of file scip_callback.h.
int64_t operations_research::ScipConstraintHandlerContext::NumNodesProcessed | ( | ) | const |
Definition at line 87 of file scip_callback.cc.
|
inline |
Definition at line 89 of file scip_callback.h.
double operations_research::ScipConstraintHandlerContext::VariableValue | ( | const MPVariable * | variable | ) | const |
Definition at line 82 of file scip_callback.cc.