OR-Tools  9.6
Variable

Detailed Description

Definition at line 122 of file variable_and_expressions.h.

Public Types

using IdType = VariableId
 

Public Member Functions

 Variable (const ModelStorage *storage, VariableId id)
 
int64_t id () const
 
VariableId typed_id () const
 
const ModelStoragestorage () const
 
double lower_bound () const
 
double upper_bound () const
 
bool is_integer () const
 
absl::string_view name () const
 
LinearExpression operator- () const
 

Member Typedef Documentation

◆ IdType

using IdType = VariableId

Definition at line 125 of file variable_and_expressions.h.

Constructor & Destructor Documentation

◆ Variable()

Variable ( const ModelStorage storage,
VariableId  id 
)
inline

Definition at line 1245 of file variable_and_expressions.h.

Member Function Documentation

◆ id()

int64_t id ( ) const
inline

Definition at line 1250 of file variable_and_expressions.h.

◆ is_integer()

bool is_integer ( ) const
inline

Definition at line 1264 of file variable_and_expressions.h.

◆ lower_bound()

double lower_bound ( ) const
inline

Definition at line 1256 of file variable_and_expressions.h.

◆ name()

absl::string_view name ( ) const
inline

Definition at line 1266 of file variable_and_expressions.h.

◆ operator-()

LinearExpression operator- ( ) const
inline

Definition at line 1289 of file variable_and_expressions.h.

◆ storage()

const ModelStorage * storage ( ) const
inline

Definition at line 1254 of file variable_and_expressions.h.

◆ typed_id()

VariableId typed_id ( ) const
inline

Definition at line 1252 of file variable_and_expressions.h.

◆ upper_bound()

double upper_bound ( ) const
inline

Definition at line 1260 of file variable_and_expressions.h.


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