Grid search explores an objective function by dividing its search space into evenly spaced segments and evaluating each segment endpoint. Spreading evaluations across the range avoids the accidental clustering that can waste resources in random search. section 1.2.4
A basic grid-search procedure is:
- Divide the search space into evenly spaced segments. section 1.2.4
- Evaluate the objective at each segment endpoint. section 1.2.4
- Select the best evaluated point, while recognizing that the true global optimum may lie between grid points. section 1.2.4
A one-dimensional search
Across a range from −5 to 5, grid search evaluates evenly spaced locations and identifies the endpoint at 5 as the best tested point, with an objective value of roughly 4.86. It improves on random search but still misses the actual global optimum and remains inefficient at narrowing a promising region. section 1.2.4
Use the figure to see how evenly spaced evaluations can remain inefficient at narrowing down a good region. section 1.2.4





