options =
gaoptimset ¶options =
gaoptimset ('param1', value1, 'param2', value2, …)
¶Create genetic algorithm options structure.
Inputs
Parameter to set. Unspecified parameters are set to their default values; specifying no parameters is allowed.
Value of param.
Outputs
Structure containing the options, or parameters, for the genetic algorithm.
Options
CreationFcn
Default function is @gacreationuniform
CrossoverFcn
Default function is @crossoverscattered
CrossoverFraction
Default value is 0.0
EliteCount
Default value is 2
FitnessLimit
FitnessScalingFcn
Default function is @fitscalingrank
Generations
Default valie is 100
InitialPopulation
Can be partial.
InitialScores
column vector |[] (default) . Can be partial.
MutationFcn
Default mutation is { @mutationgaussian, scale, shrink }
scale and shrink are 1.0
PopInitRange
PopulationSize
SelectionFcn
Default function is @selectionstochunif
TimeLimit
UseParallel
"always" |"never" (default) . Parallel evaluation of objective function. TODO: parallel evaluation of nonlinear constraints
Vectorized
"on" |"off" (default) . Vectorized evaluation of objective function. TODO: vectorized evaluation of nonlinear constraints
See also: ga.
Package: ga