OR-Tools  8.2
scip_interface.cc File Reference

Go to the source code of this file.

Classes

class  SCIPInterface
 
class  ScipConstraintHandlerForMPCallback
 
class  ScipMPCallbackContext
 

Namespaces

namespace  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.
 

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 656 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 665 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 242 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 234 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."   
)