net.sourceforge.cilib.pso.dynamic
Class DynamicParticle
java.lang.Object
net.sourceforge.cilib.entity.AbstractEntity
net.sourceforge.cilib.pso.particle.AbstractParticle
net.sourceforge.cilib.pso.particle.StandardParticle
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
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 |
DynamicParticle
public DynamicParticle()
DynamicParticle
public DynamicParticle(DynamicParticle copy)
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.