residual: Get the Residual of a Constraint

residualR Documentation

Get the Residual of a Constraint

Description

Returns the residual of a constraint, measuring how much the constraint is violated or satisfied.

Usage

residual(x, ...)

Arguments

x

A constraint object.

...

Not used.

Value

Numeric array, or NULL if expression has no value.


CVXR documentation built on March 6, 2026, 9:10 a.m.