net.sourceforge.cilib.pso.dynamic
Class DynamicParticle

java.lang.Object
  extended by net.sourceforge.cilib.entity.AbstractEntity
      extended by net.sourceforge.cilib.pso.particle.AbstractParticle
          extended by net.sourceforge.cilib.pso.particle.StandardParticle
              extended by net.sourceforge.cilib.pso.dynamic.DynamicParticle
All Implemented Interfaces:
Serializable, Comparable<Entity>, CandidateSolution, Entity, Particle, SocialEntity, Cloneable
Direct Known Subclasses:
ChargedParticle

public class DynamicParticle
extends StandardParticle

Special particle type to use with dynamic algorithms. The extra functionality that it adds is the ability to re-evaluate both current and best position of the particle. A dynamic algorithm usually re-evaluates all particles when a change in the environment has been detected.

Author:
Anna Rakitianskaia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.particle.StandardParticle
neighbourhoodBest
 
Fields inherited from class net.sourceforge.cilib.pso.particle.AbstractParticle
neighbourhoodBestUpdateStrategy, personalBestUpdateStrategy, positionInitialisationStrategy, positionUpdateStrategy, velocityInitialisationStrategy, velocityUpdateStrategy
 
Constructor Summary
DynamicParticle()
           
DynamicParticle(DynamicParticle copy)
           
 
Method Summary
 DynamicParticle getClone()
          Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface.
 void reevaluate()
          Re-evaluate both best and current position of the particle.
 
Methods inherited from class net.sourceforge.cilib.pso.particle.StandardParticle
calculateFitness, equals, getBehaviouralParameters, getBestFitness, getBestPosition, getDimension, getNeighbourhoodBest, getPosition, getVelocity, hashCode, initialise, reinitialise, setBehaviouralParameters, setDimension, setNeighbourhoodBest, updateControlParameters, updatePosition, updateVelocity
 
Methods inherited from class net.sourceforge.cilib.pso.particle.AbstractParticle
calculateFitness, compareTo, getNeighbourhoodBestUpdateStrategy, getPersonalBestUpdateStrategy, getPositionInitialisationStrategy, getPositionUpdateStrategy, getSocialBestFitness, getVelocityInitialisationStrategy, getVelocityUpdateStrategy, setNeighbourhoodBestUpdateStrategy, setPersonalBestUpdateStrategy, setPositionInitialisationStrategy, setPositionUpdateStrategy, setVelocityInitialisationStrategy, setVelocityUpdateStrategy
 
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity
getCandidateSolution, getFitness, getFitnessCalculator, getId, getProperties, setCandidateSolution, setFitnessCalculator, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.cilib.entity.Particle
getFitness
 
Methods inherited from interface net.sourceforge.cilib.entity.Entity
getCandidateSolution, getFitnessCalculator, getId, getProperties, setCandidateSolution, setProperties
 

Constructor Detail

DynamicParticle

public DynamicParticle()

DynamicParticle

public DynamicParticle(DynamicParticle copy)
Method Detail

getClone

public DynamicParticle getClone()
Description copied from class: StandardParticle
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface.

Specified by:
getClone in interface Entity
Specified by:
getClone in interface Particle
Specified by:
getClone in interface Cloneable
Overrides:
getClone in class StandardParticle
Returns:
the cloned object
See Also:
Object.clone()

reevaluate

public void reevaluate()
Re-evaluate both best and current position of the particle.



Copyright © 2009 CIRG. All Rights Reserved.