Products & Services Solutions Academia Support User Community Company

Learn more about Genetic Algorithm and Direct Search Toolbox   

Performing a Pattern Search

Calling patternsearch at the Command Line

To perform a pattern search on an unconstrained problem at the command line, call the function patternsearch with the syntax

[x fval] = patternsearch(@objfun, x0)

where

The results are:

Performing a Pattern Search from the Command Line explains in detail how to use the patternsearch function.

Using the Optimization Tool for Pattern Search

To open the Optimization Tool, enter

optimtool('patternsearch')

at the command line, or enter optimtool and then choose patternsearch from the Solver menu.

You can also start the tool from the MATLAB Start menu as pictured:

To use the Optimization Tool, first enter the following information:

In the Constraints pane, enter linear constraints, bounds, or a nonlinear constraint function as a function handle for the problem. If the problem is unconstrained, leave these fields blank.

Then, click Start. The tool displays the results of the optimization in the Run solver and view results pane.

In the Options pane, set the options for the pattern search. To view the options in a category, click the + sign next to it.

Finding the Minimum of the Function gives an example of using the Optimization Tool.

The Optimization Tool chapter in the Optimization Toolbox User's Guide provides a detailed description of the Optimization Tool.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS