Reuse is the clever part.
The golden ratio places the two interior probes so that one survives into the next iteration. Each comparison throws away one part of the interval without having to evaluate both new interior points from scratch.
Optimization · CMNA Laboratory
Golden-section search keeps reusing interior evaluations while shrinking the interval around a local extremum.
The golden ratio places the two interior probes so that one survives into the next iteration. Each comparison throws away one part of the interval without having to evaluate both new interior points from scratch.
Bring your own objective
Write f(x) in R, choose an interval and whether to seek a minimum or maximum, then play every decision.
Preparing R…f(x)| n | a | b | a* | b* | f(a*) | f(b*) | kept |
|---|