A pivoting algorithm solving linear complementarity problems
LCPSolve(M,q) solves the linear complementarity problem:
w = M*z + q, w and z >= 0, w'*z = 0
The function takes the matrix M and the vector q as arguments. The function has three return variables. The first the vectors w and the second is the vector z, found by complementary pivoting. The third return is a 1 by 2 vector. The first component is a 1 if the algorithm was successful and a 2 if a ray termination resulted. The second component is the number of iterations performed in the outer loop.
We acknowledge the work LCPSolve.py in the OpenOpt python package by Rob Dittmar, Enzo Michelangeli and IT Vision Ltd
Citar como
Andreas Almqvist (2025). A pivoting algorithm solving linear complementarity problems (https://es.mathworks.com/matlabcentral/fileexchange/41485-a-pivoting-algorithm-solving-linear-complementarity-problems), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Linear Algebra >
Etiquetas
Agradecimientos
Inspiración para: An LCP solution of the linear elastic contact mechanics problem, A cavitation algorithm
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.