net.sourceforge.cilib.pso.iterationstrategies
Class SynchronousIterationStrategy
java.lang.Object
net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy<PSO>
net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy
- All Implemented Interfaces:
- Serializable, IterationStrategy<PSO>, Cloneable
public class SynchronousIterationStrategy
- extends AbstractIterationStrategy<PSO>
Implementation of the synchronous 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 |
SynchronousIterationStrategy
public SynchronousIterationStrategy()
getClone
public SynchronousIterationStrategy 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 pso)
This is an ASynchronous strategy:
- For all particles:
- Update the particle velocity
- Update the particle position
- For all particles:
- 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:
pso
- The PSO
to have an iteration applied.- See Also:
net.sourceforge.cilib.PSO.IterationStrategy#performIteration(net.sourceforge.cilib.PSO.PSO)
Copyright © 2009 CIRG. All Rights Reserved.