# 线性互补问题接触公式

线性互补问题（LCP）接触公式是一种将处于接触中的刚体动力学——包含单边非穿透约束与库仑摩擦——写成线性互补问题、并在仿真的每个时间步求解的方法。其中最著名的版本由[阿贡国家实验室](https://www.edgepedia.org/zh/argonne-national-laboratory)计算数学家米哈伊·阿尼特斯库（Mihai Anitescu）与[马里兰大学巴尔的摩县分校](https://www.edgepedia.org/zh/university-of-maryland-baltimore-county)数学家弗洛里安·波特拉（Florian Potra）提出，1997年发表于《非线性动力学》（*Nonlinear Dynamics*），是首个被证明对任意接触数量和任意接触构型均存在解的LCP接触公式。<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义性论文 | Anitescu and Potra, *Nonlinear Dynamics* 14(3):231–247, 1997, DOI 10.1023/A:1008292328909<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup> |
| 核心要素 | 显式欧拉时间步进与库仑摩擦锥的多边形近似<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup> |
| 可解性保证 | 对任意接触数量和接触构型均存在解；配套模型涵盖带摩擦及非零弹性系数的碰撞<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup> |
| 稳定性结果 | 对于体坐标下的牛顿-欧拉公式，显式欧拉格式在步长趋于零时速度一致有界<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup> |
| 锥近似 | 摩擦锥用多边形近似；2016年的一篇综述指出，Anitescu-Potra版本使用至少有四条边的多边形<sup>[2](https://www.sciencedirect.com/science/article/pii/S0094114X16301574)</sup> |
| 计算地位 | 最坏情况下，带摩擦接触的LCP对应NP难优化问题<sup>[3](https://mujoco.readthedocs.io/en/2.2.1/computation.html)</sup> |
| 影响 | 被描述为最为成熟、具有可解性保证的基于LCP的接触公式；Stewart-Trinkle/Anitescu-Potra时间步进方法是许多实现的基础<sup>[2](https://www.sciencedirect.com/science/article/pii/S0094114X16301574)</sup><sup> • </sup><sup>[4](https://arxiv.org/abs/1608.02171)</sup> |

## 接触建模问题

动态多刚体接触问题尤其出现在机器人学与虚拟现实中，关注的是若干处于接触中的刚体的动态行为建模。<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup> 每个接触点受三条物理定律支配：单边接触（Signorini）条件，禁止相互穿透且只允许压缩力；库仑摩擦定律；以及最大耗散原理，用于选取摩擦方向。<sup>[5](https://arxiv.org/abs/2304.06372)</sup> 若精确写出，这些定律使接触问题成为非线性且非光滑的问题，而在精确二次摩擦锥下，所得问题是一个非线性互补问题（NCP）。<sup>[5](https://arxiv.org/abs/2304.06372)</sup>

LCP公式以精确性换取线性性与可解性。圆形库仑摩擦锥被替换为内接多面体近似——即由有限一组切向方向向量生成的摩擦金字塔——非穿透约束也被线性化。经过这两项近似，接触条件对未知量变为仿射的，整个时间步便可写成一个线性互补问题。<sup>[6](https://luyao787.github.io/blog/2026/contact_modeling_lcp/)</sup><sup> • </sup><sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup>

## 公式的结构

在Stewart与Trinkle以及Anitescu与Potra所用的速度-冲量时间步进形式中，牛顿-欧拉方程在长度为h的时间步上离散化，接触力以冲量h·c_n和h·Dβ的形式进入，其中c_n为法向冲量大小，β为矩阵D中收集的k个切向摩擦方向的权重向量。<sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup> 互补条件随后在每个接触处配对三个量：

- 法向分离量与法向冲量配对，使力仅在存在接触处非零；
- 切向速度与摩擦权重β配对，使滑动选取使功率耗散最大的摩擦方向；
- 摩擦界μ·c_n − eᵀβ与松弛变量λ配对，使摩擦冲量位于多面体锥内，且恰在发生滑动时到达其边界。<sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup>

**可解性修正。** 早期的线性化公式在某些多接触构型下可能无解。Anitescu与Potra发现，一个简单的修正即可保证解的存在性，且经修改以避免循环的Lemke算法（求解线性互补问题的枢轴方法）必能找到一个解：将位置上的线性化非穿透约束替换为切向速度约束nᵀv ≥ 0，要求新速度的法向分量非负。<sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup> 这一改动的代价是，当构型沿边界凹部移动时可能累积穿透，投影方法可以对此加以修正。<sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup> 1997年的论文证明了对任意接触数量和接触构型的保证，为带摩擦及非零弹性系数的碰撞问题构造了具有同样性质的模型，并证明了所得显式欧拉格式在步长趋于零时速度一致有界。<sup>[1](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)</sup>

## 在接触公式中的地位

该公式属于20世纪90年代中期以来刚体接触互补性研究脉络中的一环。Stewart与Trinkle于1996年发表了基于冲量-动量方程的刚体动力学隐式时间步进格式，处理非弹性碰撞与库仑摩擦，无需显式碰撞检测，且能处理同时碰撞。<sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup> 同一时期，当时从事机器人接触动力学研究的[Jong-Shi Pang](https://www.edgepedia.org/zh/jong-shi-pang)与Jeffrey Trinkle发展了库仑摩擦下动态多刚体接触问题的互补公式与存在性结果，Trinkle与合著者比较了库仑二次摩擦律与近似金字塔律下的互补公式。<sup>[8](https://onlinelibrary.wiley.com/doi/abs/10.1002/zamm.19970770411)</sup><sup> • </sup><sup>[9](https://www.cse.lehigh.edu/~trink/publications.html)</sup> Anitescu、Cremer与Potra此前已建立了1997年公式所依托的三维接触动力学方程。<sup>[10](https://www.tandfonline.com/doi/abs/10.1080/08905459608905271)</sup>

2016年的一篇公式论文将Anitescu-Potra版本描述为最为成熟、具有可解性保证结果的基于LCP的接触公式。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0094114X16301574)</sup> 后来一篇关于刚体仿真的综述指出，Stewart-Trinkle/Anitescu-Potra时间步进方法是许多现有实现的基础。<sup>[4](https://arxiv.org/abs/1608.02171)</sup>

## 计算成本与替代方案

线性化的代价是计算上的。在给定法向冲量的情况下求解摩擦冲量，或反之，对应一个凸二次规划，但同时求解两者则是一个非凸问题；由开发了MuJoCo仿真器的计算机科学教授埃莫·托多罗夫（Emo Todorov）所引用的一项分析表明，求解带摩擦接触的LCP可能是NP难的。<sup>[11](https://homes.cs.washington.edu/~todorov/papers/TodorovICRA10.pdf)</sup> MuJoCo的文档指出，带摩擦接触的LCP模型对应NP难优化问题，这催生了一个近似求解器的产业。<sup>[3](https://mujoco.readthedocs.io/en/2.2.1/computation.html)</sup>

各仿真器以不同方式处理这一问题。包括ODE、PhysX和DART在内的一类引擎将摩擦锥线性化，以获得近似但更易处理的LCP。<sup>[12](https://simple-robotics.github.io/publications/simple-contact-solver/static/paper/simplecontacts2024.pdf)</sup> Bullet的顺序冲量约束求解器是投影高斯-赛德尔（一种迭代LCP方法）的快速SIMD实现。<sup>[13](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolver.html)</sup> Lemke枢轴算法与PATH求解器是所得LCP的经典直接方法。<sup>[14](https://www.roboti.us/lab/papers/TodorovIROS12.pdf)</sup> MuJoCo则放弃严格互补性，转而采用凸的软接触优化问题，接受小的互补性违反——对于软接触而言这在物理上是恰当的。<sup>[3](https://mujoco.readthedocs.io/en/2.2.1/computation.html)</sup> Drake的SAP求解器是一种凸公式，作为Anitescu 2006年与Todorov 2014年工作的扩展而开发。<sup>[15](https://drake.mit.edu/doxygen_cxx/group__mbp__discrete.html)</sup> 非光滑力学软件包[Siconos](https://www.edgepedia.org/zh/siconos)在Moreau时间步进中保留了LCP与摩擦接触公式。<sup>[16](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/osns_problems.html)</sup>

## 近似改变了什么

用内接多边形替换圆形摩擦锥会低估生成向量之间方向上的可用摩擦；四边形金字塔是Anitescu-Potra公式中使用的最少边数多边形，而实现中通常使用更多方向，例如一篇已发表的三球碰撞演示中使用的八个等间距单位向量。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0094114X16301574)</sup><sup> • </sup><sup>[7](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)</sup> 速度级公式也无法区分静摩擦系数与动摩擦系数；Drake的文档指出，离散速度级模型只能分辨动摩擦，因此静摩擦系数被忽略。<sup>[15](https://drake.mit.edu/doxygen_cxx/group__mbp__discrete.html)</sup> 这些近似，连同速度级非穿透约束所允许的可能穿透，是LCP接触模型族公认的物理松弛。<sup>[5](https://arxiv.org/abs/2304.06372)</sup>

## References

1. [M. Anitescu and F. A. Potra (1997). Formulating dynamic multi-rigid-body contact problems with friction as solvable Linear Complementarity Problems. *Nonlinear Dynamics* 14:231–247.](https://www.researchgate.net/publication/2513000_Formulating_Dynamic_Multi-Rigid-Body_Contact_Problems_with_Friction_as_Solvable_Linear_Complementarity_Problems)
2. [F. Gholami, M. Nasri, J. Kövecses, M. Teichmann (2016). A linear complementarity formulation for contact problems with regularized friction. *Mechanism and Machine Theory* 105:568–582.](https://www.sciencedirect.com/science/article/pii/S0094114X16301574)
3. [MuJoCo documentation: Computation, Motivation for MuJoCo's convex soft contact model.](https://mujoco.readthedocs.io/en/2.2.1/computation.html)
4. [True Rigidity: Interpenetration-free Multi-Body Simulation with Polytopic Contact (arXiv:1608.02171).](https://arxiv.org/abs/1608.02171)
5. [Q. Le Lidec et al. (2023). Contact Models in Robotics: a Comparative Analysis. arXiv:2304.06372.](https://arxiv.org/abs/2304.06372)
6. [Luyao Zhang (2026). Contact Dynamics: LCP.](https://luyao787.github.io/blog/2026/contact_modeling_lcp/)
7. [D. Stewart and J. C. Trinkle. An Implicit Time-Stepping Scheme for Rigid Body Dynamics with Coulomb Friction.](https://www.cse.lehigh.edu/~trink/Papers/STicra00.pdf)
8. [J. C. Trinkle et al. (1997). On Dynamic Multi-Rigid-Body Contact Problems with Coulomb Friction. *ZAMM* 77(4):267–279.](https://onlinelibrary.wiley.com/doi/abs/10.1002/zamm.19970770411)
9. [J. C. Trinkle publication list, Lehigh University.](https://www.cse.lehigh.edu/~trink/publications.html)
10. [M. Anitescu, J. F. Cremer, F. A. Potra (1996). Formulating Three-Dimensional Contact Dynamics Problems. *Mechanics of Structures and Machines* 24(4):405–437.](https://www.tandfonline.com/doi/abs/10.1080/08905459608905271)
11. [E. Todorov (2010). Implicit nonlinear complementarity: a new approach to contact dynamics. ICRA.](https://homes.cs.washington.edu/~todorov/papers/TodorovICRA10.pdf)
12. [E. Modeling frictional unilateral contacts: the Nonlinear Complementarity Problem (simple-contact-solver paper).](https://simple-robotics.github.io/publications/simple-contact-solver/static/paper/simplecontacts2024.pdf)
13. [Bullet Collision Detection & Physics Library: btSequentialImpulseConstraintSolver Class Reference.](https://pybullet.org/Bullet/BulletFull/classbtSequentialImpulseConstraintSolver.html)
14. [E. Todorov (2012). MuJoCo paper, IROS.](https://www.roboti.us/lab/papers/TodorovIROS12.pdf)
15. [Drake documentation: Discrete Models for Simulation.](https://drake.mit.edu/doxygen_cxx/group__mbp__discrete.html)
16. [Siconos documentation: Nonsmooth problems formulation and solve.](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/osns_problems.html)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Mechanical foundations of robotics › Robot dynamics, flexible structures, and system identification

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/linear-complementarity-problem-contact-formulation

English original: https://www.edgepedia.org/linear-complementarity-problem-contact-formulation
