scipy 1.8.0 Pypi GitHub Homepage
Other Docs
Parameters
_minimize_cg(fun, x0, args=(), jac=None, callback=None, gtol=1e-05, norm=inf, eps=1.4901161193847656e-08, maxiter=None, disp=False, return_all=False, finite_diff_rel_step=None, **unknown_options)

Parameters

disp : bool

Set to True to print convergence messages.

maxiter : int

Maximum number of iterations to perform.

gtol : float

Gradient norm must be less than :None:None:`gtol` before successful termination.

norm : float

Order of norm (Inf is max, -Inf is min).

eps : float or ndarray

If :None:None:`jac is None` the absolute step size used for numerical approximation of the jacobian via forward differences.

return_all : bool, optional

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

finite_diff_rel_step : None or array_like, optional

If :None:None:`jac in ['2-point', '3-point', 'cs']` the relative step size to use for numerical approximation of the jacobian. The absolute step size is computed as h = rel_step * sign(x0) * max(1, abs(x0)) , possibly adjusted to fit into the bounds. For method='3-point' the sign of :None:None:`h` is ignored. If None (default) then step is selected automatically.

Minimization of scalar function of one or more variables using the conjugate gradient 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#1568
type: <class 'function'>
Commit: