资 源 简 介
Optopus is a small Python library for evolutionary optimization. So far it contains an implementation of a genetic algorithm, but support for genetic programming will be added.
Optopus is written in Python, which is often too slow for CPU-intensive stuff like evolutionary algorithms. If you have a huge, difficult problem then you might be better off with a C-implementation. It is, however, very convenient to whip up a fitness function in Python and get it optimized without any hassle. In most cases it is the fitness function that is the bottleneck anyway, so if you want to use a Python fitness function, then it does not really matter what the framework is written in.
The modules are well documented with docstrings and examples, so you should have no trouble getting started.
Optopus 0.1.1 was uploaded on May 4th, 2010. It now contains an examples directory, the new genome class EnumGenome and full unit tests.