OR-Tools  8.1
cp_model_checker.cc File Reference

Go to the source code of this file.

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.
 
 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 > &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 41 of file cp_model_checker.cc.