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: NonlinearSolve.jl: Smart Defaults for Robust and Efficient Nonlinear Solving | 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 > NonlinearSolve.jl: Smart Defaults for Robust and Efficient Nonlinear Solving | HackerNoon
Computing

NonlinearSolve.jl: Smart Defaults for Robust and Efficient Nonlinear Solving | HackerNoon

News Room
Last updated: 2025/03/27 at 12:07 PM
News Room Published 27 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

3.2. Smart PolyAlgortihm Defaults

NonlinearSolve.jl comes with a set of well-benchmarked defaults designed to be fast and robust in the average case. For Nonlinear Problems with Intervals, we default to Interpolate, Truncate, and Project (ITP) [48]. For more advanced problems, we default to a polyalgorithm that selects the internal solvers based on the problem specification. Our selection happens twofold, first at the nonlinear solver level [Figure 4] and next at the linear solver level[10] [Figure 5].

3.2.1. Default Nonlinear Solver Selection. By default, we use a polyalgorithm that balances speed and robustness. We start with Quasi-Newton Algorithms – Broyden [49] and Klement [50]. If these fail, we use a modified version of Broyden,

Fig. 5: Decision Flowchart for Default Linear Solver Selection: Starting with the determination of the Jacobian type (e.g., square, rectangular, symmetric, structured), the flowchart guides through various conditions such as sparsity and conditioning to select the most appropriate solver. Options range from specialized solvers like KLU for sparse matrices to robust methods like SVD for extremely illconditioned cases. This adaptive approach ensures that NonlinearSolve.jl utilizes the most efficient linear solver, enhancing performance and accuracy for a wide array of nonlinear problemsFig. 5: Decision Flowchart for Default Linear Solver Selection: Starting with the determination of the Jacobian type (e.g., square, rectangular, symmetric, structured), the flowchart guides through various conditions such as sparsity and conditioning to select the most appropriate solver. Options range from specialized solvers like KLU for sparse matrices to robust methods like SVD for extremely illconditioned cases. This adaptive approach ensures that NonlinearSolve.jl utilizes the most efficient linear solver, enhancing performance and accuracy for a wide array of nonlinear problems

using a true Jacobian initialization. Finally, if Quasi-Newton Methods fail, we use . Newton Raphson with Line Search and finally fall back to Trust Region Methods. Additionally, if a custom Jacobian function is provided or the system is small (≤ 25 states), we avoid using Quasi-Newton Methods and directly use the first-order solvers. We have designed our default to be robust, allowing it to solve all 23 test problems [Subsection 4.1]. Additionally, as seen in Figure 9, our default solver successfully solves new problems. Our default strongly contrasts with other software like Sundials and MINPACK, which can only solve 15 (22 with line search) and 17 (possibly 18, depending on settings) problems, respectively, out of the 23 problems.

3.2.2. Default Linear Solver Selection. For ill-conditioned Jacobians in the linear system (𝐴𝑥 = 𝑏), we default to QR for regular cases or SVD for extremely ill-conditioned cases. We run a polyalgorithm for well-conditioned systems to determine the best linear solver. If 𝐴 is a matrix-free object, we use GMRES [51] from Krylov.jl [52] and solve the linear system without ever materializing the Jacobian.

Fig. 6: SimpleNonlinearSolve.jl provides the fastest algorithms for StaticArray Problems, outperforming the same algorithms from NonlinearSolve.jl by a significant margin. For regular arrays, SimpleNonlinearSolve.jl is competitive to standard solvers up to a certain problem size thresholdFig. 6: SimpleNonlinearSolve.jl provides the fastest algorithms for StaticArray Problems, outperforming the same algorithms from NonlinearSolve.jl by a significant margin. For regular arrays, SimpleNonlinearSolve.jl is competitive to standard solvers up to a certain problem size threshold

For other cases, if 𝐴 is reasonably small, we use the native Julia Implementation . of LU Factorization [53] from RecursiveFactorization.jl [54]. We use the LU factorization routines from OpenBLAS or MKL for larger systems if present on the user’s system.


[10] Default Linear Solver selection happens in LinearSolve.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 Amazon Big Spring Sale: $20 off Nintendo Switch OLED, save $0.50 a gallon on gas, $7 Tapo smart plugs, more
Next Article New York Startup Funding Off To A Slow Start In 2025
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

10 Best Product Launch Software for Successful Campaigns
Computing
Make the internet a safer place for the whole family with AdGuard, now A$25 for life
News
The Race for Quantum Superiority Is On | HackerNoon
Computing
The Paper, Peacock’s sequel to The Office, debuts in September
News

You Might also Like

10 Best Product Launch Software for Successful Campaigns

26 Min Read
Computing

The Race for Quantum Superiority Is On | HackerNoon

5 Min Read
Computing

BYD says its $10,000 EV drives automatically without intervention · TechNode

5 Min Read
Computing

10 Best AI Lecture Note Takers in 2025 |

27 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?