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 |
bool | areGenotypesAdded_ |
bool | bounded_ |
constrained or not | |
double | lbound_ |
double | ubound_ |
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 21 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 104 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 31 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 18 of file AlgParticleSwarmOptimization.cpp.