Public Types | Public Member Functions | Protected Attributes

ParticleSwarmOptimization Class Reference

Particle swarm optimization algorithm (see e.g. http://en.wikipedia.org/wiki/Particle_swarm_optimization). More...

#include <AlgParticleSwarmOptimization.h>

Inheritance diagram for ParticleSwarmOptimization:
Algorithm

List of all members.

Public Types

enum  InertiaWeightType { CONSTANT, TIME_VARIANT }

Public Member Functions

bool advanceGeneration (StateP state, DemeP deme)
bool initialize (StateP state)
void registerParameters (StateP state)

Protected Attributes

SelectionOperatorP selBestOp
int m_maxIter
InertiaWeightType m_weightType
double m_weight
double m_maxV

Detailed Description

Particle swarm optimization algorithm (see e.g. http://en.wikipedia.org/wiki/Particle_swarm_optimization).

PSO algorithm accepts only a single Binary genotype. Additionally, it adds the following genotypes for algorithm implementation:

Definition at line 21 of file AlgParticleSwarmOptimization.h.


Member Function Documentation

bool ParticleSwarmOptimization::advanceGeneration ( StateP  ,
DemeP   
) [virtual]

Perform a single generation on a single deme.

Must be implemented by a specific algorithm class

Implements Algorithm.

Definition at line 83 of file AlgParticleSwarmOptimization.cpp.

bool ParticleSwarmOptimization::initialize ( StateP   )  [virtual]

Initialize the algorithm, read parameters from the system, do a sanity check.

Called by the system before the algorithm starts (Algorithm::advanceGeneration)

Reimplemented from Algorithm.

Definition at line 24 of file AlgParticleSwarmOptimization.cpp.

void ParticleSwarmOptimization::registerParameters ( StateP   )  [virtual]

Register algorithm's parameters (if any).

Called by the system before algorithm initialization (Algorithm::initialize)

Reimplemented from Algorithm.

Definition at line 15 of file AlgParticleSwarmOptimization.cpp.


The documentation for this class was generated from the following files: