API

Numerical Methods

NonlinearSolvers.NewtonsMethodType
NewtonsMethod(
        f!::F!,
        j!::J!,
        x_init::A,
    ) where {F! <: Function, J! <: Function, A <: AbstractArray}

A non-linear system of equations type.

Fields

  • f!

    Function to find the root of

  • j!

    Jacobian of f!

  • x_init

    Initial guess

  • x1

    Storage

  • J

    Storage

  • J⁻¹

    Storage

  • F

    Storage

source
NonlinearSolvers.NewtonsMethodADType
NewtonsMethodAD(f!::F!, x_init::A) where {F!, A <: AbstractArray}

A non-linear system of equations type.

Fields

  • f!

    Function to find the root of

  • x_init

    Initial guess

  • x1

    Storage

  • J

    Storage

  • J⁻¹

    Storage

  • F

    Storage

source

Solve

NonlinearSolvers.solve!Function
solve!(
    method::AbstractNonlinearSolverMethod{FT},
    soltype::SolutionType = CompactSolution(),
    tol::Union{Nothing, AbstractTolerance} = nothing,
    maxiters::Union{Nothing, Int} = 10_000,
)

Solve the non-linear system given

  • method the numerical method
  • soltype the solution type (CompactSolution or VerboseSolution)
  • tol the stopping tolerance
  • maxiters the maximum number of iterations to perform
source

Solution types

Results types

Stopping conditions (tolerances)