net.sourceforge.cilib.pso.positionupdatestrategies
Class BoundedPersonalBestUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.positionupdatestrategies.StandardPersonalBestUpdateStrategy
net.sourceforge.cilib.pso.positionupdatestrategies.BoundedPersonalBestUpdateStrategy
- All Implemented Interfaces:
- Serializable, PersonalBestUpdateStrategy, Cloneable
public class BoundedPersonalBestUpdateStrategy
- extends StandardPersonalBestUpdateStrategy
Update the personal best of the particle, if it is a valid update. Valid updates are
defined to be only within the problem search space. Any particle drifting into an
infeasible part of the search space will be allowed to do so, however, any solutions
found will not allowed to become personal best positions.
- Author:
- gpampara
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundedPersonalBestUpdateStrategy
public BoundedPersonalBestUpdateStrategy()
getClone
public PersonalBestUpdateStrategy getClone()
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface PersonalBestUpdateStrategy
- Specified by:
getClone
in interface Cloneable
- Overrides:
getClone
in class StandardPersonalBestUpdateStrategy
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
updatePersonalBest
public void updatePersonalBest(Particle particle)
- Update personal best if and only if the particle is within the bounds of the
search space / problem.
- Specified by:
updatePersonalBest
in interface PersonalBestUpdateStrategy
- Overrides:
updatePersonalBest
in class StandardPersonalBestUpdateStrategy
- Parameters:
particle
- The particle to update.
Copyright © 2009 CIRG. All Rights Reserved.