LinearComplementarityProblem (functions)


siconos.numerics.freeLinearComplementarityProblem(LinearComplementarityProblem *problem) → None[source]

function to delete a LinearComplementarityProblem

Parameters:problem – pointer to a LinearComplementarityProblem to delete

siconos.numerics.linearComplementarity_display(LinearComplementarityProblem *problem) → None[source]

function to display a LinearComplementarityProblem

Parameters:problem – pointer to a LinearComplementarityProblem to display

siconos.numerics.linearComplementarity_newFromFile(LinearComplementarityProblem *problem, FILE *file) → int[source]

function to read and create a LinearComplementarityProblem from a file

Parameters:
  • problem – pointer to a LinearComplementarityProblem to create
  • file – pointer to a FILE
Returns:

0 if ok


siconos.numerics.linearComplementarity_newFromFilename(LinearComplementarityProblem *problem, char *filename) → int[source]

siconos.numerics.linearComplementarity_printInFile(LinearComplementarityProblem *problem, FILE *file) → int[source]

function to write in a file a LinearComplementarityProblem

Parameters:
  • problem – pointer to a LinearComplementarityProblem to print
  • file – pointer to a FILE
Returns:

0 if ok


siconos.numerics.newLCP(None) → LinearComplementarityProblem *[source]

Create new LCP and clear its fields.

Returns:a LinearComplementarityProblem