Wednesday, August 03, 2005

Golden section search

From Wikipedia, the free encyclopedia.

Diagram of a golden section search
Enlarge
Diagram of a golden section search

The Golden section search is a technique for finding the extremum (minimum or maximum) of a mathematical function, by successively narrowing brackets by upper bounds and lower bounds.

The diagram on the right illustrates 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 been evaluated at the three points: x1, x2, and x3.

Since f2 is smaller than either f1 or f3, it is clear that a minimum lies inside the interval from x1 to x3.

The next step in the minimization process is to evaluate the function at a new value of x, namely x4. It is most efficient to choose x4 somewhere inside the largest interval, i.e. between x2 and x3. From the diagram, it is clear that if the function yields f4a then a minimum lies between x1 and x4 and the new triplet of points will be x1, x2, and x4. However if the function yields the value f4b then a minimum lies between x2 and x3, and the new triplet of points will be x2, x4, and x3. The question is, how to choose the value of x4?

Whatever choice method is in use, it was also used to pick the position of x2. We postulate that we would like the same proportions of spacing as we have before the choice. In other words, if f(x4) is f4a and our new triplet of points is x1, x2, and x4 then we want:

\frac{c}{a}=\frac{a}{b}

However, if f(x4) is f4b and our new triplet of points is x2, x4, and x3 then we want:

\frac{c}{b-c}=\frac{a}{b}

Solving for c yields:

\left(\frac{b}{a}\right)^2=\frac{b}{a}+1

or

\frac{b}{a}=\varphi

where φ is the golden ratio:

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

From which the search algorithm gets its name.

0 Comments:

Post a Comment

<< Home