# 整数规划

整数规划是数学优化的一个分支，其中部分或全部决策变量必须取整数值，通常目标函数与约束均为线性。当每个变量都必须取整数时，问题称为纯整数规划；当只有部分变量如此时，称为混合整数规划（MIP），其线性情形则称为整数线性规划（ILP）或混合整数线性规划（MILP）。<sup>[1](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780123583505500075)</sup><sup> • </sup><sup>[2](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 在线性约束下进行优化，其中部分或全部变量被限定为整数；仅部分变量受限称混合，全部受限称纯<sup>[1](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780123583505500075)</sup><sup> • </sup><sup>[2](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)</sup> |
| 复杂性 | ILP 是 NP完全的，而普通线性规划可在多项式时间内求解<sup>[3](https://arxiv.org/abs/cs/0611008)</sup> |
| 固定维数 | 伦斯特拉（Lenstra，1981）给出了变量个数固定时 ILP 的多项式时间算法；坎南（Kannan，1983）改进了运行时间<sup>[4](https://doi.org/10.1145/800061.808749)</sup> |
| 可解情形 | 若约束矩阵为全幺模且右端项为整数，则线性规划松弛的每个顶点都是整数，因而仅求解线性规划即可得到整数最优解<sup>[5](https://www.wisdom.weizmann.ac.il/~feige/LP22/Lect4Duality.pdf)</sup> |
| 奠基算法 | 戈莫里（Gomory）的割平面法（1958）与兰德和多伊格（Land and Doig）的分支定界法（1960）<sup>[6](https://ralphgomory.org/mathematics/)</sup><sup> • </sup><sup>[7](https://apice.unibo.it/bin/view/Publication/BranchboundEconometrica28)</sup> |
| 标准基准 | MIPLIB 2017 基准集，含 240 个实例，接替含 87 个实例的 MIPLIB 2010 基准子集<sup>[8](https://miplib.zib.de/set_benchmark.html)</sup><sup> • </sup><sup>[9](https://www.dei.unipd.it/~salvagni/pdf/miplib6.pdf)</sup> |
| 实际能力 | 现代求解器能有效求解许多实际的大规模整数规划，但困难模型仍可能需要数小时乃至数天<sup>[10](https://www.sciencedirect.com/science/article/pii/S0377221724008877)</sup> |

## 模型表述

一个线性整数规划是最大化或最小化线性目标 \( \sum_{j=1}^{n} c_{j} x_{j} \)，受线性约束 \( \sum_{j=1}^{n} a_{ij} x_{j} = b_{i} \)（或不等式）、非负性条件，以及“对部分或全部 \( j \)，\( x_{j} \) 取整数”这一要求的限制。<sup>[2](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)</sup> 在一般的混合整数形式中，由 \( \{1, \ldots, n\} \) 的某个子集 \( I \) 索引的变量必须取整数，其余变量则保持连续。<sup>[11](https://www.math.unipd.it/~disumma/tesi-dott.pdf)</sup> 限定取 0 或 1 的 0-1 变量是一种常见的特殊情形，用于刻画“是/否”决策，例如某条线路是否启用、某座设施是否开设。<sup>[12](https://tnou.ac.in/eslm/PG/M.SC%20MATHEMATICS/SEM%20IV/MMSSE-6%20E-SLM.pdf)</sup>

整数性限制正是整数规划区别于普通线性规划之处。若约束具有网络结构，有时只需忽略整数性限制、直接求解线性规划便可得到整数解；但一般而言，线性规划的解是分数解，还需进一步处理。<sup>[2](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)</sup>

## 计算复杂性

整数线性规划是 NP完全的，而非整数线性规划属于多项式时间类 P。<sup>[3](https://arxiv.org/abs/cs/0611008)</sup> 这一落差有其几何根源：整数最优解未必落在可行多面体的顶点上，因此单纯形法与内点法这套高效工具不能直接适用。

已知有两条经典途径可以避开最坏情形。其一，伦斯特拉于 1981 年证明：当变量个数 \( n \) 固定时，ILP 存在多项式时间算法，其运行时间形如 \( O(c^{n^{3}} \cdot p(L)) \)，其中常数 \( c \) 与 \( n \) 无关，\( p \) 是输入长度 \( L \) 的多项式；坎南于 1983 年改进了这一依赖关系。<sup>[4](https://doi.org/10.1145/800061.808749)</sup> 其二，若约束矩阵 \( A \) 为全幺模，即每个方子阵的行列式均为 0、1 或 −1，且 \( b \) 为整数，则多面体 \( \{x : Ax \le b,\ x \ge 0\} \) 的所有顶点都是整数点，线性松弛因而是精确的。<sup>[5](https://www.wisdom.weizmann.ac.il/~feige/LP22/Lect4Duality.pdf)</sup> 许多以整数规划形式表述的图与网络问题之所以能多项式时间求解，其基础正是全幺模性。<sup>[13](https://www.maths.ox.ac.uk/system/files/attachments/B6.3%20Integer%20Programming.pdf)</sup> 较新的工作为按变量–约束交互结构划分的 ILP 片段绘制了细致的复杂性图景，其参数化算法围绕实例图表示的树宽与树深来组织。<sup>[14](https://www.mdpi.com/1999-4893/12/12/248)</sup>

## 求解方法

**分支定界。** 该框架将搜索空间划分为若干子问题，求解每个子问题的线性规划松弛，并剪除那些松弛界无法胜过当前最优整数解的节点。兰德和多伊格在[伦敦政治经济学院](https://www.edgepedia.org/zh/london-school-of-economics)提出这一思想，1960 年发表于《[计量经济学](https://www.edgepedia.org/zh/econometrica)》，并用台式计算器进行了测试。<sup>[7](https://apice.unibo.it/bin/view/Publication/BranchboundEconometrica28)</sup><sup> • </sup><sup>[15](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)</sup> 它至今仍是每一个现代 MILP 求解器内部的主要引擎。<sup>[16](https://link.springer.com/article/10.1007/s10107-024-02130-y)</sup>

**割平面。** 丹齐格（Dantzig）、富尔克森（Fulkerson）和约翰逊（Johnson）于 1954 年通过向线性规划松弛添加约束，求解了一个 49 城市的旅行商问题实例；戈莫里于 1958 年将这一思想发展为系统的、可证明有限步终止的算法，该算法于 1958 年初首次公开提出，同年夏天在[兰德公司](https://www.edgepedia.org/zh/rand-corporation)的 [IBM 704](https://www.edgepedia.org/zh/ibm-704) 上用 Fortran 实现。<sup>[15](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)</sup><sup> • </sup><sup>[17](https://pubsonline.informs.org/doi/pdf/10.1287/opre.50.1.78.17793)</sup> 如今几乎每一个 MIP 求解程序都包含戈莫里割。<sup>[15](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)</sup> 现代求解器将这两种思想结合为分支切割，并在分支切割定价这一变体中加入了列生成；丹齐格–沃尔夫分解与本德斯分解则是处理超大规模模型的主要分解方法。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0377221724008877)</sup>

**求解器。** CPLEX、Gurobi、MOPS、Mosek、Xpress-MP 等商业优化器能有效求解许多实际的大规模整数规划，但困难模型仍可能需要数小时乃至数天，且不保证返回最优解。<sup>[18](https://www.sciencedirect.com/science/article/pii/S1876735413000020)</sup> 在开源方面，SCIP 是求解 MIP 与混合整数非线性规划最快的非商业求解器之一，同时兼作约束整数规划与分支切割定价的框架。<sup>[19](https://www.scipopt.org/)</sup> HiGHS 在 MIT 许可证下提供面向大规模稀疏 LP、MIP 与 QP 模型的开源串行与并行求解器。<sup>[20](https://highs.dev/)</sup> 对开源求解器（GLPK、CBC、HiGHS 与 SCIP）的比较研究表明，相对性能强烈依赖于实例结构；在一项比较中，GLPK 在不相关与弱相关实例上最快，却是唯一在大规模强相关实例上无法证明最优性的求解器，而在这些实例上 CBC 表现最为稳健。<sup>[21](https://repositorio.ufu.br/handle/123456789/49458?locale=pt_BR)</sup> 求解器性能在 MIPLIB 2017 基准集的 240 个实例上评估，该基准集延续了含 87 个实例的 MIPLIB 2010 基准子集作为公认比较标准的角色。<sup>[8](https://miplib.zib.de/set_benchmark.html)</sup><sup> • </sup><sup>[9](https://www.dei.unipd.it/~salvagni/pdf/miplib6.pdf)</sup>

**机器学习。** 自 2020 年代初以来，机器学习已被应用于分支定界内部的各项主要任务，包括原始启发式、分支、割平面选择、节点选择与求解器配置，其目标是从数据中学习求解启发式，而非手工调参。<sup>[16](https://link.springer.com/article/10.1007/s10107-024-02130-y)</sup><sup> • </sup><sup>[22](https://www.sciencedirect.com/science/article/pii/S0925231222014035)</sup>

## 应用

过程调度、计划、车辆路径、装箱与网络枢纽选址中的大量问题，在实践中都是通过转化为整数线性规划来求解的。<sup>[14](https://www.mdpi.com/1999-4893/12/12/248)</sup> 航空公司机组排班是一个典型用例：[新西兰航空](https://www.edgepedia.org/zh/air-new-zealand)与[奥克兰大学](https://www.edgepedia.org/zh/university-of-auckland)合作，于 1986 年至 1999 年间开发了八套基于优化的系统，用于值勤班次规划与排班，每年节省 15,655,000 新西兰元，同时生成的排班表更好地照顾了机组人员的偏好。<sup>[23](https://pubsonline.informs.org/doi/pdf/10.1287/inte.31.1.30.9688)</sup> 供应链网络设计与物流同样以 MILP 模型为主导；最近一项研究构建了含 31,736 个 0-1 变量与 7,864 条约束的仓库到订单指派模型，将重建的历史成本降低了 0.83%。<sup>[24](https://link.springer.com/article/10.1007/s44257-026-00091-4)</sup> 如今 MILP 被视为运筹学的基石，应用遍及运输、物流、供应链管理、收益管理、金融、电信与制造业。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0377221724008877)</sup>

## 历史

整数优化的前身可追溯到[阿基米德](https://www.edgepedia.org/zh/archimedes)（Archimedes）与[丢番图](https://www.edgepedia.org/zh/diophantus)（Diophantus）提出的、可改写为整数规划的问题，但该领域的正式发展始于 1950 年代。[哈里·马科维茨](https://www.edgepedia.org/zh/harry-markowitz)（Harry Markowitz）与艾伦·曼恩（Alan Manne）于 1956 年写下了最早的导论之一，其动因来自一个生产计划问题与一个航空运输问题。<sup>[15](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)</sup> 拉尔夫·E·戈莫里（Ralph E. Gomory）是一位后来以经济学研究与 IBM 研究领导工作闻名的数学家，他于 1958 年 9 月在《美国数学会通报》上发表《线性规划整数解算法纲要》，给出了该问题的第一个有限割平面算法。<sup>[6](https://ralphgomory.org/mathematics/)</sup> 兰德和多伊格的分支定界法随后于 1960 年问世。<sup>[7](https://apice.unibo.it/bin/view/Publication/BranchboundEconometrica28)</sup> 此后的里程碑包括埃德蒙兹（Edmonds）1965 年的工作、巴拉斯（Balas）1971 年的工作、范罗伊与沃尔西（Van Roy and Wolsey）1987 年的工作，以及伦斯特拉与坎南在 1980 年代的复杂性结果。<sup>[15](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)</sup><sup> • </sup><sup>[4](https://doi.org/10.1145/800061.808749)</sup> 一份 2025 年发表、回顾该领域近五十年的综述指出，求解器效率的提升是该方法得以普及的主要驱动力：LP 求解时间已改进到这样的程度——1990 年代初需要两个月的计算，如今不到一秒即可完成。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0377221724008877)</sup><sup> • </sup><sup>[25](https://inria.hal.science/hal-04776866/document)</sup>

## References

1. [A Survey of Integer Programming Emphasizing Computation and Relations among Models, Mathematical Programming (1973)](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780123583505500075)
2. [Integer Programming, Chapter 9, MIT 15.053 course notes](https://web.mit.edu/15.053/www/AMP-Chapter-09.pdf)
3. [Why Linear Programming cannot solve large instances of NP-complete problems in polynomial time, arXiv](https://arxiv.org/abs/cs/0611008)
4. [Ravi Kannan (1983). Improved algorithms for integer programming and related lattice problems, STOC '83](https://doi.org/10.1145/800061.808749)
5. [Total unimodularity, lecture notes, Weizmann Institute](https://www.wisdom.weizmann.ac.il/~feige/LP22/Lect4Duality.pdf)
6. [Ralph E. Gomory, publication list including Outline of an Algorithm for Integer Solutions to Linear Programs, Bulletin of the AMS 64 (1958) 275–278](https://ralphgomory.org/mathematics/)
7. [A. H. Land, A. G. Doig (1960). An Automatic Method of Solving Discrete Programming Problems, Econometrica 28(3), 497–520](https://apice.unibo.it/bin/view/Publication/BranchboundEconometrica28)
8. [MIPLIB 2017: The Benchmark Set](https://miplib.zib.de/set_benchmark.html)
9. [MIPLIB 2017: Data-Driven Compilation of the 6th Mixed-Integer Programming Library](https://www.dei.unipd.it/~salvagni/pdf/miplib6.pdf)
10. [Clautiaux, Ljubić (2025). Last fifty years of integer linear programming: A focus on recent practical advances, EJOR 324(3), 707–731](https://www.sciencedirect.com/science/article/pii/S0377221724008877)
11. [Mixed-integer linear programming, doctoral thesis introduction, University of Padua](https://www.math.unipd.it/~disumma/tesi-dott.pdf)
12. [Mixed Integer Programming Problems, M.Sc. Mathematics study material](https://tnou.ac.in/eslm/PG/M.SC%20MATHEMATICS/SEM%20IV/MMSSE-6%20E-SLM.pdf)
13. [B6.3 Integer Programming, University of Oxford lecture notes](https://www.maths.ox.ac.uk/system/files/attachments/B6.3%20Integer%20Programming.pdf)
14. [Solving Integer Linear Programs by Exploiting Variable-Constraint Interactions: A Survey, Algorithms 12(12), 248 (2019)](https://www.mdpi.com/1999-4893/12/12/248)
15. [Optimization/Mathematical Programming: Integer Programming, INFORMS history essay](https://www.informs.org/Explore/History-of-O.R.-Excellence/O.R.-Methodologies/Optimization-Mathematical-Programming)
16. [Machine learning augmented branch and bound for mixed integer linear programming, Mathematical Programming (2024)](https://link.springer.com/article/10.1007/s10107-024-02130-y)
17. [Ralph E. Gomory. Early Integer Programming, Operations Research 50(1) (2002)](https://pubsonline.informs.org/doi/pdf/10.1287/opre.50.1.78.17793)
18. [Klotz, Newman (2013). Practical guidelines for solving difficult mixed integer linear programs, Surveys in Operations Research and Management Science 18(1–2), 18–32](https://www.sciencedirect.com/science/article/pii/S1876735413000020)
19. [SCIP: Solving Constraint Integer Programs](https://www.scipopt.org/)
20. [HiGHS: High-performance parallel linear optimization software](https://highs.dev/)
21. [Silva. Performance comparison of different linear and integer optimization solvers, Universidade Federal de Uberlândia](https://repositorio.ufu.br/handle/123456789/49458?locale=pt_BR)
22. [A survey for solving mixed integer programming via machine learning, Neurocomputing 519 (2023), 205–217](https://www.sciencedirect.com/science/article/pii/S0925231222014035)
23. [Butchers et al. (2001). Optimized Crew Scheduling at Air New Zealand, Interfaces 31(1), 30–56](https://pubsonline.informs.org/doi/pdf/10.1287/inte.31.1.30.9688)
24. [Khan, Tahsin, Mamun (2026). Supply chain logistics optimization using mixed integer programming and scenario simulation, Discover Analytics 4, 40](https://link.springer.com/article/10.1007/s44257-026-00091-4)
25. [Last fifty years of integer linear programming (HAL open archive version)](https://inria.hal.science/hal-04776866/document)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/integer-programming

English original: https://www.edgepedia.org/integer-programming
