class to solve a linear complementarity problem
More...
#include <linear_complementarity_problem.h>
|
| enum | LCPSolvingStrategy {
Standard,
ReformulatedStandard,
ReformulatedNewtonOnly,
ReformulatedFixpointOnly,
LemkeOnly
} |
| |
| enum | JacobianType { Numerical,
LCPSpecial
} |
| |
| enum | CriteriaType { Global,
Local
} |
| |
|
| | LinearComplementarityProblem (const fmatvec::SymMat &M_, const fmatvec::Vec &q_, const LCPSolvingStrategy &strategy_=Standard, const JacobianType &jacobianType_=LCPSpecial) |
| | solves a linear complementarity problem (w = M z + q) More...
|
| |
|
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_) |
| |
|
fmatvec::Vec | solve (const fmatvec::Vec &initialSolution=fmatvec::Vec(0, fmatvec::NONINIT)) |
| |
|
|
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
|
| |
|
|
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
|
| |
class to solve a linear complementarity problem
- Todo:
- : find a better concept for the properties of the used solving algorithms (maybe single "option" - classes)
◆ LinearComplementarityProblem()
| MBSim::LinearComplementarityProblem::LinearComplementarityProblem |
( |
const fmatvec::SymMat & |
M_, |
|
|
const fmatvec::Vec & |
q_, |
|
|
const LCPSolvingStrategy & |
strategy_ = Standard, |
|
|
const JacobianType & |
jacobianType_ = LCPSpecial |
|
) |
| |
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 |
The documentation for this class was generated from the following files:
- /mbsim-env/mbsim/kernel/mbsim/numerics/linear_complementarity_problem/linear_complementarity_problem.h
- /mbsim-env/mbsim/kernel/mbsim/numerics/linear_complementarity_problem/linear_complementarity_problem.cc