예제 #1
0
 /// <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)
 {
 }
예제 #2
0
 /// <inheritDoc/>
 public override int GetHashCode()
 {
     return(Relationship.GetHashCode() ^ Value.GetHashCode() ^ Coefficients.GetHashCode());
 }