![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
#include <model.h>
Public Member Functions | |
| Model (absl::string_view name) | |
| ~Model () | |
| Variable * | AddVariable (absl::string_view name, const Domain &domain, bool defined, bool set_is_fixed=false) |
| Variable * | AddConstant (int64_t value) |
| Variable * | AddFloatConstant (double value) |
| void | AddConstraint (absl::string_view id, std::vector< Argument > arguments, bool is_domain, bool symmetry, bool redundant) |
| void | AddConstraint (absl::string_view id, std::vector< Argument > arguments) |
| void | AddOutput (SolutionOutputSpecs output) |
| void | Satisfy (std::vector< Annotation > search_annotations) |
| void | Minimize (Variable *obj, std::vector< Annotation > search_annotations) |
| void | Maximize (Variable *obj, std::vector< Annotation > search_annotations) |
| bool | IsInconsistent () const |
| const std::vector< Variable * > & | variables () const |
| const std::vector< Constraint * > & | constraints () const |
| const std::vector< Annotation > & | search_annotations () const |
| const std::vector< SolutionOutputSpecs > & | output () const |
| bool | maximize () const |
| Variable * | objective () const |
| const std::vector< Variable * > & | float_objective_variables () const |
| const std::vector< double > & | float_objective_coefficients () const |
| double | float_objective_offset () const |
| void | SetObjective (Variable *obj) |
| void | ClearObjective () |
| void | AddFloatingPointObjectiveTerm (Variable *var, double coeff) |
| void | SetFloatingPointObjectiveOffset (double offset) |
| std::string | DebugString () const |
| const std::string & | name () const |
|
inlineexplicit |
| Variable * operations_research::fz::Model::AddConstant | ( | int64_t | value | ) |
| void operations_research::fz::Model::AddConstraint | ( | absl::string_view | id, |
| std::vector< Argument > | arguments ) |
| void operations_research::fz::Model::AddConstraint | ( | absl::string_view | id, |
| std::vector< Argument > | arguments, | ||
| bool | is_domain, | ||
| bool | symmetry, | ||
| bool | redundant ) |
| Variable * operations_research::fz::Model::AddFloatConstant | ( | double | value | ) |
|
inline |
| void operations_research::fz::Model::AddOutput | ( | SolutionOutputSpecs | output | ) |
| Variable * operations_research::fz::Model::AddVariable | ( | absl::string_view | name, |
| const Domain & | domain, | ||
| bool | defined, | ||
| bool | set_is_fixed = false ) |
|
inline |
|
inline |
| std::string operations_research::fz::Model::DebugString | ( | ) | const |
|
inline |
|
inline |
|
inline |
| bool operations_research::fz::Model::IsInconsistent | ( | ) | const |
| void operations_research::fz::Model::Maximize | ( | Variable * | obj, |
| std::vector< Annotation > | search_annotations ) |
|
inline |
| void operations_research::fz::Model::Minimize | ( | Variable * | obj, |
| std::vector< Annotation > | search_annotations ) |
|
inline |
|
inline |
|
inline |
| void operations_research::fz::Model::Satisfy | ( | std::vector< Annotation > | search_annotations | ) |
|
inline |
|
inline |
|
inline |
|
inline |