AGX Dynamics  2.37.2.0
agx::MLCP Class Reference

#include <MLCP.h>

Public Member Functions

 MLCP (SparseMatrix &H, const RealValarray &q, RealValarray &z, const SparseRangeReal &bounds, const IntValarray &signs=IntValarray())
 
size_t getIterations () const
 
int solve (bool warm=false)
 Solves this mixed LCP. More...
 

Detailed Description

Definition at line 196 of file MLCP.h.

Constructor & Destructor Documentation

◆ MLCP()

agx::MLCP::MLCP ( SparseMatrix &  H,
const RealValarray &  q,
RealValarray &  z,
const SparseRangeReal &  bounds,
const IntValarray &  signs = IntValarray() 
)

Member Function Documentation

◆ getIterations()

size_t agx::MLCP::getIterations ( ) const
inline

Definition at line 208 of file MLCP.h.

◆ solve()

int agx::MLCP::solve ( bool  warm = false)

Solves this mixed LCP.

Parameters
warm- if this method has been called before with this matrix and bounds, pass true - otherwise false.
Returns
-1 if the solution failed (could still be a valid solution), otherwise the total number of LCP iterations.

The documentation for this class was generated from the following file: