module SimpleGa::GeneticAlgorithm
The GeneticAlgorithm
module implements the GeneticSearch
and Chromosome
classes. The GeneticSearch
class performs a stochastic search of the solution of a given problem.
Both the GeneticSearch
and Chromosome
are “problem specific”. SimpleGa
built-in Chromosome
class and GeneticSearch
class were designed to model the probability distribution problem. If you want to solve other type of problem, you will have to modify both of the classes, by overwriting its run, uniquify, fitness, reproduce, and mutate functions, to model your specific problem.