Stochastic drift: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Babakmd
en>Atama
→‎See also: Removed deleted entry.
Line 1: Line 1:
{| class="infobox bordered" style="width: 22em; text-align: left; font-size: 95%;"
The name of the writer is Jayson. Credit authorising is how he tends to make money. My spouse and I live in Mississippi and I adore each working day living here. What me and my family love is performing ballet but I've been using on new things lately.<br><br>Stop by my blog; online reader ([http://www.seekavideo.com/playlist/2199/video/ http://www.seekavideo.com])
|-
| colspan="2" style="text-align:center;" | [[Image:Nelder Mead1.gif|320px|]]
|-
| colspan="2" style="text-align:center;" | [[Image:Nelder Mead2.gif|320px|]]
'''Nelder–Mead simplex search over the [[Rosenbrock function|Rosenbrock banana function]] '''(above)''' and [[Himmelblau's function]]''' (below)<br>
|-
|}
 
:''See [[simplex algorithm]] for [[George B. Dantzig|Dantzig's]] <!--  [[numerical analysis|numerical]] ? --> algorithm for the problem of [[linear programming|linear optimization]].''
 
The '''Nelder–Mead method''' or '''downhill simplex method''' or '''amoeba method''' is a commonly used nonlinear [[Optimization (mathematics)|optimization]] technique, which is a well-defined [[numerical method]] for problems for which derivatives may not be known. However, the Nelder–Mead technique is a [[heuristic]] search method that can converge to non-stationary points<ref name="PM">
* {{cite journal | last1 = Powell | first1 = Michael J. D. | authorlink = Michael J. D. Powell | year = 1973 | title = On Search Directions for Minimization Algorithms | url = | journal = Mathematical Programming | volume = 4 | issue = | pages = 193–201 }}
* {{ cite journal | last = McKinnon | first = K.I.M. | title =Convergence of the Nelder–Mead simplex method to a non-stationary point | journal =SIAM J Optimization | year = 1999 | volume = 9 | pages =148–158 | doi = 10.1137/S1052623496303482}} (algorithm summary online).
</ref> on problems that can be solved by alternative methods.<ref name="YKL">
*Yu, Wen Ci. 1979. “Positive basis and a class of direct search techniques”. ''Scientia Sinica'' [''Zhongguo Kexue'']: 53—68.
*Yu, Wen Ci. 1979. “The convergent property of the simplex evolutionary technique”. ''Scientia Sinica'' [''Zhongguo Kexue'']: 69–77.
* {{ cite journal | last = Kolda | first = Tamara G. | coauthors = Lewis, Robert Michael; Torczon, Virginia | year =2003 | title = Optimization by direct search: new perspectives on some classical and modern methods | journal = SIAM Rev. | volume =45 | pages = 385–482 | doi = 10.1137/S003614450242889}}
* {{ cite journal | last = Lewis | first = Robert Michael | coauthors = Shepherd, Anne; Torczon, Virginia | year = 2007 | title = Implementing generating set search methods for linearly constrained minimization | journal = SIAM J. Sci. Comput. | volume = 29 | pages = 2507–2530 | doi = 10.1137/050635432}}
</ref>
 
The Nelder–Mead technique was proposed by [[John Nelder]] & Roger Mead (1965) <ref name="NM">
{{cite journal | last = Nelder | first = John A. | coauthors = R. Mead | title = A simplex method for function minimization | journal = Computer Journal | volume = 7 | year = 1965 | pages = 308–313 | doi =  10.1093/comjnl/7.4.308}}</ref> and is a technique for minimizing an [[objective function]] in a many-dimensional [[space]].
 
== Overview ==
The method uses the concept of a [[simplex]], which is a special [[polytope]] of ''N''&nbsp;+&nbsp;1 vertices in ''N'' dimensions.  Examples of simplices include a line segment on a line, a triangle on a plane, a [[tetrahedron]] in three-dimensional space and so forth.
 
The method approximates a local optimum of a problem with ''N'' variables when the objective function varies smoothly and is [[unimodal]].
 
For example, a suspension bridge engineer has to choose how thick each strut, cable, and pier must be.  These elements are interdependent, but it is not easy to visualize the impact of changing any specific element.  The engineer can use the Nelder–Mead method to generate trial designs which are then tested on a large computer model. As each run of the simulation is expensive, it is important to make good decisions about where to look.
 
Nelder–Mead generates a new test position by extrapolating the behavior of the objective function measured at each test point arranged as a simplex.  The algorithm then chooses to replace one of these test points with the new test point and so the technique progresses.  The simplest step is to replace the worst point with a point reflected through the [[centroid]] of the remaining ''N'' points.  If this point is better than the best current point, then we can try stretching exponentially out along this line.  On the other hand, if this new point isn't much better than the previous value, then we are stepping across a valley, so we shrink the simplex towards a better point.
 
Unlike modern optimization methods, the Nelder–Mead heuristic can converge to a non-stationary point unless the problem satisfies stronger conditions than are necessary for modern methods.<ref name="PM" /> <!--  NONALGORITHM follows: The standard approach to handle this is to restart the algorithm with a new simplex starting at the current best value.  This can be extended in a similar way to [[simulated annealing]] to escape small local minima. --> Modern improvements over the Nelder–Mead heuristic have been known since 1979.<ref name="YKL" />
 
Many variations exist depending on the actual nature of the problem being solved. A common variant uses a constant-size, small simplex that roughly follows the gradient direction (which gives steepest descent). Visualize a small triangle on an elevation map flip-flopping its way down a valley to a local bottom.  This method is also known as the Flexible Polyhedron Method. This, however, tends to perform poorly against the method described in this article because it makes small, unnecessary steps in areas of little interest.
 
== One possible variation of the NM algorithm ==
 
* '''1. Order''' according to the values at the vertices:
:: <math>f(\textbf{x}_{1}) \leq f(\textbf{x}_{2}) \leq \cdots \leq f(\textbf{x}_{n+1})</math>
 
* '''2.''' Calculate <math>\textbf{x}_{o}</math>, the center of gravity of all points except <math>\textbf{x}_{n+1}</math>.
 
* '''3. Reflection'''
:: Compute reflected point <math>\textbf{x}_r = \textbf{x}_o + \alpha (\textbf{x}_o - \textbf{x}_{n+1})</math>
:: If the reflected point is better than the second worst, but not better than the best, i.e.: <math>f(\textbf{x}_{1}) \leq f(\textbf{x}_{r}) < f(\textbf{x}_{n})</math>,
:: then obtain a new simplex by replacing the worst point <math>\textbf{x}_{n+1}</math> with the reflected point <math>\textbf{x}_{r}</math>, and go to step 1.
 
* '''4. Expansion'''
:: If the reflected point is the best point so far, <math>f(\textbf{x}_{r}) < f(\textbf{x}_{1}), </math>
:: then compute the expanded point <math>\textbf{x}_{e} = \textbf{x}_o + \gamma (\textbf{x}_o - \textbf{x}_{n+1})</math>
::: If the expanded point is better than the reflected point, <math>f(\textbf{x}_{e}) < f(\textbf{x}_{r})</math>
::: then obtain a new simplex by replacing the worst point <math>\textbf{x}_{n+1}</math> with the expanded point <math>\textbf{x}_{e}</math>, and go to step 1.
::: Else obtain a new simplex by replacing the worst point <math>\textbf{x}_{n+1}</math> with the reflected point <math>\textbf{x}_{r}</math>, and go to step 1.
:: Else (i.e. reflected point is not better than second worst) continue at step 5.
 
* '''5. Contraction'''
:: Here, it is certain that <math>f(\textbf{x}_{r}) \geq f(\textbf{x}_{n}) </math>
:: Compute contracted point <math> \textbf{x}_{c} = \textbf{x}_o+\rho(\textbf{x}_{o}-\textbf{x}_{n+1})</math>
::: If the contracted point is better than the worst point, i.e. <math>f(\textbf{x}_{c}) < f(\textbf{x}_{n+1})</math>
::: then obtain a new simplex by replacing the worst point <math>\textbf{x}_{n+1}</math> with the contracted point <math>\textbf{x}_{c}</math>, and go to step 1.
:: Else go to step 6.
 
* '''6. Reduction'''
:: For all but the best point, replace the point with
::<math>\textbf{x}_{i} = \textbf{x}_{1} + \sigma(\textbf{x}_{i} - \textbf{x}_{1}) \text{ for all i } \in\{2,\dots,n+1\}</math>. go to step 1.
 
'''Note''': <math>\alpha</math>, <math>\gamma</math>, <math>\rho</math> and <math>\sigma</math> are respectively the reflection, the expansion, the contraction and the shrink coefficient. Standard values are <math>\alpha =1</math>, <math>\gamma =2</math>, <math>\rho =-1/2</math> and <math>\sigma =1/2</math>.
 
For the '''reflection''', since <math>\textbf{x}_{n+1}</math> is the vertex with the higher associated value among the vertices, we can expect to find a lower value at the reflection of <math>\textbf{x}_{n+1}</math> in the opposite face formed by all vertices point <math>\textbf{x}_{i}</math> except <math>\textbf{x}_{n+1}</math>.
 
For the '''expansion''', if the reflection point <math>\textbf{x}_{r}</math> is the new minimum along the vertices we can expect to find interesting values along the direction from <math>\textbf{x}_{o}</math> to <math>\textbf{x}_{r}</math>.
 
Concerning the '''contraction''': If <math>f(\textbf{x}_{r}) > f(\textbf{x}_{n})</math> we can expect that a better value will be inside the simplex formed by all the vertices <math>\textbf{x}_{i}</math>.
 
Finally, the '''reduction''' handles the rare case that contracting away from the largest point increases <math>f</math>, something that cannot happen sufficiently close to a non-singular minimum. In that case we contract towards the lowest point in the expectation of finding a simpler landscape.
 
The initial simplex is important, indeed, a too small initial simplex can lead to a local search, consequently the NM can get more easily stuck. So this simplex should depend on the nature of the problem.
 
== See also ==
* [[Derivative-free optimization]]
* [[COBYLA]]
* [[NEWUOA]]
* [[LINCOA]]
* [[Conjugate gradient method]]
* [[Levenberg–Marquardt algorithm]]
* Broyden–Fletcher–Goldfarb–Shanno or [[BFGS method]]
* [[Differential evolution]]
* [[Pattern search (optimization)]]
 
==References==
<references/>
 
=== Further reading ===
 
* Avriel, Mordecai (2003). ''Nonlinear Programming: Analysis and Methods.'' Dover Publishing. ISBN 0-486-43227-0.
 
*Coope, I. D.; C.J. Price, 2002. “Positive bases in numerical optimization”, ''Computational Optimization & Applications'', Vol. 21, No. 2, pp.&nbsp;169–176, 2002.
*{{Cite book | last1=Press | first1=WH | last2=Teukolsky | first2=SA | last3=Vetterling | first3=WT | last4=Flannery | first4=BP | year=2007 | title=Numerical Recipes: The Art of Scientific Computing | edition=3rd | publisher=Cambridge University Press |  publication-place=New York | isbn=978-0-521-88068-8 | chapter=Section 10.5. Downhill Simplex Method in Multidimensions | chapter-url=http://apps.nrbook.com/empanel/index.html#pg=502}}
 
==External links==
* [http://www.boomer.org/c/p3/c11/c1106.html Nelder–Mead (Simplex) Method]
* [http://www.brnt.eu/phd/node10.html#SECTION00622200000000000000  Nelder–Mead (Downhill Simplex) explanation and visualization with the Rosenbrock banana function]
* [http://math.fullerton.edu/mathews/n2003/NelderMeadMod.html Nelder–Mead  Search for a Minimum]
*[http://people.sc.fsu.edu/~burkardt/m_src/asa047/nelmin.m John Burkardt: Nelder–Mead code in Matlab] - note that a variation of the Nelder–Mead method is also implemented by the Matlab function fminsearch.
*[http://pricing-option.com/calibration_sabr.aspx Nelder–Mead online for the calibration of the SABR model] - Application in Finance.
*[http://people.fsv.cvut.cz/~svobodal/sova/ SOVA 1.0 (freeware)] - Simplex Optimization for Various Applications 
* [http://www.berkutec.com] - HillStormer, a practical tool for nonlinear, multivariate and constrained Simplex Optimization by Nelder Mead.
 
{{Optimization algorithms}}
 
{{DEFAULTSORT:Nelder-Mead method}}
[[Category:Optimization algorithms and methods]]
[[Category:Operations research]]

Revision as of 19:55, 4 March 2014

The name of the writer is Jayson. Credit authorising is how he tends to make money. My spouse and I live in Mississippi and I adore each working day living here. What me and my family love is performing ballet but I've been using on new things lately.

Stop by my blog; online reader (http://www.seekavideo.com)