pygsti.optimize.fmin_simplex¶
-
pygsti.optimize.
fmin_simplex
(fn, x0, slide=1.0, tol=1e-08, maxiter=1000)¶ Minimizes a function using a custom simplex implmentation.
This was used primarily to check scipy’s Nelder-Mead method and runs much slower, so there’s not much reason for using this method.
Parameters: - fn (function) – The function to minimize.
- x0 (numpy array) – The starting point (argument to fn).
- slide (float, optional) – Affects initial simplex point locations
- tol (float, optional) – Relative tolerance as a convergence criterion.
- maxiter (int, optional) – Maximum iterations.
Returns: Includes members ‘x’, ‘fun’, ‘success’, and ‘message’.
Return type: scipy.optimize.Result object