net.sourceforge.cilib.pso.dynamic
Class ChargedVelocityUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChargedVelocityUpdateStrategy
public ChargedVelocityUpdateStrategy()
ChargedVelocityUpdateStrategy
public ChargedVelocityUpdateStrategy(ChargedVelocityUpdateStrategy copy)
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.