bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _dcsrch / DCSRCH / __call__
function
scipy.optimize._dcsrch:DCSRCH.__call__
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_dcsrch.py:201
Signature
def __call__(self, alpha1, phi0 = None, derphi0 = None, maxiter = 100)Parameters
alpha1: floatalpha1 is the current estimate of a satisfactory step. A positive initial estimate must be provided.
phi0: floatthe value of phi at 0 (if known).
derphi0: floatthe derivative of
derphiat 0 (if known).maxiter: int
Returns
alpha: floatStep size, or None if no suitable step was found.
phi: floatValue of phi at the new point alpha.
phi0: floatValue of phi at
alpha=0.task: bytesOn exit task indicates status information.
If task[:4] == b'CONV' then the search is successful.
If task[:4] == b'WARN' then the subroutine is not able to satisfy the convergence conditions. The exit value of stp contains the best point found during the search.
If task[:5] == b'ERROR' then there is an error in the input arguments.
Aliases
scipy.optimize._dcsrch.DCSRCH.__call__