A Pure Python Genetic Algorithms Framework
summary
A pure Python genetic algorithm framework implemented as a 9-file framework with a central gp.py that encodes evolution strategies, separate crossover and mutation modules, and a settings.py that returns config-as-dict for easy parameter swapping. Uses pycontracts checks to catch off-by-one and API errors. Demonstrated by evolving permutations to solve a 52-city traveling salesman instance, repeatedly selecting, crossing over and mutating until convergence. Code is on GitHub for forking and extension.
AI-written summary · about
