Particle swarm optimization for root

ROOT does already have support for genetic algorithms so i was wondering why there is no support for particle swarm optimization [1] yet. Maybe someone else already wrote some software for ROOT though i couldn’t find one yet.

This is just a start to get some feedback. You could either compile example.cpp or run ith with

.x example.cpp+

The folder has an output folder with a video which shows how the particles find the best place.

It implements two problems which aren’t that easy to solve with classical optimizer.

Any kind of feedback is asked for.

[1] engr.iupui.edu/~shi/Coference/psopap4.html
output.tar.gz (1.12 MB)