net.sourceforge.cilib.pso.iterationstrategies
Class ASynchronousIterationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy<PSO>
      extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy
boundaryConstraint, operatorPipeline
 
Constructor Summary
ASynchronousIterationStrategy()
           
 
Method Summary
 ASynchronousIterationStrategy getClone()
          Create a cloned copy of the current object and return it.
 void performIteration(PSO algorithm)
          This is an ASynchronous strategy:
 
Methods inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy
getBoundaryConstraint, getOperatorPipeline, setBoundaryConstraint, setOperatorPipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASynchronousIterationStrategy

public ASynchronousIterationStrategy()
Method Detail

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:

  1. For all particles:
    1. Update the particle velocity
    2. Update the particle position
    3. Calculate the particle fitness
    4. For all paritcles in the current particle's neighbourhood
      1. 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.