net.sourceforge.cilib.pso.dynamic
Class QuantumPositionUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.dynamic.QuantumPositionUpdateStrategy
- All Implemented Interfaces:
- Serializable, PositionUpdateStrategy, Cloneable
public class QuantumPositionUpdateStrategy
- extends Object
- implements PositionUpdateStrategy
Position update strategy for QSO (Quantum PSO). Implemented according
to paper by Blackwell and Branke, "Multiswarms, Exclusion, and Anti-
Convergence in Dynamic Environments."
- Author:
- Anna Rakitianskaia
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuantumPositionUpdateStrategy
public QuantumPositionUpdateStrategy()
QuantumPositionUpdateStrategy
public QuantumPositionUpdateStrategy(QuantumPositionUpdateStrategy copy)
getClone
public QuantumPositionUpdateStrategy getClone()
- Description copied from interface:
PositionUpdateStrategy
- Clone the stategy by creating a new object with the same contents and values
as the current object.
- Specified by:
getClone
in interface PositionUpdateStrategy
- Specified by:
getClone
in interface Cloneable
- Returns:
- A clone of the current PositionUpdateStrategy
- See Also:
Object.clone()
updatePosition
public void updatePosition(Particle particle)
- Update particle position; do it in a standard way if the particle is neutral, and
in a quantum way if the particle is charged. The "quantum" way entails sampling the
position from a uniform distribution : a spherical cloud around gbest with a radius r.
- Specified by:
updatePosition
in interface PositionUpdateStrategy
- Parameters:
particle
- the particle to update position of
getRadius
public double getRadius()
- Returns:
- the radius
setRadius
public void setRadius(double radius)
- Parameters:
radius
- the radius to set
Copyright © 2009 CIRG. All Rights Reserved.