net.sourceforge.cilib.pso.iterationstrategies
Class SynchronousIterationStrategy

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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy
boundaryConstraint, operatorPipeline
 
Constructor Summary
SynchronousIterationStrategy()
           
 
Method Summary
 SynchronousIterationStrategy getClone()
          Create a cloned copy of the current object and return it.
 void performIteration(PSO pso)
          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

SynchronousIterationStrategy

public SynchronousIterationStrategy()
Method Detail

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:

  1. For all particles:
    1. Update the particle velocity
    2. Update the particle position
  2. For all particles:
    1. Calculate the particle fitness
    2. 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:
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.