pygene - simple python genetic algorithms/programming library
pygene is a simple and easily understandable library for
genetic algorithms and genetic programming in python.
Features
- Simple, comfortable, pythonic classes
- Several simple working examples, including:
- Quadratic equation solver
- Two-dimensional convergence
- String cracker
- Travelling Salesman Problem
- New! - support for genetic programming
- The genetic algorithms classes are based on classical
Mendelian genetics
- Fully customisable recombination, mutation, inheritance,
natural selection
- A rich set of primitive Gene classes to use as-is, or
subclass
- Hermaphroditic sexual reproduction
- Configurable 'incest' option (high-fitness parents
stay in the population and mate with children)
- Configurable spontaneous appearance of random new
organisms
- Ability to dump Populations, Organisms and/or Genes
out to an XML file or string
Download
Download current version here
API Documentation
View API documentation here
Screenshot
Click here for a screenshot
of a graphical program showing a solution for the
Travelling Salesman Problem