{ } Raw JSON

bundles / scipy 1.17.1 / scipy / optimize / _dcsrch / DCSRCH / __call__

function

scipy.optimize._dcsrch:DCSRCH.__call__

source: /scipy/optimize/_dcsrch.py :201

Signature

def   __call__ ( self alpha1 phi0 = None derphi0 = None maxiter = 100 )

Parameters

alpha1 : float

alpha1 is the current estimate of a satisfactory step. A positive initial estimate must be provided.

phi0 : float

the value of phi at 0 (if known).

derphi0 : float

the derivative of derphi at 0 (if known).

maxiter : int

Returns

alpha : float

Step size, or None if no suitable step was found.

phi : float

Value of phi at the new point alpha.

phi0 : float

Value of phi at alpha=0.

task : bytes

On 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__