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

Constraint-class

The Constraint class.


Description

This virtual class represents a mathematical constraint.

Usage

## S4 method for signature 'Constraint'
as.character(x)

## S4 method for signature 'Constraint'
dim(x)

## S4 method for signature 'Constraint'
size(object)

## S4 method for signature 'Constraint'
is_real(object)

## S4 method for signature 'Constraint'
is_imag(object)

## S4 method for signature 'Constraint'
is_complex(object)

## S4 method for signature 'Constraint'
is_dcp(object)

## S4 method for signature 'Constraint'
is_dgp(object)

## S4 method for signature 'Constraint'
residual(object)

## S4 method for signature 'Constraint'
violation(object)

## S4 method for signature 'Constraint'
constr_value(object, tolerance = 1e-08)

## S4 method for signature 'Constraint'
get_data(object)

## S4 method for signature 'Constraint'
dual_value(object)

## S4 replacement method for signature 'Constraint'
dual_value(object) <- value

## S4 method for signature 'ZeroConstraint'
size(object)

Arguments

x, object

A Constraint object.

tolerance

The tolerance for checking if the constraint is violated.

value

A numeric scalar, vector, or matrix.

Methods (by generic)

  • dim: The dimensions of the constrained expression.

  • size: The size of the constrained expression.

  • is_real: Is the constraint real?

  • is_imag: Is the constraint imaginary?

  • is_complex: Is the constraint complex?

  • is_dcp: Is the constraint DCP?

  • is_dgp: Is the constraint DGP?

  • residual: The residual of a constraint

  • violation: The violation of a constraint.

  • constr_value: The value of a constraint.

  • get_data: Information needed to reconstruct the object aside from the args.

  • dual_value: The dual values of a constraint.

  • dual_value<-: Replaces the dual values of a constraint..

  • size: The size of the constrained 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.