View source: R/gaintegerPopulationFactory.R
gaintegerPopulationFactory | R Documentation |
Creates a factory function for generating initial populations for genetic algorithms with integer chromosomes, where a specified fraction of variables are set to zero.
gaintegerPopulationFactory(zeroFraction, verbose = FALSE)
zeroFraction |
Numeric value between 0 and 1 specifying the fraction of variables to set to zero in each individual |
verbose |
Logical indicating whether to print information about zero fraction |
A function that takes a GA object and returns an initial population matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.