#include <variable_and_expressions.h>
|
using | IdType = VariableId |
| The typed integer used for ids.
|
|
A value type that references a variable from ModelStorage. Usually this type is passed by copy.
This type implements https://abseil.io/docs/cpp/guides/hash (see VariablesEquality for details about how operator== works).
Definition at line 124 of file variable_and_expressions.h.
◆ IdType
◆ Variable()
operations_research::math_opt::Variable::Variable |
( |
const ModelStorage * | storage, |
|
|
VariableId | id ) |
|
inline |
◆ id()
int64_t operations_research::math_opt::Variable::id |
( |
| ) |
const |
|
inline |
Each call to AddVariable will produce Variables id() increasing by one, starting at zero. Deleted ids are NOT reused. Thus, if no variables are deleted, the ids in the model will be consecutive.
Definition at line 1282 of file variable_and_expressions.h.
◆ is_integer()
bool operations_research::math_opt::Variable::is_integer |
( |
| ) |
const |
|
inline |
◆ lower_bound()
double operations_research::math_opt::Variable::lower_bound |
( |
| ) |
const |
|
inline |
◆ name()
absl::string_view operations_research::math_opt::Variable::name |
( |
| ) |
const |
|
inline |
◆ operator-()
◆ storage()
const ModelStorage * operations_research::math_opt::Variable::storage |
( |
| ) |
const |
|
inline |
◆ typed_id()
VariableId operations_research::math_opt::Variable::typed_id |
( |
| ) |
const |
|
inline |
◆ upper_bound()
double operations_research::math_opt::Variable::upper_bound |
( |
| ) |
const |
|
inline |
◆ AbslHashValue
template<typename H >
H AbslHashValue |
( |
H | h, |
|
|
const Variable & | variable ) |
|
friend |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | ostr, |
|
|
const Variable & | variable ) |
|
friend |
The documentation for this class was generated from the following file: