net.sourceforge.cilib.pso.moo.guideselectionstrategies
Class NBestGuideSelectionStrategy
java.lang.Object
net.sourceforge.cilib.pso.moo.guideselectionstrategies.NBestGuideSelectionStrategy
- All Implemented Interfaces:
- Serializable, GuideSelectionStrategy, Cloneable
public class NBestGuideSelectionStrategy
- extends Object
- implements GuideSelectionStrategy
A concrete implementation of GuideSelectionStrategy
where the neighbourhood
best position of a particle gets selected as a guide (usually global guide).
- 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 |
NBestGuideSelectionStrategy
public NBestGuideSelectionStrategy()
NBestGuideSelectionStrategy
public NBestGuideSelectionStrategy(NBestGuideSelectionStrategy copy)
getClone
public NBestGuideSelectionStrategy getClone()
- Description copied from interface:
Cloneable
- 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 GuideSelectionStrategy
- Specified by:
getClone
in interface Cloneable
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
selectGuide
public Vector selectGuide(Particle particle)
- Description copied from interface:
GuideSelectionStrategy
- Selects a guide for
particle
.
- Specified by:
selectGuide
in interface GuideSelectionStrategy
- Parameters:
particle
- The particle who's guide will be selected.
- Returns:
- The selected guide.
Copyright © 2009 CIRG. All Rights Reserved.