NewtonWithLineSearch

Source: solvers/newton_linesearch.py

The Newton-Raphson solver with line search.

Other options

linear_solverstr

The linear solver to use within the nonlinear solver

abs_tolfloat · default 1e-10

Absolute tolerance in the convergence criteria

rel_tolfloat · default 1e-08

Relative tolerance in the convergence criteria

max_itsint · default 25

Maximum number of iterations allowed before issuing an error/exception

linesearch_typestr · default BACKTRACKING

The type of linesearch used. Options are BACKTRACKING and STRONG_WOLFE.

max_linesearch_iterationsint · default 10

Maximum allowable linesearch iterations. No error is produced upon reaching the maximum number of iterations, and the scale factor in the last iteration is used to scale the step.

linesearch_cutbackfloat · default 2.0

Linesearch cut-back factor when the current scale factor cannot sufficiently reduce the residual.

linesearch_stopping_criteriafloat · default 0.001

The linesearch tolerance slightly relaxing the definition of residual decrease

check_negative_criterionbool · default False

Whether to check if the threshold used in the convergence criterion for line search becomes negative. If true, and a negative value is detected, a warning message is printed.