This class represents a second-order cone constraint, i.e. \(\|x\|_2 \leq t\).
SOC(t, x_elems)# S4 method for SOC
as.character(x)
# S4 method for SOC
format_constr(object, eq_constr, leq_constr, dims, solver)
# S4 method for SOC
size(object)
The scalar part of the second-order constraint.
A list containing the elements of the vector part of the constraint.
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
: Format SOC constraints as inequalities for the solver.
size
: The dimensions of the second-order cone.
constr_id
(Internal) A unique integer identification number used internally.
t
The scalar part of the second-order constraint.
x_elems
A list containing the elements of the vector part of the constraint.