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. ^
  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:

1961 Japanese action film Hepcat in the Funky HatFilm posterDirected byKinji FukasakuStarringSonny ChibaProductioncompaniesNew Toei TokyoToei CompanyDistributed byToei CompanyRelease dateAugust 5, 1961Running time53 minutesCountryJapanLanguageJapanese Hepcat in the Funky Hat (ファンキーハットの快男児, Funky Hat no kaidanji) is a 1961 action comedy film directed by Kinji Fukasaku and starring Sonny Chiba. It was followed by a sequel, Hepcat in the Funky Hat: The 20,000,000 Yen Arm, wh…

Francesco Maria Tarugi (27 Agustus 1525 – 11 Juni 1608) adalah seorang kardinal asal Italia. Ia berasal dari keluarga bangsawan. Pranala luar http://webdept.fiu.edu/~mirandas/bios1596.htm#Tarugi Diarsipkan 2016-03-07 di Wayback Machine.

This is an incomplete list that refers to those who were not from the Ottoman Empire, but later served the country. This may be militarily, as a diplomat, a spy, or any other way. Foreigners employed by the Sublime Porte, often renegades and refugees, were diverse in their ethnic origins, generally hailing from aristocratic families. Typically high-ranking individuals in Ottoman society, they were regarded as invaluable by the Sultan, and were therefore generously rewarded for their services. …

Cet article est une ébauche concernant le climat. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Zones de climat continental Le climat continental, selon la classification de Köppen (Dfa, Dfb, Dfc, Dfd, Dsa, Dsb, Dsc, Dsd, Dwa, Dwb, Dwc et Dwd) est un climat qui concerne des régions éloignées du littoral (façades occidentales des continents) ou recevant les vents et précipitations de l'intérieur du continen…

Politeknik Negeri Ujung PandangLogo PNUPNama sebelumnyaPoliteknik Universitas HasanuddinJenisPerguruan Tinggi Negeri Politeknik NegeriDidirikan1987DirekturProf. Ir. Muhammad Anshar, M.Si., Ph.D.Jumlah mahasiswa3.424 orangLokasiKota Makassar, Sulawesi Selatan, IndonesiaAlamatJl. Perintis Kemerdekaan KM. 10 (Kampus I) Jl. Tamalanrea Raya (BTP) (Kampus II)Warna  HitamNama julukanKampus Hitam, Poltek, PNUPSitus webhttp://www.poliupg.ac.id/ Politeknik Negeri Ujung Pandang atau biasa disingkat PN…

Singapura Artikel ini adalah bagian dari seri Politik dan KetatanegaraanSingapura Konstitusi Eksekutif Presiden Halimah Yacob Pemerintahan Perdana Menteri Lee Hsien Loong Deputi PM Teo Chee Hean Tharman Shanmugaratnam Kabinet Organisasi pemerintahan Badan legislatif Presiden Halimah Yacob Parlemen Ketua: Tan Chuan-Jin Daerah pemilihan Anggota Parlemen (AP) AP bukan daerah pemilihan Pencalonan AP Partai politik Lembaga yudikatif Ketua MA: Sundaresh Menon Mahkamah Agung Pengadilan Banding Pengadil…

Dil Dhadakne DoPoster rilis teatrikalSutradaraZoya AkhtarProduser Ritesh Sidhwani Farhan Akhtar Skenario Reema Kagti Zoya Akhtar Pemeran Anil Kapoor Shefali Shah Priyanka Chopra Ranveer Singh Anushka Sharma Farhan Akhtar NaratorAamir KhanPenata musikShankar-Ehsaan-LoySinematograferCarlos CatalanPenyunting Anand Subaya Manan Mehta Perusahaanproduksi Excel Entertainment Junglee Pictures DistributorEros InternationalTanggal rilis 05 Juni 2015 (2015-06-05) Durasi173 menit[1]Negara…

ExistenceEpisode The X-FilesNomor episodeMusim 8Episode 21SutradaraKim MannersPenulisChris CarterKode produksi8ABX21Tanggal siar20 Mei 2001Durasi44 menitKronologi episode ← SebelumnyaEssence Selanjutnya →Nothing Important Happened Today Existence adalah episode kedua puluh satu dan terakhir dari musim kedelapan dari serial televisi fiksi ilmiah The X-Files dan episode ke-182 secara keseluruhan. Episode tersebut pertama kali disiarkan dalam saluran Fox di Amerika Serikat pada 2…

1965 film by Norman Taurog Sergeant DeadheadDirected byNorman TaurogWritten byLouis M. HeywardProduced byJames H. NicholsonSamuel Z. ArkoffStarringFrankie AvalonDeborah WalleyCesar RomeroFred ClarkGale GordonReginald GardinerHarvey LembeckDonna LorenJohn AshleyPat ButtramBuster KeatonEve ArdenCinematographyFloyd CrosbyEdited byRonald SinclairFred R. Feitshans Jr.Eve NewmanMusic byLes BaxterProductioncompanyAlta Vista ProductionsDistributed byAmerican International PicturesRelease date August…

Chemical compound Sodium benzoate Skeletal formula Ball-and-stick model of part of the crystal structure Ball-and-stick model of packing in the crystal structure Names Preferred IUPAC name Sodium benzoate Other names E211benzoate of soda Identifiers CAS Number 532-32-1 Y 3D model (JSmol) Interactive image ChEBI CHEBI:113455 Y ChEMBL ChEMBL1356 Y ChemSpider 10305 Y ECHA InfoCard 100.007.760 E number E211 (preservatives) PubChem CID 517055 RTECS number DH6650000 UNII OJ245FE5EU…

Administrative area, ceremonial county and region of England This article is about the administrative region and ceremonial county. It is not to be confused with the City of London, Greater London Built-up Area, or the London metropolitan area. For other uses, see London (disambiguation). Ceremonial county and region in EnglandGreater London andLondon (region)Ceremonial county and regionThe City of London; City Hall in Newham, the headquarters of the Greater London Authority; and Hampstead Heath…

Gaspare Spontini Portrait de Gaspare Spontini en 1823 par Jean-Baptiste Aubry-Lecomte. Données clés Nom de naissance Gaspare Luigi Pacifico Spontini Naissance 14 novembre 1774 Maiolati  États pontificaux Décès 24 janvier 1851 (à 76 ans) Maiolati  États pontificaux Activité principale Compositeur Style Classicisme,Opéras Œuvres principales La Vestale modifier Gaspare Luigi Pacifico Spontini, comte de San Andrea (1844), est un compositeur italien né le 14 novembre 1774 à…

In matematica e fisica l'effetto farfalla è una locuzione che racchiude in sé la nozione maggiormente tecnica di dipendenza sensibile alle condizioni iniziali, presente nella teoria del caos. L'idea è che piccole variazioni nelle condizioni iniziali producano grandi variazioni nel comportamento a lungo termine di un sistema. Indice 1 Descrizione 1.1 Origini e sviluppo della teoria 1.2 Modelli matematici 2 Influenza culturale 2.1 Cinema e televisione 2.2 Libri 2.3 Fumetti 2.4 Musica 2.5 Anime …

This article is about the Indian ISRO scramjet. For the U.S. vehicle qualification class, see Advanced Technology Vehicles Manufacturing Loan Program. For the X-37 ATV, see Boeing X-37C. For the X-33 ATV, see Lockheed Martin X-33A. Advanced Technology VehicleFunctionExperimental scramjet testbedManufacturerISROCountry of originIndiaSizeHeight9.10 m (29.9 ft)Diameter0.56 m (1.8 ft)Mass3,000 kg (6,600 lb)[1]Stages2Associated rocketsFamilyRohini-560Launch histo…

Referendum keanggotaan Britania Raya di Uni EropaHaruskah Britania Raya bertahan menjadi anggota Uni Eropa atau keluar dari Uni Eropa?LokasiBritania Raya dan GibraltarTanggal23 Juni 2016 (2016-06-23) Hasil Suara % Keluar 17.410.742 51,89% Bertahan 16.141.241 48,11% Suara sah 33.551.983 99,92% Suara kosong atau tidak sah 26.033 0.08% Total suara 33.578.016 100.00% Pemilih terdaftar/hadir 46.501.241 72.21% Hasil menurut daerah pemilihan   Keluar —   Bertahan Bagian dari …

Subject in Christian art Transfiguration icon by Theophanes the Greek, 15th century The Transfiguration of Jesus has been an important subject in Christian art, above all in the Eastern church, some of whose most striking icons show the scene. The Feast of the Transfiguration has been celebrated in the Eastern church since at least the 6th century and it is one of the Twelve Great Feasts of Eastern Orthodoxy, and so is widely depicted, for example on most Russian Orthodox iconostases. In the Wes…

Chronologies Données clés 1823 1824 1825  1826  1827 1828 1829Décennies :1790 1800 1810  1820  1830 1840 1850Siècles :XVIIe XVIIIe  XIXe  XXe XXIeMillénaires :-Ier Ier  IIe  IIIe Chronologies géographiques Afrique Afrique du Sud, Algérie, Angola, Bénin, Botswana, Burkina Faso, Burundi, Cameroun, Cap-Vert, République centrafricaine, Comores, République du Congo, République démocratique du Congo, Côte d'Ivoire, Djibouti, Égypte, …

Espagne au Concours Eurovision Pays  Espagne Radiodiffuseur TVE Émission de présélection Benidorm Fest Participations 1re participation Eurovision 1961 Participations 63 (en 2024) Meilleure place 1er (en 1968 et 1969) Moins bonne place Dernier (en 1962, 1965, 1983, 1999 et 2017) Liens externes Page officielle du diffuseur Page sur Eurovision.tv Pour la participation la plus récente, voir :Espagne au Concours Eurovision de la chanson 2023 modifier  L’Espagne participe au Conc…

Kawasan Konservasi Perairan Daerah Kabupaten Polewali Mandar (KKPD Kabupaten Polewali Mandar) adalah salah satu kawasan konservasi perairan daerah yang ada di Sulawesi Barat, Indonesia. Dalam pembagian administratif Indonesia, KKPD Kabupaten Polewali Mandar berada dalam wilayah administratif Kabupaten Polewali Mandar. Dasar hukum penetapannya adalah Surat Keputusan Bupati Polewali Mandar Nomor 13 Tahun 2013. Luas kawasan KKPD Kabupaten Polewali Mandar adalah 33.880 Hektare.[1] Dalam sist…

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「弐」…

Kembali kehalaman sebelumnya