The type of individual being evolved. Must extend WithFitness.
OptionalfitnessOptional target fitness score. If any individual reaches or surpasses this fitness value (depending on the optimization direction), the evolution process terminates early.
OptionalfittestIf true, the fittest individual of the current generation is automatically carried over
to the next generation unchanged (elitism).
The starting set of individuals.
OptionalloggingWhether to log evolutionary progress metrics to the console during evolution.
OptionalloggingThe interval (in generations) at which to output progress metrics if logging is enabled.
OptionalmaxThe maximum population size allowed at the end of each generation.
OptionalmutationThe probability (from 0.0 to 1.0) that a generated child will undergo mutation.
OptionaloptimizationDetermines whether the algorithm should attempt to maximize or minimize the fitness values.
OptionalyieldThe interval (in generations) at which the algorithm voluntarily yields to the JavaScript
event loop. Set to 0 to disable yielding. This helps prevent UI freezing in single-threaded
environments (like browsers) during long running tasks.
Configuration options for initializing a new
GeneticAlgorithminstance. *