3D Visualisation tool of PSO particles
under Borland C++ Builder 6 and OpenGL

How to
Use a 3D visulaisation tool to represent particles evolution in a 3D search space.
Executable and sources are provided.

Let's start for presenting a screen capture of the application :

Each particle appears as a triangular 3D fly with an arrow in front representing its actual speed.
While in animation mode, you can see them evolving in the search space, looking for the global minima.
You can choose a particular particle which will appear in brown colour.
The particle that holds the global best appear in red. Other particles appear in pink with a blue speed arrow.
A yellow triangle (with its shadow on the ground) represents the target view point. This view point can be moved in the 3 directions and we can rotate the camera up and down, left and right around it.

The optimisation example is about the 3 angles alpha0, alpha1 and alpha2 of a multi level power electronic inverter. We compute them to apply a desired fundamental RMS component and to eliminate the first harmonics 5th and 7th. The optimisation results are provided into the data files (.dat).
The aim of this tool is to visualize, the particle swarm while it is searching over the whole place.

Programme usage

We provide 2 files : best08.dat and outgraph.dat containing the precalculated particles position and speeds.
You load the file by the menu command, then you animate.
You can stop the animation or run it step by step for better understanding of the evolution of the swarm.
This program can be used to display in 3D any object mouvement. Please refer to the program reading file function or to the file outgraph.dat format.

The camera view can be changed using 2 modes :
Other tasks:
Some interesting web sites :
OpenGL tutorial in french : http://www.linuxgraphic.org/section3d/openGL/didact.html
BC++6 pro : http://glouise.developpez.com/cbconseils/

Download :
If you want to compile it again, you will need Borland C++ Builder 6 and :
pso_opengl_src.arj   Sources in Borland C++ Builder 6.
For a direct use click below :
pso_opengl.zip   The executable, ready to use.

Back to homepage

Last update : 21 january 2006