Janus 2.0.0
High-performance C++20 dual-mode numerical framework
Loading...
Searching...
No Matches
janus::NewtonSolver Class Reference

Persistent nonlinear root solver. More...

#include <RootFinding.hpp>

Public Member Functions

 NewtonSolver (const janus::Function &F, const RootFinderOptions &opts={})
 Construct a new persistent nonlinear solver.
template<typename Scalar>
RootResult< Scalar > solve (const Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > &x0) const
 Solve F(x) = 0 from initial guess x0.

Detailed Description

Persistent nonlinear root solver.

Numeric solves use a globalization stack with trust-region Newton, line search Newton, Broyden, and pseudo-transient continuation. Symbolic solves still embed CasADi's differentiable newton rootfinder in the graph.

Constructor & Destructor Documentation

◆ NewtonSolver()

janus::NewtonSolver::NewtonSolver ( const janus::Function & F,
const RootFinderOptions & opts = {} )
inline

Construct a new persistent nonlinear solver.

Parameters
FFunction F(x) = 0 to solve
optsSolver options

Member Function Documentation

◆ solve()

template<typename Scalar>
RootResult< Scalar > janus::NewtonSolver::solve ( const Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > & x0) const
inline

Solve F(x) = 0 from initial guess x0.


The documentation for this class was generated from the following file: