config_ga {EmiR}R Documentation

Configuration object for the Genetic Algorithm

Description

Create a configuration object for the Genetic Algorithm (GA). At minimum the number of iterations (parameter iterations) and the number of chromosomes (parameter population_size) have to be provided.

Usage

config_ga(
  iterations,
  population_size,
  iterations_same_cost = NULL,
  absolute_tol = NULL,
  keep_fraction = 0.4,
  mutation_rate = 0.1
)

Arguments

iterations

maximum number of iterations.

population_size

number of chromosomes.

iterations_same_cost

maximum number of consecutive iterations with the same (see the parameter absolute_tol) best cost before ending the minimization. If NULL the minimization continues for the number of iterations specified by the parameter iterations. Default is NULL.

absolute_tol

absolute tolerance when comparing best costs from consecutive iterations. If NULL the machine epsilon is used. Default is NULL.

keep_fraction

fraction of the population that survives for the next step of mating. Default is 0.4.

mutation_rate

probability of mutation. Default is 0.1.

Value

config_ga returns an object of class GAConfig.

References

Holland JH (1992). Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control and Artificial Intelligence. MIT Press, Cambridge, MA, USA. ISBN 0262082136.

Examples

conf <- config_ga(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL,keep_fraction = 0.4, mutation_rate = 0.1)


[Package EmiR version 1.0.4 Index]