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 class 'SOCAxis'
as.character(x)
# S4 method for class 'SOCAxis'
format_constr(object, eq_constr, leq_constr, dims, solver)
# S4 method for class 'SOCAxis'
num_cones(object)
# S4 method for class 'SOCAxis'
cone_sizes(object)
# S4 method for class 'SOCAxis'
size(object)The scalar part of the second-order constraint.
A matrix whose rows/columns are each a cone.
The dimension across which to take the slice: 1 indicates rows, and 2 indicates columns.
(Optional) A numeric value representing the constraint ID.
A SOCAxis object.
A list of the equality constraints in the canonical problem.
A list of the inequality constraints in the canonical problem.
A list with the dimensions of the conic constraints.
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.
tThe scalar part of the second-order constraint.
x_elemsA list containing X, a matrix whose rows/columns are each a cone.
axisThe dimension across which to take the slice: 1 indicates rows, and 2 indicates columns.