OR-Tools  9.6
IndicatorConstraint

Detailed Description

Definition at line 36 of file indicator_constraint.h.

Public Types

using IdType = IndicatorConstraintId
 

Public Member Functions

 IndicatorConstraint (const ModelStorage *storage, IndicatorConstraintId id)
 
int64_t id () const
 
IndicatorConstraintId typed_id () const
 
const ModelStoragestorage () const
 
absl::string_view name () const
 
std::optional< Variableindicator_variable () const
 
bool activate_on_zero () const
 
BoundedLinearExpression ImpliedConstraint () const
 
std::vector< VariableNonzeroVariables () const
 
std::string ToString () const
 

Member Typedef Documentation

◆ IdType

using IdType = IndicatorConstraintId

Definition at line 39 of file indicator_constraint.h.

Constructor & Destructor Documentation

◆ IndicatorConstraint()

IndicatorConstraint ( const ModelStorage storage,
IndicatorConstraintId  id 
)
inline

Definition at line 153 of file indicator_constraint.h.

Member Function Documentation

◆ activate_on_zero()

bool activate_on_zero ( ) const
inline

Definition at line 118 of file indicator_constraint.h.

◆ id()

int64_t id ( ) const
inline

Definition at line 96 of file indicator_constraint.h.

◆ ImpliedConstraint()

BoundedLinearExpression ImpliedConstraint ( ) const

Definition at line 28 of file indicator_constraint.cc.

◆ indicator_variable()

std::optional< Variable > indicator_variable ( ) const
inline

Definition at line 109 of file indicator_constraint.h.

◆ name()

absl::string_view name ( ) const
inline

Definition at line 102 of file indicator_constraint.h.

◆ NonzeroVariables()

std::vector< Variable > NonzeroVariables ( ) const
inline

Definition at line 122 of file indicator_constraint.h.

◆ storage()

const ModelStorage * storage ( ) const
inline

Definition at line 100 of file indicator_constraint.h.

◆ ToString()

std::string ToString ( ) const

Definition at line 34 of file indicator_constraint.cc.

◆ typed_id()

IndicatorConstraintId typed_id ( ) const
inline

Definition at line 98 of file indicator_constraint.h.


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