Class LCP

Defined in Program listing for file kernel/src/simulationTools/LCP.hpp

class LCP : public LinearOSNS

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

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).