net.sourceforge.cilib.pso.velocityupdatestrategies
Class LinearVelocityUpdate

java.lang.Object
  extended by net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
      extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
cognitiveAcceleration, inertiaWeight, socialAcceleration, vMax
 
Constructor Summary
LinearVelocityUpdate()
          Create an instance of LinearVelocityUpdate.
 
Method Summary
 Random getCongnitiveRandomGenerator()
          Return the random number generator for the cognitive component.
 Random getSocialRandomGenerator()
           
 void setCongnitiveRandomGenerator(Random congnitiveRandomGenerator)
           
 void setSocialRandomGenerator(Random socialRandomGenerator)
           
 void updateVelocity(Particle particle)
          Perform the velocity update for the given Particle.
 
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
 

Constructor Detail

LinearVelocityUpdate

public LinearVelocityUpdate()
Create an instance of LinearVelocityUpdate.

Method Detail

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.