Population(T)
Inherits Reference < Object
Keeps track of population, generations, selection.
Constructors
new(n : Int32)
SourceInstance methods
best_solution
Sourceevolve!
Selects chromosomes for breeding (using #select_pair), creates the next generation.
Adds random mutation depending on #mutate?
generation
Sourcemax_fitness
Sourcewinner
Calls fitness function on ALL chromosomes, and returns highest. Be mindful of the expense.