This class represents a second-order cone constraint, i.e. \(\|x\|_2 \leq t\).
SOC(t, X, axis = 2, id = NA_integer_)
# S4 method for class 'SOC'
as.character(x)
# S4 method for class 'SOC'
residual(object)
# S4 method for class 'SOC'
get_data(object)
# S4 method for class 'SOC'
format_constr(object, eq_constr, leq_constr, dims, solver)
# S4 method for class 'SOC'
num_cones(object)
# S4 method for class 'SOC'
size(object)
# S4 method for class 'SOC'
cone_sizes(object)
# S4 method for class 'SOC'
is_dcp(object)
# S4 method for class 'SOC'
is_dgp(object)
# S4 method for class 'SOC'
canonicalize(object)
The scalar part of the second-order constraint.
A matrix whose rows/columns are each a cone.
The dimension along which to slice: 1
indicates rows, and 2
indicates columns. The default is 2
.
(Optional) A numeric value representing the constraint ID.
A SOC 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.
residual(SOC)
: The residual of the second-order constraint.
get_data(SOC)
: Information needed to reconstruct the object aside from the args.
format_constr(SOC)
: Format SOC constraints as inequalities for the solver.
num_cones(SOC)
: The number of elementwise cones.
size(SOC)
: The number of entries in the combined cones.
cone_sizes(SOC)
: The dimensions of the second-order cones.
is_dcp(SOC)
: An SOC constraint is DCP if each of its arguments is affine.
is_dgp(SOC)
: Is the constraint DGP?
canonicalize(SOC)
: The canonicalization of the constraint.
t
The scalar part of the second-order constraint.
X
A matrix whose rows/columns are each a cone.
axis
The dimension along which to slice: 1
indicates rows, and 2
indicates columns. The default is 2
.