net.sourceforge.cilib.pso.dynamic
Class ChargedVelocityUpdateStrategy

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

public class ChargedVelocityUpdateStrategy
extends StandardVelocityUpdate

Velocity update strategy that the so called Charged PSO makes use of. This is an implementation of the original Charged PSO algorithm developed by Blackwell and Bentley and then further improved by Blackwell and Branke.

Author:
Anna Rakitianskaia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
cognitiveAcceleration, inertiaWeight, socialAcceleration, vMax
 
Constructor Summary
ChargedVelocityUpdateStrategy()
           
ChargedVelocityUpdateStrategy(ChargedVelocityUpdateStrategy copy)
           
 
Method Summary
 ChargedVelocityUpdateStrategy getClone()
          Clone the VelocityUpdateStrategy object.
 double getP()
           
 double getPCore()
           
 void setP(double p)
           
 void setPCore(double core)
           
 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

ChargedVelocityUpdateStrategy

public ChargedVelocityUpdateStrategy()

ChargedVelocityUpdateStrategy

public ChargedVelocityUpdateStrategy(ChargedVelocityUpdateStrategy copy)
Method Detail

getClone

public ChargedVelocityUpdateStrategy getClone()
Description copied from class: StandardVelocityUpdate
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)
Description copied from class: StandardVelocityUpdate
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.

getP

public double getP()
Returns:
the p

setP

public void setP(double p)
Parameters:
p - the p to set

getPCore

public double getPCore()
Returns:
the pCore

setPCore

public void setPCore(double core)
Parameters:
core - the pCore to set


Copyright © 2009 CIRG. All Rights Reserved.