View source: R/initialize_population.R
initialize_population | R Documentation |
The function described below creates a population of individuals(values).
initialize_population(population_size, min = -100, max = 100)
population_size |
The number of individuals of the population. |
min |
The minimum number an individual could have. |
max |
The maximum number an individual could have. |
(Note: the values are random and the population should be highly diversified)
The space of x value is kept integer type and on range from 0 to 3, for simplification.
The output expected should be a list of individuals of the population with the size indicated in the input.
Dany Mukesha
# example of usage
genetic.algo.optimizeR::initialize_population(population_size = 3, min = 0, max = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.