Learn R Programming

CVXR (version 0.99-7)

ExpCone-class: The ExpCone class.

Description

This class represents a reformulated exponential cone constraint operating elementwise on \(a, b, c\).

Usage

ExpCone(a, b, c)

# S4 method for ExpCone size(object)

# S4 method for ExpCone as.character(x)

# S4 method for ExpCone variables(object)

# S4 method for ExpCone format_constr(object, eq_constr, leq_constr, dims, solver)

Arguments

a

The variable \(a\) in the exponential cone.

b

The variable \(b\) in the exponential cone.

c

The variable \(c\) in the exponential cone.

x, object

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

  • size: The size of the x argument.

  • variables: List of '>Variable objects in the exponential cone.

  • format_constr: Format exponential cone constraints for the solver.

Slots

constr_id

(Internal) A unique integer identification number used internally.

a

The variable \(a\) in the exponential cone.

b

The variable \(b\) in the exponential cone.

c

The variable \(c\) in the exponential cone.

Details

Original cone: $$ K = \{(a,b,c) | b > 0, be^{a/b} \leq c\} \cup \{(a,b,c) | a \leq 0, b = 0, c \geq 0\} $$ Reformulated cone: $$ K = \{(a,b,c) | b, c > 0, b\log(b) + a \leq b\log(c)\} \cup \{(a,b,c) | a \leq 0, b = 0, c \geq 0\} $$