hr.fer.diplomski.seminar.pso
Class Swarm

java.lang.Object
  extended by hr.fer.diplomski.seminar.pso.Swarm

public class Swarm
extends java.lang.Object

Swarm represents 'population' of particles. Class handles initialization of parameters and defines neighbours

Author:
marko pletikosa 0036424228

Constructor Summary
Swarm(int numParticle, Function fitness, double xMax, double xMin, double vMax, double c1, double c2)
           
 
Method Summary
 void iterate(int numIter, double error)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Swarm

public Swarm(int numParticle,
             Function fitness,
             double xMax,
             double xMin,
             double vMax,
             double c1,
             double c2)
Method Detail

iterate

public void iterate(int numIter,
                    double error)