Monte Carlo Integration Library 1.0
High-performance Monte Carlo methods for numerical integration and optimization
Public Attributes | List of all members
mc::optim::PSOConfig Struct Reference

Configuration parameters for PSO. More...

#include <PSO.hpp>

Collaboration diagram for mc::optim::PSOConfig:

Public Attributes

size_t population_size = 50
 Number of particles in the swarm.
 
size_t max_iterations = 100
 Number of iterations to run the optimizer.
 
Real inertia_weight = 0.7
 Inertia weight (w): scales previous velocity.
 
Real cognitive_coeff = 1.5
 Cognitive coefficient (c1): scales attraction to particle best.
 
Real social_coeff = 1.5
 Social coefficient (c2): scales attraction to global best.
 

Detailed Description

Configuration parameters for PSO.

Definition at line 21 of file PSO.hpp.

Member Data Documentation

◆ 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: