residual-methods: Constraint Residual

residual-methodsR Documentation

Constraint Residual

Description

The residual expression of a constraint, i.e. the amount by which it is violated, and the value of that violation. For instance, if our constraint is g(x) ≤q 0, the residual is max(g(x), 0) applied elementwise.

Usage

residual(object)

violation(object)

Arguments

object

A Constraint object.

Value

A Expression representing the residual, or the value of this expression.


CVXR documentation built on Oct. 31, 2022, 1:07 a.m.