File numerics/src/SOCP/SecondOrderConeLinearComplementarityProblem.h

Go to the source code of this file

Functions

void freeSecondOrderConeLinearComplementarityProblem(SecondOrderConeLinearComplementarityProblem *problem)

free a SecondOrderConeLinearComplementarityProblem

Parameters
  • problem: the problem to free

void secondOrderConeLinearComplementarityProblem_display(SecondOrderConeLinearComplementarityProblem *problem)

display a SecondOrderConeLinearComplementarityProblem

Parameters
  • problem: the problem to display

SecondOrderConeLinearComplementarityProblem *secondOrderConeLinearComplementarityProblem_new(int n, int nc, NumericsMatrix *M, double *q, unsigned int *coneIndex, double *mu)

new SecondOrderConeLinearComplementarityProblem from minimal set of data

Return
a pointer to a SecondOrderConeLinearComplementarityProblem structure
Parameters
  • n: the size of the problem
  • nc: the number of contact
  • M: the NumericsMatrix
  • q: the q vector
  • coneIndex:
  • mu: the mu vector

int secondOrderConeLinearComplementarityProblem_newFromFile(SecondOrderConeLinearComplementarityProblem *problem, FILE *file)

read a SecondOrderConeLinearComplementarityProblem in a file (numerics .dat format)

Return
0 if successfull
Parameters
  • problem: the problem to read
  • file: the target file

int secondOrderConeLinearComplementarityProblem_newFromFilename(SecondOrderConeLinearComplementarityProblem *problem, char *filename)

read a SecondOrderConeLinearComplementarityProblem in a file (numerics .dat format) from its filename

Return
0 if successfull
Parameters
  • problem: the problem to read
  • filename: the name of the target file

int secondOrderConeLinearComplementarityProblem_printInFile(SecondOrderConeLinearComplementarityProblem *problem, FILE *file)

print a SecondOrderConeLinearComplementarityProblem in a file (numerics .dat format)

Return
0 if successfull
Parameters
  • problem: the problem to print out
  • file: the dest file

int secondOrderConeLinearComplementarityProblem_printInFilename(SecondOrderConeLinearComplementarityProblem *problem, char *filename)

print a SecondOrderConeLinearComplementarityProblem in a file (numerics .dat format) from its filename

Return
0 if successfull
Parameters
  • problem: the problem to print out
  • filename: the dest file

struct SecondOrderConeLinearComplementarityProblem
#include <SecondOrderConeLinearComplementarityProblem.h>

The structure that defines a Second Order Cone Linear Complementarity Problem.

Public Members

unsigned int *coneIndex

\({coneIndex} \in {{\mathrm{I\!R}}}^{n_c} \), vector of indices of the cones ( \( n_c =\) nc)

NumericsMatrix *M

\({M} \in {{\mathrm{I\!R}}}^{n \times n} \), a matrix with \( n = d n_c\) stored in NumericsMatrix structure

int n

the problem dimension.

must be equal to \( \sum_{i}^{n_c} d_i \)

int nc

the number of cones \( n_c \) in the Cartesian product

double *q

\({q} \in {{\mathrm{I\!R}}}^{n} \)

double *tau

\({\tau} \in {{\mathrm{I\!R}}}^{n_c} \), vector of coefficients ( \( n_c =\) nc)