A pivoting algorithm solving linear complementarity problems

版本 1.1.0.0 (3.1 KB) 作者: Andreas Almqvist
A matlab implementation of pivoting algorithm solving linear complementarity problems
1.7K 次下载
更新时间 2013/4/25

查看许可证

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

引用格式

Andreas Almqvist (2025). A pivoting algorithm solving linear complementarity problems (https://ww2.mathworks.cn/matlabcentral/fileexchange/41485-a-pivoting-algorithm-solving-linear-complementarity-problems), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Including all authors in the copyright

1.0.0.0