File numerics/src/tools/projectionOnCone.h

Go to the source code of this file

function to project on cones

function to project on cones

Enums

enum [anonymous]

Values:

enumerator PROJCONE_DUAL
enumerator PROJCONE_INSIDE
enumerator 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 \} \)

Parameters
  • r[inout] the vector to be projected

  • mu[in] the angle of the cone

Returns

the type of projection

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 \} \)

Parameters
  • u[inout] the vector to be projected

  • mu[in] the angle of the cone

Returns

the type of projection

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[inout] the vector to be projected

  • mu[in] the angle of the cone

  • size[in] dimension