This is the documentation of the Pyevolve release 0.5. Since the version 0.4, Pyevolve has changed too much, many new features was added and many bugs was fixed, this documentation describes those changes, the new API and new features.
Pyevolve was developed to be a complete genetic algorithm framework written in pure python, the main objectives of Pyevolve is:
Pyevolve can be executed on Windows, Linux and Mac platforms.
Note
On the Mac platform, it’s reported that Pyevolve 0.5 can’t enter on the Interactive Mode.
Pyevolve requires the follow modules:
The matplotlib [1] is required to plot the graphs.
Footnotes
[1] | Matplotlib is Copyright (c) 2002-2008 John D. Hunter; All Rights Reserved |
Installers for Microsoft Windows platform:
Installation package for Linux platform:
Examples and source code for Pyevolve 0.5:
You can download the specific Pyevolve from the Downloads section, or using easy_install.
The installation can be easy done by using the easy_install:
easy_install pyevolve
You can upgrade your older version too:
easy_install --upgrade pyevolve
or install a downloaded egg package:
easy_install /downloads/downloaded_package.egg
This command will automatic search, download and install a suitable version of pyevolve, once you have installed, you can test:
>>> import pyevolve
>>> print pyevolve.__version__
'0.5'
easy_install utility is part of setuptools. Once you have installed setuptools, you will find the easy_install.exe program in your Python Scripts subdirectory.
1D List, 2D List and the 1D Binary String
Note
it is important to note, that the 1D List and the 2D list can carry any type of python objects or primitives.
Crossover Methods
- 1D Binary String
- Single Point Crossover, Two Point Crossover, Uniform Crossover
- 1D List
- Single Point Crossover, Two Point Crossover, Uniform Crossover, OX Crossover
- 2D List
- Uniform Crossover, Single Vertical Point Crossover, Single Horizontal Point Crossover
Mutator Methods
- 1D Binary String
- Swap Mutator, Flip Mutator
- 1D List
- Swap Mutator, Integer Range Mutator, Real Range Mutator, Integer Gaussian Mutator, Real Gaussian Mutator, Integer Binary Mutator, Allele Mutator
- 2D List
- Swap Mutator, Integer Gaussian Mutator, Real Gaussian Mutator, Allele Mutator
Initializators
- 1D Binary String
- Binary String Initializator
- 1D List
- Allele Initializator, Integer Initializator, Real Initializator
- 2D List
- Allele Initializator, Integer Initializator, Real Initializator
Scaling Methods
Linear Scaling, Sigma Truncation Scaling and Power Law Scaling, Raw Scaling
Selection Methods
Rank Selection, Uniform Selection, Tournament Selection, Roulette Wheel Selection
In this section, you will find study material to learn more about Genetic Algorithms.
Goldberg, David E (1989), Genetic Algorithms in Search, Optimization and Machine Learning, Kluwer Academic Publishers, Boston, MA.
Goldberg, David E (2002), The Design of Innovation: Lessons from and for Competent Genetic Algorithms, Addison-Wesley, Reading, MA.
Fogel, David B (2006), Evolutionary Computation: Toward a New Philosophy of Machine Intelligence, IEEE Press, Piscataway, NJ. Third Edition
Holland, John H (1975), Adaptation in Natural and Artificial Systems, University of Michigan Press, Ann Arbor
Michalewicz, Zbigniew (1999), Genetic Algorithms + Data Structures = Evolution Programs, Springer-Verlag.
See also
Also called Fitness Function or Objective Function, the evaluation function is the function which evaluates the genome, giving it a raw score. The objective of this function is to quantify the solutions (individuals, chromosomes)
See also
Pyevolve have an interactive mode, you can enter in this mode by pressing ESC key before the end of the evolution. When you press ESC, a python environment will be load. In this environment, you have some analysis functions and you can interact with the population of individuals at the specific generation.
See also
See also