File numerics/src/LCP/LinearComplementarityProblem.h

Go to the source code of this file

Functions

void linearComplementarity_display(LinearComplementarityProblem *problem)

display a LinearComplementarityProblem

Parameters

problem – pointer to a LinearComplementarityProblem to display

int linearComplementarity_printInFile(LinearComplementarityProblem *problem, FILE *file)

function to write in a file a LinearComplementarityProblem

Parameters
Returns

0 if ok

int linearComplementarity_newFromFile(LinearComplementarityProblem *problem, FILE *file)

Read and create a LinearComplementarityProblem from a file.

Parameters
Returns

0 if ok

int linearComplementarity_newFromFilename(LinearComplementarityProblem *problem, const char *filename)

Read and create a LinearComplementarityProblem from a file.

Parameters
Returns

0 if ok

void freeLinearComplementarityProblem(LinearComplementarityProblem *problem)

Delete a LinearComplementarityProblem.

Parameters

problem – pointer to a LinearComplementarityProblem to delete

LinearComplementarityProblem *newLCP(void)

Create new LCP and clear its fields.

Returns

a LinearComplementarityProblem

struct LinearComplementarityProblem
#include <>

Structure that contains and defines a LCP Problem.

Public Members

int size

size of the problem

NumericsMatrix *M

M matrix of the LCP (see the mathematical description)

double *q

vector of the LCP (see the mathematical description)