net.sourceforge.cilib.pso.iterationstrategies
Class ASynchronousIterationStrategy
java.lang.Object
net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy<PSO>
net.sourceforge.cilib.pso.iterationstrategies.ASynchronousIterationStrategy
- All Implemented Interfaces:
- Serializable, IterationStrategy<PSO>, Cloneable
public class ASynchronousIterationStrategy
- extends AbstractIterationStrategy<PSO>
Implementation of the asynchrounous iteration strategy for PSO.
- Author:
- Gary Pampara
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASynchronousIterationStrategy
public ASynchronousIterationStrategy()
getClone
public ASynchronousIterationStrategy 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 IterationStrategy<PSO>
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class AbstractIterationStrategy<PSO>
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
performIteration
public void performIteration(PSO algorithm)
This is an ASynchronous strategy:
- For all particles:
- Update the particle velocity
- Update the particle position
- Calculate the particle fitness
- For all paritcles in the current particle's neighbourhood
- Update the nieghbourhooh best
- Specified by:
performIteration
in interface IterationStrategy<PSO>
- Specified by:
performIteration
in class AbstractIterationStrategy<PSO>
- Parameters:
algorithm
- The algorithm to which an iteration is to be applied.- See Also:
net.sourceforge.cilib.PSO.IterationStrategy#performIteration()
Copyright © 2009 CIRG. All Rights Reserved.