16using Google.OrTools.Util;
18using System.Collections;
19using System.Collections.Generic;
21using System.Runtime.CompilerServices;
22using Google.Protobuf.Collections;
67 return helper_.ConstraintLowerBound(index_);
70 helper_.SetConstraintLowerBound(index_, value);
80 return helper_.ConstraintUpperBound(index_);
83 helper_.SetConstraintUpperBound(index_, value);
93 return helper_.ConstraintName(index_);
96 helper_.SetConstraintName(index_, value);
107 helper_.SafeAddConstraintTerm(index_, var.
Index, coeff);
117 helper_.SetConstraintCoefficient(index_, var.
Index, coeff);
125 helper_.ClearConstraintTerms(index_);
139 private readonly
int index_;
158 throw new ArgumentException(
"the given index does not refer to an enforced linear constraint");
190 return helper_.EnforcedConstraintLowerBound(index_);
193 helper_.SetEnforcedConstraintLowerBound(index_, value);
203 return helper_.EnforcedConstraintUpperBound(index_);
206 helper_.SetEnforcedConstraintUpperBound(index_, value);
216 return new Variable(helper_, helper_.EnforcedIndicatorVariableIndex(index_));
219 helper_.SetEnforcedIndicatorVariableIndex(index_, value.Index);
229 return helper_.EnforcedIndicatorValue(index_);
232 helper_.SetEnforcedIndicatorValue(index_, value);
242 return helper_.EnforcedConstraintName(index_);
245 helper_.SetEnforcedConstraintName(index_, value);
256 helper_.SafeAddEnforcedConstraintTerm(index_, var.
Index, coeff);
266 helper_.SetEnforcedConstraintCoefficient(index_, var.
Index, coeff);
274 helper_.ClearEnforcedConstraintTerms(index_);
288 private readonly
int index_;