scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParameters

This method is also known as "Broyden's bad method".

Notes

This algorithm implements the inverse Jacobian Quasi-Newton update

$$H_+ = H + (dx - H df) df^\dagger / ( df^\dagger df)$$

corresponding to Broyden's second method.

Parameters

%(params_basic)s :
%(broyden_params)s :
%(params_extra)s :

Find a root of a function, using Broyden's second Jacobian approximation.

See Also

root

Interface to root finding algorithms for multivariate functions. See method=='broyden2' in particular.

Examples

The following functions define a system of nonlinear equations

>>> def fun(x):
...  return [x[0] + 0.5 * (x[0] - x[1])**3 - 1.0,
...  0.5 * (x[1] - x[0])**3 + x[1]]

A solution can be obtained as follows.

>>> from scipy import optimize
... sol = optimize.broyden2(fun, [0, 0])
... sol array([0.84116365, 0.15883529])
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/_nonlin.py#915
type: <class 'type'>
Commit: