net.sourceforge.cilib.pso.dynamic.responsestrategies
Class PartialReinitialisationResponseStrategy<E extends PopulationBasedAlgorithm>
java.lang.Object
net.sourceforge.cilib.pso.dynamic.responsestrategies.EnvironmentChangeResponseStrategy<E>
net.sourceforge.cilib.pso.dynamic.responsestrategies.ParticleReevaluationResponseStrategy<E>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartialReinitialisationResponseStrategy
public PartialReinitialisationResponseStrategy()
PartialReinitialisationResponseStrategy
public PartialReinitialisationResponseStrategy(PartialReinitialisationResponseStrategy<E> copy)
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.