Learn R Programming

CVXR (version 0.99-7)

+,Expression,missing-method: The AddExpression class.

Description

This class represents the sum of any number of expressions.

Usage

# S4 method for Expression,missing
+(e1, e2)

# S4 method for Expression,Expression +(e1, e2)

# S4 method for Expression,ConstVal +(e1, e2)

# S4 method for ConstVal,Expression +(e1, e2)

# S4 method for AddExpression to_numeric(object, values)

# S4 method for AddExpression size_from_args(object)

# S4 method for AddExpression graph_implementation(object, arg_objs, size, data = NA_real_)

Arguments

e1, e2

The '>Expression objects or numeric constants to add.

object

An '>AddExpression object.

values

A list of arguments to the atom.

arg_objs

A list of linear expressions for each argument.

size

A vector with two elements representing the size of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • to_numeric: Sum all the values.

  • size_from_args: The size of the expression.

  • graph_implementation: The graph implementation of the expression.

Slots

arg_groups

A list of '>Expressions and numeric data.frame, matrix, or vector objects.