Golden section search

Golden section search

The golden section search is a technique for finding the extremum (minimum or maximum) of a unimodal function by successively narrowing the range of values inside which the extremum is known to exist. The technique derives its name from the fact that the algorithm maintains the function values for triples of points whose distances form a golden ratio. The algorithm is closely related to a Fibonacci search (also described below) and to a binary search. Golden section search was introduced by Kiefer (1953), and Fibonacci search by Avriel and Wilde (1966).

The diagram on the right illustrates a single step in the technique for finding a minimum. The functional values of f(x) are on the vertical axis, and the horizontal axis is the "x" parameter. The value of f(x) has already been evaluated at the three points: x_1, x_2, and x_3. Since f_2 is smaller than either f_1 or f_3, it is clear that a minimum lies inside the interval from x_1 to x_3.

The next step in the minimization process is to "probe" the function by evaluating it at a new value of "x", namely x_4. It is most efficient to choose x_4 somewhere inside the largest interval, i.e. between x_2 and x_3. From the diagram, it is clear that if the function yields f_{4a} then a minimum lies between x_1 and x_4 and the new triplet of points will be x_1, x_2, and x_4. However if the function yields the value f_{4b} then a minimum lies between x_2 and x_3, and the new triplet of points will be x_2, x_4, and x_3. Thus, in either case, we can construct a new narrower search interval that is guaranteed to contain the function's minimum.

Probe point selection

From the diagram above, it is seen that the new search interval will be either between x_1 and x_4 with a length of "a"+"c" , or between x_2 and x_3 with a length of "b" . The golden section search requires that these intervals be equal. If they are not, a run of "bad luck" could lead to the wider interval being used many times, thus slowing down the rate of convergence. To ensure that "b" = "a"+"c", the algorithm should choose x_4=x_1-x_2+x_3.

However there still remains the question of where x_2 should be placed in relation to x_1 and x_3. The golden section search chooses the spacing between these points in such a way that these points have the same proportion of spacing as the subsequent triple x_1,x_2,x_4 or x_2,x_4,x_3. By maintaining the same proportion of spacing throughout the algorithm, we avoid a situation in which x_2 is very close to x_1 or x_3, and guarantee that the interval width shrinks by the same constant proportion in each step.

Mathematically, to ensure that the spacing after evaluating f(x_4) is proportional to the spacing prior to that evaluation, if f(x_4) is f_{4a} and our new triplet of points is x_1, x_2, and x_4 then we want:

:frac{c}{a}=frac{a}{b}.

However, if f(x_4) is f_{4b} and our new triplet of points is x_2, x_4, and x_3 then we want:

:frac{c}{b-c}=frac{a}{b}.

Eliminating "c" from these two simultaneous equations yields:

:left(frac{b}{a} ight)^2=frac{b}{a}+1

or

:frac{b}{a}=varphi

where φ is the golden ratio:

:varphi= frac{1+sqrt{5{2}= 1.618033989ldots

The appearance of the golden ratio in the proportional spacing of the evaluation points is how this search algorithm gets its name.

Termination condition

In addition to a routine for reducing the size of the bracketing of the solution, a complete algorithm must have a termination condition. The one provided in the book "Numerical Recipes in C" is based on testing the gaps among x_1, x_2, x_3 and x_4, terminating when within the relative accuracy bounds:

:|x_4-x_1| < au (|x_2| + |x_3|),

where au is a tolerance parameter of the algorithm and "|x|" is the absolute value of "x". The check is relative to the size of x_2 and x_3 because the fraction (non-exponent) part of a floating point number is of fixed precision.

Fibonacci search

A very similar algorithm can also be used to find the extremum (minimum or maximum) of a sequence of values that has a single local minimum or local maximum. In order to approximate the probe positions of golden section search while probing only integer sequence indices, the variant of the algorithm for this case typically maintains a bracketing of the solution in which the length of the bracketed interval is a Fibonacci number. For this reason, the sequence variant of golden section search is often called "Fibonacci search".;;;

See also

* Fibonacci search technique

References

*citation
last1 = Avriel
first1 = Mordecai
last2 = Wilde
first2 = Douglass J.
title = Optimality proof for the symmetric Fibonacci search technique
journal = Fibonacci Quarterly
volume = 4
year = 1966
pages = 265–269
id = MathSciNet | id = 0208812

*citation
last = Kiefer
first = J.
authorlink = Jack Kiefer (mathematician)
title = Sequential minimax search for a maximum
journal = Proceedings of the American Mathematical Society
volume = 4
year = 1953
pages = 502–506
id = MathSciNet | id = 0055639, doi|10.2307/2032161

*citation
last1 = Press
first1 = W. H.
last2 = Teukolsky
first2 = S. A.
last3 = Vetterling
first3 = W. T.
last4 = Flannery
first4 = B. P.
title = Numerical Recipes in C, The Art of Scientific Computing
edition = second
publisher = Cambridge University Press, Cambridge
year = 1999
id = ISBN 0-521-43108-5


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Golden ratio — For the Ace of Base album, see The Golden Ratio (album). Not to be confused with Golden number. The golden section is a line segment divided according to the golden ratio: The total length a + b is to the length of the longer segment a as the… …   Wikipedia

  • Golden Gate Bridge — Carries 6 lanes of …   Wikipedia

  • Cuckoo search — (CS) is an optimization algorithm developed by Xin she Yang and Suash Deb in 2009.[1][2] It was inspired by the obligate brood parasitism of some cuckoo species by laying their eggs in the nests of other host birds (of other species). Some host… …   Wikipedia

  • Ternary search — A ternary search algorithm is a computer science technique for finding the minimum or maximum of a function that is either strictly increasing and then strictly decreasing or vice versa. A ternary search determines either that the minimum or… …   Wikipedia

  • Golden Spread Council — Owner …   Wikipedia

  • Fibonacci search technique — The Fibonacci search technique is a method of searching a sorted array using a divide and conquer algorithm that narrows down possible locations with the aid of Fibonacci numbers.Compared to binary search, Fibonacci search has the property of… …   Wikipedia

  • Golden plates — In Latter Day Saint theology, the golden plates (also called the gold plates or in some 19th century literature, the golden Bible ) [Use of the terms golden bible and gold Bible by both believers and non believers dates from the late 1820s. See,… …   Wikipedia

  • Search and rescue — For other uses, see Search and rescue (disambiguation) Search and rescue A Canadian Forces CH 149 Cormorant helicopter hoists a man from a Canadian Coast Guard cutter Search and rescue (SAR) is the search for and provision of aid to people who… …   Wikipedia

  • Golden State Baptist College — Infobox University name = Golden State Baptist College established = 1995 type = Private unaccredited Bible college chancellor = Jack Trieber president = Brad Boruff city = Santa Clara state = California country = USA undergrad = 372 [… …   Wikipedia

  • Golden Eagle (comics) — Superherobox| caption=Golden Eagle from Hawkman (vol. 4) Art by Joe Bennett character name=Golden Eagle publisher=DC Comics debut= Justice League of America (vol. 1) #116 (March 1975) creators=Cary Bates (writer) Dick Dillin (artist) alter ego=… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”