Solves a nonlinear system
using the Newton method with backtracking line-search, starting with an initial guess .For common configuration parameters, see Solver.
| Parameters: | i_max : int
eps_a : float
eps_r : float
macheps : float
lin_red : float
lin_precision : float or None
ls_on : float
ls_red : 0.0 < float < 1.0
ls_red_warp : 0.0 < float < 1.0
ls_min : 0.0 < float < 1.0
give_up_warp : bool
check : 0, 1 or 2
delta : float
is_plot : False
log : dict or None
problem : ‘nonlinear’ or ‘linear’
|
|---|
Nonlinear system solver call.
Solves a nonlinear system
using the Newton method with backtracking line-search, starting with an initial guess .| Parameters: | vec_x0 : array
conf : Struct instance, optional
fun : function, optional
fun_grad : function, optional
lin_solver : LinearSolver instance, optional
iter_hook : function, optional
status : dict-like, optional
|
|---|
Notes
Missing items are set to default values for a linear problem.
Example configuration, all items:
solver_1 = {
'name' : 'newton',
'kind' : 'nls.newton',
'i_max' : 2,
'eps_a' : 1e-8,
'eps_r' : 1e-2,
'macheps' : 1e-16,
'lin_red' : 1e-2, # Linear system error < (eps_a * lin_red).
'lin_precision' : None,
'ls_on' : 0.99999,
'ls_red' : 0.1,
'ls_red_warp' : 0.001,
'ls_min' : 1e-5,
'give_up_warp' : False,
'check' : 0,
'delta' : 1e-6,
'is_plot' : False,
'log' : None, # 'nonlinear' or 'linear' (ignore i_max)
'problem' : 'nonlinear',
}
Interface to Broyden and Anderson solvers from scipy.optimize.
Missing items are left to scipy defaults. Unused options are ignored.
Example configuration, all items:
solver_1 = {
'name' : 'broyden',
'kind' : 'nls.scipy_broyden_like',
'method' : 'broyden3',
'i_max' : 10,
'alpha' : 0.9,
'M' : 5,
'w0' : 0.1,
'f_tol' : 6e-6,
'verbose' : True,
}