21#include "absl/strings/string_view.h"
34 *storage_, {.coeffs = data.
linear_terms, .offset = 0.0});
39 if (!
storage()->has_constraint(id_)) {
43 std::stringstream str;
48 str <<
"[unset indicator variable]";
const ModelStorage * storage() const
BoundedLinearExpression ImpliedConstraint() const
std::string ToString() const
An object oriented wrapper for quadratic constraints in ModelStorage.
constexpr absl::string_view kDeletedConstraintDefaultDescription
LinearExpression ToLinearExpression(const ModelStorage &storage, const LinearExpressionData &expr_data)
A LinearExpression with upper and lower bounds.
SparseCoefficientMap linear_terms
std::optional< VariableId > indicator