Learn R Programming

CVXR (version 0.99-7)

NonlinearConstraint-class: The NonlinearConstraint class.

Description

This class represents a nonlinear inequality constraint, \(f(x) \leq 0\) where \(f\) is twice-differentiable.

Usage

NonlinearConstraint(f, vars_)

# S4 method for NonlinearConstraint variables(object)

Arguments

f

A nonlinear function.

vars_

A list of variables involved in the function.

object

A '>NonlinearConstraint object.

Methods (by generic)

  • variables: The variables involved in the function in order, i.e. f(vars_) = f(vstack(variables)).

Slots

constr_id

(Internal) A unique integer identification number used internally.

f

A nonlinear function.

vars_

A list of variables involved in the function.

.x_size

(Internal) The dimensions of a column vector with number of elements equal to the total elements in all the variables.