Module: SimpleGa::GeneticAlgorithm
- Defined in:
- lib/simple_ga/genetic_algorithm.rb
Overview
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.
Defined Under Namespace
Classes: Chromosome, GeneticSearch