net.sourceforge.cilib.pso.velocityupdatestrategies
Class MOVelocityUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
net.sourceforge.cilib.pso.velocityupdatestrategies.MOVelocityUpdateStrategy
- All Implemented Interfaces:
- Serializable, VelocityUpdateStrategy, Cloneable
public class MOVelocityUpdateStrategy
- extends StandardVelocityUpdate
With Multi-objective PSO
s the pBest and lBest (or gBest) particles are replaced with the
concept of local and global guides respectively. This class is a generic VelocityUpdateStrategy
implementation for most Multi-objective PSOs. It makes use of two GuideSelectionStrategy
instances that is responsible for selecting these guides for every particle. After the guides have
been selected, different criteria can be used to determine if the particle's guides should be updated.
This is achieved by making use of two GuideUpdateStrategy
instances.
- Author:
- Wiehann Matthysen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOVelocityUpdateStrategy
public MOVelocityUpdateStrategy()
MOVelocityUpdateStrategy
public MOVelocityUpdateStrategy(MOVelocityUpdateStrategy copy)
getClone
public MOVelocityUpdateStrategy 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()
setLocalGuideSelectionStrategy
public void setLocalGuideSelectionStrategy(GuideSelectionStrategy localGuideSelectionStrategy)
getLocalGuideSelectionStrategy
public GuideSelectionStrategy getLocalGuideSelectionStrategy()
setGlobalGuideSelectionStrategy
public void setGlobalGuideSelectionStrategy(GuideSelectionStrategy globalGuideSelectionStrategy)
getGlobalGuideSelectionStrategy
public GuideSelectionStrategy getGlobalGuideSelectionStrategy()
setLocalGuideUpdateStrategy
public void setLocalGuideUpdateStrategy(GuideUpdateStrategy localGuideUpdateStrategy)
getLocalGuideUpdateStrategy
public GuideUpdateStrategy getLocalGuideUpdateStrategy()
setGlobalGuideUpdateStrategy
public void setGlobalGuideUpdateStrategy(GuideUpdateStrategy globalGuideUpdateStrategy)
getGlobalGuideUpdateStrategy
public GuideUpdateStrategy getGlobalGuideUpdateStrategy()
selectGuides
protected void selectGuides(Particle particle)
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.
Copyright © 2009 CIRG. All Rights Reserved.