OR-Tools  9.6
LinearConstraint

Detailed Description

Definition at line 41 of file math_opt/cpp/linear_constraint.h.

Public Types

using IdType = LinearConstraintId
 

Public Member Functions

 LinearConstraint (const ModelStorage *storage, LinearConstraintId id)
 
int64_t id () const
 
LinearConstraintId typed_id () const
 
const ModelStoragestorage () const
 
double lower_bound () const
 
double upper_bound () const
 
absl::string_view name () const
 
bool is_coefficient_nonzero (Variable variable) const
 
double coefficient (Variable variable) const
 
BoundedLinearExpression AsBoundedLinearExpression () const
 
std::string ToString () const
 

Member Typedef Documentation

◆ IdType

using IdType = LinearConstraintId

Definition at line 44 of file math_opt/cpp/linear_constraint.h.

Constructor & Destructor Documentation

◆ LinearConstraint()

LinearConstraint ( const ModelStorage storage,
LinearConstraintId  id 
)
inline

Definition at line 177 of file math_opt/cpp/linear_constraint.h.

Member Function Documentation

◆ AsBoundedLinearExpression()

BoundedLinearExpression AsBoundedLinearExpression ( ) const
inline

Definition at line 130 of file math_opt/cpp/linear_constraint.h.

◆ coefficient()

double coefficient ( Variable  variable) const
inline

Definition at line 124 of file math_opt/cpp/linear_constraint.h.

◆ id()

int64_t id ( ) const
inline

Definition at line 96 of file math_opt/cpp/linear_constraint.h.

◆ is_coefficient_nonzero()

bool is_coefficient_nonzero ( Variable  variable) const
inline

Definition at line 117 of file math_opt/cpp/linear_constraint.h.

◆ lower_bound()

double lower_bound ( ) const
inline

Definition at line 102 of file math_opt/cpp/linear_constraint.h.

◆ name()

absl::string_view name ( ) const
inline

Definition at line 110 of file math_opt/cpp/linear_constraint.h.

◆ storage()

const ModelStorage * storage ( ) const
inline

Definition at line 100 of file math_opt/cpp/linear_constraint.h.

◆ ToString()

std::string ToString ( ) const
inline

Definition at line 142 of file math_opt/cpp/linear_constraint.h.

◆ typed_id()

LinearConstraintId typed_id ( ) const
inline

Definition at line 98 of file math_opt/cpp/linear_constraint.h.

◆ upper_bound()

double upper_bound ( ) const
inline

Definition at line 106 of file math_opt/cpp/linear_constraint.h.


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