| Genetic Algorithm and Direct Search Toolbox | ![]() |
Example: Finding the Minimum of a Function
This section presents an example of using a pattern search to find the minimum of a function. This section covers the following topics:
Objective Function
The example uses the objective function, ps_example, which is included in the Genetic Algorithms and Direct Search Toolbox. You can view the code for the function by entering
The following figure shows a plot of the function.
| Using the Pattern Search Tool | Finding the Minimum of the Function | ![]() |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |