OR-Tools  8.0
scip_interface.cc File Reference

Go to the source code of this file.

Classes

class  SCIPInterface
 

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.
 

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

 DEFINE_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)

Definition at line 550 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);

Definition at line 559 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 218 of file scip_interface.cc.

◆ RETURN_IF_ALREADY_IN_ERROR_STATE

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

Definition at line 210 of file scip_interface.cc.

Function Documentation

◆ DEFINE_bool()

DEFINE_bool ( scip_feasibility_emphasis  ,
false  ,
"When  true,
emphasize search towards feasibility. This may or " "may not result in speedups in some problems."   
)
SCIP_TO_STATUS
#define SCIP_TO_STATUS(x)
Definition: scip_helper_macros.h:39