OR-Tools  9.0
scip_interface.cc File Reference

Go to the source code of this file.

Classes

class  SCIPInterface
 
class  ScipConstraintHandlerForMPCallback
 
class  ScipMPCallbackContext
 

Namespaces

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

Macros

#define RETURN_IF_ALREADY_IN_ERROR_STATE
 
#define RETURN_AND_STORE_IF_SCIP_ERROR(x)
 
#define RETURN_ABNORMAL_IF_BAD_STATUS
 
#define RETURN_ABNORMAL_IF_SCIP_ERROR(x)
 

Functions

 ABSL_FLAG (bool, scip_feasibility_emphasis, false, "When true, emphasize search towards feasibility. This may or " "may not result in speedups in some problems.")
 
MPSolverInterface * BuildSCIPInterface (MPSolver *const solver)
 

Macro Definition Documentation

◆ RETURN_ABNORMAL_IF_BAD_STATUS

#define RETURN_ABNORMAL_IF_BAD_STATUS
Value:
do { \
if (!status_.ok()) { \
LOG_IF(INFO, solver_->OutputIsEnabled()) \
<< "Invalid SCIP status: " << status_; \
return result_status_ = MPSolver::ABNORMAL; \
} \
} while (false)
const int INFO
Definition: log_severity.h:31

Definition at line 657 of file scip_interface.cc.

◆ RETURN_ABNORMAL_IF_SCIP_ERROR

#define RETURN_ABNORMAL_IF_SCIP_ERROR (   x)
Value:
do { \
RETURN_ABNORMAL_IF_BAD_STATUS; \
status_ = SCIP_TO_STATUS(x); \
RETURN_ABNORMAL_IF_BAD_STATUS; \
} while (false);
#define SCIP_TO_STATUS(x)

Definition at line 666 of file scip_interface.cc.

◆ RETURN_AND_STORE_IF_SCIP_ERROR

#define RETURN_AND_STORE_IF_SCIP_ERROR (   x)
Value:
do { \
status_ = SCIP_TO_STATUS(x); \
if (!status_.ok()) return; \
} while (false)

Definition at line 243 of file scip_interface.cc.

◆ RETURN_IF_ALREADY_IN_ERROR_STATE

#define RETURN_IF_ALREADY_IN_ERROR_STATE
Value:
do { \
if (!status_.ok()) { \
VLOG_EVERY_N(1, 10) << "Early abort: SCIP is in error state."; \
return; \
} \
} while (false)

Definition at line 235 of file scip_interface.cc.

Function Documentation

◆ ABSL_FLAG()

ABSL_FLAG ( bool  ,
scip_feasibility_emphasis  ,
false  ,
"When  true,
emphasize search towards feasibility. This may or " "may not result in speedups in some problems."   
)