Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


CVXR (version 0.99-7)

SDP-class: The SDP class.

Description

This class represents a semidefinite cone constraint, the set of all symmetric matrices such that the quadratic form xTAx is non-negative for all x. {symmetric A|xTAx0 for all x}

Usage

SDP(A, enforce_sym = TRUE, constr_id)

# S4 method for SDP as.character(x)

# S4 method for SDP size(object)

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

Arguments

A

The matrix variable constrained to be semidefinite.

enforce_sym

A logical value indicating whether symmetry constraints should be added.

constr_id

(Internal) A unique integer identification number used internally.

x, object

A '>SDP 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 dimensions of the semidefinite cone.

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

Slots

constr_id

(Internal) A unique integer identification number used internally.

A

The matrix variable constrained to be semidefinite.

enforce_sym

A logical value indicating whether symmetry constraints should be added.