This package can be used for general problem solving using Genetic Algorithms.
The main class can take several parameters and callback functions that implement several aspects involved in the execution of a genetic algorithm, so it can be adapted to any problem that can be solved using genetic algorithms.
The parameters can be the population size, an object to access the population elements, generations, mutation rate, elitism rate, callback functions to define values of fitness, mutation, selection, crossover, elitism, etc..
An example is provided for a word guess application that takes letters to guess what is the correct word. |