net.sourceforge.jswarm_pso
Class ParticleUpdateRandomByParticle

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

public class ParticleUpdateRandomByParticle
extends ParticleUpdate

Particle update: Each particle selects an rlocal and rother independently from other particles' values

Author:
Pablo Cingolani

Constructor Summary
ParticleUpdateRandomByParticle(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

ParticleUpdateRandomByParticle

public ParticleUpdateRandomByParticle(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