GenAlgControl-class | R Documentation |
This class controls the general setup of the genetic algorithm
populationSize
The number of "chromosomes" in the population (between 1 and 2^16).
numGenerations
The number of generations to produce (between 1 and 2^16).
minVariables
The minimum number of variables in the variable subset (between 0 and p - 1 where p is the total number of variables).
maxVariables
The maximum number of variables in the variable subset (between 1 and p, and greater than minVariables
).
elitism
The number of absolute best chromosomes to keep across all generations (between 1 and min(populationSize
* numGenerations
, 2^16)).
mutationProbability
The probability of mutation (between 0 and 1).
badSolutionThreshold
The child must not be more than badSolutionThreshold
percent worse than the worse parent. If less than 0, the child must be even better than the worst parent.
crossover
The crossover method to use
crossoverId
The numeric ID of the crossover method to use
maxDuplicateEliminationTries
The maximum number of tries to eliminate duplicates
verbosity
The level of verbosity. 0 means no output at all, 2 is very verbose.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.