Description Usage Arguments Value Examples
This function creates an initial population of randomly generated individuals.
1 | initPop(N, min_val, max_val)
|
N |
Number of individuals in the population. |
min_val |
A vector of the minimum acceptable values for each gene. |
max_val |
A vector of the maximum acceptable values for each gene. |
A N x length(min_val) matrix. Each line corresponds to an individual in the initial population. Each column correspond to the value of each gene, randomly chosen between min_val and max_val. The last column corresponds to the fitness of each individual (NA after initialization).
1 | #TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.