File numerics/src/SOCP/soclcp_compute_error.h

Go to the source code of this file

functions related to error computation for SOCLCP

Functions

int soclcp_compute_error(SecondOrderConeLinearComplementarityProblem *problem, double *z, double *w, double tolerance, SolverOptions *options, double *error)

Error computation for SOCLCP problem.

Return
0 if ok
Parameters
  • problem: the structure which defines the SOCLCP
  • z: vector
  • w: vector
  • tolerance: value for error computation
  • options:
  • error: value

int soclcp_compute_error_v(SecondOrderConeLinearComplementarityProblem *problem, double *z, double *w, double tolerance, SolverOptions *options, double *error)

Error computation for SOCLCP problem.

Return
0 if ok
Parameters
  • problem: the structure which defines the SOCLCP
  • z: vector
  • w: vector
  • options:
  • tolerance: value for error computation
  • error: value

void soclcp_unitary_compute_and_add_error(double z[3], double w[3], unsigned int dim, double mu, double *error, double *worktmp)

Error computation for one SOCLCP problem.

Parameters
  • z: vector
  • w: vector
  • dim: dimension of the cone
  • mu: coeficient of friction
  • error: value
  • worktmp: