Particle swarm optimization algorithm (see e.g. http://en.wikipedia.org/wiki/Particle_swarm_optimization)PSO algorithm accepts only a single FloatingPoint genotype (vector of real values). Additionally, it adds the following genotypes for algorithm implementation:
#include <AlgParticleSwarmOptimization.h>
Public Types | |
enum | InertiaWeightType { CONSTANT, TIME_VARIANT } |
Public Member Functions | |
bool | advanceGeneration (StateP state, DemeP deme) |
Perform a single generation on a single deme. | |
bool | initialize (StateP state) |
Initialize the algorithm, read parameters from the system, do a sanity check. | |
void | registerParameters (StateP state) |
Register algorithm's parameters (if any). | |
Protected Attributes | |
SelectionOperatorP | selBestOp |
int | m_maxIter |
InertiaWeightType | m_weightType |
double | m_weight |
double | m_maxV |
Particle swarm optimization algorithm (see e.g. http://en.wikipedia.org/wiki/Particle_swarm_optimization)
PSO algorithm accepts only a single FloatingPoint genotype (vector of real values). Additionally, it adds the following genotypes for algorithm implementation:
Definition at line 22 of file AlgParticleSwarmOptimization.h.
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 25 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 16 of file AlgParticleSwarmOptimization.cpp.