SOCAxis-class {CVXR}R Documentation

The SOCAxis class.

Description

This class represents a second-order cone constraint for each row/column. It Assumes t is a vector the same length as X's rows (columns) for axis == 1 (2).

Usage

SOCAxis(t, X, axis, id = NA_integer_)

## S4 method for signature 'SOCAxis'
as.character(x)

## S4 method for signature 'SOCAxis'
format_constr(object, eq_constr, leq_constr, dims, solver)

## S4 method for signature 'SOCAxis'
num_cones(object)

## S4 method for signature 'SOCAxis'
cone_sizes(object)

## S4 method for signature 'SOCAxis'
size(object)

Arguments

t

The scalar part of the second-order constraint.

X

A matrix whose rows/columns are each a cone.

axis

The dimension across which to take the slice: 1 indicates rows, and 2 indicates columns.

id

(Optional) A numeric value representing the constraint ID.

x, object

A SOCAxis object.

eq_constr

A list of the equality constraints in the canonical problem.

leq_constr

A list of the inequality constraints in the canonical problem.

dims

A list with the dimensions of the conic constraints.

solver

A string representing the solver to be called.

Methods (by generic)

Slots

t

The scalar part of the second-order constraint.

x_elems

A list containing X, a matrix whose rows/columns are each a cone.

axis

The dimension across which to take the slice: 1 indicates rows, and 2 indicates columns.


[Package CVXR version 1.0-14 Index]