Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

CVXR (version 0.95)

Leaf-class: The Leaf class.

Description

This class represents a leaf node, i.e. a Variable, Constant, or Parameter.

Usage

# S4 method for Leaf
variables(object)

# S4 method for Leaf parameters(object)

# S4 method for Leaf constants(object)

# S4 method for Leaf is_convex(object)

# S4 method for Leaf is_concave(object)

# S4 method for Leaf is_quadratic(object)

# S4 method for Leaf is_pwl(object)

# S4 method for Leaf domain(object)

# S4 method for Leaf validate_val(object, val)

Arguments

object

A '>Leaf object.

val

The assigned value.

Methods (by generic)

  • variables: List of '>Variable objects in the leaf node.

  • parameters: List of '>Parameter objects in the leaf node.

  • constants: List of '>Constant objects in the leaf node.

  • is_convex: A logical value indicating whether the leaf node is convex.

  • is_concave: A logical value indicating whether the leaf node is concave.

  • is_quadratic: A logical value indicating whether the leaf node is quadratic.

  • is_pwl: A logical value indicating whether the leaf node is piecewise linear.

  • domain: A list of constraints describing the closure of the region where the leaf node is finite. Default is the full domain.

  • validate_val: Check that val satisfies symbolic attributes of leaf.

Slots

args

A list containing the arguments.