File numerics/src/tools/projectionOnCone.h

Go to the source code of this file

function to project on cones

Enums

enum [anonymous]

Values:

PROJCONE_DUAL
PROJCONE_INSIDE
PROJCONE_BOUNDARY

Functions

unsigned projectionOnCone(double *r, double mu)

projectionOnCone Projection on the second Order Cone in \(R^3\), \(K \{ r, r_1 \geq 0, 0 \sqrt(r_2^2+r_3^2) \geq mu r_1 \} \)

Return
the type of projection
Parameters
  • r: the vector to be projected
  • mu: the angle of the cone

unsigned projectionOnDualCone(double *u, double mu)

projectionOnDualCone Projection on the second Order Cone in \(R^3\), \(K \{ r, r_1 \geq 0, 0 mu \sqrt(u_2^2+u_3^2) \geq u_1 \} \)

Return
the type of projection
Parameters
  • u: the vector to be projected
  • mu: the angle of the cone

void projectionOnSecondOrderCone(double *r, double mu, int size)

projectionOnCone Projection on the second Order Cone in \(R^n\), \(K \{ r, r_1 \geq 0, 0 \|[r_2,r_n]\| \geq mu r_1 \} \)

Parameters
  • r: the vector to be projected
  • mu: the angle of the cone
  • size: dimension