constr_value function

Is Constraint Violated?

Is Constraint Violated?

Checks whether the constraint violation is less than a tolerance. methods

constr_value(object, tolerance = 1e-08)

Arguments

  • object: A Constraint object.
  • tolerance: A numeric scalar representing the absolute tolerance to impose on the violation.

Returns

A logical value indicating whether the violation is less than the tolerance. Raises an error if the residual is NA.

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07