cone: Cone Constructors

Description Usage Arguments Examples

Description

Constructor functions for the different cone types. Currently ROI supports eight different types of cones.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
K_zero(size)

K_lin(size)

K_soc(sizes)

K_psd(sizes)

K_expp(size)

K_expd(size)

K_powp(alpha)

K_powd(alpha)

Arguments

size

a integer giving the size of the cone, if the dimension of the cones is fixed (i.e. zero, lin, expp, expd) the number of cones is sufficient to define the dimension of the product cone.

sizes

a integer giving the sizes of the cones, if the dimension of the cones is not fixed (i.e. soc, psd) we have to define the sizes of each single cone.

alpha

a numeric vector giving the alphas for the (dual) power cone.

Examples

1
2
K_zero(3) ## 3 equality constraints
K_lin(3)  ## 3 constraints where the slack variable s lies in the linear cone

ROI documentation built on Aug. 29, 2020, 3:01 p.m.

Related to cone in ROI...