| GenAlgControl-class {gaselect} | R Documentation |
Control class for the genetic algorithm
Description
This class controls the general setup of the genetic algorithm
Slots
populationSizeThe number of "chromosomes" in the population (between 1 and 2^16).
numGenerationsThe number of generations to produce (between 1 and 2^16).
minVariablesThe minimum number of variables in the variable subset (between 0 and p - 1 where p is the total number of variables).
maxVariablesThe maximum number of variables in the variable subset (between 1 and p, and greater than
minVariables).elitismThe number of absolute best chromosomes to keep across all generations (between 1 and min(
populationSize*numGenerations, 2^16)).mutationProbabilityThe probability of mutation (between 0 and 1).
badSolutionThresholdThe child must not be more than
badSolutionThresholdpercent worse than the worse parent. If less than 0, the child must be even better than the worst parent.crossoverThe crossover method to use
crossoverIdThe numeric ID of the crossover method to use
maxDuplicateEliminationTriesThe maximum number of tries to eliminate duplicates
verbosityThe level of verbosity. 0 means no output at all, 2 is very verbose.