OR-Tools  9.0
cp_model_checker.cc File Reference

Go to the source code of this file.

Namespaces

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

Macros

#define RETURN_IF_NOT_EMPTY(statement)
 

Functions

std::string ValidateCpModel (const CpModelProto &model)
 
bool SolutionIsFeasible (const CpModelProto &model, const std::vector< int64_t > &variable_values, const CpModelProto *mapping_proto, const std::vector< int > *postsolve_mapping)
 

Macro Definition Documentation

◆ RETURN_IF_NOT_EMPTY

#define RETURN_IF_NOT_EMPTY (   statement)
Value:
do { \
const std::string error_message = statement; \
if (!error_message.empty()) return error_message; \
} while (false)

Definition at line 43 of file cp_model_checker.cc.