Nelder–Mead method

An iteration of the Nelder-Mead method over two-dimensional space.
Search over the Rosenbrock banana function
Search over Himmelblau's function
Nelder–Mead minimum search of Simionescu's function. Simplex vertices are ordered by their value, with 1 having the lowest (best) value.

The Nelder–Mead method (also downhill simplex method, amoeba method, or polytope method) is a numerical method used to find the minimum or maximum of an objective function in a multidimensional space. It is a direct search method (based on function comparison) and is often applied to nonlinear optimization 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[1] on problems that can be solved by alternative methods.[2]

The Nelder–Mead technique was proposed by John Nelder and Roger Mead in 1965,[3] as a development of the method of Spendley et al.[4]

Overview

The method uses the concept of a simplex, which is a special polytope of n + 1 vertices in n dimensions. Examples of simplices include a line segment in one-dimensional space, a triangle in two-dimensional space, 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. Typical implementations minimize functions, and we maximize by minimizing .

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. Simulation of such complicated structures is often extremely computationally expensive to run, possibly taking upwards of hours per execution. The Nelder–Mead method requires, in the original variant, no more than two evaluations per iteration, except for the shrink operation described later, which is attractive compared to some other direct-search optimization methods. However, the overall number of iterations to proposed optimum may be high.

Nelder–Mead in n dimensions maintains a set of n + 1 test points arranged as a simplex. It then extrapolates the behavior of the objective function measured at each test point in order to find a new test point and to replace one of the old test points with the new one, and so the technique progresses. The simplest approach 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. An intuitive explanation of the algorithm from "Numerical Recipes": [5]

The downhill simplex method now takes a series of steps, most steps just moving the point of the simplex where the function is largest (“highest point”) through the opposite face of the simplex to a lower point. These steps are called reflections, and they are constructed to conserve the volume of the simplex (and hence maintain its nondegeneracy). When it can do so, the method expands the simplex in one or another direction to take larger steps. When it reaches a “valley floor”, the method contracts itself in the transverse direction and tries to ooze down the valley. If there is a situation where the simplex is trying to “pass through the eye of a needle”, it contracts itself in all directions, pulling itself in around its lowest (best) 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.[1] Modern improvements over the Nelder–Mead heuristic have been known since 1979.[2]

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

(This approximates the procedure in the original Nelder–Mead article.)

Nelder–Mead method applied to the Rosenbrock function

We are trying to minimize the function , where . Our current test points are .

  1. Order according to the values at the vertices:
    Check whether method should stop. See Termination (sometimes called "convergence").
  2. Calculate , the centroid of all points except .
  3. Reflection
    Compute reflected point with .
    If the reflected point is better than the second worst, but not better than the best, i.e. ,
    then obtain a new simplex by replacing the worst point with the reflected point , and go to step 1.
  4. Expansion
    If the reflected point is the best point so far, ,
    then compute the expanded point with .
    If the expanded point is better than the reflected point, ,
    then obtain a new simplex by replacing the worst point with the expanded point and go to step 1;
    else obtain a new simplex by replacing the worst point with the reflected point and go to step 1.
  5. Contraction
    Here it is certain that . (Note that is second or "next" to the worst point.)
    If ,
    then compute the contracted point on the outside with .
    If the contracted point is better than the reflected point, i.e. ,
    then obtain a new simplex by replacing the worst point with the contracted point and go to step 1;
    Else go to step 6;
    If ,
    then compute the contracted point on the inside with .
    If the contracted point is better than the worst point, i.e. ,
    then obtain a new simplex by replacing the worst point with the contracted point and go to step 1;
    Else go to step 6;
  6. Shrink
    Replace all points except the best () with
    and go to step 1.

Note: , , and are respectively the reflection, expansion, contraction and shrink coefficients. Standard values are , , and .

For the reflection, since is the vertex with the higher associated value among the vertices, we can expect to find a lower value at the reflection of in the opposite face formed by all vertices except .

For the expansion, if the reflection point is the new minimum along the vertices, we can expect to find interesting values along the direction from to .

Concerning the contraction, if , we can expect that a better value will be inside the simplex formed by all the vertices .

Finally, the shrink handles the rare case that contracting away from the largest point increases , 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. However, Nash notes that finite-precision arithmetic can sometimes fail to actually shrink the simplex, and implemented a check that the size is actually reduced.[6]

Initial simplex

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. However, the original article suggested a simplex where an initial point is given as , with the others generated with a fixed step along each dimension in turn. Thus the method is sensitive to scaling of the variables that make up .

Termination

Criteria are needed to break the iterative cycle. Nelder and Mead used the sample standard deviation of the function values of the current simplex. If these fall below some tolerance, then the cycle is stopped and the lowest point in the simplex returned as a proposed optimum. Note that a very "flat" function may have almost equal function values over a large domain, so that the solution will be sensitive to the tolerance. Nash adds the test for shrinkage as another termination criterion.[6] Note that programs terminate, while iterations may converge.

See also

References

  1. ^ a b
    • Powell, Michael J. D. (1973). "On Search Directions for Minimization Algorithms". Mathematical Programming. 4: 193–201. doi:10.1007/bf01584660. S2CID 45909653.
    • McKinnon, K. I. M. (1999). "Convergence of the Nelder–Mead simplex method to a non-stationary point". SIAM Journal on Optimization. 9: 148–158. CiteSeerX 10.1.1.52.3900. doi:10.1137/S1052623496303482. (algorithm summary online).
  2. ^ a b
  3. ^ Nelder, John A.; R. Mead (1965). "A simplex method for function minimization". Computer Journal. 7 (4): 308–313. doi:10.1093/comjnl/7.4.308.
  4. ^ Spendley, W.; Hext, G. R.; Himsworth, F. R. (1962). "Sequential Application of Simplex Designs in Optimisation and Evolutionary Operation". Technometrics. 4 (4): 441–461. doi:10.1080/00401706.1962.10490033.
  5. ^ Press, W. H.; Teukolsky, S. A.; Vetterling, W. T.; Flannery, B. P. (2007). "Section 10.5. Downhill Simplex Method in Multidimensions". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8.
  6. ^ a b Nash, J. C. (1979). Compact Numerical Methods: Linear Algebra and Function Minimisation. Bristol: Adam Hilger. ISBN 978-0-85274-330-0.

Further reading

Read other articles:

English actor (1892–1967) Basil RathboneMCBasil Rathbone (1935)BornPhilip St. John Basil Rathbone(1892-06-13)13 June 1892Johannesburg, South African RepublicDied21 July 1967(1967-07-21) (aged 75)New York City, U.S.Resting placeFerncliff Cemetery Shrine of Memories, Hartsdale, New York, U.S.OccupationActorYears active1911–1967Spouses Ethel Marian Foreman ​ ​(m. 1914; div. 1926)​ Ouida Bergère ​(m. 1926)​ C…

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6] 得…

Orang Eropa Patriotik Melawan Islamisasi BaratPatriotische Europäer gegen die Islamisierung des AbendlandesSingkatanPegidaTanggal pendirian11 Oktober 2014TujuanAnti-IslamAnti-imigrasiPolitik sayap kananNasionalisme JermanLokasiDresden, JermanBahasa resmi JermanSitus webpegida.de Demonstrasi PEGIDA di Dresden pada tanggal 12 Januari 2015 Patriotische Europäer gegen die Islamisierung des Abendlandes (PEGIDA, dalam bahasa Indonesia Orang Eropa Patriotik Melawan Islamisasi Barat) adalah pergerakan…

نوكيا C5-00معلومات عامةالماركة نوكيا النوع هاتف ذكي الصانع نوكياالسعر المبدئي 320٬000 روبية إندونيسية[1] أهم التواريختاريخ الإصدار 2010الخصائصالمعالج الرئيسي 600 ميجا هرتزسعة التخزين 16 جيجابايتشريحة ذاكرة بطاقة ذاكرة رقمية آمنة نظام التشغيل سيمبيانالاتصال ناقل متسلسل عام، ب…

Political party in Serbia Not to be confused with Social Democratic Party of Serbia or Social Democratic Party (Serbia, 2002). Social Democratic Party Социјалдемократска странкаSocijaldemokratska strankaAbbreviationSDSPresidentBoris TadićGeneral SecretaryDragoslav LjubičićVice-PresidentVojislav JankovićFounderBoris TadićFounded14 June 2014 (2014-06-14)Split fromDemocratic PartyPreceded byNew Democratic Party — GreensHeadquartersRadoslava G…

Netralitas artikel ini dipertanyakan. Diskusi terkait dapat dibaca pada the halaman pembicaraan. Jangan hapus pesan ini sampai kondisi untuk melakukannya terpenuhi. (Pelajari cara dan kapan saatnya untuk menghapus pesan templat ini) Merah Putih beralih ke halaman ini. Untuk film tahun 2009, lihat Merah Putih (film). Republik Indonesia Nama Sang Merah Putih[1] Pemakaian Bendera dan bendera kapal nasional Perbandingan 2:3 Dipakai 10 November 1293 (sebagai Kerajaan Majapahit)17 Agustus 1945…

Le Puleycomune Le Puley – Veduta LocalizzazioneStato Francia Regione Borgogna-Franca Contea Dipartimento Saona e Loira ArrondissementChalon-sur-Saône CantoneBlanzy TerritorioCoordinate46°41′N 4°33′E46°41′N, 4°33′E (Le Puley) Superficie5,42 km² Abitanti95[1] (2009) Densità17,53 ab./km² Altre informazioniCod. postale71460 Fuso orarioUTC+1 Codice INSEE71363 CartografiaLe Puley Modifica dati su Wikidata · Manuale Le Puley è un comune francese di 9…

Gu Su Movements in contemporaryChinese political thought LiberalismAi WeiweiGu SuQin HuiXu JilinXu YouyuZhu XueqinZhang WeiyingWu JinglianLiu XiaoboFang FangHe WeifangZhang QianfanMao YushiLi Yinhe New ConservatismChen YuanWang HuningGan YangJiang ShigongWu JiaxiangXiao GongqinZheng YongnianHu Xijin New ConfucianismChen MingJiang QingKang XiaoguangYan XuetongDaniel A. Bell New LeftDai JinhuaGao MoboCui ZhiyuanLi MinqiWang HuiWang ShaoguangQiu ZhanxuanYue Xin Politics of ChinaSocialism with Chine…

Вальс фа мажор Композитор окончательно не установлен; среди предполагаемых авторов: Л. Н. Толстой, К. А. и И. А. Зыбины Тональность Фа мажор Продолжительность ок. 2 мин. Дата создания не позднее 1849 Место создания неизвестно Дата первой публикации 1912 Вальс фа мажор — музыкал…

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: List of political parties in Saint Kitts and Nevis – news · newspapers · books · scholar · JSTOR (August 2023) (Learn how and when to remove this message) Politics of Saint Kitts and Nevis Executive Monarch Charles III Governor-General Marcella Liburd Prime Minist…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يونيو 2019) أجيم رمضاني   معلومات شخصية الميلاد 3 مايو 1964   الوفاة 11 أبريل 1999 (34 سنة)   مواطنة ألبانيا  الحياة العملية المهنة كاتب  اللغات الألبانية  الخدمة ال…

Ne doit pas être confondu avec Fontanes (Lot). Cet article est une ébauche concernant une commune du Lot. Vous pouvez partager vos connaissances en l’améliorant (comment ?). Le bandeau {{ébauche}} peut être enlevé et l’article évalué comme étant au stade « Bon début » quand il comporte assez de renseignements encyclopédiques concernant la commune. Si vous avez un doute, l’atelier de lecture du projet Communes de France est à votre disposition pour vous aider. C…

Pirimicarb Names Preferred IUPAC name 2-(Dimethylamino)-5,6-dimethylpyrimidin-4-yl dimethylcarbamate Identifiers CAS Number 23103-98-2 Y 3D model (JSmol) Interactive image ChEBI CHEBI:8248 Y ChemSpider 29348 Y ECHA InfoCard 100.041.285 KEGG C11079 Y PubChem CID 31645 UNII 1I93PS935T Y CompTox Dashboard (EPA) DTXSID1032569 InChI InChI=1S/C11H18N4O2/c1-7-8(2)12-10(14(3)4)13-9(7)17-11(16)15(5)6/h1-6H3 NKey: YFGYUFNIOHWBOB-UHFFFAOYSA-N NInChI=1/C11H18N4O2/c1-7…

Proud Mary Сингл Creedence Clearwater Revivalс альбома Bayou Country Сторона «Б» «Born on the Bayou» Дата выпуска январь 1969[1][2] Формат 7 (45 об/мин) Дата записи 1968 Место записи RCA Studios в Голливуде (Калифорния)[3] Жанры рутс-рок, свомп-поп[4] Язык английский Длительность 3:07 Автор песни Джон Фогер…

This is a list of University of Dhaka alumni and faculty members. Politicians Sheikh Mujibur Rahman, 1st and 4th President and Father of the Nation of Bangladesh Syed Nazrul Islam, former acting President of Bangladesh during the Bangladesh Liberation War in 1971 Mohammad Mohammadullah, 3rd President of Bangladesh Khondaker Mostaq Ahmad, 5th President of Bangladesh A. F. M. Ahsanuddin Chowdhury, 9th President of Bangladesh Hussain Muhammad Ershad, 10th President of Bangladesh Abdur Rahman Biswas…

IglaLoạiHệ thống phòng không vác vaiNơi chế tạo Liên XôLược sử hoạt độngPhục vụ1983 đến naySử dụng bởi Liên Xô Nga Việt Nam Lào Cộng hòa Dân chủ Nhân dân Triều TiênLược sử chế tạoNhà sản xuấtKBMGiá thành60.000–80.000 USD/quả (2003)Thông sốKhối lượng10.8 kg (24 lb)Chiều dài1.574 m (5.16 ft)Đường kính72 mmĐầu nổ1.17 kg (2.6 lb) với lượng nổ 390 g (14 oz)Cơ cấu n…

千葉火力発電所 千葉火力発電所の煙突 千葉県における千葉火力発電所の位置正式名称 株式会社JERA千葉火力発電所国 日本所在地 千葉県千葉市中央区蘇我町2-1377座標 北緯35度33分52.2秒 東経140度06分20.2秒 / 北緯35.564500度 東経140.105611度 / 35.564500; 140.105611 (千葉火力発電所)座標: 北緯35度33分52.2秒 東経140度06分20.2秒 / 北緯35.564500度 東経140.1056…

United States historic placeBaltimore College of Dental SurgeryU.S. National Register of Historic Places Show map of BaltimoreShow map of MarylandShow map of the United StatesLocation429-433 N. Eutaw St., Baltimore, MarylandCoordinates39°17′41″N 76°37′16″W / 39.29472°N 76.62111°W / 39.29472; -76.62111Arealess than one acreBuiltc. 1870 (1870)Architectural styleLate Victorian, ItalianateNRHP reference No.87000697[1]Added to NRHPMay 8,…

Flag carrier of Rwanda RwandAir IATA ICAO Callsign WB RWD RWANDAIR Founded1 December 2002; 21 years ago (2002-12-01)Commenced operations27 April 2003; 21 years ago (2003-04-27)Operating basesKigali International AirportCadjehoun Airport[1]Kotoka International Airport[2]Fleet size13Destinations25[3]Parent companyGovernment of RwandaHeadquartersKigali, RwandaKey people Godfrey KaberaChairman[4] Yvonne Manzi MakoloChief Executive O…

Dataran Tinggi PutoranaSitus Warisan Dunia UNESCOKoordinat69°02′49″N 94°09′29″E / 69.04694°N 94.15806°E / 69.04694; 94.15806 Dataran Tinggi Putorana (bahasa Rusia: Плато Путорана, translit. Plato Putorana) adalah dataran tinggi basalt yang terletak di ujung barat laut Dataran Tinggi Siberia Tengah dan di sebelah selatan Semenanjung Taymyr. Gunung tertinggi di kawasan ini adalah Gunung Kamen dengan ketinggian sebesar 1.700 m di atas permuk…