By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How We Evaluated Our Solvers on Three Numerical Experiments and Benchmarked Them | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > How We Evaluated Our Solvers on Three Numerical Experiments and Benchmarked Them | HackerNoon
Computing

How We Evaluated Our Solvers on Three Numerical Experiments and Benchmarked Them | HackerNoon

News Room
Last updated: 2025/03/28 at 11:05 AM
News Room Published 28 March 2025
Share
SHARE

Table of Links

Abstract and 1. Introduction

2. Mathematical Description and 2.1. Numerical Algorithms for Nonlinear Equations

2.2. Globalization Strategies

2.3. Sensitivity Analysis

2.4. Matrix Coloring & Sparse Automatic Differentiation

3. Special Capabilities

3.1. Composable Building Blocks

3.2. Smart PolyAlgortihm Defaults

3.3. Non-Allocating Static Algorithms inside GPU Kernels

3.4. Automatic Sparsity Exploitation

3.5. Generalized Jacobian-Free Nonlinear Solvers using Krylov Methods

4. Results and 4.1. Robustness on 23 Test Problems

4.2. Initializing the Doyle-Fuller-Newman (DFN) Battery Model

4.3. Large Ill-Conditioned Nonlinear Brusselator System

5. Conclusion and References

4. Results

We evaluate our solvers on three numerical experiments and benchmark them against other nonlinear equation solvers – NLsolve.jl [20], Sundials [12, 13], and CMINPACK [15] (a modern C/C++ rewrite of MINPACK). We run all our benchmarks on Julia 1.10 on a cluster with 128 × AMD EPYC 7502 32-Core Processor with 128 Julia Threads. The code for our numerical experiments is publicly available on GitHub[12].

Fig. 9: Initializing the Doyle-Fuller-Newman (DFN) Battery DAE Model at a High Current: TrustRegion, NewtonRaphson, and LevenbergMarquardt from NonlinearSolve.jl reliably solve the DAE initialization problem and are faster than the corresponding NLsolve.jl equivalents. Sundials KINSOL and MINPACK fail to converge to the solution at any tolerance.Fig. 9: Initializing the Doyle-Fuller-Newman (DFN) Battery DAE Model at a High Current: TrustRegion, NewtonRaphson, and LevenbergMarquardt from NonlinearSolve.jl reliably solve the DAE initialization problem and are faster than the corresponding NLsolve.jl equivalents. Sundials KINSOL and MINPACK fail to converge to the solution at any tolerance.

4.1. Robustness on 23 Test Problems

23 Test Problems[13] is a suite of 23 small nonlinear systems, each with 1 − 10 variables, that provides a valuable resource for testing and evaluating nonlinear equation solvers. The problems cover various difficulties, making them suitable for various solver testing scenarios. The FORTRAN90 version of this test suite “includes routines defining the initial approximation to the solution of the system, the 𝑁 function values at any point, and the 𝑁 by 𝑁 Jacobian matrix at any point.” We provide a pure Julia version of these problems in NonlinearProblemLibrary.jl[14]. In contrast to the FORTRAN90 version, we don’t implement the Jacobian functions and instead rely on the solvers using Automatic Differentiation or Finite Differencing to compute them.

For this experiment, we benchmark first-order solvers from various packages – Newton Raphson, Trust Region, and Levenberg Marquardt from NonlinearSolve.jl, Modified Powell and Levenberg Marquardt from CMINPACK, Newton Raphson, Trust Region and Anderson from NLsolve.jl, and Modified Newton Raphson from Sundials KINSOL. For NonlinearSolve.jl native solvers, we perform additional analysis with different line search strategies – HagerZhang, MoreThuente, and BackTracking with Newton Raphson; different radius update schemes – NLsolve, NocedalWright, Hei, Yuan, Bastin, and Fan with Trust Region; and Levenberg Marquardt with and without Geodesic Acceleration [57]. Figure 8 shows that our solvers outperform other software packages.

Fig. 10: Brusselator 2D Scaling of First-Order Nonlinear Solvers: NonlinearSolve.jl Newton-Raphson outperforms the implementation of the same algorithm from other frameworks. Notably, NonlinearSolve.jl is several orders of magnitude faster than MINPACK (written in C), which is widely used in software like SciPy and MATLAB. We show that Approximate Sparsity Detection accelerates moderately sized problems; however, at extremely large scale Symbolic Sparsity Detection outperforms all other methods by a margin.Fig. 10: Brusselator 2D Scaling of First-Order Nonlinear Solvers: NonlinearSolve.jl Newton-Raphson outperforms the implementation of the same algorithm from other frameworks. Notably, NonlinearSolve.jl is several orders of magnitude faster than MINPACK (written in C), which is widely used in software like SciPy and MATLAB. We show that Approximate Sparsity Detection accelerates moderately sized problems; however, at extremely large scale Symbolic Sparsity Detection outperforms all other methods by a margin.


[12] https://github.com/SciML/SciMLBenchmarks.jl/tree/master/benchmarks/NonlinearProblem

[13 https://people.sc.fsu.edu/~jburkardt/f_src/test_nonlin/test_nonlin.html

[14] https://github.com/SciML/DiffEqProblemLibrary.jl/blob/master/lib/ NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl

Authors:

(1) AVIK PAL, CSAIL MIT, Cambridge, MA;

(2) FLEMMING HOLTORF;

(3) AXEL LARSSON;

(4) TORKEL LOMAN;

(5) UTKARSH;

(6) FRANK SCHÄFER;

(7) QINGYU QU;

(8) ALAN EDELMAN;

(9) CHRIS RACKAUCKAS, CSAIL MIT, Cambridge, MA.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Help, I can’t stop engraving everything in my house with the Acmer P3 laser engraver
Next Article Looking for the best cheap Amazon Spring Sale vacuum deal? We think we’ve found it.
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

iPhone 18 Pro Series’ Dynamic Island Cold Turn Into A Dot
Software
Baidu exec’s teen daughter linked to doxing scandal using overseas data in online dispute · TechNode
Computing
These headphones might offer the best noise cancellation on a budget | Stuff
Gadget
Apple tells students ‘how to convince your parents to get you a Mac’ [Video] – 9to5Mac
News

You Might also Like

Computing

Baidu exec’s teen daughter linked to doxing scandal using overseas data in online dispute · TechNode

2 Min Read
Computing

Uganda’s tech sector has prepared the bride, now it wants a dowry

10 Min Read
Computing

The Most Expensive 0.5% You’ll Ever Give Away | HackerNoon

8 Min Read
Computing

Iran’s State TV Hijacked Mid-Broadcast Amid Geopolitical Tensions; $90M Stolen in Crypto Heist

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?