Learn R Programming

CVXR (version 0.99-7)

AffineProd-class: The AffineProd class.

Description

This class represents the product of two affine expressions.

Usage

AffineProd(x, y)

# S4 method for AffineProd validate_args(object)

# S4 method for AffineProd to_numeric(object, values)

# S4 method for AffineProd size_from_args(object)

# S4 method for AffineProd sign_from_args(object)

# S4 method for AffineProd is_atom_convex(object)

# S4 method for AffineProd is_atom_concave(object)

# S4 method for AffineProd is_incr(object, idx)

# S4 method for AffineProd is_decr(object, idx)

# S4 method for AffineProd is_quadratic(object)

Arguments

x

An '>Expression or numeric constant representing the left-hand value.

y

An '>Expression or numeric constant representing the right-hand value.

object

An '>AffineProd object.

values

A list of arguments to the atom.

idx

An index into the atom.

Methods (by generic)

  • validate_args: Check dimensions of arguments and linearity.

  • to_numeric: The product of two affine expressions.

  • size_from_args: The size of the atom.

  • sign_from_args: Default to rules for times.

  • is_atom_convex: Affine times affine is not convex.

  • is_atom_concave: Affine times affine is not concave.

  • is_incr: A logical value indicating whether the atom is weakly increasing in idx.

  • is_decr: A logical value indicating whether the atom is weakly decreasing in idx.

  • is_quadratic: The affine product is always quadratic.

Slots

x

An '>Expression or numeric constant representing the left-hand value.

y

An '>Expression or numeric constant representing the right-hand value.