scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
_nonmonotone_line_search_cheng(f, x_k, d, f_k, C, Q, eta, gamma=0.0001, tau_min=0.1, tau_max=0.5, nu=0.85)

Parameters

f : callable

Function returning a tuple (f, F) where f is the value of a merit function and F the residual.

x_k : ndarray

Initial position.

d : ndarray

Search direction.

f_k : float

Initial merit function value.

C, Q : float

Control parameters. On the first iteration, give values Q=1.0, C=f_k

eta : float

Allowed merit function increase, see

nu, gamma, tau_min, tau_max : float, optional

Search parameters, see

Returns

alpha : float

Step length

xp : ndarray

Next position

fp : float

Merit function value at next position

Fp : ndarray

Residual at next position

C : float

New value for the control parameter C

Q : float

New value for the control parameter Q

Nonmonotone line search from [1]

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/_linesearch.py#802
type: <class 'function'>
Commit: