NewtonWithLineSearch¶
Source: solvers/newton_linesearch.py
The Newton-Raphson solver with line search.
Other options¶
linear_solver—strThe linear solver to use within the nonlinear solver
abs_tol—float· default1e-10Absolute tolerance in the convergence criteria
rel_tol—float· default1e-08Relative tolerance in the convergence criteria
max_its—int· default25Maximum number of iterations allowed before issuing an error/exception
linesearch_type—str· defaultBACKTRACKINGThe type of linesearch used. Options are BACKTRACKING and STRONG_WOLFE.
max_linesearch_iterations—int· default10Maximum 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_cutback—float· default2.0Linesearch cut-back factor when the current scale factor cannot sufficiently reduce the residual.
linesearch_stopping_criteria—float· default0.001The linesearch tolerance slightly relaxing the definition of residual decrease
check_negative_criterion—bool· defaultFalseWhether 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.