/// <summary> /// Build a constraint involving a single linear equation. /// </summary> /// <param name="coefficients">The coefficients of the constraint (left hand side)</param> /// <param name="relationship">The type of (in)equality used in the constraint</param> /// <param name="value">The value of the constraint (right hand side)</param> public LinearConstraint(T[] coefficients, Relationship relationship, T value) : this(new Vector <T, TPolicy>(coefficients), relationship, value) { }
/// <inheritDoc/> public override int GetHashCode() { return(Relationship.GetHashCode() ^ Value.GetHashCode() ^ Coefficients.GetHashCode()); }