# IPOPT

**IPOPT**，全称“内点优化器”（Interior Point OPTimizer），读作 I-P-Opt，是一个用于连续系统大规模非线性优化的开源软件库。<sup>[16](https://help.agi.com/stk/LinkedDocuments/IPOPTreference.pdf)</sup> 它采用带过滤线搜索的原始-对偶内点法求解含等式与不等式约束的非线性规划问题，通过 COIN-OR 计划在 Eclipse 公共许可证下分发，免费使用，商业用途亦不例外。<sup>[1](https://coin-or.github.io/Ipopt/)</sup>

| 关键事实 | 详情 |
|---|---|
| 全名 | 内点优化器（Interior Point OPTimizer），读作 I-P-Opt；用于连续系统大规模非线性优化的软件库<sup>[17](https://github.com/coin-or/Ipopt/blob/stable/3.14/README.md)</sup> |
| 算法 | 带过滤线搜索的原始-对偶内点法，对不等式约束采用障碍形式，包含可行性恢复阶段、二阶校正以及 KKT 矩阵的惯性校正<sup>[2](https://doi.org/10.1007%2FS10107-004-0559-Y)</sup> |
| 起源 | 源自 Andreas Wächter 在卡内基梅隆大学（Carnegie Mellon University）Lorenz T. Biegler 指导下完成博士论文时所写的 Fortran 代码；自 2002 年起在 COIN-OR 下开源<sup>[1](https://coin-or.github.io/Ipopt/)</sup> |
| C++ 版本 | 在 IBM 研究院（IBM Research）由 Carl Laird 协助从零重新实现；首个正式 C++ 版本 3.0.0 于 2005 年 8 月 26 日发布<sup>[1](https://coin-or.github.io/Ipopt/)</sup><sup> • </sup><sup>[3](https://coin-or.github.io/Ipopt/md_ChangeLog.html)</sup> |
| 许可证 | Eclipse 公共许可证；商业使用免费，但分发软件中修改过的 Ipopt 源码必须公开<sup>[1](https://coin-or.github.io/Ipopt/)</sup> |
| 关键论文 | Wächter 与 Biegler，《数学规划》（*Mathematical Programming*）106, 25–57 (2006)，在 CUTEr 测试集的 954 个问题上进行了演示<sup>[2](https://doi.org/10.1007%2FS10107-004-0559-Y)</sup> |
| 解的类型 | 仅局部最优；在非凸问题上，不同起点可能导致不同的局部解<sup>[4](https://monee.readthedocs.io/en/development/tutorials/mes_local_optima.html)</sup> |

## 算法

Ipopt 以障碍形式处理不等式约束，并通过原始-对偶内点法求解由此得到的非线性规划。<sup>[2](https://doi.org/10.1007%2FS10107-004-0559-Y)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/pii/S0263876205727532)</sup> 每次迭代时，它对最优性条件进行线性化，并通过求解一个大型稀疏对称线性系统来计算搜索方向；该方法在可获得精确二阶导数信息时可以使用该信息，也可以用有限内存拟牛顿方法（BFGS 和 SR1）进行近似。<sup>[6](https://coin-or.github.io/Ipopt/FAQ.html)</sup>

全局收敛性由基于过滤方法的线搜索来保证：只要某一步能改善目标函数或约束违反度中的任意一项，该步就被接受，而不是将两者合并为单一的罚函数。<sup>[6](https://coin-or.github.io/Ipopt/FAQ.html)</sup> 实现论文描述了完整的机制：过滤方法的可行性恢复阶段、二阶校正、KKT 矩阵的惯性校正，以及用于提升性能的启发式策略。<sup>[2](https://doi.org/10.1007%2FS10107-004-0559-Y)</sup> 该方法的局部与全局收敛性质由上述两位作者在《SIAM 优化杂志》（*SIAM Journal on Optimization*）上的配套论文中进行了分析。<sup>[7](https://epubs.siam.org/doi/abs/10.1137/S1052623403426544?journalCode=sjope8)</sup>

障碍参数可以单调更新，也可以自适应更新。这一选择在实践中很重要：在 AGG 测试问题上，默认的自适应策略用了 185 次迭代，与显式设置 `adaptive` 完全一致，而显式设置 `monotone` 则用了 352 次。<sup>[8](https://ipax.readthedocs.io/en/latest/benchmarks/ipopt/)</sup>

## 历史

最初的 Ipopt 用 Fortran 编写，是 Andreas Wächter 在卡内基梅隆大学化学工程系 Lorenz T. Biegler 指导下攻读博士学位期间的研究成果。该代码被开源，由 COIN-OR 计划（现为非营利公司）分发，自 2002 年起一直在 COIN-OR 下积极开发。<sup>[1](https://coin-or.github.io/Ipopt/)</sup>

为便于扩展，IBM 研究院投资进行了 C++ 的开源重写。当时还是博士生的 Carl Laird 于 2004 年和 2005 年在 IBM 研究院度过暑期，协助从零重新实现了该代码。新的 C++ 版本 Ipopt 3.0.0 及后续版本于 2005 年 8 月 26 日首次正式发布，由 IBM 研究院维护，同时仍属于 COIN-OR；Fortran 版本的开发就此停止，但其源码仍保留在 stable/2.3 分支中。<sup>[1](https://coin-or.github.io/Ipopt/)</sup><sup> • </sup><sup>[3](https://coin-or.github.io/Ipopt/md_ChangeLog.html)</sup>

变更日志显示，2000 年代中期功能稳步增长。3.1.0 版（2006 年 4 月 8 日）增加了使用 L-BFGS 的拟牛顿近似、与线性求解器 MA57、WSMP 和 Pardiso 的接口、导数检查器，以及 TNLP 接口中的用户回调方法。3.3.1 版（2007 年 6 月 20 日）增加了对 MUMPS 线性求解器的支持，以及由 Peter Carbonetto 贡献的 MATLAB 接口。<sup>[3](https://coin-or.github.io/Ipopt/md_ChangeLog.html)</sup> 到 2007 年，Ipopt 已作为免费 NLP 求解器被纳入 GAMS 发行版。<sup>[9](https://www.coin-or.org/coin-or-foundation/annual_report2007.pdf)</sup> 3.14.20 版是近期独立求解器基准测试中所使用的版本。<sup>[10](https://link.springer.com/article/10.1007/s12532-026-00310-9)</sup>

## 线性求解器与性能

Ipopt 的速度在很大程度上取决于它在每次迭代时调用的第三方线性求解器，用以分解稀疏对称不定的 KKT 系统；该求解器的速度、精度和鲁棒性对整体性能至关重要，在某些情况下，求解前对线性系统进行缩放会有所帮助。<sup>[11](https://arxiv.org/abs/1301.7283)</sup> 由于线性求解在障碍子问题中占主导地位，可用线性求解器的可扩展性——其中许多提供共享内存并行——直接影响 Ipopt 的性能，而最佳线性求解器因问题类别而异，例如非线性网络问题和偏微分方程约束问题。<sup>[12](https://arxiv.org/abs/1909.08104)</sup>

在对比基准测试中，Ipopt 始终是一个参照点。2026 年《数学规划计算》（*Mathematical Programming Computation*）上的一项研究在 429 个小型 CUTE 问题上，将一个新的统一求解器与 IPOPT 3.14.20（配合 MA57）、filterSQP、SNOPT、MINOS、LANCELOT、LOQO 和 CONOPT 进行了比较，而 Uno 求解器的 `ipopt` 预设旨在模仿 IPOPT 的行为。<sup>[10](https://link.springer.com/article/10.1007/s12532-026-00310-9)</sup> 在 Mittelmann 基准测试中，Uno v2.9.0 在约与 IPOPT 相同的时间内求解了 47 个实例中的 45 个。<sup>[13](https://unosolver.readthedocs.io/en/latest/benchmarks/)</sup>

## 接口与使用

Ipopt 被嵌入许多建模环境和工具中。它作为免费 NLP 求解器随 GAMS 一起提供，<sup>[9](https://www.coin-or.org/coin-or-foundation/annual_report2007.pdf)</sup> 可从 Pyomo 和 CasADi 调用，并且是 BARON 中嵌入的求解器之一，与 CLP/CBC、FilterSD 和 FilterSQP 并列。<sup>[14](https://www.mdpi.com/2504-446X/7/8/487)</sup> 它也是各领域基准测试中的标准开源基线，例如在交流最优潮流问题中，曾在多达 30,000 个节点的 PGLIB 网络上与 MIPS 和 INLP 进行对比基准测试。<sup>[15](https://arxiv.org/abs/2203.11328)</sup>

用户应牢记其适用范围。Ipopt 是一个局部求解器：在非凸问题上，它收敛到满足一阶最优性条件的点，并且根据起点的不同，可能收敛到不同的局部解。<sup>[4](https://monee.readthedocs.io/en/development/tutorials/mes_local_optima.html)</sup><sup> • </sup><sup>[16](https://help.agi.com/stk/LinkedDocuments/IPOPTreference.pdf)</sup> 它不保证返回的解是全局最优的，对于非凸模型，这需要专门的全局求解器。<sup>[4](https://monee.readthedocs.io/en/development/tutorials/mes_local_optima.html)</sup>

## References

1. [Ipopt: Documentation, COIN-OR](https://coin-or.github.io/Ipopt/)
2. [on the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming | mathematical programming | springer nature link](https://doi.org/10.1007%2FS10107-004-0559-Y)
3. [Ipopt: ChangeLog, COIN-OR](https://coin-or.github.io/Ipopt/md_ChangeLog.html)
4. [Local optima and global solvers, monee documentation](https://monee.readthedocs.io/en/development/tutorials/mes_local_optima.html)
5. [Large-Scale Nonlinear Programming with a CAPE-OPEN Compliant Interface, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0263876205727532)
6. [Ipopt: Frequently Asked Questions, COIN-OR](https://coin-or.github.io/Ipopt/FAQ.html)
7. [Wächter, A., Biegler, L. T. Line Search Filter Methods for Nonlinear Programming: Local Convergence. SIAM Journal on Optimization](https://epubs.siam.org/doi/abs/10.1137/S1052623403426544?journalCode=sjope8)
8. [IPOPT cross-check, ipax documentation](https://ipax.readthedocs.io/en/latest/benchmarks/ipopt/)
9. [COIN-OR Annual Report 2007](https://www.coin-or.org/coin-or-foundation/annual_report2007.pdf)
10. [Implementing a unified solver for nonlinearly constrained optimization, Mathematical Programming Computation](https://link.springer.com/article/10.1007/s12532-026-00310-9)
11. [On the effects of scaling on the performance of Ipopt, arXiv:1301.7283](https://arxiv.org/abs/1301.7283)
12. [Exploring Benefits of Linear Solver Parallelism on Modern Nonlinear Optimization Applications, arXiv:1909.08104](https://arxiv.org/abs/1909.08104)
13. [Benchmarks, Uno documentation](https://unosolver.readthedocs.io/en/latest/benchmarks/)
14. [Comparative Analysis of Nonlinear Programming Solvers, Drones (MDPI)](https://www.mdpi.com/2504-446X/7/8/487)
15. [Benchmarking Large-Scale ACOPF Solutions and Optimality Bounds, arXiv:2203.11328](https://arxiv.org/abs/2203.11328)
16. [Ipopt documentation, AGI linked documents](https://help.agi.com/stk/LinkedDocuments/IPOPTreference.pdf)
17. [3.14/README.md at stable · coin-or/Ipopt, github.com](https://github.com/coin-or/Ipopt/blob/stable/3.14/README.md)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation › Optimization algorithms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/ipopt

English original: https://www.edgepedia.org/ipopt
