| Genetic Algorithm and Direct Search Toolbox | ![]() |
Output Function Options
Output functions return output from the genetic algorithm to the command line at each generation.
@gaoutputgen) displays the history of points computed by the algorithm in a new window at each multiple of Interval iterations.
To specify the History to new window output function at the command line, set options as follows:
Structure of the Output Function
The function ga passes the following input arguments to the output function at each generation:
options -- Options structure
state -- Structure containing information about the current population. The State Structure describes this structure.
flag -- String indicating the current status of the algorithm as follows:
The output function returns the following arguments to ga:
state
optnew -- Options structure modified by the output function. This argument is optional.
optchanged -- Flag indicating changes to options in optnew
| Migration Options | Stopping Criteria Options | ![]() |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |