File Exchange

image thumbnail

Nelder and Mead Simplex Algorithm

version 1.0.0 (2.14 KB) by dila
Multi dimensional search method, Nelder and Mead Simplex Algorithm

47 Downloads

Updated 06 Dec 2018

View License

Matlab script finds the extremum of the user defined functions, with Nedler and Mead Simplex Algorithm.

One must define the function first with a certain name, as a matlab function (anyFunctionName.m).

User inputs:

* Number of dimensions of the problem
* Starting point vector
* alpha, beta, gamma
* delta
* lambda
* eps1, eps2

Recommended values for the parameters are also supplied within the script.

Cite As

dila (2019). Nelder and Mead Simplex Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/69636-nelder-and-mead-simplex-algorithm), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

can you give one sample example for this code

I tried using this code and it's working well with 1 independent variable but m not able to use it with two variables.

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor