# 卡罗需–库恩–塔克条件

**卡罗需–库恩–塔克（KKT）条件**是非线性优化问题中带等式与不等式约束的解所必须满足的一阶必要条件，前提是在解处满足一个正则性条件（约束品性）。它们将[拉格朗日乘子](https://www.edgepedia.org/zh/lagrange-multiplier)条件从仅有等式约束的情形推广到不等式约束的情形，在约束优化理论和优化算法设计中居于核心地位。<sup>[1](https://apmonitor.com/me575/uploads/Main/chap7_constrained_opt_KKT_v2.pdf)</sup><sup> • </sup><sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 带等式与不等式约束的非线性规划的约束局部最优解的一阶必要条件<sup>[1](https://apmonitor.com/me575/uploads/Main/chap7_constrained_opt_KKT_v2.pdf)</sup> |
| 四个部分 | 平稳性、原始可行性、对偶可行性与互补松弛性<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup> |
| 正则性要求 | 仅在正则点处必要，例如在线性无关约束品性（LICQ）下<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup> |
| 充分性 | 一般不是充分条件；对凸问题充分，此时KKT点即为全局最小值点<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup><sup> • </sup><sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/05_optimization/04_constrained_optimization.html)</sup> |
| 历史 | 由哈罗德·库恩与阿尔伯特·塔克于1951年发表；威廉·卡罗需在其1939年芝加哥大学硕士论文中已导出该条件<sup>[4](https://epubs.siam.org/doi/10.1137/1.9781611973655)</sup> |
| 算法中的作用 | 内点法通过逐步缩减的对数障碍项迭代求解非线性KKT条件<sup>[5](https://docs.scipy.org/doc/scipy/reference/optimize.linprog-interior-point.html)</sup> |

## 问题设定与有效约束

标准设定是一个非线性规划：在等式约束和不等式约束下最小化目标函数。约束在不同可行点处表现不同。若不等式约束在某点处取等号，则称该约束在该点处是有效的，否则为无效的；有效指标集收集所有有效约束。<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup>

只有有效的不等式约束才能影响可行集的一阶几何。无效约束在局部是无关的：在这样的点附近，约束仍以松弛量满足，因此若忽略无效约束，可行集在局部保持不变。这一观察是KKT定理的基础：原问题的局部最小值也是将等式保留、仅将有效不等式转为等式后所得等式约束问题的局部最小值。<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup>

从几何上看，在约束局部最优解处，不存在能使目标函数改善的可行方向。改善方向可能存在，但它们指向不可行空间；KKT条件表达的正是目标梯度与约束梯度之间的这种平衡。<sup>[1](https://apmonitor.com/me575/uploads/Main/chap7_constrained_opt_KKT_v2.pdf)</sup>

## 四个条件

假设目标函数与约束函数连续可微，且候选点是正则的。若等式约束的梯度与有效不等式约束的梯度线性无关，则称可行点是**正则的**；这一假设即线性无关约束品性（LICQ）。<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup>

在这些假设下，若该点是局部最小值点，则存在乘子——称为拉格朗日乘子或KKT乘子——每个约束对应一个，使得：<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup>

1. **平稳性**：目标函数的梯度等于各约束梯度的线性组合，以乘子为权重。等价地，拉格朗日函数（目标函数加上以乘子加权的约束项）对原始变量的梯度为零。
2. **原始可行性**：该点满足所有等式与不等式约束。
3. **对偶可行性**：不等式约束的乘子非负；等式约束的乘子符号不受限制。
4. **互补松弛性**：对每个不等式约束，其乘子与松弛量之积为零。要么约束无效且乘子为零，要么约束有效且乘子可以取正值。<sup>[6](https://pages.hmc.edu/ruye/MachineLearning/lectures/ch3/node15.html)</sup>

不等式乘子的非负性是KKT理论区别于仅有等式约束的拉格朗日条件之处。它排除了虚假的平稳点，使真正的最小值点保留在候选之列。<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup> 互补松弛性将不等式划分为有效集与无效集，这使KKT系统非光滑，比光滑方程组更难求解，但四个条件仍是对最优性的紧凑刻画。<sup>[7](https://unseel.com/mathematics/karush-kuhn-tucker)</sup>

## 约束品性与弗里茨·约翰替代

约束品性是使KKT条件成为必要条件所需的额外假设。其目的是确保候选点处可行区域的线性近似能捕捉附近真实可行集的基本几何。LICQ是其中一种；线性有效约束是线性近似足够的另一种情形。<sup>[8](https://www.ime.unicamp.br/~pulino/MT404/TextosOnline/NocedalJ.pdf)</sup> 当约束品性不成立时，局部最小值点处可能根本不存在使KKT条件成立的乘子：存在这样的实例——问题有解但KKT条件无解，表明仅靠约束函数的凸性并不能保证必要性。<sup>[9](https://mjo.osborne.economics.utoronto.ca/index.php/tutorial/index/1/ktn/t)</sup>

**弗里茨·约翰条件**是一种相关的必要条件，不需要任何约束品性，代价是允许目标函数本身的乘子退化。在约束上添加适当的约束品性后，即可从[弗里茨·约翰](https://www.edgepedia.org/zh/fritz-john)条件恢复KKT条件。<sup>[10](https://cosi.isima.fr/cosi2012/proceedingsCosi2012.pdf)</sup> 后续研究发展了两套系统的增强版本，其中附加的必要条件限制的是乘子而非原始点。<sup>[11](https://epubs.siam.org/doi/full/10.1137/22M1539678)</sup>

## 凸性下的充分性

对于一般非线性规划，KKT条件在约束品性下是必要的，但不充分：满足条件的点可能是鞍点或局部最大值点，而非局部最小值点。<sup>[2](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)</sup><sup> • </sup><sup>[7](https://unseel.com/mathematics/karush-kuhn-tucker)</sup> 对于凸问题——目标函数为凸且可行集为凸——情况发生变化：KKT条件既必要又充分，因此找到KKT点等价于找到全局最小值。<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/05_optimization/04_constrained_optimization.html)</sup> 斯莱特条件——存在严格满足所有不等式约束的点——是这种凸设定中常用的品性条件。<sup>[9](https://mjo.osborne.economics.utoronto.ca/index.php/tutorial/index/1/ktn/t)</sup>

## 历史

哈罗德·库恩与阿尔伯特·塔克在第二届伯克利数理统计与[概率](https://www.edgepedia.org/zh/probability)研讨会上通过论文《非线性规划》介绍了这些条件，该论文于1951年发表（第481至492页）。<sup>[12](https://www.degruyterbrill.com/document/doi/10.1525/9780520411586-036/html?lang=en)</sup> 一项历史分析指出，库恩与塔克于1950年证明该定理时开创了非线性规划理论，而弗里茨·约翰在一篇最初被《杜克数学杂志》拒稿的论文中有相关结果，更早的渊源可能可追溯到奥斯特罗格拉德斯基和法尔卡斯的工作。<sup>[13](https://www.sciencedirect.com/science/article/pii/S0315086000922894)</sup> 后来人们发现，[威廉·卡罗需](https://www.edgepedia.org/zh/william-karush)在其硕士论文《以不等式为附加条件的多元函数极小值》（芝加哥大学数学系，1939年，54页）中已导出这些必要条件，于是该条件被重新命名以纪念三位研究者。<sup>[4](https://epubs.siam.org/doi/10.1137/1.9781611973655)</sup><sup> • </sup><sup>[14](https://books.google.com/books/about/Minima_of_Functions_of_Several_Variables.html?id=o5NmHQAACAAJ)</sup>

## 算法与应用中的作用

KKT条件不仅是最优性的刻画，更是许多算法所求解的方程。线性规划的内点法从原始变量和对偶变量的猜测出发，迭代求解在目标函数中加入逐步缩减的对数障碍项后的非线性KKT条件。<sup>[5](https://docs.scipy.org/doc/scipy/reference/optimize.linprog-interior-point.html)</sup> [序列二次规划](https://www.edgepedia.org/zh/sequential-quadratic-programming)求解器返回的乘子，在约束为线性时可解释为KKT乘子，即拉格朗日乘子向不等式约束问题的推广。<sup>[15](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)</sup>

教程与综述文献将KKT条件与对偶理论作为一个相互关联的整体来处理，涵盖原始可行性、对偶可行性、弱对偶与强对偶、互补松弛性以及平稳性。<sup>[17](https://arxiv.org/abs/2110.01858)</sup>

## References

1. [Chapter 7: Constrained Optimization I: The Karush-Kuhn-Tucker Conditions, APMonitor](https://apmonitor.com/me575/uploads/Main/chap7_constrained_opt_KKT_v2.pdf)
2. [Lecture 16: Karush-Kuhn-Tucker Conditions, Shanghai Jiao Tong University CS2601 notes](https://jhc.sjtu.edu.cn/~kuanyang/teaching/CS2601/notes/lec16.html)
3. [Constrained Optimization Basics, Computational Physics lecture, Universität Bielefeld](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/05_optimization/04_constrained_optimization.html)
4. [Introduction to Nonlinear Optimization, SIAM Publications Library](https://epubs.siam.org/doi/10.1137/1.9781611973655)
5. [linprog(method='interior-point'), SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/optimize.linprog-interior-point.html)
6. [Duality and KKT Conditions, Harvey Mudd College lecture notes](https://pages.hmc.edu/ruye/MachineLearning/lectures/ch3/node15.html)
7. [Karush-Kuhn-Tucker Conditions, Unseel mathematics reference](https://unseel.com/mathematics/karush-kuhn-tucker)
8. [Numerical Optimization, Nocedal and Wright, Chapter 12 (PDF)](https://www.ime.unicamp.br/~pulino/MT404/TextosOnline/NocedalJ.pdf)
9. [Optimization with inequality constraints: the necessity of the Kuhn-Tucker conditions, M. J. Osborne, University of Toronto](https://mjo.osborne.economics.utoronto.ca/index.php/tutorial/index/1/ktn/t)
10. [Generalized Fritz-John optimality in nonlinear programming, COSI 2012 proceedings](https://cosi.isima.fr/cosi2012/proceedingsCosi2012.pdf)
11. [On Enhanced KKT Optimality Conditions for Smooth Nonlinear Optimization, SIAM Journal on Optimization](https://epubs.siam.org/doi/full/10.1137/22M1539678)
12. [Kuhn, H. W. and Tucker, A. W. (1951). Nonlinear Programming. Proceedings of the Second Berkeley Symposium on Mathematical Statistics and Probability, pp. 481-492](https://www.degruyterbrill.com/document/doi/10.1525/9780520411586-036/html?lang=en)
13. [A Contextualized Historical Analysis of the Kuhn–Tucker Theorem in Nonlinear Programming: The Impact of World War II, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0315086000922894)
14. [William Karush, Minima of Functions of Several Variables with Inequalities as Side Conditions, Google Books entry](https://books.google.com/books/about/Minima_of_Functions_of_Several_Variables.html?id=o5NmHQAACAAJ)
15. [scipy.optimize.minimize, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)
16. [Geometric Insights into Support Vector Machine Behavior using the KKT Conditions, arXiv:1704.00767](https://arxiv.org/abs/1704.00767)
17. [KKT Conditions, First-Order and Second-Order Optimization, and Distributed Optimization: Tutorial and Survey, arXiv:2110.01858](https://arxiv.org/abs/2110.01858)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 算法与计算方法 › 优化与动态规划

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/karush-kuhn-tucker-conditions

English original: https://www.edgepedia.org/karush-kuhn-tucker-conditions
