gka_selection: Selection method
Description
Selection method
Usage
gka_selection(p, fitness)
Value
the index of the individual selected for reproduction.
Arguments
- p
the number of individuals in the population.
- fitness
a vector of size p
with the fitness of each individual
in the population.