Package net.sourceforge.jswarm_pso.example_2

Class Summary
DrawingArea A drawing area
Example An extremely simple swarm optimization example Minimize Rastrigin's function f( x1 , x2 ) = 20.0 + (x1 * x1) + (x2 * x2) - 10.0 * (Math.cos(2 * Math.PI * x1) + Math.cos(2 * Math.PI * x2)); Solution is (obviously): [ 0, 0 ]
MyFitnessFunction Sample Fitness function (Rastrigin's function) f( x1 , x2 ) = 20.0 + (x1 * x1) + (x2 * x2) - 10.0 * (Math.cos(2 * Math.PI * x1) + Math.cos(2 * Math.PI * x2));
MyParticle Simple particle example
SwarmShow2D An extremely simple swarm optimization example Maximize function f( x1 , x2 ) = 1 - Sqrt( ( x1 - 3/4 )^2 + ( x2 - 1/4 )^2 ) Solution is (obviously): [ 3/4 , 1/4 ]
SwarmThread A thread that runs in background while calculating kohonen's learning algorithm