# Bertini（软件）

**Bertini** 是一个用于数值代数几何的软件包，它通过同伦延拓——即从解已知的起始系统出发、对解路径进行数值追踪直至目标系统——来求解多项式方程组。它由 Daniel J. Bates、Jonathan D. Hauenstein、Andrew J. Sommese 和 Charles W. Wampler 用 C 语言编写，免费分发，对欠定、恰定和超定系统一视同仁。<sup>[1](https://bertini.nd.edu/)</sup> 其重新实现版本 **Bertini 2** 以 C++17 内核和 Python 绑定取代了原来的 C 代码，在 GitHub 上以 GNU GPL 第 3 版许可证公开开发。<sup>[2](https://github.com/bertiniteam/b2)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 通过同伦延拓数值求解多项式方程组<sup>[1](https://bertini.nd.edu/)</sup> |
| 原作者 | Daniel J. Bates、Jonathan D. Hauenstein、Andrew J. Sommese、Charles W. Wampler<sup>[1](https://bertini.nd.edu/)</sup> |
| Bertini 1 的功能 | 通过全次数、多重齐次或用户定义的同伦求孤立解；参数延拓；自适应多精度；正维解集的证据集；奇异根的终局处理<sup>[1](https://bertini.nd.edu/)</sup> |
| Bertini 2 | 以 C++ 和 Python 重新实现，GPLv3；开发者称 v3.0.0 为现代化 Bertini 2 的首个稳定版本，拥有重建的 C++17 内核和 `import bertini` Python 接口<sup>[2](https://github.com/bertiniteam/b2)</sup><sup> • </sup><sup>[3](https://github.com/bertiniteam/b2/releases)</sup> |
| 接口 | Macaulay2 包 Bertini.m2<sup>[4](https://macaulay2.com/doc/Macaulay2/share/doc/Macaulay2/Bertini/html/index.html)</sup>；BertiniLab MATLAB 接口，支持 Bertini 1.4 的功能<sup>[5](https://www.mathworks.com/matlabcentral/fileexchange/48536-bertinilab/files/BertiniLab1.5/BertiniLab/doc/html/Polysym_User_Guide.html)</sup> |
| 配套软件 | Bertini_real，用于实代数曲线与曲面的数值分解（ACM 算法 976）<sup>[6](https://www.researchgate.net/publication/318476279_Algorithm_976_Bertini_real_Numerical_Decomposition_of_Real_Algebraic_Curves_and_Surfaces)</sup> |
| 参考书 | *用 Bertini 数值求解多项式系统*（SIAM，2013），ISBN 978-1-611972-69-6<sup>[7](https://epubs.siam.org/doi/10.1137/1.9781611972702.ch2)</sup> |

## 它计算什么

Bertini 通过追踪同伦的路径来求出多项式系统的全部孤立解；同伦是一族连续变形的系统，把一个容易求解的起始系统与目标系统连接起来。起始系统可以是全次数系统、多重齐次次数系统，也可以是用户定义的同伦。<sup>[1](https://bertini.nd.edu/)</sup> 路径用预测-校正方法跟进；当路径变量接近其目标值（几乎总是 0）时，称为终局的专门程序接管，以精确计算端点，包括牛顿型收敛效果很差的奇异根。<sup>[1](https://bertini.nd.edu/)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC7224580/)</sup>

若干设计选择针对路径追踪的数值风险。自适应多精度在路径变得病态时提高工作精度，既用于孤立解，也用于数值不可约分解。<sup>[1](https://bertini.nd.edu/)</sup> 齐次化引入无穷远坐标，使发散的路径也能被可靠追踪而不致丢失。<sup>[1](https://bertini.nd.edu/)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC7224580/)</sup> 该软件还通过检查端点处雅可比矩阵的条件数来判断路径端点是否奇异。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC7224580/)</sup>

除孤立点之外，Bertini 通过计算证据集来处理正维解集，并支持从簇中采样和隶属测试，即数值判定一个点是否位于某个簇上。<sup>[1](https://bertini.nd.edu/)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/1310.3297)</sup> 参数延拓处理由一个或多个参数联系起来的系统族；Bertini 网站列举的应用包括六旋转关节串联机械臂的逆运动学和 Stewart-Gough 并联机器人的正运动学。<sup>[1](https://bertini.nd.edu/)</sup>

## Bertini 1

Bertini 1 是一个用 C 编写的通用求解器，为多项式延拓研究而创建，按“原样”原则免费分发，其预期用途被描述为教育性用途。<sup>[1](https://bertini.nd.edu/)</sup> 其配置文件暴露了许多路径追踪控制项，包括 `MAXSTEPSIZE`（最大步长，也即起始步长）、`ENDGAMEBDRY`（追踪切换到所选终局时的路径变量值）、用于幂级数终局的 `MAXCYCLENUM`，以及决定自适应精度升级难易程度的 `AMPSAFETYDIGITS` 设置。<sup>[10](https://bertini.nd.edu/BertiniUsersManual.pdf)</sup>

四位作者 2007 年的一篇论文称 Bertini 为当时数值代数几何领域最新发布的软件包，并列举了该领域一个理想软件包应允许的操作，以及 Bertini 当前和计划中的功能。<sup>[11](https://academicweb.nd.edu/~jhauenst/preprints/bhswBertini.pdf)</sup> SIAM 图书 *用 Bertini 数值求解多项式系统*（2013）是一部面向用户的指南，涵盖孤立系统、正维解集与数值不可约分解、代数集的交与投影、奇异集、实解，以及在微分方程产生的大规模系统上的应用。<sup>[7](https://epubs.siam.org/doi/10.1137/1.9781611972702.ch2)</sup>

## Bertini 2

Bertini 2 是 Bertini 1 从 C 到 C++ 和 Python 的重新实现。<sup>[2](https://github.com/bertiniteam/b2)</sup> 其宣称的理论基础相同：一个界定系统可能拥有的解的数目的定理，结合同伦延拓。<sup>[2](https://github.com/bertiniteam/b2)</sup> Python 绑定允许在运行时构造多项式和非多项式系统，以双精度和任意多精度对系统及其雅可比矩阵求值，构造全次数和多重齐次起始系统，在任意时刻之间追踪路径，以及以双精度、多精度和自适应精度运行幂级数和柯西终局。<sup>[2](https://github.com/bertiniteam/b2)</sup>

**3.0.0 版**被开发者描述为现代化的 Bertini 2 的首个稳定版本，拥有重建的 C++17 内核、以 `import bertini` 安装的 Python 接口，以及随 wheel 一起提供的 `bertini2` 命令行求解器；wheel 覆盖 Linux、macOS（arm64）和 Windows 上的 CPython 3.10 至 3.14。<sup>[3](https://github.com/bertiniteam/b2/releases)</sup> 发行说明称，通过分层直线程序算术、无分配求值、公共子表达式消除和有状态的原地多精度 LU 求解器，多精度求值快了约 10 倍，良态自适应精度求解快了 5 至 7 倍，其中 cyclic-5 基准从 11 秒降到 3.5 秒。<sup>[3](https://github.com/bertiniteam/b2/releases)</sup> 每次求解都会写出一个纯文本结构化输出目录，其中包含内容寻址的输入和溯源链，因此被中断的运行可以续跑而非重新开始，带种子的求解可在不同机器和版本间复现同一同伦。<sup>[3](https://github.com/bertiniteam/b2/releases)</sup>

**4.0.0 版**于 2026 年 10 月 6 日发布，是一个不向后兼容的版本：`System` 不再携带精度，因为求值在传给它的点的精度上进行；默认终局从柯西终局改为幂级数终局；由于内容编码发生变化，3.x 写出的记录会被重新计算而非复用。<sup>[3](https://github.com/bertiniteam/b2/releases)</sup> 它增加了 linux-aarch64 的 wheel、辅助坐标声明（使有限性和实性测试可以忽略构造产生的伪迹），以及从中途检查中持久化的路径交叉判定。<sup>[3](https://github.com/bertiniteam/b2/releases)</sup> 数值不可约分解——v3.0.0 说明中为 4.0 宣布的头号功能——出现在该仓库的进行中功能列表中，与隶属测试并列。<sup>[2](https://github.com/bertiniteam/b2)</sup><sup> • </sup><sup>[3](https://github.com/bertiniteam/b2/releases)</sup> 项目 README 建议希望获得更稳定实现的用户使用 Bertini 1 或 HomotopyContinuation.jl。<sup>[2](https://github.com/bertiniteam/b2)</sup>

## 接口与相关软件

Macaulay2 包 **Bertini.m2** 提供到 Bertini 核心运行模式的接口，让用户求出零维和正维系统的近似解、测试一个点是否位于某个簇上、从簇中采样，以及运行参数同伦。<sup>[9](https://arxiv.org/abs/1310.3297)</sup> 随包文档描述了该接口的 2.1.2.3 版，发布于 2024 年 2 月 6 日。<sup>[4](https://macaulay2.com/doc/Macaulay2/share/doc/Macaulay2/Bertini/html/index.html)</sup> **BertiniLab** 是一个 MATLAB 接口，支持 Bertini 1.4 版的全部功能；在其中，系统可以写成字符串、符号工具箱数组或所提供的 POLYSYM 类。<sup>[5](https://www.mathworks.com/matlabcentral/fileexchange/48536-bertinilab/files/BertiniLab1.5/BertiniLab/doc/html/Polysym_User_Guide.html)</sup> **Paramotopy** 使用 Bertini 提供处理参数化多项式系统的方法，而 **Bertini_real** 计算实代数曲线与曲面的胞腔分解。<sup>[12](https://doi.org/10.1090/noti3129)</sup>

Bertini 属于一个同伦延拓软件包家族，其中还包括 PHCpack、HOM4PS、NAG4M2 和 HomotopyContinuation.jl。它们默认的同伦不同：Bertini 默认使用全次数同伦，并提供用户定义参数系数同伦和多射影路径追踪的选项；而 HOM4PS 和 PHCpack 实现多面体同伦，HomotopyContinuation.jl 也默认使用它。<sup>[13](https://oaktrust.library.tamu.edu/bitstreams/64d3ed10-64bb-4e10-9f9d-0ebcffed6998/download)</sup>

## 在实践中

应用实例说明了该软件运作的规模。一项使用 Bertini 的机构设计计算追踪了 24,822,328 条路径，找到 1,521,037 个有限非奇异解，在 256 个 2.2 GHz 核心上运行了 311 小时；该系统 264,241,152 个根中不到 1% 被追踪到所期望的非奇异有限根。<sup>[14](https://app.icerm.brown.edu/materials/Slides/sp-f18-w3/Applications_of_Numerical_Homotopy_Continuation_to_Mechanism_Design_%5D_Mark_Plecnik%2C_University_of_California_-_Berkeley.pdf)</sup> 在一项关于翻译后修饰网络的系统生物学研究中，研究人员将 Bertini 和 Paramotopy 与验证包 alphaCertified 结合，验证了约 2.5 × 10<sup>7</sup> 个正常解集，并指出 Bertini 在路径失败时会发出警告，使用户知道所报告的解集是否可能不完整。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC7224580/)</sup>

Bertini 也被用作代数几何研究中的计算工具，例如用于研究华林分解以及多项式向量在复数域和实数域上的可识别性的计算机辅助程序。<sup>[15](https://arxiv.org/abs/1803.00800)</sup>

## References

1. [Bertini Home Page, University of Notre Dame](https://bertini.nd.edu/)
2. [bertiniteam/b2: Bertini 2, GitHub repository](https://github.com/bertiniteam/b2)
3. [Releases of bertiniteam/b2, GitHub](https://github.com/bertiniteam/b2/releases)
4. [Bertini, Macaulay2 package documentation](https://macaulay2.com/doc/Macaulay2/share/doc/Macaulay2/Bertini/html/index.html)
5. [BertiniLab, MATLAB Central File Exchange](https://www.mathworks.com/matlabcentral/fileexchange/48536-bertinilab/files/BertiniLab1.5/BertiniLab/doc/html/Polysym_User_Guide.html)
6. [Algorithm 976: Bertini_real: Numerical Decomposition of Real Algebraic Curves and Surfaces](https://www.researchgate.net/publication/318476279_Algorithm_976_Bertini_real_Numerical_Decomposition_of_Real_Algebraic_Curves_and_Surfaces)
7. [Bates, Sommese, Hauenstein, Wampler, Numerically Solving Polynomial Systems with Bertini, Chapter 2, SIAM](https://epubs.siam.org/doi/10.1137/1.9781611972702.ch2)
8. [Robustness and parameter geography in post-translational modification systems, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC7224580/)
9. [Bates, Gross, Leykin, Rodriguez, Bertini for Macaulay2, arXiv:1310.3297](https://arxiv.org/abs/1310.3297)
10. [Bertini Users Manual](https://bertini.nd.edu/BertiniUsersManual.pdf)
11. [Bates, Hauenstein, Sommese, Wampler, Software for numerical algebraic geometry: a paradigm and progress towards its implementation](https://academicweb.nd.edu/~jhauenst/preprints/bhswBertini.pdf)
12. [Software packages in numerical algebraic geometry, AMS Notices](https://doi.org/10.1090/noti3129)
13. [Toric varieties and numerical algorithms for solving polynomial systems, Texas A&M](https://oaktrust.library.tamu.edu/bitstreams/64d3ed10-64bb-4e10-9f9d-0ebcffed6998/download)
14. [Plecnik, Applications of Numerical Homotopy Continuation to Mechanism Design, ICERD slides](https://app.icerm.brown.edu/materials/Slides/sp-f18-w3/Applications_of_Numerical_Homotopy_Continuation_to_Mechanism_Design_%5D_Mark_Plecnik%2C_University_of_California_-_Berkeley.pdf)
15. [Waring decompositions and identifiability via Bertini and Macaulay2 software, arXiv:1803.00800](https://arxiv.org/abs/1803.00800)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Symbolic and algebraic algorithms › Polynomial system solving

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bertini-software

English original: https://www.edgepedia.org/bertini-software
