/// <summary> /// Gets whether this constraint is being violated /// (within the current tolerance threshold). /// </summary> /// <param name="constraint">The constraint.</param> /// <param name="input">The function point.</param> /// <returns> /// True if the constraint is being violated, false otherwise. /// </returns> public static bool IsViolated(this IConstraint constraint, double[] input) { return(constraint.GetViolation(input) + constraint.Tolerance < 0); }