Configuration for Particle Swarm Optimization.
More...
#include <MathOpt_PSO.hxx>
|
| | PSOConfig () |
| | Default constructor.
|
| | PSOConfig (int theNbParticles, int theMaxIter=100, double theTolerance=1.0e-8) |
| | Constructor with parameters.
|
| | NDimConfig ()=default |
| | Default constructor.
|
| | NDimConfig (double theTolerance, int theMaxIter=100, bool theUseBounds=false) |
| | Constructor with tolerance.
|
| | Config ()=default |
| | Default constructor with standard tolerances.
|
| | Config (double theTolerance, int theMaxIter=100) |
| | Constructor with custom tolerance (sets all tolerances to same value).
|
Configuration for Particle Swarm Optimization.
◆ PSOConfig() [1/2]
| MathOpt::PSOConfig::PSOConfig |
( |
| ) |
|
|
inline |
◆ PSOConfig() [2/2]
| MathOpt::PSOConfig::PSOConfig |
( |
int | theNbParticles, |
|
|
int | theMaxIter = 100, |
|
|
double | theTolerance = 1.0e-8 ) |
|
inline |
Constructor with parameters.
◆ BoundaryMode
◆ InertiaSchedule
◆ InitMode
◆ MaxRestarts
| int MathOpt::PSOConfig::MaxRestarts = 0 |
Maximum restart count (0 = unlimited when fraction > 0)
◆ MinIterations
| int MathOpt::PSOConfig::MinIterations = 0 |
Minimum iterations before convergence.
◆ NbParticles
| int MathOpt::PSOConfig::NbParticles = 40 |
Number of particles in the swarm.
◆ NoImproveIters
| int MathOpt::PSOConfig::NoImproveIters = 10 |
Stagnation iteration threshold.
◆ NoImproveTol
| double MathOpt::PSOConfig::NoImproveTol = 0.0 |
Stagnation tolerance (0 = use Tolerance)
◆ Omega
| double MathOpt::PSOConfig::Omega = 0.7 |
Inertia weight (velocity decay)
◆ OmegaMin
| double MathOpt::PSOConfig::OmegaMin = 0.4 |
Min inertia for LinearDecay.
◆ PhiGlobal
| double MathOpt::PSOConfig::PhiGlobal = 1.5 |
Global best attraction coefficient.
◆ PhiPersonal
| double MathOpt::PSOConfig::PhiPersonal = 1.5 |
Personal best attraction coefficient.
◆ PolishBudgetPerDim
| int MathOpt::PSOConfig::PolishBudgetPerDim = 50 |
Max polishing evals per dimension (0 = no polishing)
◆ RestartFraction
| double MathOpt::PSOConfig::RestartFraction = 0.0 |
Fraction of particles to reinitialize (0 = no restarts)
◆ Seed
| unsigned int MathOpt::PSOConfig::Seed = 6 |
Random seed for reproducibility.
◆ TargetValue
| std::optional<double> MathOpt::PSOConfig::TargetValue |
Early stop if best <= target (nullopt = disabled)
◆ VelocityClamp
| double MathOpt::PSOConfig::VelocityClamp = 0.5 |
Max velocity as fraction of search space.
The documentation for this struct was generated from the following file: