net.sourceforge.jswarm_pso
Class ParticleUpdateFullyRandom

java.lang.Object
  extended by net.sourceforge.jswarm_pso.ParticleUpdate
      extended by net.sourceforge.jswarm_pso.ParticleUpdateFullyRandom

public class ParticleUpdateFullyRandom
extends ParticleUpdate

Particle update: Fully random approach Note that rlocal and rother are randomly choosen for each particle and for each dimention

Author:
Pablo Cingolani

Constructor Summary
ParticleUpdateFullyRandom(Particle particle)
          Constructor
 
Method Summary
 void update(Swarm swarm, Particle particle)
          Update particle's velocity and position
 
Methods inherited from class net.sourceforge.jswarm_pso.ParticleUpdate
begin, end
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleUpdateFullyRandom

public ParticleUpdateFullyRandom(Particle particle)
Constructor

Parameters:
particle - : Sample of particles that will be updated later
Method Detail

update

public void update(Swarm swarm,
                   Particle particle)
Update particle's velocity and position

Specified by:
update in class ParticleUpdate