The grid search is another brute force approach to optimization. The two-dimensional version is depicted in Fig. P14.10. The x and y dimensions are divided into increments to create a grid. The function is then evaluated at each node of the grid. The denser the grid, the more likely it would be to locate the optimum.
Develop a program using a programming or macro language to implement the grid search method. Design the program so that it is expressly designed to locate a maximum. Test it with the same problem as Example 14.1.
FIGURE P14.10
The grid search.
Want to see the full answer?
Check out a sample textbook solutionChapter 14 Solutions
Numerical Methods for Engineers
Additional Math Textbook Solutions
Fundamentals of Differential Equations (9th Edition)
Advanced Engineering Mathematics
Basic Technical Mathematics
Statistical Reasoning for Everyday Life (5th Edition)
Differential Equations: An Introduction to Modern Methods and Applications
- Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage