ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkInitializationBiasedParticleSwarmOptimizer.h>
Implementation of a biased/regularized Particle Swarm Optimization (PSO) algorithm.
This PSO algorithm was originally described in: M. P. Wachowiak, R. Smolikova, Y. Zheng, J. M. Zurada, A. S. Elmaghraby, "An approach to multimodal biomedical image registration utilizing particle swarm optimization", IEEE Trans. Evol. Comput., vol. 8(3): 289-301, 2004.
The algorithm uses a stochastic optimization approach. Optimization is performed by maintaining a swarm (flock) of particles that traverse the parameter space, searching for the optimal function value. Associated with each particle are its location and speed, in parameter space. A particle's next location is determined by its current location, its current speed, the location of the best function value it previously encountered, the location of the best function value the particles in its neighborhood previously encountered and the initial position the user specified.
The assumption is that the user's initial parameter settings are close to the minimum, which is often the case for registration. The initial parameter values are incorporated into the PSO's update rules, biasing the search in their direction. The swarms update equations are thus:
where are and are user selected weights, and c_3 is linearly decreased per iteration so that it is in .
Swarm initialization is performed within the user supplied parameter bounds using a uniform distribution or a normal distribution centered on the initial parameter values supplied by the user, . The search terminates when the maximal number of iterations has been reached or when the change in the best value in the past generations is below a threshold and the swarm has collapsed (i.e. particles are close to each other in parameter space).
Definition at line 71 of file itkInitializationBiasedParticleSwarmOptimizer.h.
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
InitializationBiasedParticleSwarmOptimizer () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | UpdateSwarm () |
virtual | ~InitializationBiasedParticleSwarmOptimizer () |
Protected Member Functions inherited from itk::ParticleSwarmOptimizerBase | |
void | FileInitialization () |
virtual void | Initialize () |
void | operator= (const Self &) |
ParticleSwarmOptimizerBase () | |
ParticleSwarmOptimizerBase (const Self &) | |
void | PrintParamtersType (const ParametersType &x, std::ostream &os) const |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | RandomInitialization () |
virtual void | ValidateSettings () |
virtual | ~ParticleSwarmOptimizerBase () |
Protected Member Functions inherited from itk::SingleValuedNonLinearOptimizer | |
void | PrintSelf (std::ostream &os, Indent indent) const |
SingleValuedNonLinearOptimizer () | |
virtual | ~SingleValuedNonLinearOptimizer () |
Protected Member Functions inherited from itk::NonLinearOptimizer | |
NonLinearOptimizer () | |
virtual | ~NonLinearOptimizer () |
Protected Member Functions inherited from itk::Optimizer | |
Optimizer () | |
virtual void | SetCurrentPosition (const ParametersType ¶m) |
virtual | ~Optimizer () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
InitializationBiasedParticleSwarmOptimizer (const Self &) | |
void | operator= (const Self &) |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::ParticleSwarmOptimizerBase | |
CostFunctionType::MeasureType | m_FunctionBestValue |
std::vector< MeasureType > | m_FunctionBestValueMemory |
CostFunctionType::MeasureType | m_FunctionConvergenceTolerance |
bool | m_InitializeNormalDistribution |
NumberOfIterationsType | m_IterationIndex |
NumberOfIterationsType | m_MaximalNumberOfIterations |
NumberOfGenerationsType | m_NumberOfGenerationsWithMinimalImprovement |
NumberOfParticlesType | m_NumberOfParticles |
ParameterBoundsType | m_ParameterBounds |
ParametersType | m_ParametersBestValue |
ParametersType | m_ParametersConvergenceTolerance |
std::vector< ParticleData > | m_Particles |
double | m_PercentageParticlesConverged |
bool | m_PrintSwarm |
RandomVariateGeneratorType::IntegerType | m_Seed |
std::ostringstream | m_StopConditionDescription |
bool | m_UseSeed |
Definition at line 81 of file itkInitializationBiasedParticleSwarmOptimizer.h.
Definition at line 79 of file itkInitializationBiasedParticleSwarmOptimizer.h.
Definition at line 78 of file itkInitializationBiasedParticleSwarmOptimizer.h.
typedef InitializationBiasedParticleSwarmOptimizer itk::InitializationBiasedParticleSwarmOptimizer::Self |
Standard "Self" typedef.
Definition at line 76 of file itkInitializationBiasedParticleSwarmOptimizer.h.
Definition at line 77 of file itkInitializationBiasedParticleSwarmOptimizer.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 118 of file itkInitializationBiasedParticleSwarmOptimizer.h.
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ParticleSwarmOptimizerBase.
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
virtual |
The Particle swarm optimizer uses the following update formula:
where - inertia constant - personal coefficient - global coefficient - initial location coefficient - parameters yielding the best function value obtained by this particle - parameters yielding the best function value obtained by all particles - initial parameter values provided by user
|
protectedvirtual |
Implement your update rule in this function.
Implements itk::ParticleSwarmOptimizerBase.
|
private |
Definition at line 130 of file itkInitializationBiasedParticleSwarmOptimizer.h.
|
private |
Definition at line 128 of file itkInitializationBiasedParticleSwarmOptimizer.h.
|
private |
Definition at line 131 of file itkInitializationBiasedParticleSwarmOptimizer.h.
|
private |
Definition at line 129 of file itkInitializationBiasedParticleSwarmOptimizer.h.