Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
struct | Annotation |
struct | Argument |
struct | Constraint |
struct | Domain |
struct | FlatzincSatParameters |
struct | LexerInfo |
class | Model |
class | ModelStatistics |
struct | ParserContext |
This is the context used during parsing. More... | |
class | Presolver |
struct | SolutionOutputSpecs |
struct | Variable |
struct | VarRefOrValue |
Functions | |
bool | CheckSolution (const Model &model, const std::function< int64_t(Variable *)> &evaluator, SolverLogger *logger) |
std::vector< char * > | FixAndParseParameters (int *argc, char ***argv) |
Model | ParseFlatzincModel (const std::string &input, bool input_is_filename, SolverLogger *logger) |
void | LogInFlatzincFormat (const std::string &multi_line_input) |
void | FlattenAnnotations (const Annotation &ann, std::vector< Annotation > *out) |
Flatten Search annotations. | |
bool | ParseFlatzincFile (const std::string &filename, Model *model) |
--— public parsing API --— | |
bool | ParseFlatzincString (const std::string &input, Model *model) |
void | ParseFile (const std::string &filename, bool presolve) |
bool | ContainsId (std::vector< Annotation > *annotations, absl::string_view id) |
bool | AllDomainsHaveOneValue (const std::vector< Domain > &domains) |
int64_t | ConvertAsIntegerOrDie (double d) |
If the argument is an integer, return it as int64_t. Otherwise, die. | |
template<class T > | |
const T & | Lookup (const std::vector< T > &v, int index) |
bool operations_research::fz::AllDomainsHaveOneValue | ( | const std::vector< Domain > & | domains | ) |
Definition at line 59 of file parser_util.cc.
bool operations_research::fz::CheckSolution | ( | const Model & | model, |
const std::function< int64_t(Variable *)> & | evaluator, | ||
SolverLogger * | logger ) |
Verifies that the solution specified by the given evaluator is a feasible solution of the given model. Returns true iff this is the case.
Definition at line 1325 of file checker.cc.
bool operations_research::fz::ContainsId | ( | std::vector< Annotation > * | annotations, |
absl::string_view | id ) |
Whether the given list of annotations contains the given identifier (or function call).
Definition at line 46 of file parser_util.cc.
int64_t operations_research::fz::ConvertAsIntegerOrDie | ( | double | d | ) |
If the argument is an integer, return it as int64_t. Otherwise, die.
Definition at line 68 of file parser_util.cc.
std::vector< char * > operations_research::fz::FixAndParseParameters | ( | int * | argc, |
char *** | argv ) |
void operations_research::fz::FlattenAnnotations | ( | const Annotation & | ann, |
std::vector< Annotation > * | out ) |
void operations_research::fz::LogInFlatzincFormat | ( | const std::string & | multi_line_input | ) |
const T & operations_research::fz::Lookup | ( | const std::vector< T > & | v, |
int | index ) |
Array in flatzinc are 1 based. We use this trivial wrapper for all flatzinc arrays.
Definition at line 78 of file parser_util.cc.
void operations_research::fz::ParseFile | ( | const std::string & | filename, |
bool | presolve ) |
Remove the .fzn extension.
Remove the leading path if present.
Definition at line 38 of file parser_main.cc.
bool operations_research::fz::ParseFlatzincFile | ( | const std::string & | filename, |
Model * | model ) |
Model operations_research::fz::ParseFlatzincModel | ( | const std::string & | input, |
bool | input_is_filename, | ||
SolverLogger * | logger ) |