socc function

Definition of second-oder cone inequality constraints

Definition of second-oder cone inequality constraints

This function is the interface to the reference class SOCC for creating second-oder cone constraints.

socc(F, g, d, f)

Arguments

  • F: Object of class "matrix": The matrix appearing in the norm-expression on the left-hand side of a second-order cone constraint.
  • g: Object of class "numeric": The vector appearing in the norm-expression on the left-hand side of a second-order cone constraint.
  • d: Object of class "numeric": The vector appearing on the right-hand side of a second-order cone constraint.
  • f: Object of class "numeric": The scalar appearing on the right-hand side of a second-order cone constraint.

Details

A second-order cone constraint is given as c("Fx+g2ledx\n|| Fx + g ||_2 \\le d'x\n", "+f + f"). The matrix GG is created as G=[d,F]G = [-d, -F] and the vector hh is constructed as h=[f,g]h = [f, g].

Returns

List with elements: conType, G and h.

  • Maintainer: Bernhard Pfaff
  • License: GPL (>= 3)
  • Last published: 2023-12-09

Useful links