16#ifndef OR_TOOLS_MATH_OPT_CONSTRAINTS_INDICATOR_INDICATOR_CONSTRAINT_H_
17#define OR_TOOLS_MATH_OPT_CONSTRAINTS_INDICATOR_INDICATOR_CONSTRAINT_H_
23#include "absl/strings/string_view.h"
36 IndicatorConstraint> {
40 absl::string_view
name()
const;
72 const std::optional<VariableId> maybe_indicator =
74 if (!maybe_indicator.has_value()) {
absl::string_view name() const
std::vector< Variable > NonzeroVariables() const
std::optional< Variable > indicator_variable() const
BoundedLinearExpression ImpliedConstraint() const
ModelStorageElement(ModelStorageCPtr storage, IdType id)
std::string ToString() const
bool activate_on_zero() const
The value the indicator variable takes to activate the implied constraint.
ModelStorageElement(ModelStorageCPtr storage, IdType id)
ModelStorageCPtr storage() const
An object oriented wrapper for quadratic constraints in ModelStorage.
constexpr absl::string_view kDeletedConstraintDefaultDescription
std::vector< Variable > AtomicConstraintNonzeroVariables(const ModelStorage &storage, const IdType id)
A LinearExpression with upper and lower bounds.