Configuration parameters for PSO.
More...
#include <PSO.hpp>
Configuration parameters for PSO.
Definition at line 21 of file PSO.hpp.
◆ cognitive_coeff
| Real mc::optim::PSOConfig::cognitive_coeff = 1.5 |
Cognitive coefficient (c1): scales attraction to particle best.
Definition at line 30 of file PSO.hpp.
◆ inertia_weight
| Real mc::optim::PSOConfig::inertia_weight = 0.7 |
Inertia weight (w): scales previous velocity.
Definition at line 28 of file PSO.hpp.
◆ max_iterations
| size_t mc::optim::PSOConfig::max_iterations = 100 |
Number of iterations to run the optimizer.
Definition at line 25 of file PSO.hpp.
◆ population_size
| size_t mc::optim::PSOConfig::population_size = 50 |
Number of particles in the swarm.
Definition at line 23 of file PSO.hpp.
◆ social_coeff
| Real mc::optim::PSOConfig::social_coeff = 1.5 |
Social coefficient (c2): scales attraction to global best.
Definition at line 32 of file PSO.hpp.
The documentation for this struct was generated from the following file: