bundles / scipy 1.17.1 / scipy / optimize / _optimize / _minimize_neldermead
function
scipy.optimize._optimize:_minimize_neldermead
Signature
def _minimize_neldermead ( func , x0 , args = () , callback = None , maxiter = None , maxfev = None , disp = False , return_all = False , initial_simplex = None , xatol = 0.0001 , fatol = 0.0001 , adaptive = False , bounds = None , ** unknown_options ) Summary
Minimization of scalar function of one or more variables using the Nelder-Mead algorithm.
Parameters
disp: boolSet to True to print convergence messages.
maxiter, maxfev: intMaximum allowed number of iterations and function evaluations. Will default to
N*200, whereNis the number of variables, if neithermaxiterormaxfevis set. If bothmaxiterandmaxfevare set, minimization will stop at the first reached.return_all: bool, optionalSet to True to return a list of the best solution at each of the iterations.
initial_simplex: array_like of shape (N + 1, N)Initial simplex. If given, overrides
x0.initial_simplex[j,:]should contain the coordinates of the jth vertex of theN+1vertices in the simplex, whereNis the dimension.xatol: float, optionalAbsolute error in xopt between iterations that is acceptable for convergence.
fatol: number, optionalAbsolute error in func(xopt) between iterations that is acceptable for convergence.
adaptive: bool, optionalAdapt algorithm parameters to dimensionality of problem. Useful for high-dimensional minimization [1].
bounds: sequence or `Bounds`, optionalBounds on variables. There are two ways to specify the bounds:
Instance of Bounds class.
Sequence of
(min, max)pairs for each element inx. None is used to specify no bound.
Note that this just clips all vertices in simplex based on the bounds.
Aliases
-
scipy.optimize._minimize._minimize_neldermead