Skip to content

Add bounded nonlinear solver benchmark to the NonlinearProblem group - #1879

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:benchmark/bounded-nonlinear-solvers
Sep 13, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:benchmark/bounded-nonlinear-solvers

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Relocates the bounded nonlinear solver study out of SciML/NonlinearSolve.jl#1273 into a single self-contained document in the existing NonlinearProblem benchmark group, benchmarks/NonlinearProblem/bounded_solvers.jmd, following the conventions of the other documents in that folder.

The document measures box-constrained NonlinearProblem/NonlinearLeastSquaresProblem solves across 79 problem/start/representation combinations in 12 families (Rosenbrock, Powell singular, Beale, Brown badly scaled, exponential curve fitting, rank-deficient/underdetermined/fixed-variable linear systems, nonlinear diffusion at 64/256/1,024 unknowns in dense, sparse, and matrix-free form, Freudenstein–Roth, Wood, Bard, Kowalik–Osborne, and automatic-Jacobian variants). Eleven solver configurations per case cover FastShortcutBoundedPolyalg, the seven native bounded configurations, two transformed baselines, and the previous unbounded default.

  • Acceptance combines solver retcode with independent feasibility, root-residual, projected-stationarity, and reference-cost checks; all 79 analytic Jacobians are verified against ForwardDiff in a @testset.
  • The summary scores every ordered 2–4 stage combination of the native methods under family-equal weights, and a performance profile compares each configuration against the fastest verified native method.
  • A closing section re-measures the two leading configurations (bounded trust region vs projected Gauss–Newton) under a paired protocol — both warmed, alternating order, 15 samples — to check the sweep ordering is stable.

Environment note

The benchmark needs FastShortcutBoundedPolyalg and the native bounded solvers, which released in NonlinearSolve 4.31 / NonlinearSolveBase 2.50 / NonlinearSolveFirstOrder 2.7 (SciML/NonlinearSolve.jl#1273, renumbered in #1276). The compat bounds in benchmarks/NonlinearProblem/Project.toml require those releases; NLsolve was bumped to 5, which the new NonlinearSolve requires. Because the NonlinearProblem group shares one environment, the version bump applies to the group's other documents as well.

Validation

Woven locally with the CI entrypoint (julia --threads=auto --project=. benchmark.jl benchmarks/NonlinearProblem/bounded_solvers.jmd, Julia 1.12.7) with no errors.

Reproduction against the measurements recorded in SciML/NonlinearSolve.jl#1273 (taken on a different shared host, so small timing differences are expected):

  • Coverage: bounded default 76/79, bounded trust region 75/79, projected Gauss–Newton 76/79, reflective 76/79, previous transformed default 63/79 (recorded: 64/79).
  • Family-weighted time ratios: bounded default 1.48, trust region 1.35, projected Gauss–Newton 1.78, reflective 6.68, previous default 6.74.
  • Best sequence: bounded trust region → projected Gauss–Newton heads the order ranking, as in the recorded run.
  • Paired run: trust region faster on 55/75 common successes (recorded: 53/75); family-weighted GN/TR ratio 1.267 (recorded: 1.279); operator subset favors Gauss–Newton, GN/TR 0.5.
  • All 79 analytic benchmark Jacobians pass the ForwardDiff check.

Test plan

  • julia --threads=auto --project=. benchmark.jl benchmarks/NonlinearProblem/bounded_solvers.jmd

🤖 Generated with Devin 3000.10.21 (model: SWE-2 Max), local session aluminum-blizzard (transcript: /home/crackauc/.local/share/devin/cli/transcripts/aluminum-blizzard.json)

@ChrisRackauckas-Claude ChrisRackauckas-Claude changed the title Add bounded nonlinear solver benchmarks Add bounded nonlinear solver benchmark to the NonlinearProblem group Sep 13, 2026
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the benchmark/bounded-nonlinear-solvers branch 2 times, most recently from 90e7802 to daf89a7 Compare September 13, 2026 17:52
Moves the bounded solver study out of SciML/NonlinearSolve.jl#1273 into a
single self-contained benchmark document, following the existing
NonlinearProblem group conventions: the 79-case sweep across 12 families
with order scoring and a performance profile, plus a paired
trust-region/Gauss-Newton re-measurement as a closing section. Problem
definitions and the independent ForwardDiff Jacobian check are inline.

The shared environment requires the released NonlinearSolve 4.31 /
NonlinearSolveBase 2.50 / NonlinearSolveFirstOrder 2.7 (which contain
FastShortcutBoundedPolyalg and the native bounded solvers) and bumps
NLsolve to 5; the other documents in the group run against the same
environment.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin 3000.10.21
Agent-Model: SWE-2 Max
Agent-Session: local transcript /home/crackauc/.local/share/devin/cli/transcripts/aluminum-blizzard.json
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the benchmark/bounded-nonlinear-solvers branch from daf89a7 to dfe1524 Compare September 13, 2026 17:52
@ChrisRackauckas
ChrisRackauckas merged commit ee31c10 into SciML:master Sep 13, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants