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

Detailed Description

Definition at line 34 of file indicator_constraint.h.

#include <indicator_constraint.h>

Inheritance diagram for operations_research::math_opt::IndicatorConstraint:
operations_research::math_opt::ModelStorageElement< ElementType::kIndicatorConstraint, IndicatorConstraint > operations_research::math_opt::ModelStorageItem

Public Member Functions

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
 ModelStorageElement (ModelStorageCPtr storage, IdType id)
 ModelStorageElement (const ModelStorageElement &)=default
 ModelStorageElement (ModelStorageElement &&)=default
Public Member Functions inherited from operations_research::math_opt::ModelStorageElement< ElementType::kIndicatorConstraint, IndicatorConstraint >
 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::kIndicatorConstraint, IndicatorConstraint >
using IdType
Protected Member Functions inherited from operations_research::math_opt::ModelStorageElement< ElementType::kIndicatorConstraint, IndicatorConstraint >
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

◆ activate_on_zero()

bool operations_research::math_opt::IndicatorConstraint::activate_on_zero ( ) const
inline

Definition at line 82 of file indicator_constraint.h.

◆ ImpliedConstraint()

BoundedLinearExpression operations_research::math_opt::IndicatorConstraint::ImpliedConstraint ( ) const

Definition at line 27 of file indicator_constraint.cc.

◆ indicator_variable()

std::optional< Variable > operations_research::math_opt::IndicatorConstraint::indicator_variable ( ) const
inline

Definition at line 73 of file indicator_constraint.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::IndicatorConstraint::name ( ) const
inline

Definition at line 66 of file indicator_constraint.h.

◆ NonzeroVariables()

std::vector< Variable > operations_research::math_opt::IndicatorConstraint::NonzeroVariables ( ) const
inline

Definition at line 86 of file indicator_constraint.h.

◆ ToString()

std::string operations_research::math_opt::IndicatorConstraint::ToString ( ) const

Definition at line 36 of file indicator_constraint.cc.


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