DEAP is a Python evolutionary computation framework for rapid prototyping and testing of algorithms. It exposes explicit algorithm structure and works with multiprocessing and SCOOP.
Overview
DEAP (Distributed Evolutionary Algorithms in Python) is a library for building and experimenting with evolutionary computation methods. It aims to make algorithms explicit and data structures transparent so researchers and engineers can iterate quickly on ideas.
Built-in technique coverage includes genetic algorithms with varied representations, genetic programming with prefix trees, evolution strategies such as CMA-ES, multi-objective optimizers like NSGA-II and SPEA2, co-evolution of multiple populations, parallel evaluation hooks, hall-of-fame tracking, and checkpoint snapshots. A benchmarks module supplies common test functions, and examples mention particle swarm optimization, differential evolution, and estimation of distribution algorithms.
Packages install from PyPI via pip or easy_install. Optional dependencies include NumPy for CMA-ES and matplotlib for plotting results. Documentation is published online with tutorials from basic types through multiprocessing, genetic programming, constraint handling, and numpy inheritance.
Key features
- Genetic algorithms with flexible representations
- Genetic programming trees
- Evolution strategies including CMA-ES
- Multi-objective optimization algorithms
- Co-evolution of populations
- Parallel evaluation with multiprocessing
- Hall of fame and checkpoint snapshots
- Benchmark test function module
Use cases
- Research prototypes for evolutionary methods
- Multi-objective engineering optimization
- Genetic programming experiments
- Parallel fitness evaluation workloads
- Teaching evolutionary computation concepts