scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParameters
_minimize_lbfgsb(fun, x0, args=(), jac=None, bounds=None, disp=None, maxcor=10, ftol=2.220446049250313e-09, gtol=1e-05, eps=1e-08, maxfun=15000, maxiter=15000, iprint=-1, callback=None, maxls=20, finite_diff_rel_step=None, **unknown_options)

Notes

The option :None:None:`ftol` is exposed via the scipy.optimize.minimize interface, but calling scipy.optimize.fmin_l_bfgs_b directly exposes :None:None:`factr`. The relationship between the two is ftol = factr * numpy.finfo(float).eps . I.e., :None:None:`factr` multiplies the default machine floating-point precision to arrive at :None:None:`ftol`.

Parameters

disp : None or int

If :None:None:`disp is None` (the default), then the supplied version of :None:None:`iprint` is used. If :None:None:`disp is not None`, then it overrides the supplied version of :None:None:`iprint` with the behaviour you outlined.

maxcor : int

The maximum number of variable metric corrections used to define the limited memory matrix. (The limited memory BFGS method does not store the full hessian but uses this many terms in an approximation to it.)

ftol : float

The iteration stops when (f^k - f^{k+1})/max{|f^k|,|f^{k+1}|,1} <= ftol .

gtol : float

The iteration will stop when max{|proj g_i | i = 1, ..., n} <= gtol where pg_i is the i-th component of the projected gradient.

eps : float or ndarray

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

maxfun : int

Maximum number of function evaluations.

maxiter : int

Maximum number of iterations.

iprint : int, optional

Controls the frequency of output. iprint < 0 means no output; iprint = 0 print only one line at the last iteration; 0 < iprint < 99 print also f and |proj g| every iprint iterations; iprint = 99 print details of every iteration except n-vectors; iprint = 100 print also the changes of active set and final x; iprint > 100 print details of every iteration including x and g.

callback : callable, optional

Called after each iteration, as callback(xk) , where xk is the current parameter vector.

maxls : int, optional

Maximum number of line search steps (per iteration). Default is 20.

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.

Minimize a scalar function of one or more variables using the L-BFGS-B 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/_lbfgsb_py.py#212
type: <class 'function'>
Commit: