 |
OR-Tools
8.1
|
Go to the documentation of this file.
25 #include "ortools/flatzinc/parser.tab.hh"
43 bool ContainsId(std::vector<Annotation>* annotations,
const std::string&
id) {
44 if (annotations !=
nullptr) {
45 for (
int i = 0; i < annotations->size(); ++i) {
48 (*annotations)[i].
id ==
id) {
57 for (
int i = 0; i < domains.size(); ++i) {
58 if (!domains[i].HasOneValue()) {
66 const double rounded = std::round(d);
68 CHECK_LE(std::abs(
static_cast<double>(i) - rounded), 1e-9);
int64 ConvertAsIntegerOrDie(double d)
#define CHECK_GE(val1, val2)
const T & Lookup(const std::vector< T > &v, int index)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
GurobiMPCallbackContext * context
bool AllDomainsHaveOneValue(const std::vector< Domain > &domains)
#define CHECK_LE(val1, val2)
bool ContainsId(std::vector< Annotation > *annotations, const std::string &id)
void orfz_error(operations_research::fz::ParserContext *context, operations_research::fz::Model *model, bool *ok, void *scanner, const char *str)
int orfz_get_lineno(void *scanner)
int orfz_lex(YYSTYPE *, void *scanner)