/GGA

Generic Genetic Algorithm for python

Primary LanguagePythonMIT LicenseMIT

GGA

GGA is an open-source class to help others to start using genetic algorithms. This entire project was designed to be just imported and have three methods overwrite to be ready to use.

How to use

  1. Clone the repository
  2. Import GGA
  3. Overwrite the methods using the methodos set_evaluate, set_random_genome and set_mutate
  4. Set custom parameters, such as "iteration limit" and "Elements per generation"
  5. call run() method!

Sample

The file sample.py use GGA to sort an array with 30 elements

TODO

  • improve threads use