SOCAxis-class | R Documentation |
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).
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)
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: |
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. |
format_constr(SOCAxis)
: Format SOC constraints as inequalities for the solver.
num_cones(SOCAxis)
: The number of elementwise cones.
cone_sizes(SOCAxis)
: The dimensions of a single cone.
size(SOCAxis)
: The dimensions of the (elementwise) second-order cones.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.