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.
- Clone the repository
- Import GGA
- Overwrite the methods using the methodos
set_evaluate
,set_random_genome
andset_mutate
- Set custom parameters, such as "iteration limit" and "Elements per generation"
- call
run()
method!
The file sample.py
use GGA to sort an array with 30 elements
- improve threads use