# 拉格朗日松弛

拉格朗日松弛是一种优化方法：它从数学规划中移除难处理的约束，转而在目标函数中惩罚对这些约束的违反，其惩罚权重称为拉格朗日乘子。由此得到的松弛子问题更容易求解，其最优值是原问题（对最小化问题而言）的一个下界，可在分支定界中替代线性规划（LP）松弛使用。<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup> 该方法产生一个界和一个近似最优的对偶（乘子）解，但通常不产生可行的原问题解：对于离散问题，即使乘子最优，对偶间隙通常也非零，因此最大化对偶并不能给出最优、甚至不能给出可行的原问题点。<sup>[2](https://arxiv.org/html/2301.00573)</sup> 系统性的理论以及这个名称来自 A. M. 杰弗里昂（A. M. Geoffrion）1974 年发表于《数学规划研究》（Mathematical Programming Studies）的论文《整数规划的拉格朗日松弛》（“Lagrangean relaxation for integer programming”）。<sup>[3](https://doi.org/10.1007/bfb0120690)</sup>

| 关键事实 | 细节 |
|---|---|
| 所产生的结果 | 对任意乘子向量都给出原问题的一个有效下界，并给出一个对偶解；可行的原问题解需要修复启发式<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2301.00573)</sup> |
| 对偶值 | 等于松弛子问题整数可行集的凸包上的最优值<sup>[4](https://johnhooker.tepper.cmu.edu/encyLagrangianRevised.pdf)</sup> |
| 与线性规划松弛的关系 | 拉格朗日对偶界总是至少不劣于线性规划界；当剩余约束具有整数性时，它等于线性规划界<sup>[4](https://johnhooker.tepper.cmu.edu/encyLagrangianRevised.pdf)</sup><sup> • </sup><sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup> |
| 经典步长规则 | 从步长因子 2 开始，每当对偶值在固定迭代次数内未能改进时就将其减半<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup> |
| 乘子方法 | 束方法比次梯度方法收敛更快、更稳健，并且在多面体对偶上具有有限收敛性<sup>[6](https://www.sciencedirect.com/science/article/pii/S0166218X00003103)</sup> |
| 近期进展 | 图神经网络对乘子的预测，在网络设计和广义指派测试中弥合了连续松弛与最佳拉格朗日界之间差距的最多 85%<sup>[7](https://raw.githubusercontent.com/mlresearch/v235/main/assets/demelas24a/demelas24a.pdf)</sup> |

## 工作原理

考虑一个最大化问题，其具有“难处理”约束 \( A_1 \cdot x \le b_1 \) 和“容易处理”约束 \( A_2 \cdot x \le b_2 \)。将难处理约束以乘子 \( u \ge 0 \) 移入目标函数，得到拉格朗日松弛

\[ z_{LR}(u) = u \cdot b_1 + \max_{x \in S_{LR}} \{ (c - u \cdot A_1) \cdot x \}, \]

而拉格朗日对偶为 \( z_{LD} = \min_{u \ge 0} z_{LR}(u) \)。<sup>[8](https://coral.ise.lehigh.edu/~ted/files/mip/lectures/Lecture5.pdf)</sup> 拉格朗日界原理指出，对任意乘子向量，拉格朗日函数值都是原最优值的上界，而对乘子取最小得到最紧的这类界（弱对偶）。<sup>[9](https://cs.pwr.edu.pl/zielinski/lectures/om/relaks.pdf)</sup> 对偶函数是凸的，因此局部极小即为全局极小；对偶问题的任意可行解都能给出有效界，而不必求解到最优。<sup>[4](https://johnhooker.tepper.cmu.edu/encyLagrangianRevised.pdf)</sup>

这个界有几何解释：在最佳乘子下，\( z_{LD} \) 等于在松弛子问题整数可行集的凸包上、在满足被对偶化约束的情况下同一目标的最优值，这是对容易处理约束的部分凸化。<sup>[4](https://johnhooker.tepper.cmu.edu/encyLagrangianRevised.pdf)</sup><sup> • </sup><sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup> 这就是该界总是至少不劣于线性规划松弛界的原因。只要容易处理约束具有整数性，即去掉整数性不改变松弛子问题的最优值，它就等于线性规划界；在这种情况下，拉格朗日方法相对于线性规划对偶没有改进，因此要得到更紧的界，子问题必须比线性规划更难。<sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup><sup> • </sup><sup>[8](https://coral.ise.lehigh.edu/~ted/files/mip/lectures/Lecture5.pdf)</sup>

## 实施步骤

费舍尔（Fisher）的教程把这一设计概括为三个问题：松弛哪些约束、如何计算好的乘子，以及如何从松弛解推出可行解。<sup>[10](https://www.cs.uleth.ca/~benkoczi/OR/read/lagrange-relax-introduct-fisher85.pdf)</sup> 要一直松弛约束，直到剩余问题容易求解；常见选择是留下一个多项式可解或全幺模的问题，如最小生成树或指派问题；一个 NP 难但已很好求解的问题，如背包问题；或者难以用混合整数规划（MIP）形式表达的约束，如 TSP 子回路消除。<sup>[11](https://imada.sdu.dk/u/marco/Teaching/AY2023-2024/DM872/assets/dm872-slides-lagrangian.pdf)</sup>

然后迭代优化乘子。基本的次梯度步骤在当前乘子处求解子问题，计算约束违反量 \( s = b_1 - A_1 \cdot x \)，并更新

\[ u_{t+1,j} = \max\{ u_{t,j} - \mu_t \cdot s_j / \lVert s_k \rVert,\ 0 \}, \]

当 \( \mu_t \to 0 \) 且 \( \sum_t \mu_t = \infty \) 时保证收敛；实际中采用按等比数列变化的步长。<sup>[8](https://coral.ise.lehigh.edu/~ted/files/mip/lectures/Lecture5.pdf)</sup> 广泛使用的赫尔德、沃尔夫和克劳德（Held, Wolfe and Crowder）步长规则将标量初始设为 2，并在固定迭代次数内对偶目标未改进时就将其减半（在上述表述中拉格朗日对偶是最小化，所以这是减小），目标值由启发式可行解提供。<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup>

通过修复不可行的子问题解来恢复可行的原问题解，例如在广义指派中用装箱式启发式把物品从超载的背包中重新分配。<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup> 当对偶间隙仍然存在时，应用分支定界，利用拉格朗日下界来消除间隙；一种通用算法把分支定界与迭代次梯度更新结合，直到达到迭代上限或基于界的终止条件。<sup>[9](https://cs.pwr.edu.pl/zielinski/lectures/om/relaks.pdf)</sup><sup> • </sup><sup>[10](https://www.cs.uleth.ca/~benkoczi/OR/read/lagrange-relax-introduct-fisher85.pdf)</sup>

## 起源

现代方法的“诞生”是赫尔德和卡普（Held and Karp）1970 年发表于《运筹学》（Operations Research）的论文，该文利用最小 1-树和节点乘子，定义了最优巡回成本上的一个无限下界族 \( w(\pi) \)，并用列生成和上升法计算 \( \max_\pi w(\pi) \) 来控制分支定界搜索。<sup>[12](https://doi.org/10.1287/opre.18.6.1138)</sup> 赫尔德、沃尔夫和克劳德 1974 年发表于《数学规划》（Mathematical Programming）的《次梯度优化的验证》（“Validation of subgradient optimization”）建立了对偶的次梯度步长机制。<sup>[13](https://doi.org/10.1007/bf01580223)</sup> 杰弗里昂的 1974 年论文给出了通用理论，强调了在基于线性规划的分支定界中的使用，并创造了这个名称；他把 H. 埃弗里特（H. Everett）的广义拉格朗日乘子法视为先驱。<sup>[3](https://doi.org/10.1007/bfb0120690)</sup>

## 变体

在很长一段时间里，次梯度方法是求解对偶问题的唯一在计算上可行的方法，以至于“拉格朗日方法”成了“用次梯度求解对偶”的简称。<sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup> 束方法建立对偶函数的分段线性模型，收敛更快、更稳健，并且在最大化多面体函数时有限收敛，而大多数次梯度变体在实际步长下不能保证达到最优。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0166218X00003103)</sup> 戈芬和基维尔（Goffin and Kiwiel）1999 年发表于《数学规划》（Mathematical Programming）的次梯度水平法，自适应调整对偶值的水平估计。<sup>[14](https://doi.org/10.1007/s101070050053)</sup> 代理拉格朗日松弛（Surrogate Lagrangian Relaxation）的收敛性由布拉金及其同事（Bragin and colleagues）于 2014 年在《优化理论与应用杂志》（Journal of Optimization Theory and Applications）上建立；它只要求代理最优性条件，而不要求子问题精确最优，并且不再需要知道最优对偶值。<sup>[15](https://doi.org/10.1007/s10957-014-0561-3)</sup> 布拉金和塔克（Tucker）2022 年给出的基于水平的扩展，利用了波利亚克（Polyak）公式的线性速率收敛潜力。<sup>[16](https://doi.org/10.1038/s41598-022-26264-1)</sup> 增广拉格朗日松弛（乘子法）及由此导出的交替方向乘子法（ADMM） 对约束违反添加二次惩罚，改善了连续问题的收敛性，但若步长不趋近于零，二者对于离散原问题都不收敛。<sup>[2](https://arxiv.org/html/2301.00573)</sup> 拉格朗日分解把问题改写为等价形式，并对连接约束 \( x = x_0 \) 做对偶化，从而得到更强的界。<sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup>

## 应用

拉格朗日松弛为路由、选址、调度、指派和集合覆盖问题带来了显著改进的算法；值得注意的早期应用包括旅行商问题（赫尔德和卡普）、调度（费舍尔；穆克施塔特和柯尼希（Muckstadt and Koenig）；谢泼德森和马斯滕（Shepardson and Marsten））以及选址问题（科尔尼约尔（Cornuejols）及其同事；埃尔伦科特（Erlenkotter））。<sup>[1](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2301.00573)</sup> 在含 256 种商品的多商品最小费用流中，标准线性规划求解器因内存原因在某些实例上失败，而采用束方法的拉格朗日方法能以至少六位数字的精度求解它们，因为对流守恒做对偶化会把问题分解为若干不具有整数性的独立背包问题。<sup>[5](https://link.springer.com/article/10.1007/s10479-005-3447-9)</sup> 在带容量固定费用网络设计中，所得强界与最优值的相对差距平均不超过 9%，其计算时间仅为商业单纯形代码所需时间的一小部分。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0166218X00003103)</sup> 自 2023 年以来，机器学习进入了这一工作流程：一个图神经网络编码器-解码器直接根据混合整数线性规划（MILP）实例及其连续松弛解预测乘子，由于对偶函数是自然的损失函数，它以无监督方式训练，作为热启动最多弥合 85% 的松弛差距。<sup>[7](https://raw.githubusercontent.com/mlresearch/v235/main/assets/demelas24a/demelas24a.pdf)</sup>

## 局限与替代方法

主要的结构性局限是对偶间隙：对于离散问题，即使乘子最优，间隙通常也非零，因此对偶不产生可行原问题解，必须通过对松弛解进行启发式扰动来重构。<sup>[2](https://arxiv.org/html/2301.00573)</sup> 在计算上，对偶函数的病态会导致乘子在对偶函数的脊线两侧发生锯齿现象，这在调度和电力系统问题的实验中可观察到；步长选择很敏感，步长过大会导致振荡或发散，步长过小会导致收敛缓慢。<sup>[2](https://arxiv.org/html/2301.00573)</sup><sup> • </sup><sup>[17](https://www.math.u-bordeaux.fr/~fvanderb/papers/refDecompIPworkingPaper.pdf)</sup> 20 世纪 90 年代初，随着基于线性规划的分支割平面成为首选方法，次梯度方法的吸引力下降，而束方法和基于中心的方法尤其在对偶收敛的尾部更优。<sup>[18](https://arpi.unipi.it/bitstream/11568/851793/1/Subgrad-comp.pdf)</sup>

与替代方法相比：丹齐格-沃尔夫（Dantzig-Wolfe）线性规划正是与拉格朗日对偶等价的线性规划的对偶，因此二者给出相同的界，而列生成的定价问题等价于拉格朗日子问题；区别在于拉格朗日对偶只产生对偶信息，而丹齐格-沃尔夫还产生原问题解的信息。<sup>[8](https://coral.ise.lehigh.edu/~ted/files/mip/lectures/Lecture5.pdf)</sup><sup> • </sup><sup>[17](https://www.math.u-bordeaux.fr/~fvanderb/papers/refDecompIPworkingPaper.pdf)</sup>

## References

1. [The Lagrangian Relaxation Method for Solving Integer Programming Problems (Marshall L. Fisher, Management Science 27(1), 1981)](https://psycnet.apa.org/doi/10.1287/mnsc.27.1.1)
2. [Survey on Lagrangian Relaxation for MILP: Importance, Challenges, Historical Review, Recent Advancements, and Opportunities](https://arxiv.org/html/2301.00573)
3. [A. M. Geoffrion (1974). Lagrangean relaxation for integer programming. Mathematical programming studies.](https://doi.org/10.1007/bfb0120690)
4. [Integer Programming: Lagrangian Relaxation (J. N. Hooker, Encyclopedia of Optimization entry)](https://johnhooker.tepper.cmu.edu/encyLagrangianRevised.pdf)
5. [About Lagrangian Methods in Integer Optimization (Frangioni et al., Annals of Operations Research, 2005)](https://link.springer.com/article/10.1007/s10479-005-3447-9)
6. [Bundle-based relaxation methods for multicommodity capacitated fixed charge network design (Discrete Applied Mathematics)](https://www.sciencedirect.com/science/article/pii/S0166218X00003103)
7. [Predicting Lagrangian Multipliers for Mixed Integer Linear Programs (ICML 2024)](https://raw.githubusercontent.com/mlresearch/v235/main/assets/demelas24a/demelas24a.pdf)
8. [Computational Integer Programming, Lecture 5 (Ted Ralphs, Lehigh University)](https://coral.ise.lehigh.edu/~ted/files/mip/lectures/Lecture5.pdf)
9. [Network Flows: Theory, Algorithms, and Applications, Chapter 16 (Ahuja, Magnanti, Orlin)](https://cs.pwr.edu.pl/zielinski/lectures/om/relaks.pdf)
10. [An Applications Oriented Guide to Lagrangian Relaxation (Fisher, Interfaces 1985)](https://www.cs.uleth.ca/~benkoczi/OR/read/lagrange-relax-introduct-fisher85.pdf)
11. [DM872 Lagrangian Relaxation slides (Marco Chiarandini, University of Southern Denmark)](https://imada.sdu.dk/u/marco/Teaching/AY2023-2024/DM872/assets/dm872-slides-lagrangian.pdf)
12. [Michael Held, Richard M. Karp (1970). The Traveling-Salesman Problem and Minimum Spanning Trees. Operations Research.](https://doi.org/10.1287/opre.18.6.1138)
13. [Michael Held, Philip Wolfe, Harlan P. Crowder (1974). Validation of subgradient optimization. Mathematical Programming.](https://doi.org/10.1007/bf01580223)
14. [Jean-Louis Goffin, Krzysztof C. Kiwiel (1999). Convergence of a simple subgradient level method. Mathematical Programming.](https://doi.org/10.1007/s101070050053)
15. [Mikhail A. Bragin and colleagues (2014). Convergence of the Surrogate Lagrangian Relaxation Method. Journal of Optimization Theory and Applications.](https://doi.org/10.1007/s10957-014-0561-3)
16. [Mikhail A. Bragin, Emily L. Tucker (2022). Surrogate “Level-Based” Lagrangian Relaxation for mixed-integer linear programming. Scientific Reports.](https://doi.org/10.1038/s41598-022-26264-1)
17. [Reformulation and Decomposition of Integer Programs (survey working paper)](https://www.math.u-bordeaux.fr/~fvanderb/papers/refDecompIPworkingPaper.pdf)
18. [On the computational efficiency of subgradient methods: a case study with Lagrangian bounds](https://arpi.unipi.it/bitstream/11568/851793/1/Subgrad-comp.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/lagrangian-relaxation

English original: https://www.edgepedia.org/lagrangian-relaxation
