The golden section method is an algorithm for locating the minimum of a single variable function without access to its derivative.
Wikipedia page: https://en.wikipedia.org/wiki/Golden-section_search
Start with the two endpoints a
and b
that you know bound a minimum, and choose two interior points to test. (The goal is to progressively narrow your search window; you need two points to know where to zoom in.)
If the left point l
has a lower function value, zoom in to (a, r)
. Else, zoom to (l, b)
for the next round.
How do you pick the points? Use the golden ratio. There are two ways to cut an interval using the golden ratio. Each results in a larger and smaller piece.
The "golden ratio" is the interval such that the ratio of the LARGER piece to the whole is the same as the ratio of the smaller piece to the larger piece. By choosing your interior points using the golden ratio, you guarantee that whether you zoom in to (a, r)
or (l, b)
, both pieces will cover the same ratio of the the total interval, every time. Any ratio other than the golden ratio could degenerate into you selecting the larger of the two pieces every time, slowing your search.