SecondOrderConeLinearComplementarityProblem (functions)


siconos.numerics.freeSecondOrderConeLinearComplementarityProblem(SecondOrderConeLinearComplementarityProblem *problem) → None[source]

free a SecondOrderConeLinearComplementarityProblem

Parameters:problem – the problem to free

siconos.numerics.secondOrderConeLinearComplementarityProblem_display(SecondOrderConeLinearComplementarityProblem *problem) → None[source]

display a SecondOrderConeLinearComplementarityProblem

Parameters:problem – the problem to display

siconos.numerics.secondOrderConeLinearComplementarityProblem_new(int n, int nc, NumericsMatrix *M, array_like (np.float64, 1D)q, int *conearray_like (int, 1D), array_like (np.float64, 1D)mu) → SecondOrderConeLinearComplementarityProblem *[source]

new SecondOrderConeLinearComplementarityProblem from minimal set of data

Parameters:
  • n – the size of the problem
  • nc – the number of contact
  • M – the NumericsMatrix
  • q – the q vector
  • coneIndex
  • mu – the mu vector
Returns:

a pointer to a SecondOrderConeLinearComplementarityProblem structure


siconos.numerics.secondOrderConeLinearComplementarityProblem_newFromFile(SecondOrderConeLinearComplementarityProblem *problem, FILE *file) → int[source]

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

Parameters:
  • problem – the problem to read
  • file – the target file
Returns:

0 if successfull


siconos.numerics.secondOrderConeLinearComplementarityProblem_newFromFilename(SecondOrderConeLinearComplementarityProblem *problem, char *filename) → int[source]

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

Parameters:
  • problem – the problem to read
  • filename – the name of the target file
Returns:

0 if successfull


siconos.numerics.secondOrderConeLinearComplementarityProblem_printInFile(SecondOrderConeLinearComplementarityProblem *problem, FILE *file) → int[source]

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

Parameters:
  • problem – the problem to print out
  • file – the dest file
Returns:

0 if successfull


siconos.numerics.secondOrderConeLinearComplementarityProblem_printInFilename(SecondOrderConeLinearComplementarityProblem *problem, char *filename) → int[source]

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

Parameters:
  • problem – the problem to print out
  • filename – the dest file
Returns:

0 if successfull