class to solve a linear complementarity problem
More...
#include <linear_complementarity_problem.h>
List of all members.
Public Member Functions |
| | LinearComplementarityProblem (const fmatvec::SymMat &M_, const fmatvec::Vec &q_, const LCPSolvingStrategy &strategy_=Standard, const JacobianType &jacobianType_=LCPSpecial, const unsigned int &DEBUGLEVEL=0) |
| | solves a linear complementarity problem (w = M z + q)
|
|
void | setSystem (const fmatvec::SymMat &M_, const fmatvec::Vec &q_) |
|
void | setStrategy (const LCPSolvingStrategy &strategy_) |
|
void | setJacobianType (const JacobianType &jacobianType_) |
|
void | setNewtonCriteriaFunction (CriteriaFunction *criteriaFunction_) |
|
void | setFixpointCriteriaFunction (CriteriaFunction *criteriaFunction_) |
|
void | setDebugLevel (const unsigned int &DEBUGLEVEL_) |
|
fmatvec::Vec | solve (const fmatvec::Vec &initialSolution=fmatvec::Vec(0, fmatvec::NONINIT)) |
Static Public Member Functions |
|
static double | computeMediumEigVal (const fmatvec::SqrMat &M) |
| | compute the medium eigenvalue of a matrix (for guessing a initial solution for iterative schemes)
|
|
static fmatvec::Vec | createInitialSolution (const fmatvec::SymMat &M, const fmatvec::Vec &q, double mediumEigVal=0) |
| | creates an initial solution for the iterative schemes that use a reformulated system
|
|
static fmatvec::Vec | createInitialSolution (const fmatvec::SqrMat &M, const fmatvec::Vec &q, double mediumEigVal=0) |
| | creates an initial solution for the iterative schemes that use a reformulated system
|
Protected Member Functions |
|
void | useNewton (fmatvec::Vec &solution, bool &solved) |
| | change the incoming solution vector using the fixpoint scheme
|
|
void | useFixpoint (fmatvec::Vec &solution, bool &solved) |
| | change the incoming solution vector using the fixpoint scheme
|
Detailed Description
class to solve a linear complementarity problem
- Todo:
- : find a better concept for the properties of the used solving algorithms (maybe single "option" - classes)
Constructor & Destructor Documentation
| MBSim::LinearComplementarityProblem::LinearComplementarityProblem |
( |
const fmatvec::SymMat & |
M_, |
|
|
const fmatvec::Vec & |
q_, |
|
|
const LCPSolvingStrategy & |
strategy_ = Standard, |
|
|
const JacobianType & |
jacobianType_ = LCPSpecial, |
|
|
const unsigned int & |
DEBUGLEVEL = 0 |
|
) |
| |
solves a linear complementarity problem (w = M z + q)
- Parameters:
-
| M | linear coupling matrix of the LCP |
| q | constant vector of the LCP |
| LCPSolvingStrategy | algorithm strategy to solve the LCP |
| mediumEigVal | parameter for finding the start solution for the reformulated system |
| DEBUGLEVEL | Define output (information) level |
The documentation for this class was generated from the following file: