File numerics/src/LCP/LinearComplementarityProblem.h

Go to the source code of this file

Functions

void freeLinearComplementarityProblem(LinearComplementarityProblem *problem)

function to delete a LinearComplementarityProblem

Parameters

void linearComplementarity_display(LinearComplementarityProblem *problem)

function to display a LinearComplementarityProblem

Parameters

int linearComplementarity_newFromFile(LinearComplementarityProblem *problem, FILE *file)

function to read and create a LinearComplementarityProblem from a file

Return
0 if ok
Parameters

int linearComplementarity_newFromFilename(LinearComplementarityProblem *problem, char *filename)
int linearComplementarity_printInFile(LinearComplementarityProblem *problem, FILE *file)

function to write in a file a LinearComplementarityProblem

Return
0 if ok
Parameters

LinearComplementarityProblem *newLCP(void)

Create new LCP and clear its fields.

Return
a LinearComplementarityProblem

struct LinearComplementarityProblem
#include <LinearComplementarityProblem.h>

Structure that contains and defines a LCP Problem.

See :ref:`lc_problem`_

Public Members

NumericsMatrix *M

M matrix of the LCP (see the mathematical description)

double *q

vector of the LCP (see the mathematical description)

int size

size of the problem