Implement modAB algorithm for efficient root-finding

未关闭
#1,127 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Adarshsingh2203 已经在做这个了。

开始于 2026年7月13日。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
cpp, csharp
领域
backend

调研方向

先阅读链接的论文和 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

boostorg/boost 的其他 Issue

查看 boostorg/boost 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。