Given a function and distinct initial points, search in the downhill direction (as defined by the initital points) and return new points xa, xb, xc that bracket the minimum of the function f(xa) > f(xb) < f(xc). It doesn’t always mean that obtained solution will satisfy xa<=x<=xb
Parameters : | func : callable f(x,*args)
xa, xb : float
args : tuple
grow_limit : float
maxiter : int
|
---|---|
Returns : | xa, xb, xc : float
fa, fb, fc : float
funcalls : int
|