![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Internal storage representation for a single indicator constraint.
Implements the interface specified for the ConstraintData parameter of AtomicConstraintStorage.
#include <storage.h>
Public Types | |
| using | IdType = IndicatorConstraintId |
| using | ProtoType = IndicatorConstraintProto |
| using | UpdatesProtoType = IndicatorConstraintUpdatesProto |
Public Member Functions | |
| ProtoType | Proto () const |
| std::vector< VariableId > | RelatedVariables () const |
| void | DeleteVariable (VariableId var) |
Static Public Member Functions | |
| static IndicatorConstraintData | FromProto (const ProtoType &in_proto) |
Public Attributes | |
| double | lower_bound = -std::numeric_limits<double>::infinity() |
| double | upper_bound = std::numeric_limits<double>::infinity() |
| SparseCoefficientMap | linear_terms |
| std::optional< VariableId > | indicator |
| bool | activate_on_zero = false |
| std::string | name |
Static Public Attributes | |
| static constexpr ElementType | kElementType = ElementType::kIndicatorConstraint |
| static constexpr bool | kSupportsElemental = true |
| void operations_research::math_opt::IndicatorConstraintData::DeleteVariable | ( | VariableId | var | ) |
Definition at line 74 of file storage.cc.
|
static |
The in_proto must be in a valid state; see the inline comments on IndicatorConstraintProto for details.
Definition at line 29 of file storage.cc.
| IndicatorConstraintData::ProtoType operations_research::math_opt::IndicatorConstraintData::Proto | ( | ) | const |
Definition at line 46 of file storage.cc.
| std::vector< VariableId > operations_research::math_opt::IndicatorConstraintData::RelatedVariables | ( | ) | const |
Definition at line 63 of file storage.cc.
| bool operations_research::math_opt::IndicatorConstraintData::activate_on_zero = false |
| std::optional<VariableId> operations_research::math_opt::IndicatorConstraintData::indicator |
|
staticconstexpr |
|
staticconstexpr |
| SparseCoefficientMap operations_research::math_opt::IndicatorConstraintData::linear_terms |
| double operations_research::math_opt::IndicatorConstraintData::lower_bound = -std::numeric_limits<double>::infinity() |
| std::string operations_research::math_opt::IndicatorConstraintData::name |
| double operations_research::math_opt::IndicatorConstraintData::upper_bound = std::numeric_limits<double>::infinity() |