Last modified: June 04, 2024
This article is written in: πΊπΈ
Golden Ratio Search
The Golden Ratio Search is a technique employed for locating the extremum (minimum or maximum) of a unimodal function over a given interval. Unlike gradient-based or derivative-requiring methods, this approach uses only function evaluations, making it broadly applicable even when derivatives are difficult or impossible to compute. The method takes its name from the special constant known as the golden ratio , which uniquely balances intervals to reduce the problem domain efficiently.
For a unimodal function defined on an interval , the Golden Ratio Search progressively narrows down the search interval by evaluating the function at two strategically chosen internal points. By leveraging the intrinsic ratio , each iteration reduces the size of the interval while ensuring that no potential minima are prematurely excluded. This process continues until the interval is sufficiently small, providing an approximation to the functionβs minimum (or maximum, if desired by adjusting the comparison conditions).
Conceptual Illustration:
Imagine the graph of a unimodal function . The goal is to isolate the minimum within a progressively smaller bracket. Initially, we have the interval :
We pick two points and inside using the golden ratio partitioning. Based on the function values at these points, we eliminate a portion of the interval that cannot contain the minimum. This procedure repeats, each time reducing the interval size while maintaining the guarantee of containing the minimum.
Mathematical Formulation
The golden ratio is defined as:
This constant has unique properties, notably:
To apply the Golden Ratio Search for minimization, we start with an interval and choose two internal points and such that:
It follows from this construction that:
Because of how partitions the interval, the ratio of the smaller subinterval to the larger subinterval is equal to , ensuring a consistent and balanced reduction.
Derivation
I. Unimodality Assumption:
Assume is unimodal on , meaning it has a single minimum within that interval. Without loss of generality, we focus on minimizing .
II. Golden Ratio Partition:
Given the interval , we introduce points and as described:
By doing so, we ensure:
III. Decision Criterion:
We evaluate and :
- If , then the minimum must lie in , because the function is smaller at and the segment can be safely discarded.
- If , then the minimum must lie in , discarding the segment .
In either case, the length of the interval is reduced by a factor approximately each iteration, ensuring rapid convergence.
IV. Convergence:
After iterations, the length of the interval is:
Once this length is less than a prescribed tolerance , we accept that the minimum is approximated by any point within the current interval.
Algorithm Steps
Input:
- A continuous unimodal function .
- Initial interval .
- Tolerance or maximum iterations .
Initialization:
- Define .
- Set iteration counter .
Iteration:
I. Compute:
II. Evaluate and .
III. If :
Set .
(The minimum is in the interval )
Else:
Set .
(The minimum is in the interval )
IV. If or :
Stop and approximate the minimum as .
V. Increment iteration counter and go back to step I.
Output:
- Approximate location of the minimum.
- Number of iterations performed.
Example
Given Function:
We know that is unimodal (in fact, strictly convex) on any interval, and it attains its minimum at .
Initial Setup:
Iteration 1:
Compute:
Evaluate:
Since , we can choose either subinterval. Letβs choose for simplicity. So:
Iteration 2:
New interval:
Compute new points:
Evaluate:
Compare:
Since , the minimum lies in ? Actually, check logic:
We found , which means the smaller value is at . Thus, we keep the interval on the side of because that is where the minimum is. According to the rules:
If , we set:
maintaining .
Subsequent Iterations:
At each iteration, you would similarly compute new , evaluate and , and narrow down the interval. Ultimately, as you continue, the interval will shrink around , since achieves its minimum at .
Advantages
- No derivatives required makes the Golden Ratio Search ideal for problems where derivative information is unavailable or too expensive to compute.
- Guaranteed reduction of the search interval by approximately (the Golden Ratio) in each iteration ensures steady progress toward locating the minimum.
- The method's robustness guarantees convergence to a minimum within the provided interval, assuming the function is unimodal.
- Simplicity of implementation makes the algorithm accessible, as it involves straightforward iterative calculations without the need for complex procedures.
Limitations
- Unimodality required means the method assumes the function has only one minimum in the interval; multiple minima can lead to convergence to a local minimum or failure to isolate a solution.
- Initial bracketing of the interval containing the minimum is essential, and determining this interval can be challenging if the function's behavior is poorly understood.
- The method is not the fastest for all problems, particularly when gradient-based methods like Newtonβs method or quasi-Newton methods can be used effectively.
- Slow convergence can occur in flat regions around the minimum, where reductions per iteration provide limited new information for further narrowing the interval.