Usage: |
{xmin,fmin,iter} = nmmin(func,x0{,maxiter, ftol, vtol})
|
Input: |
| func | string, name of the function to minimize
|
| x0 | n x 1 vector, initial estimate of minimum
|
| maxiter | (optional) scalar, maximal number of iterations
default is maxiter = 500
|
| ftol | (optional) scalar, convergence tolerance of the function value
default is ftol = 1e-7
|
| vtol | (optional) scalar, convergence tolerance of the value
of the arguments; default is vtol = 1e-7
|
Output: |
| xmin | n x 1 vector, minimum of the function |
| fmin | scalar, minimal function value |
| iter | scalar, number of performed iterations |