bundles / scipy 1.18.0 / scipy / optimize / _minpack / _hybrj
built-in
scipy.optimize._minpack:_hybrj
Signature
_hybrj(fun, Dfun, x0, args, full_output, col_deriv, xtol, maxfev, factor, diag)Summary
Hybrid method with user-supplied Jacobian for finding roots.
Extended Summary
Solves fun(x) = 0 using a modification of the Powell hybrid method with analytical Jacobian.
Parameters
fun: callableFunction to minimize. Takes x as first argument.
Dfun: callableJacobian of fun. Returns matrix of partial derivatives.
x0: ndarray, shape (n,)Initial guess, float64.
args: tupleExtra arguments passed to fun and Dfun.
full_output: intNon-zero to return optional outputs.
col_deriv: intNon-zero if Dfun returns column derivatives. Default: 1.
xtol: floatRelative tolerance for solution. Default: 1.49012e-8.
maxfev: intMaximum number of function evaluations. Default: 100*(n+1).
factor: floatInitial step bound. Default: 100.0.
diag: ndarray, shape (n,) or NoneScaling factors for variables, float64.
Returns
x: ndarray, shape (n,)Solution vector.
infodict: dictDictionary with keys: fvec (ndarray), nfev (int), njev (int), fjac (ndarray), r (ndarray), qtf (ndarray). Only returned if full_output != 0.
info: intExit status. 1-4 indicate success.
Notes
If full_output is 0: returns (x, info) If full_output != 0: returns (x, infodict, info)
Aliases
scipy.optimize._minpack._hybrj