| Genetic Algorithm and Direct Search Toolbox | ![]() |
Genetic Algorithm Options
This section describes the options for the genetic algorithm. There are two ways to specify options, depending on whether you are using the Genetic Algorithm Tool or calling the function ga at the command line:
gatool), you specify the options by selecting an option from a drop-down list or by entering the value of the option in a text field. See Setting Options for the Genetic Algorithm.
ga from the command line, you specify the options by creating an options structure, using the function gaoptimset. See Setting Options at the Command Line. For example, to set PopulationSize to 50, enter
You can identify an identify an option in one of two ways:
options structure
PopulationType refers to the corresponding field of the options structure.
The genetic algorithm options are divided into the following categories:
| Functions -- Listed by Category | Plot Options | ![]() |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |