# projectionOnCone (functions)¶

siconos.numerics.projectionOnCone(array_like (np.float64, 1D)r, double mu)[source]

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 – the vector to be projected

• mu – the angle of the cone

Returns

the type of projection

siconos.numerics.projectionOnDualCone(array_like (np.float64, 1D)u, double mu)[source]

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 – the vector to be projected

• mu – the angle of the cone

Returns

the type of projection

siconos.numerics.projectionOnSecondOrderCone(array_like (np.float64, 1D)r, double mu, int size) → None[source]

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