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

Program listing for file kernel/src/simulationTools/LCP.hpp#

 1#ifndef LCP_H
 2#define LCP_H
 3
 4#include "LinearOSNS.hpp"
 5
 6#include <LinearComplementarityProblem.h>
 7#include <lcp_cst.h>
 8TYPEDEF_SPTR(LinearComplementarityProblem)
 9
10
11class LCP : public LinearOSNS
12{
13protected:
14
15  ACCEPT_SERIALIZATION(LCP);
16
17
18  SP::LinearComplementarityProblem _numerics_problem;
19
20public:
21
22
23  LCP(int numericsSolverId = SICONOS_LCP_LEMKE);
24
25
26  LCP(SP::SolverOptions options);
27
28
29  ~LCP() noexcept = default;
30
31
32  int solve();
33
34
35  int compute(double time) override;
36
37
38
39  bool checkCompatibleNSLaw(NonSmoothLaw& nslaw) override;
40
41  ACCEPT_STD_VISITORS();
42
43
44};
45
46#endif