Minimize a function using the downhill simplex algorithm.
Parameters: |
|
---|---|
Returns: | (xopt, {fopt, iter, funcalls, warnflag})
|
Other Parameters:
- xtol : float
- Relative error in xopt acceptable for convergence.
- ftol : number
- Relative error in func(xopt) acceptable for convergence.
- maxiter : int
- Maximum number of iterations to perform.
- maxfun : number
- Maximum number of function evaluations to make.
- full_output : bool
- Set to True if fval and warnflag outputs are desired.
- disp : bool
- Set to True to print convergence messages.
- retall : bool
- Set to True to return list of solutions at each iteration.
Notes: | Uses a Nelder-Mead simplex algorithm to find the minimum of function of one or more variables. |
---|