net.sourceforge.cilib.pso.velocityupdatestrategies
Class CoherenceVelocityUpdate

java.lang.Object
  extended by net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
      extended by net.sourceforge.cilib.pso.velocityupdatestrategies.CoherenceVelocityUpdate
All Implemented Interfaces:
Serializable, VelocityUpdateStrategy, Cloneable

public class CoherenceVelocityUpdate
extends StandardVelocityUpdate

Velocity update for the Coherence PSO.

Author:
Daniel Lowes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
cognitiveAcceleration, inertiaWeight, socialAcceleration, vMax
 
Constructor Summary
CoherenceVelocityUpdate()
          Create an instance of CoherenceVelocityUpdate.
CoherenceVelocityUpdate(CoherenceVelocityUpdate copy)
          Copy constructor.
 
Method Summary
 CoherenceVelocityUpdate getClone()
          Clone the VelocityUpdateStrategy object.
 void updateVelocity(Particle particle)
          Perform the velocity update for the given Particle.
 
Methods inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
clamp, 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

CoherenceVelocityUpdate

public CoherenceVelocityUpdate()
Create an instance of CoherenceVelocityUpdate.


CoherenceVelocityUpdate

public CoherenceVelocityUpdate(CoherenceVelocityUpdate copy)
Copy constructor. Create a copy of the given instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public CoherenceVelocityUpdate getClone()
Clone the VelocityUpdateStrategy object.

Specified by:
getClone in interface VelocityUpdateStrategy
Specified by:
getClone in interface Cloneable
Overrides:
getClone in class StandardVelocityUpdate
Returns:
A cloned VelocityUpdateStrategy
See Also:
Object.clone()

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.


Copyright © 2009 CIRG. All Rights Reserved.