Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residual-methods

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

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.