#include <model.h>
Definition at line 341 of file model.h.
◆ Model()
operations_research::fz::Model::Model |
( |
absl::string_view | name | ) |
|
|
inlineexplicit |
◆ ~Model()
operations_research::fz::Model::~Model |
( |
| ) |
|
◆ AddConstant()
Variable * operations_research::fz::Model::AddConstant |
( |
int64_t | value | ) |
|
- Todo
- (user): Create only once constant per value.
Definition at line 1033 of file model.cc.
◆ AddConstraint() [1/2]
void operations_research::fz::Model::AddConstraint |
( |
absl::string_view | id, |
|
|
std::vector< Argument > | arguments ) |
◆ AddConstraint() [2/2]
void operations_research::fz::Model::AddConstraint |
( |
absl::string_view | id, |
|
|
std::vector< Argument > | arguments, |
|
|
bool | is_domain ) |
Creates and add a constraint to the model.
Definition at line 1047 of file model.cc.
◆ AddFloatConstant()
Variable * operations_research::fz::Model::AddFloatConstant |
( |
double | value | ) |
|
◆ AddFloatingPointObjectiveTerm()
void operations_research::fz::Model::AddFloatingPointObjectiveTerm |
( |
Variable * | var, |
|
|
double | coeff ) |
|
inline |
◆ AddOutput()
◆ AddVariable()
Variable * operations_research::fz::Model::AddVariable |
( |
absl::string_view | name, |
|
|
const Domain & | domain, |
|
|
bool | defined ) |
◆ ClearObjective()
void operations_research::fz::Model::ClearObjective |
( |
| ) |
|
|
inline |
◆ constraints()
const std::vector< Constraint * > & operations_research::fz::Model::constraints |
( |
| ) |
const |
|
inline |
◆ DebugString()
std::string operations_research::fz::Model::DebugString |
( |
| ) |
const |
◆ float_objective_coefficients()
const std::vector< double > & operations_research::fz::Model::float_objective_coefficients |
( |
| ) |
const |
|
inline |
◆ float_objective_offset()
double operations_research::fz::Model::float_objective_offset |
( |
| ) |
const |
|
inline |
◆ float_objective_variables()
const std::vector< Variable * > & operations_research::fz::Model::float_objective_variables |
( |
| ) |
const |
|
inline |
◆ IsInconsistent()
bool operations_research::fz::Model::IsInconsistent |
( |
| ) |
const |
◆ Maximize()
void operations_research::fz::Model::Maximize |
( |
Variable * | obj, |
|
|
std::vector< Annotation > | search_annotations ) |
◆ maximize()
bool operations_research::fz::Model::maximize |
( |
| ) |
const |
|
inline |
◆ Minimize()
void operations_research::fz::Model::Minimize |
( |
Variable * | obj, |
|
|
std::vector< Annotation > | search_annotations ) |
◆ mutable_output()
◆ mutable_search_annotations()
◆ name()
const std::string & operations_research::fz::Model::name |
( |
| ) |
const |
|
inline |
◆ objective()
Variable * operations_research::fz::Model::objective |
( |
| ) |
const |
|
inline |
◆ output()
◆ Satisfy()
void operations_research::fz::Model::Satisfy |
( |
std::vector< Annotation > | search_annotations | ) |
|
Set the search annotations and the objective: either simply satisfy the problem, or minimize or maximize the given variable (which must have been added with AddVariable() already).
Definition at line 1063 of file model.cc.
◆ search_annotations()
const std::vector< Annotation > & operations_research::fz::Model::search_annotations |
( |
| ) |
const |
|
inline |
◆ SetFloatingPointObjectiveOffset()
void operations_research::fz::Model::SetFloatingPointObjectiveOffset |
( |
double | offset | ) |
|
|
inline |
◆ SetObjective()
void operations_research::fz::Model::SetObjective |
( |
Variable * | obj | ) |
|
|
inline |
◆ variables()
const std::vector< Variable * > & operations_research::fz::Model::variables |
( |
| ) |
const |
|
inline |
--— Accessors and mutators --—
Definition at line 372 of file model.h.
The documentation for this class was generated from the following files: