Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::Variable Class Referencefinal

Detailed Description

A value type that references a variable from ModelStorage. Usually this type is passed by copy.

Definition at line 121 of file variable_and_expressions.h.

#include <variable_and_expressions.h>

Inheritance diagram for operations_research::math_opt::Variable:
operations_research::math_opt::ModelStorageElement< ElementType::kVariable, Variable, ModelStorageElementEquality::kWithoutEquality > operations_research::math_opt::ModelStorageItem

Public Member Functions

double lower_bound () const
double upper_bound () const
bool is_integer () const
absl::string_view name () const
LinearExpression operator- () const
 ModelStorageElement (ModelStorageCPtr storage, IdType id)
 ModelStorageElement (const ModelStorageElement &)=default
 ModelStorageElement (ModelStorageElement &&)=default
Public Member Functions inherited from operations_research::math_opt::ModelStorageElement< ElementType::kVariable, Variable, ModelStorageElementEquality::kWithoutEquality >
 ModelStorageElement (ModelStorageCPtr storage, IdType id)
int64_t id () const
IdType typed_id () const
Public Member Functions inherited from operations_research::math_opt::ModelStorageItem
ModelStorageCPtr storage () const

Additional Inherited Members

Public Types inherited from operations_research::math_opt::ModelStorageElement< ElementType::kVariable, Variable, ModelStorageElementEquality::kWithoutEquality >
using IdType
 The typed integer used for ids.
Protected Member Functions inherited from operations_research::math_opt::ModelStorageElement< ElementType::kVariable, Variable, ModelStorageElementEquality::kWithoutEquality >
ModelStorageElementoperator= (const ModelStorageElement &)=default
 ~ModelStorageElement ()=default
Protected Member Functions inherited from operations_research::math_opt::ModelStorageItem
 ModelStorageItem (ModelStorageCPtr storage)
 ModelStorageItem (const ModelStorageItem &)=default
ModelStorageItemoperator= (const ModelStorageItem &)=default
 ModelStorageItem (ModelStorageItem &&)=default
ModelStorageItemoperator= (ModelStorageItem &&)=default
 ~ModelStorageItem ()=default

Member Function Documentation

◆ is_integer()

bool operations_research::math_opt::Variable::is_integer ( ) const
inline

Definition at line 1243 of file variable_and_expressions.h.

◆ lower_bound()

double operations_research::math_opt::Variable::lower_bound ( ) const
inline

Inline function implementations ///////////////////////////////////////////// Variable

Definition at line 1235 of file variable_and_expressions.h.

◆ ModelStorageElement() [1/3]

operations_research::math_opt::ModelStorageElement< element_type, Derived, generate_equality >::ModelStorageElement ( const ModelStorageElement & )
default

◆ ModelStorageElement() [2/3]

operations_research::math_opt::ModelStorageElement< element_type, Derived, generate_equality >::ModelStorageElement ( ModelStorageCPtr storage,
IdType id )
inline

Definition at line 81 of file model_storage_item.h.

◆ ModelStorageElement() [3/3]

operations_research::math_opt::ModelStorageElement< element_type, Derived, generate_equality >::ModelStorageElement ( ModelStorageElement && )
default

◆ name()

absl::string_view operations_research::math_opt::Variable::name ( ) const
inline

Definition at line 1247 of file variable_and_expressions.h.

◆ operator-()

LinearExpression operations_research::math_opt::Variable::operator- ( ) const
inline

Definition at line 1254 of file variable_and_expressions.h.

◆ upper_bound()

double operations_research::math_opt::Variable::upper_bound ( ) const
inline

Definition at line 1239 of file variable_and_expressions.h.


The documentation for this class was generated from the following file: