# 混合整数优化

混合整数优化是一类数学优化方法，用于求解同时包含连续变量与取值受限为整数或离散值的变量的问题，最常见的是通过分支定界和割平面对问题的松弛进行搜索。这一类方法涵盖混合整数线性规划（MILP）、混合整数二次规划和混合整数二阶锥规划，以及混合整数非线性规划（MINLP）。所有这些问题的类别都是NP难的，因此对许多实际算例而言，可能无法在合理时间内找到精确解。<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup> 凸MINLP仍然是NP难的，因为它将MILP作为一个特例包含在内；但在实践中它比一般MINLP容易，因为去掉整数性要求后剩下的是一个凸非线性规划。<sup>[2](https://jlinderoth.github.io/papers/Bonami-Kilinc-Linderoth-10.pdf)</sup> MINLP是一种灵活的建模范式，但在其最一般的情形下，它是无可救药地难以处理的。<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup><sup> • </sup><sup>[4](https://link.springer.com/book/10.1007/978-1-4614-1927-3)</sup>

| 关键事实 | 详情 |
|---|---|
| 问题类别 | MILP、MIQP/MIQCP、MISOCP、凸与非凸MINLP、混合整数锥规划<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup><sup> • </sup><sup>[2](https://jlinderoth.github.io/papers/Bonami-Kilinc-Linderoth-10.pdf)</sup> |
| 核心算法 | 在松弛上做分支定界，对取分数值的变量按 \( x_j \le \lfloor f_j \rfloor \) 或 \( x_j \ge \lceil f_j \rceil \) 分支，并在树中加割（分支割）<sup>[5](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)</sup> |
| 难度 | NP难；最坏情况下的计算量可随问题规模呈指数增长<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup><sup> • </sup><sup>[5](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)</sup> |
| 求解器进展 | 2000年至2020年间，MILP求解能力每年约提升22%，计入硬件后总计约提升1000倍<sup>[6](https://ar5iv.labs.arxiv.org/html/2206.09787)</sup> |
| 标准基准 | MIPLIB 2017基准集：240个算例，当今各类求解器合起来均可求解<sup>[7](https://miplib.zib.de/)</sup> |
| 2026年求解器比较 | 在240个MIPLIB 2017算例上（限时2小时），COPT求解了219个，OPTV 210个，Xpress 174个，HiGHS 158个，SCIP 136个<sup>[8](https://plato.asu.edu/ftp/milp.html)</sup> |
| 建模方式的影响 | 一种透视重构将一个设施选址算例从16,697 CPU秒、45,901个节点缩减到23 CPU秒、44个节点<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup> |

## 工作原理

其基本原理是求解一系列更易计算且能给出紧近似的松弛问题。去掉整数性要求后剩下一个连续问题，通常是线性规划或凸规划，其最优值给出了真实最优值的界。随后分支定界构建一棵子问题树：当某个松弛解中某个整数变量取分数值 \( x_j = f_j \) 时，求解器按 \( x_j \le \lfloor f_j \rfloor \) 或 \( x_j \ge \lceil f_j \rceil \) 创建两个分支，并剪去那些根据界可以判断不可能包含最优解的节点。<sup>[5](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)</sup> 在最大化问题中，松弛最优值给出上界，任何整数可行点给出下界；子问题产生一系列这样的界，逐步收敛到解。<sup>[9](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)</sup>

割平面用于收紧松弛：割是对混合整数集成立、但被松弛最优解违反的一个有效不等式，因此加入割能使松弛解更接近整数性。<sup>[10](https://www.andrew.cmu.edu/user/gc0v/webpub/IPsurveyAussois-11-08.pdf)</sup> 由于存在连续变量时纯整数舍入论证不再成立，戈莫里（Gomory）引入了另一族混合整数戈莫里割，它基于分裂析取加舍入；这些割至今仍是当前求解器代码中最普遍有用的割之一。<sup>[11](https://uwaterloo.ca/combinatorics-and-optimization/sites/default/files/uploads/documents/michael-r.pdf)</sup> 其理论基础是迈耶定理（Meyer's theorem）：对于有理数据，混合整数集的凸包是一个有理多面体，这正是基于割的方法原则上能够收敛的原因。<sup>[10](https://www.andrew.cmu.edu/user/gc0v/webpub/IPsurveyAussois-11-08.pdf)</sup> 当割不仅在根节点生成，也在树内部生成时，该方案称为分支割。<sup>[5](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)</sup>

## 具体做法

一次现代MILP求解依次经过预处理、带割生成和启发式的根节点处理，然后进入分支定界。<sup>[12](https://www.mathworks.com/help/optim/ug/mixed-integer-linear-programming-algorithms.html)</sup> 预处理消除冗余变量和约束，改善模型的缩放和稀疏性，加强变量界，并检测原始和对偶不可行性；在MIPLIB 2017的筛选实验中，仅做简单的预处理就平均减少了15%的变量。<sup>[12](https://www.mathworks.com/help/optim/ug/mixed-integer-linear-programming-algorithms.html)</sup><sup> • </sup><sup>[13](https://www.or.rwth-aachen.de/files/research/repORt/MIPLIB2017.pdf)</sup> 原始启发式，如潜入（diving，即通过一个界将某个分数变量强制取整并重新求解松弛）和RENS（松弛强制邻域搜索，Relaxation Enforced Neighborhood Search），能及早找到可行解；对称性则通过基于轨道多面体的动态约束进行检测来处理。<sup>[12](https://www.mathworks.com/help/optim/ug/mixed-integer-linear-programming-algorithms.html)</sup> 割的选择很重要：SCIP 9.0按有效性、整数支撑、目标平行度和有向截断距离的加权和对割打分，然后按正交性过滤。<sup>[14](https://arxiv.org/html/2402.17702v2)</sup> 停止准则包括间隙容差（绝对或相对）、时间和节点限制，以及目标截断值。<sup>[12](https://www.mathworks.com/help/optim/ug/mixed-integer-linear-programming-algorithms.html)</sup>

建模方式是实践者的主要杠杆。大M建模用固定的界 \( M \) 来刻画逻辑关系，当 \( M \) 很大时表现很差，而 \( M \) 的选取直接影响性能。<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup> 更紧的凸松弛可以带来变革性的效果：对一个可分离二次设施选址算例（30个设施、100个客户）做透视重构，将求解时间从16,697 CPU秒降到23 CPU秒，加速超过700倍。<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup>

## 起源

拉尔夫·E·戈莫里（Ralph E. Gomory）在1958年《美国数学会公报》（Bulletin of the American Mathematical Society）上的《线性规划整数解算法概要》（"Outline of an algorithm for integer solutions to linear programs"）一文中提出了整数规划的割平面算法。<sup>[15](https://doi.org/10.1090/s0002-9904-1958-10224-4)</sup> 针对混合整数问题的算法将割平面技术推广到只有部分变量必须取整的问题，它以兰德公司（RAND）研究备忘录RM-2597-PR的形式发表，从未投稿到期刊。<sup>[16](https://www.rand.org/pubs/research_memoranda/RM2597.html)</sup><sup> • </sup><sup>[17](https://www.cs.uleth.ca/~benkoczi/OR/read/gomory-cut-byGomory.pdf)</sup> A·H·兰德（A. H. Land）和A·G·多伊格（A. G. Doig）在1960年《计量经济学》（Econometrica）上的《求解离散规划问题的一种自动方法》（"An Automatic Method of Solving Discrete Programming Problems"）一文中引入了分支定界。<sup>[18](https://jmvidal.cse.sc.edu/library/land60a.pdf)</sup> R·J·达金（R. J. Dakin）在1965年《计算机杂志》（The Computer Journal）上提出了用于混合整数规划的二分支。<sup>[19](https://doi.org/10.1093/comjnl/8.3.250)</sup> 曼弗雷德·帕德伯格（Manfred Padberg）和乔瓦尼·里纳尔迪（Giovanni Rinaldi）在1991年《SIAM评论》（SIAM Review）上关于旅行商问题的分支割论文中，将割平面与分支定界结合起来。<sup>[20](https://doi.org/10.1137/1033004)</sup> 云格尔（Jünger）、赖内尔特（Reinelt）和蒂内尔（Thienel）在1995年DIMACS系列中研究了用割平面算法进行实际问题的求解。<sup>[21](https://doi.org/10.1090/dimacs/020/02)</sup> 外逼近由罗杰·弗莱彻（Roger Fletcher）和斯文·莱弗（Sven Leyffer）在1994年《数学规划》（Mathematical Programming）上作了修订，<sup>[22](https://doi.org/10.1007/bf01581153)</sup> 用于凸MINLP的扩展支撑超平面算法由扬·克朗奎斯特（Jan Kronqvist）、安德烈亚斯·伦德尔（Andreas Lundell）和塔皮奥·韦斯特伦德（Tapio Westerlund）在2015年《全局优化杂志》（Journal of Global Optimization）上发表。<sup>[23](https://doi.org/10.1007/s10898-015-0322-3)</sup> 扬·克朗奎斯特和鲁思·米塞纳（Ruth Misener）在2020年《优化与工程》（Optimization and Engineering）上发表了一种用于凸MINLP的析取割强化技术。<sup>[24](https://doi.org/10.1007/s11081-020-09551-6)</sup> MIPLIB 2003由托比亚斯·阿赫特贝格（Tobias Achterberg）、托尔斯滕·科赫（Thorsten Koch）和亚历山大·马丁（Alexander Martin）于2005年在《运筹学快报》（Operations Research Letters）上汇编，<sup>[25](https://doi.org/10.1016/j.orl.2005.07.009)</sup> MIPLIB 2010由托尔斯滕·科赫及其同事于2011年汇编，<sup>[26](https://doi.org/10.1007/s12532-020-00194-3)</sup> MIPLIB 2017由安布罗斯·格莱克斯纳（Ambros Gleixner）及其同事于2021年在《数学规划计算》（Mathematical Programming Computation）上汇编。<sup>[26](https://doi.org/10.1007/s12532-020-00194-3)</sup> 托比亚斯·阿赫特贝格的SCIP于2009年发表在《数学规划计算》上，它将求解表述为约束整数规划。<sup>[27](https://doi.org/10.1007/s12532-008-0001-1)</sup>

## 变体

各变体的区别在于整数分支点之间允许的函数不同。MILP只允许线性函数。如果目标函数是线性的、非线性约束具有二阶锥形式，则该问题是MISOCP；凸MIQCP可以重构为MISOCP。<sup>[2](https://jlinderoth.github.io/papers/Bonami-Kilinc-Linderoth-10.pdf)</sup><sup> • </sup><sup>[36](https://optimization-online.org/wp-content/uploads/2018/11/6933.pdf)</sup> MISOCP将锥约束与整数性结合起来，其求解方法是把SOCP方法与MILP、MINLP技术的扩展（如分支割和外逼近）相结合。<sup>[28](https://pubsonline.informs.org/doi/abs/10.1287/educ.2013.0115)</sup> MINLP的标准形式是在约束 \( g(x,y) \le 0 \) 下最小化 \( f(x,y) \)，其中 \( x \) 为连续变量、\( y \) 为离散变量；若 \( f \) 和 \( g \) 为凸，则问题是凸MINLP，否则为非凸MINLP，此时松弛由凸包络构建，并对连续变量进行空间分支。<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup> MINLP算法分为单树方法（非线性分支定界、分支割）和多树方法（外逼近、Benders分解），其中混合方法对凸MINLP最为高效。<sup>[29](https://www.cambridge.org/core/journals/acta-numerica/article/abs/mixedinteger-nonlinear-optimization/2D0CE8CDA53363A31ADE8689565517BD)</sup>

MINLP求解器包括用于凸问题的Bonmin、KNITRO和SBB，以及用于非凸问题的BARON、Couenne和LINDO-Global。<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup> SCIP通过混合分支推断和分支割的空间分支定界，将MINLP求解到全局最优，默认最多启用40个原始启发式。<sup>[30](https://link.springer.com/article/10.1007/s10898-023-01345-1)</sup> 2000年至2020年间，MILP算法提升了约50倍，硬件提升了约20倍，总加速约1000倍。<sup>[6](https://ar5iv.labs.arxiv.org/html/2206.09787)</sup> 在汉斯·米特尔曼（Hans Mittelmann）2026年对240个MIPLIB 2017算例、限时2小时的测试中，COPT求解了240个中的219个，OPTV 210个，Xpress 174个，HiGHS 158个，SCIP 136个。<sup>[8](https://plato.asu.edu/ftp/milp.html)</sup>

## 应用

经典的MILP应用包括指派、完美匹配、旅行商、设施选址和下料问题，通常与列生成、动态规划和启发式等技术配合求解。<sup>[31](https://www.eolss.net/sample-chapters/c02/E6-05-02-01.pdf)</sup> 凸MINLP和一般MINLP将适用范围扩展到投资组合优化、区块布局设计、带排队延迟约束的网络设计、化工过程的集成设计与控制，以及带概率约束的多周期供应链。<sup>[2](https://jlinderoth.github.io/papers/Bonami-Kilinc-Linderoth-10.pdf)</sup> MINLP模型还涵盖输电管理、供水管网设计和核反应堆换料。<sup>[3](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)</sup>

## 局限与替代方法

主要的失效模式来自建模和复杂性。混合整数问题是NP难的，最坏情况下的计算量可随规模呈指数增长。<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup><sup> • </sup><sup>[5](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)</sup> 大M约束产生较差的LP松弛，尤其是在需要大量此类约束的累积调度模型中。<sup>[1](https://docs.mosek.com/modeling-cookbook/mio.html)</sup><sup> • </sup><sup>[32](https://johnhooker.tepper.cmu.edu/CPandOR.pdf)</sup> 非凸性是另一条边界：一般MINLP在其最一般的情形下是无可救药地难以处理的。<sup>[4](https://link.springer.com/book/10.1007/978-1-4614-1927-3)</sup>

最接近的替代方法是约束规划（CP）。CP更擅长排序和调度，在这些问题上数学规划方法的松弛较弱；MIP的优势在于能自然地处理连续变量，以及拥有提供界的成熟松弛技术。在MIP中，约束描述问题但并不说明如何求解；而在CP中，每个约束都调用一个筛选过程。<sup>[33](https://johnhooker.tepper.cmu.edu/tutorialToulouse.pdf)</sup> 两者是互补的：当优化占主导时用MILP，当可行性是主要关注点时用CP；混合方案将松弛主问题交给MILP，将排序交给CP。<sup>[34](https://www.sciencedirect.com/science/article/abs/pii/S009813540200100X)</sup> 基于逻辑的Benders分解推广了经典Benders分解，使子问题可以是任何优化问题或约束满足问题；更新的实验发现，对于某个计划与调度问题，它仍比最新的MILP技术快几个数量级。<sup>[32](https://johnhooker.tepper.cmu.edu/CPandOR.pdf)</sup> 约束整数规划在SCIP中实现，它推广了有限域CP和MIP，以LP松弛作为约束之间共享的接口。<sup>[35](https://edocs.tib.eu/files/e01fn09/559091532l.pdf)</sup>

## References

1. [Mixed integer optimization, MOSEK Modeling Cookbook](https://docs.mosek.com/modeling-cookbook/mio.html)
2. [Algorithms and Software for Convex Mixed Integer Nonlinear Programs (Bonami, Kılınç, Linderoth)](https://jlinderoth.github.io/papers/Bonami-Kilinc-Linderoth-10.pdf)
3. [Applications and algorithms for mixed integer nonlinear programming (Leyffer, Linderoth, Luedtke, Mahajan et al.)](https://jlinderoth.github.io/papers/Leyffer-Et-Al-09.pdf)
4. [Mixed Integer Nonlinear Programming (IMA Volume 154, eds. Lee & Leyffer, Springer 2012)](https://link.springer.com/book/10.1007/978-1-4614-1927-3)
5. [The Optimizer for Mixed-Integer Problems, MOSEK documentation](https://docs.mosek.com/latest/rmosek/mip-optimizer.html)
6. [Progress in Mathematical Programming Solvers from 2001 to 2020 (arXiv 2206.09787)](https://ar5iv.labs.arxiv.org/html/2206.09787)
7. [MIPLIB 2017 – The Mixed Integer Programming Library (official site)](https://miplib.zib.de/)
8. [The MIPLIB2017 Benchmark Instances (preprocessed data), H. Mittelmann](https://plato.asu.edu/ftp/milp.html)
9. [Integer Programming (MIT 15.053, Chapter 9)](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)
10. [Polyhedral Approaches to Mixed Integer Linear Programming (Conforti, Cornuéjols, Zambelli)](https://www.andrew.cmu.edu/user/gc0v/webpub/IPsurveyAussois-11-08.pdf)
11. [Cutting Planes for Mixed Integer Programming (U Waterloo survey)](https://uwaterloo.ca/combinatorics-and-optimization/sites/default/files/uploads/documents/michael-r.pdf)
12. [Mixed-Integer Linear Programming (MILP) Algorithms - MATLAB & Simulink](https://www.mathworks.com/help/optim/ug/mixed-integer-linear-programming-algorithms.html)
13. [MIPLIB 2017: Data-Driven Compilation of the 6th Mixed-Integer Programming Library (Gleixner et al., Math. Program. Computation)](https://www.or.rwth-aachen.de/files/research/repORt/MIPLIB2017.pdf)
14. [The SCIP Optimization Suite 9.0](https://arxiv.org/html/2402.17702v2)
15. [Ralph E. Gomory (1958). Outline of an algorithm for integer solutions to linear programs. Bulletin of the American Mathematical Society.](https://doi.org/10.1090/s0002-9904-1958-10224-4)
16. [An algorithm for the mixed integer problem (RAND RM-2597-PR, Gomory 1960)](https://www.rand.org/pubs/research_memoranda/RM2597.html)
17. [Outline of an Algorithm for Integer Solutions to Linear Programs and An Algorithm for the Mixed Integer Problem (Gomory retrospective chapter)](https://www.cs.uleth.ca/~benkoczi/OR/read/gomory-cut-byGomory.pdf)
18. [An Automatic Method of Solving Discrete Programming Problems (Land & Doig, Econometrica 1960)](https://jmvidal.cse.sc.edu/library/land60a.pdf)
19. [R. J. Dakin (1965). A tree-search algorithm for mixed integer programming problems. The Computer Journal.](https://doi.org/10.1093/comjnl/8.3.250)
20. [Manfred Padberg, Giovanni Rinaldi (1991). A Branch-and-Cut Algorithm for the Resolution of Large-Scale Symmetric Traveling Salesman Problems. SIAM Review.](https://doi.org/10.1137/1033004)
21. [M Junger, G Reinelt, Stefan Thienel (1995). Practical problem solving with cutting plane algorithms in combinatorial optimization. DIMACS series in discrete mathematics and theoretical computer science.](https://doi.org/10.1090/dimacs/020/02)
22. [Roger Fletcher, Sven Leyffer (1994). Solving mixed integer nonlinear programs by outer approximation. Mathematical Programming.](https://doi.org/10.1007/bf01581153)
23. [Jan Kronqvist, Andreas Lundell, Tapio Westerlund (2015). The extended supporting hyperplane algorithm for convex mixed-integer nonlinear programming. Journal of Global Optimization.](https://doi.org/10.1007/s10898-015-0322-3)
24. [Jan Kronqvist, Ruth Misener (2020). A disjunctive cut strengthening technique for convex MINLP. Optimization and Engineering.](https://doi.org/10.1007/s11081-020-09551-6)
25. [Tobias Achterberg, Thorsten Koch, Alexander Martin (2005). MIPLIB 2003. Operations Research Letters.](https://doi.org/10.1016/j.orl.2005.07.009)
26. [Ambros Gleixner and colleagues (2021). MIPLIB 2017: data-driven compilation of the 6th mixed-integer programming library. Mathematical Programming Computation.](https://doi.org/10.1007/s12532-020-00194-3)
27. [Tobias Achterberg (2009). SCIP: solving constraint integer programs. Mathematical Programming Computation.](https://doi.org/10.1007/s12532-008-0001-1)
28. [Mixed-Integer Second-Order Cone Programming: A Survey (Benson, Sağlam)](https://pubsonline.informs.org/doi/abs/10.1287/educ.2013.0115)
29. [Mixed-integer nonlinear optimization (Acta Numerica survey)](https://www.cambridge.org/core/journals/acta-numerica/article/abs/mixedinteger-nonlinear-optimization/2D0CE8CDA53363A31ADE8689565517BD)
30. [Global optimization of mixed-integer nonlinear programs with SCIP 8 (J. Global Optimization)](https://link.springer.com/article/10.1007/s10898-023-01345-1)
31. [Combinatorial Optimization and Integer Programming (Jünger and Reinelt, EOLSS)](https://www.eolss.net/sample-chapters/c02/E6-05-02-01.pdf)
32. [CP and OR: Integration of Constraint Programming and Operations Research (Hooker)](https://johnhooker.tepper.cmu.edu/CPandOR.pdf)
33. [Tutorial: Hybrid Mixed-Integer Programming and Constraint Programming Methods (Hooker)](https://johnhooker.tepper.cmu.edu/tutorialToulouse.pdf)
34. [Decomposition techniques for multistage scheduling using mixed-integer and constraint programming (Harjunkoski & Grossmann)](https://www.sciencedirect.com/science/article/abs/pii/S009813540200100X)
35. [Constraint Integer Programming: a New Approach to Integrate CP and MIP (Achterberg, Berthold, Hendel)](https://edocs.tib.eu/files/e01fn09/559091532l.pdf)
36. [optimization-online.org](https://optimization-online.org/wp-content/uploads/2018/11/6933.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/mixed-integer-optimization

English original: https://www.edgepedia.org/mixed-integer-optimization
