File kernel/src/simulationTools/LCP.hpp

Go to the source code of this file

Linear Complementarity Problem formulation and solving.

class LCP : public LinearOSNS
#include <LCP.hpp>

Formalization and Resolution of a Linear Complementarity Problem (LCP)

Public Functions

LCP(int numericsSolverId = SICONOS_LCP_LEMKE)

constructor from numerics solver id

Parameters
  • numericsSolverId: id of numerics solver, default = SICONOS_LCP_LEMKE

LCP(SP::SolverOptions options)

constructor from a pre-defined solver options set.

Parameters

~LCP()

destructor

ACCEPT_STD_VISITORS()
int compute(double time)

Compute the unknowns z and w and update the corresponding Interactions (y and lambda )

Return

int, information about the solver convergence (output from numerics driver, linearComplementarity_driver, check numerics doc. for details).

Parameters
  • time: : current time

int numericsCompute()

Call numerics solver.

Return

int information about the solver convergence (output from numerics driver, linearComplementarity_driver, check numerics doc. for details).

Protected Functions

ACCEPT_SERIALIZATION(LCP)

Protected Attributes

SP::LinearComplementarityProblem _numerics_problem

Structure (for Numerics component) that describes the problem to solve.