net.sourceforge.cilib.pso.dynamic.responsestrategies
Class PartialReinitialisationResponseStrategy<E extends PopulationBasedAlgorithm>

java.lang.Object
  extended by net.sourceforge.cilib.pso.dynamic.responsestrategies.EnvironmentChangeResponseStrategy<E>
      extended by net.sourceforge.cilib.pso.dynamic.responsestrategies.ParticleReevaluationResponseStrategy<E>
          extended by net.sourceforge.cilib.pso.dynamic.responsestrategies.PartialReinitialisationResponseStrategy<E>
All Implemented Interfaces:
Serializable, Cloneable

public class PartialReinitialisationResponseStrategy<E extends PopulationBasedAlgorithm>
extends ParticleReevaluationResponseStrategy<E>

Author:
Anna Rakitianskaia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.dynamic.responsestrategies.EnvironmentChangeResponseStrategy
hasMemory
 
Constructor Summary
PartialReinitialisationResponseStrategy()
           
PartialReinitialisationResponseStrategy(PartialReinitialisationResponseStrategy<E> copy)
           
 
Method Summary
 PartialReinitialisationResponseStrategy<E> getClone()
          Clone the EnvironmentChangeResponseStrategy object.
 Random getRandomiser()
           
 double getReinitialisationRatio()
           
 void performReaction(E algorithm)
          Respond to environment change by re-evaluating each particle's position, personal best and neighbourhood best, and reinitialising the positions of a specified percentage of particles.
 void setRandomiser(Random randomiser)
           
 void setReinitialisationRatio(double reinitialisationRatio)
           
 
Methods inherited from class net.sourceforge.cilib.pso.dynamic.responsestrategies.ParticleReevaluationResponseStrategy
respond
 
Methods inherited from class net.sourceforge.cilib.pso.dynamic.responsestrategies.EnvironmentChangeResponseStrategy
getHasMemory, setHasMemory, updateNeighbourhoodBestEntities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialReinitialisationResponseStrategy

public PartialReinitialisationResponseStrategy()

PartialReinitialisationResponseStrategy

public PartialReinitialisationResponseStrategy(PartialReinitialisationResponseStrategy<E> copy)
Method Detail

getClone

public PartialReinitialisationResponseStrategy<E> getClone()
Description copied from class: EnvironmentChangeResponseStrategy
Clone the EnvironmentChangeResponseStrategy object.

Specified by:
getClone in interface Cloneable
Overrides:
getClone in class ParticleReevaluationResponseStrategy<E extends PopulationBasedAlgorithm>
Returns:
A cloned EnvironmentChangeResponseStrategy
See Also:
Object.clone()

performReaction

public void performReaction(E algorithm)
Respond to environment change by re-evaluating each particle's position, personal best and neighbourhood best, and reinitialising the positions of a specified percentage of particles.

Overrides:
performReaction in class ParticleReevaluationResponseStrategy<E extends PopulationBasedAlgorithm>
Parameters:
algorithm - PSO algorithm that has to respond to environment change

getReinitialisationRatio

public double getReinitialisationRatio()
Returns:
the reinitialisationRatio

setReinitialisationRatio

public void setReinitialisationRatio(double reinitialisationRatio)
Parameters:
reinitialisationRatio - the reinitialisationRatio to set

getRandomiser

public Random getRandomiser()
Returns:
the randomiser

setRandomiser

public void setRandomiser(Random randomiser)
Parameters:
randomiser - the randomiser to set


Copyright © 2009 CIRG. All Rights Reserved.