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

AddExpression-class

The AddExpression class.


Description

This class represents the sum of any number of expressions.

Usage

## S4 method for signature 'Expression,missing'
e1 + e2

## S4 method for signature 'Expression,Expression'
e1 + e2

## S4 method for signature 'Expression,ConstVal'
e1 + e2

## S4 method for signature 'ConstVal,Expression'
e1 + e2

## S4 method for signature 'AddExpression'
dim_from_args(object)

## S4 method for signature 'AddExpression'
name(x)

## S4 method for signature 'AddExpression'
to_numeric(object, values)

## S4 method for signature 'AddExpression'
is_atom_log_log_convex(object)

## S4 method for signature 'AddExpression'
is_atom_log_log_concave(object)

## S4 method for signature 'AddExpression'
is_symmetric(object)

## S4 method for signature 'AddExpression'
is_hermitian(object)

## S4 method for signature 'AddExpression'
copy(object, args = NULL, id_objects = list())

## S4 method for signature 'AddExpression'
graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

e1, e2

The Expression objects or numeric constants to add.

x, object

An AddExpression object.

values

A list of arguments to the atom.

args

An optional list of arguments to reconstruct the atom. Default is to use current args of the atom.

id_objects

Currently unused.

arg_objs

A list of linear expressions for each argument.

dim

A vector representing the dimensions of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • dim_from_args: The dimensions of the expression.

  • name: The string form of the expression.

  • to_numeric: Sum all the values.

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log convex?

  • is_symmetric: Is the atom symmetric?

  • is_hermitian: Is the atom hermitian?

  • copy: Returns a shallow copy of the AddExpression atom

  • graph_implementation: The graph implementation of the expression.

Slots

arg_groups

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


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.