|
Monte Carlo Integration Library 1.0
High-performance Monte Carlo methods for numerical integration and optimization
|
Particle Swarm Optimization benchmark suite. More...
Go to the source code of this file.
Functions | |
| void | runSphereTest (opt::PSO &pso, const opt::Coordinates &lower, const opt::Coordinates &upper) |
| Test 1: Sphere Function. | |
| void | runBoundaryTest (opt::PSO &pso, const opt::Coordinates &lower, const opt::Coordinates &upper) |
| Test 2: Boundary Constraint Test Objective: Minimize f(x, y) = x + y This function is a constant inclined plane. | |
| void | runRastriginTest (opt::PSO &pso, int dim) |
| Test 3: High-Dimensional Rastrigin Function Objective: Minimize f(x) = 10n + sum(x_i^2 - 10cos(2*pi*x_i)) Domain: [-5.12, 5.12] Global Minimum: 0.0 at x = [0, 0, ..., 0]. | |
| void | runVisualPSOBenchmark () |
| void | runVisualPSO3DBenchmark () |
| void | runOptimizationBenchmarksPSO () |
Particle Swarm Optimization benchmark suite.
Comprehensive testing of PSO performance on various optimization problems:
Test Problems:
Metrics:
Definition in file pso_benchmarks.cpp.
| void runBoundaryTest | ( | opt::PSO & | pso, |
| const opt::Coordinates & | lower, | ||
| const opt::Coordinates & | upper | ||
| ) |
Test 2: Boundary Constraint Test Objective: Minimize f(x, y) = x + y This function is a constant inclined plane.
There is no local minimum inside the domain (constant gradient). Particles must push to the extreme lower limit. Expected Minimum: -20.0 at [-10, -10]
Definition at line 95 of file pso_benchmarks.cpp.
| void runOptimizationBenchmarksPSO | ( | ) |
| void runRastriginTest | ( | opt::PSO & | pso, |
| int | dim | ||
| ) |
Test 3: High-Dimensional Rastrigin Function Objective: Minimize f(x) = 10n + sum(x_i^2 - 10cos(2*pi*x_i)) Domain: [-5.12, 5.12] Global Minimum: 0.0 at x = [0, 0, ..., 0].
Why it is hard: This function creates a grid of local minima. In high dimensions (e.g., 10D), simplistic optimizers get stuck in a local valley instead of finding the global 0. A successful run requires a good balance of exploration and exploitation.
Definition at line 160 of file pso_benchmarks.cpp.
| void runSphereTest | ( | opt::PSO & | pso, |
| const opt::Coordinates & | lower, | ||
| const opt::Coordinates & | upper | ||
| ) |
Test 1: Sphere Function.
Objective: Minimize f(x, y) = x^2 + y^2 Global Minimum: 0 at [0, 0] Search Space: [-10, 10] per dimension
Definition at line 44 of file pso_benchmarks.cpp.
| void runVisualPSO3DBenchmark | ( | ) |
| void runVisualPSOBenchmark | ( | ) |