Learn R Programming

CVXR (version 0.99-7)

SOC-class: The SOC class.

Description

This class represents a second-order cone constraint, i.e. \(\|x\|_2 \leq t\).

Usage

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)

Arguments

t

The scalar part of the second-order constraint.

x_elems

A list containing the elements of the vector part of the constraint.

x, object

A '>SOC 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)

  • format_constr: Format SOC constraints as inequalities for the solver.

  • size: The dimensions of the second-order cone.

Slots

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.