scipy 1.8.0 Pypi GitHub Homepage
Other Docs
Parameters
_minimize_newtoncg(fun, x0, args=(), jac=None, hess=None, hessp=None, callback=None, xtol=1e-05, eps=1.4901161193847656e-08, maxiter=None, disp=False, return_all=False, **unknown_options)

Note that the :None:None:`jac` parameter (Jacobian) is required.

Parameters

disp : bool

Set to True to print convergence messages.

xtol : float

Average relative error in solution :None:None:`xopt` acceptable for convergence.

maxiter : int

Maximum number of iterations to perform.

eps : float or ndarray

If hessp is approximated, use this value for the step size.

return_all : bool, optional

Set to True to return a list of the best solution at each of the iterations.

Minimization of scalar function of one or more variables using the Newton-CG algorithm.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/optimize/_optimize.py#1826
type: <class 'function'>
Commit: