net.sourceforge.cilib.pso.velocityupdatestrategies
Class LinearVelocityUpdate
java.lang.Object
net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
net.sourceforge.cilib.pso.velocityupdatestrategies.LinearVelocityUpdate
- All Implemented Interfaces:
- Serializable, VelocityUpdateStrategy, Cloneable
public class LinearVelocityUpdate
- extends StandardVelocityUpdate
TODO: test this.
- Author:
- engel
- See Also:
- Serialized Form
Methods inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate |
clamp, getClone, getCognitiveAcceleration, getInertiaWeight, getSocialAcceleration, getVMax, setCognitiveAcceleration, setInertiaWeight, setSocialAcceleration, setVMax, updateControlParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearVelocityUpdate
public LinearVelocityUpdate()
- Create an instance of LinearVelocityUpdate.
updateVelocity
public void updateVelocity(Particle particle)
- Perform the velocity update for the given Particle.
- Specified by:
updateVelocity
in interface VelocityUpdateStrategy
- Overrides:
updateVelocity
in class StandardVelocityUpdate
- Parameters:
particle
- The Particle velocity that should be updated.
getCongnitiveRandomGenerator
public Random getCongnitiveRandomGenerator()
- Return the random number generator for the cognitive component.
- Returns:
- Returns the random number generator for the cognitive component.
setCongnitiveRandomGenerator
public void setCongnitiveRandomGenerator(Random congnitiveRandomGenerator)
- Parameters:
congnitiveRandomGenerator
- The congnitiveRandomGenerator to set.
getSocialRandomGenerator
public Random getSocialRandomGenerator()
- Returns:
- Returns the socialRandomGenerator.
setSocialRandomGenerator
public void setSocialRandomGenerator(Random socialRandomGenerator)
- Parameters:
socialRandomGenerator
- The socialRandomGenerator to set.
Copyright © 2009 CIRG. All Rights Reserved.