Minimize a function over a given range by brute force.
Parameters : | func : callable f(x,*args)
ranges : tuple
args : tuple
Ns : int
full_output : bool
finish : callable, optional
|
---|---|
Returns : | x0 : ndarray
fval : int
grid : tuple
Jout : ndarray
|
Notes
The range is respected by the brute force minimization, but if the finish keyword specifies another optimization function (including the default fmin), the returned value may still be (just) outside the range. In order to ensure the range is specified, use finish=None.