Implement modAB algorithm for efficient root-finding
@Adarshsingh2203 已经在做这个了。
开始于 2026年7月13日。
评估
调研方向
先阅读链接的论文和 Numerical/Solver/ModAB.cs,然后在 Boost 中找到对应的求根组件和测试。该 issue 没有指明 Boost 模块、API 或测试,因此请在实现之前与维护者确认目标入口点和预期行为;当算法完成集成,并通过合适的求根案例验证后,即可视为完成。
由索引模型根据 Issue 内容生成。
描述
Feature description
This is a new and extremely efficient bracketing root-finding algorithm. It combines initial bisection steps with Anderson-Bjork's (AB) steps to achieve superlinear convergence (e.i. = 1.7-1.8), preserving optimality in worst case poorly behaved functions. ModAB uses clever method switching criteria, based on actually measuring the function linearity. According to the benchmarks, it significantly outperforms "classical" algorithms like ITP, Brent and Ridders:
| Method | bs | fp | mfp | ill | AB | ITP | mAB | Rid | Bre |
|---|---|---|---|---|---|---|---|---|---|
| SUM | 4176 | 7709 | 2089 | 2684 | 2700 | 2581 | 1227 | 1990 | 2625 |
| AVERAGE | 46 | 85 | 23 | 29 | 30 | 28 | 13 | 22 | 29 |
| MAX | 48 | 200 | 71 | 200 | 200 | 50 | 48 | 78 | 133 |
Legend:
bs – Bisection method
fp – False position
mfp – Modified false position
ill – Illinois method
AB – Anderson-Bjork
ITP – Interpolate, truncate, project
mAB – Modified Anderson-Bjork (new)
Rid – Ridders
Brе – Brent
More detailed results are provided here:
https://github.com/Proektsoftbg/Numerical/blob/main/Numerical.Benchmark/doc/Root/Root-tests.pdf
Additional context
The algorithm is presented in this paper:
https://iopscience.iop.org/article/10.1088/1757-899X/1276/1/012010
Here is the C# source code:
https://github.com/Proektsoftbg/Numerical/blob/main/Numerical/Solver/ModAB.cs
The algorithm is currently implemented in Calcpad, Jacob Willam's NASA/JSC root-fortran and Julia/NonlinearSolve.jl.
- 主要语言
- HTML
- 星标
- 8.6k
- 派生
- 2k
- 平均合并
- 9 小时 35 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/boost 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 52/100
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
bug done
难度 2/5 1-3 小时 新手友好度 65/100
neavo/LinguaGacha#1124 ·
维护者通常 1 天内回复
-
module/http Type/Bug
难度 2/5 1-3 小时 新手友好度 72/100
ballerina-platform/ballerina-library#9868 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
symgraph/GhidrAssistMCP#84 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
open-astro/AlpacaBridge#2606 · 1 条评论 ·
维护者通常 1 天内回复
-
reasons-gate
难度 2/5 1-3 小时 新手友好度 62/100
benthomasson/reasonsforge#100 ·
维护者通常 1 天内回复