Archive for the ‘example’ Category

Basic PSO optimization with DEAP

Following a question we had regarding if we thought about integrating swarm intelligence algorithm in DEAP, we thought : what does it take to implement the original particle swarm optimization (PSO) algorithm in EAP? The answer was : everything is already implemented!

So we rushed to code, and built a simple example, that optimizes a function H1 described in  “The Merits of a Parallel Genetic Algorithm in Solving Hard Optimization Problems”, by A. J. Knoek van Soest and L. J. R. Richard Casius. The example and the explanations on how to implement PSO with DEAP are described on googlecode wiki : PSOExample.

We also posted a video of one run plotted with matplotlib on Youtube.

Have fun with DEAP!

Categories: deap, example, new feature