bundles / scipy 1.17.1 / scipy / optimize / _spectral / _root_df_sane
function
scipy.optimize._spectral:_root_df_sane
source: /scipy/optimize/_spectral.py :15
Signature
def _root_df_sane ( func , x0 , args = () , ftol = 1e-08 , fatol = 1e-300 , maxfev = 1000 , fnorm = None , callback = None , disp = False , M = 10 , eta_strategy = None , sigma_eps = 1e-10 , sigma_0 = 1.0 , line_search = cruz , ** unknown_options ) Summary
Solve nonlinear equation with the DF-SANE method
Parameters
ftol: float, optionalRelative norm tolerance.
fatol: float, optionalAbsolute norm tolerance. Algorithm terminates when
||func(x)|| < fatol + ftol ||func(x_0)||.fnorm: callable, optionalNorm to use in the convergence check. If None, 2-norm is used.
maxfev: int, optionalMaximum number of function evaluations.
disp: bool, optionalWhether to print convergence process to stdout.
eta_strategy: callable, optionalChoice of the
eta_kparameter, which gives slack for growth of||F||**2. Called aseta_k = eta_strategy(k, x, F)withkthe iteration number,xthe current iterate and F the current residual. Should satisfyeta_k > 0andsum(eta, k=0..inf) < inf. Default:||F||**2 / (1 + k)**2.sigma_eps: float, optionalThe spectral coefficient is constrained to
sigma_eps < sigma < 1/sigma_eps. Default: 1e-10sigma_0: float, optionalInitial spectral coefficient. Default: 1.0
M: int, optionalNumber of iterates to include in the nonmonotonic line search. Default: 10
line_search: {'cruz', 'cheng'}Type of line search to employ. 'cruz' is the original one defined in [Martinez & Raydan. Math. Comp. 75, 1429 (2006)], 'cheng' is a modified search defined in [Cheng & Li. IMA J. Numer. Anal. 29, 814 (2009)]. Default: 'cruz'
Aliases
-
scipy.optimize._root._root_df_sane