OR-Tools  9.3
operations_research::fz Namespace Reference

Classes

struct  Annotation
 
struct  Argument
 
struct  Constraint
 
struct  Domain
 
struct  FlatzincSatParameters
 
struct  LexerInfo
 
class  Model
 
class  ModelStatistics
 
struct  ParserContext
 
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)
 
bool ParseFlatzincFile (const std::string &filename, Model *model)
 
bool ParseFlatzincString (const std::string &input, Model *model)
 
void ParseFile (const std::string &filename, bool presolve)
 
bool ContainsId (std::vector< Annotation > *annotations, const std::string &id)
 
bool AllDomainsHaveOneValue (const std::vector< Domain > &domains)
 
int64_t ConvertAsIntegerOrDie (double d)
 
template<class T >
const T & Lookup (const std::vector< T > &v, int index)
 

Function Documentation

◆ AllDomainsHaveOneValue()

bool operations_research::fz::AllDomainsHaveOneValue ( const std::vector< Domain > &  domains)

Definition at line 56 of file parser_util.cc.

◆ CheckSolution()

bool CheckSolution ( const Model model,
const std::function< int64_t(Variable *)> &  evaluator,
SolverLogger logger 
)

Definition at line 1237 of file checker.cc.

◆ ContainsId()

bool operations_research::fz::ContainsId ( std::vector< Annotation > *  annotations,
const std::string &  id 
)

Definition at line 43 of file parser_util.cc.

◆ ConvertAsIntegerOrDie()

int64_t ConvertAsIntegerOrDie ( double  d)

Definition at line 65 of file parser_util.cc.

◆ FixAndParseParameters()

std::vector< char * > operations_research::fz::FixAndParseParameters ( int *  argc,
char ***  argv 
)

Definition at line 67 of file fz.cc.

◆ FlattenAnnotations()

void FlattenAnnotations ( const Annotation ann,
std::vector< Annotation > *  out 
)

Definition at line 1140 of file flatzinc/model.cc.

◆ LogInFlatzincFormat()

void operations_research::fz::LogInFlatzincFormat ( const std::string &  multi_line_input)

Definition at line 162 of file fz.cc.

◆ Lookup()

const T & operations_research::fz::Lookup ( const std::vector< T > &  v,
int  index 
)

Definition at line 75 of file parser_util.cc.

◆ ParseFile()

void operations_research::fz::ParseFile ( const std::string &  filename,
bool  presolve 
)

Definition at line 36 of file parser_main.cc.

◆ ParseFlatzincFile()

bool ParseFlatzincFile ( const std::string &  filename,
Model model 
)

Definition at line 38 of file parser.cc.

◆ ParseFlatzincModel()

Model operations_research::fz::ParseFlatzincModel ( const std::string &  input,
bool  input_is_filename,
SolverLogger logger 
)

Definition at line 119 of file fz.cc.

◆ ParseFlatzincString()

bool ParseFlatzincString ( const std::string &  input,
Model model 
)

Definition at line 60 of file parser.cc.