| Evaluation Benchmark | Problem Dimension | Algorithm / Paradigm | Benchmark Result / Rank | Key Takeaway / Significance |
|---|---|---|---|---|
| IEEE CEC 2020 Suite (Fixed Budget: 50,000 NFEs) |
50D | AD-BSA (Proposed) CMA-ES (IPOP) jSO (CEC 2017 Winner) L-SHADE (CEC 2014 Winner) Standard DE / PSO |
Rank #1 (Friedman: 2.30) Rank #1 (Friedman: 2.30) Rank #3 (Friedman: 2.40) Rank #4 (Friedman: 3.40) Rank #6 / #5 (6.10 / 5.00) |
Tied for #1 rank on multimodal deception; exact zeros (0.00e+00) on Schwefel (F2) and Lunacek (F3). |
| Quantum Floquet Sensor (PRResearch 8, 033316, 2026) |
15D (Harmonics) |
AD-BSA (Proposed) L-SHADE Standard DE dCRAB Quantum Optimal |
Peak: 8.8324 (Mean: 5.13) Peak: 9.8685 (Mean: 4.86) Peak: 1.9812 (Mean: 2.01) Baseline: 0.6900 |
4.5x to 12x leap over standard baselines; 0.999997 unitary norm conservation (DOP853) and >99.3% retention under 1% noise. |
Figure 1: Logarithmic Accuracy Score on IEEE CEC 2020 (50 Dimensions, 50,000 NFEs, Higher is Better). Bars plot max(0, 10 - log10(Δf)), where zero error reaches the peak ceiling of 18.0 and higher bars indicate superior convergence.
In continuous high-dimensional global optimization (
AD-BSA explores a mathematical framework for Explicit Negative Learning (Anti-Attractor Dynamics). Alongside learning where to go, the swarm actively maps where not to be.
Originating from a conceptual reinterpretation of the mythical Boogeyman (El Cuco / El Viejo del Saco) as an aversive physical potential field, AD-BSA models:
-
Dynamic Anti-Attractor Clusters (
$\mathbf{S}_k$ ): Identified in the barycenters of the worst-performing solutions. -
The Bounded Cosecant Repulsion Barrier (
$|\csc(x)|$ ): A non-linear potential field providing high repulsive acceleration away from stagnation centers while dropping to zero in safe valleys. -
Power-Law Cooling Schedule: A power-law damping
$(1 - t/\text{MaxNFE})^\gamma$ that transitions search dynamics from basin evacuation in early phases to localized exploitation in later stages. - Historical Lehmer Parameter Memories & LPSR: Adaptive selection of differential parameters coupled with Linear Population Size Reduction.
Why "El Cuco" (The Boogeyman)?
Almost all classical optimization algorithms (PSO, Genetic Algorithms, CMA-ES, Differential Evolution) operate purely on Positive Learning: "See where the best solutions are and move towards them."In rugged, deceptive terrains, this blind attraction leads to premature stagnation—every agent falls into the same attractive trap.
AD-BSA introduces Explicit Negative Learning:
- The Boogeyman (Anti-Attractor): Clusters the worst solutions in the search space.
- The Repulsion Barrier: If an agent gets too close to a known bad region, a non-linear cosecant potential physically repels it away.
- The Sack & Safe House: Trapped solutions are captured and directionally redirected toward the global best (The Safe House).
The Takeaway: You don't just reach the optimal solution by chasing success; you reach it by actively running away from known disasters.
AD-BSA belongs to the evolutionary lineage of Adaptive Differential Evolution (DE), extending the successful architectural foundations of the SHADE family:
-
DE / JADE: Storn & Price (1997) introduced differential mutation. Zhang & Sanderson (2009) added auto-adaptive control parameters (
$F$ ,$CR$ ) with external archives. - SHADE / L-SHADE: Tanabe & Fukunaga (2013, 2014) introduced Success-History parameter adaptation with Lehmer means and Linear Population Size Reduction (LPSR), winning IEEE CEC 2014.
- jSO: Brest et al. (2017) refined parameter weighting and initial population rules, winning IEEE CEC 2017.
-
AD-BSA (This Work): Retains the historical Lehmer memory and LPSR backbone, while introducing explicit repulsive negative learning: generating multi-tier anti-attractor barycenters from the worst individuals and applying an analytical bounded cosecant barrier (
$|\csc|$ ) with power-law budget damping to prevent premature convergence in high-dimensional multimodal landscapes.
Let
To eliminate iterative clustering latency
The capture radius
For each candidate vector
The normalized distance to danger is:
The repulsive force profile is governed by the bounded cosecant barrier
The resulting escape vector is defined as:
Physical Significance:
- Near the trap (
$r \to 0$ ):$\phi(r) \to M_{\max} - 1.0$ , producing maximum repulsive acceleration to violently eject the solution from the basin of deception.- Far from danger (
$r_{\text{norm}} \ge 2.0$ ):$\phi(r) \equiv 0$ , eliminating all transverse perturbations and allowing pure, undisturbed descent along narrow parabolic valleys (e.g., Rosenbrock, Bent Cigar).
The repulsive force scales over the computational budget
The adaptive Lehmer parameter memory records
Offspring vectors
Where the three core operators synthesize:
-
Positive Elite Attraction: Pulls candidate solutions toward the top
$p$ -best safe havens. -
Negative Repulsion Barrier (
$\mathbf{v}_{\text{escape}}$ ): Expels candidates out of deceptive stagnation basins. -
Differential Exploration: Injects historical diversity via mutation difference vectors sampled from the swarm population and external archive (
$\mathbf{A}$ ).
AD-BSA was evaluated on the mathematical test functions of the IEEE CEC 2020 Single Objective Bound-Constrained Benchmark Suite in
Note
Protocol Context: This evaluation uses the mathematical problem definitions from the CEC 2020 benchmark suite under an independent, fixed-budget protocol (
All competitors were executed in their canonical competitive formulations:
-
jSO (Brest et al., IEEE CEC 2017 Winner —
$N_{init} \approx 691$ ,$r^{arc} = 2.6$ , midpoint boundary rule) -
CMA-ES (Hansen et al., Covariance Matrix Adaptation with IPOP Restarts
$\lambda \leftarrow 2\lambda$ ) -
L-SHADE (Tanabe & Fukunaga, IEEE CEC 2014 Winner —
$N_{init} = 18D = 900$ , midpoint boundary rule) - Canonical Cuckoo Search (Yang & Deb, 2009 — Mantegna Lévy Flights)
- Standard DE (DE/rand/1/bin with bounds clamping)
- Standard PSO (Canonical Global Best PSO with linear inertia decay and wall absorption)
| Rank | Algorithm | Friedman Score | Description / Lineage |
|---|---|---|---|
| 🥇 #1 | AD-BSA |
2.30 | Proposed: Bounded Cosecant Repulsion |
| 🥇 #1 | CMA-ES |
2.30 | Covariance Matrix Adaptation with IPOP Restarts |
| 🥉 #3 | jSO |
2.40 | IEEE CEC 2017 Winner (Enhanced iL-SHADE) |
| #4 | L-SHADE |
3.40 | IEEE CEC 2014 Winner (Linear Population Reduction SHADE) |
| #5 | Standard-PSO |
5.00 | Canonical Particle Swarm Optimization with linear inertia decay |
| #6 | Standard-DE |
6.10 | Classical Differential Evolution (DE/rand/1/bin) |
| #7 | Cuckoo-Search |
6.50 | Canonical Cuckoo Search with Mantegna Lévy Flights |
Sign marks for Wilcoxon signed-rank test vs AD-BSA (α = 0.05):
(+): AD-BSA significantly outperforms competitor (p < 0.05)(=): Statistically equivalent (p ≥ 0.05)(-): Competitor significantly outperforms AD-BSA (p < 0.05)
(Bold values indicate the best performer with lowest mean error for each row)
| Problem | Landscape Class |
AD-BSA (Proposed) |
jSO (CEC 2017) |
CMA-ES |
L-SHADE (CEC 2014) |
Standard-DE |
Standard-PSO |
Cuckoo-Search |
|---|---|---|---|---|---|---|---|---|
| F1 | Unimodal (Bent Cigar) | 834.28 ± 785.1 | 2112.29 ± 1756.8 (=) | 0.00e+00 (-) | 4296.57 ± 1823.2 (+) | 3.34e+08 ± 1.2e+08 (+) | 3.85e+08 ± 1.1e+09 (+) | 4.46e+09 ± 1.1e+09 (+) |
| F2 | Multimodal (Schwefel) | 0.00e+00 ± 0.0 | 696.40 ± 1786.6 (=) | 1869.31 ± 3608.1 (=) | 157.99 ± 250.1 (=) | 8075.19 ± 719.9 (+) | 2761.38 ± 2686.2 (+) | 2004.58 ± 636.7 (+) |
| F3 | Multimodal (Lunacek bi-Rastrigin) | 138.19 ± 19.8 | 246.56 ± 19.1 (+) | 101.12 ± 10.0 (-) | 317.47 ± 25.9 (+) | 1.24e+04 ± 4.1e+03 (+) | 9212.57 ± 11962.2 (+) | 1.43e+05 ± 2.6e+04 (+) |
| F4 | Multimodal (Rosenbrock + Griewank) | 6.61 ± 3.0 | 17.39 ± 0.9 (+) | 6.20 ± 0.9 (=) | 19.70 ± 1.3 (+) | 44.47 ± 2.8 (+) | 37.17 ± 9.6 (+) | 710.42 ± 327.1 (+) |
| F5 | Hybrid 1 ( |
6.88e+04 ± 3.1e+04 | 2.29e+04 ± 8.2e+03 (-) | 8855.96 ± 6267.5 (-) | 5.11e+04 ± 1.4e+04 (=) | 7.49e+06 ± 1.9e+06 (+) | 2.89e+06 ± 2.6e+06 (+) | 6.33e+06 ± 1.9e+06 (+) |
| F6 | Hybrid 2 ( |
124.94 ± 167.0 | 126.65 ± 151.3 (=) | 271.38 ± 365.2 (=) | 341.26 ± 331.8 (=) | 1.97e+04 ± 9.5e+03 (+) | 2.20e+04 ± 2.2e+04 (+) | 1.90e+05 ± 7.4e+04 (+) |
| F7 | Hybrid 3 ( |
5.70e+04 ± 2.2e+04 | 3.59e+04 ± 1.6e+04 (=) | 3417.47 ± 1650.1 (-) | 4.76e+04 ± 1.2e+04 (=) | 4.26e+07 ± 1.8e+07 (+) | 2.41e+06 ± 1.5e+06 (+) | 1.40e+07 ± 4.3e+06 (+) |
| F8 | Composition 1 ( |
74.69 ± 38.2 | 106.77 ± 5.6 (+) | 136.10 ± 17.4 (+) | 121.29 ± 8.3 (+) | 564.89 ± 698.1 (+) | 69.12 ± 73.8 (=) | 191.58 ± 236.1 (=) |
| F9 | Composition 2 ( |
200.00 ± 0.0 | 200.43 ± 0.2 (+) | 214.15 ± 42.4 (=) | 203.53 ± 0.8 (+) | 1982.99 ± 300.5 (+) | 3177.06 ± 2441.9 (+) | 7014.56 ± 961.3 (+) |
| F10 | Composition 3 ( |
789.48 ± 46.2 | 724.82 ± 9.6 (-) | 726.99 ± 17.2 (-) | 733.65 ± 7.8 (-) | 953.66 ± 52.9 (+) | 849.16 ± 84.8 (=) | 2075.40 ± 206.2 (+) |
To ensure transparency, reproducibility, and rigorous scientific reporting, the following scope constraints and empirical observations are highlighted:
-
Relative Performance & Statistical Significance vs. CMA-ES: Across the 10 benchmark problems of the IEEE CEC 2020 suite in 50D, CMA-ES statistically significantly outperforms AD-BSA on 5 out of 10 functions (F1, F3, F5, F7, F10 with
$p < 0.05$ via the Wilcoxon signed-rank test). Covariance matrix adaptation in CMA-ES demonstrates superior precision on ill-conditioned rotated unimodal landscapes and complex hybrid functions. AD-BSA's tied overall Friedman ranking (2.30) is anchored by its strong robustness and basin evacuation capability on deceptive multimodal landscapes (F2, F6, F9). -
Computational Budget Sensitivity in Population Reduction Algorithms: The experimental protocol evaluated a fixed computational budget of
$50,000$ evaluations ($1,000 \cdot D$ ). In official IEEE CEC competitions, the standard budget is substantially higher ($10,000 \cdot D = 500,000$ evaluations). Canonical SHADE-family algorithms—such as L-SHADE (initial population$N = 18 \cdot D = 900$ ) and jSO ($N \approx 691$ )—are designed to amortize linear population size reduction across hundreds of thousands of evaluations. Under a compact budget of 50,000 evaluations, a large fraction of function calls is consumed during the early large-population exploration phase, constraining their fine exploitative convergence compared to extended-budget regimes. -
Trade-off Between Escape Dynamics and Asymptotic Decimal Precision: In direct head-to-head experiments on 30D problems with
$75,000$ evaluations (benchmarks/benchmark_lshade_vs_adbsa.py), both algorithms reliably locate the global basin. The fully vectorized NumPy implementation of AD-BSA achieves a ~8.0x wall-clock CPU speedup per run (0.80 s vs. 6.38 s) compared to canonical Python L-SHADE. On smooth standard test functions, L-SHADE refines higher asymptotic decimal precision during the terminal exploitation phase, whereas AD-BSA's cosecant repulsion operator prioritizes rapid evacuation of deceptive stagnation traps and matrix throughput, exhibiting its primary advantage in high-dimensional multimodal topologies (as observed in CEC 2020 at 50D). -
Verifiability & Reproducibility: All execution scripts, experimental parameters, deterministic pseudo-random seeds, and raw JSON result files are fully archived in the
benchmarks/directory for independent verification.
To empirically assess the individual contribution of each novel mathematical component in AD-BSA, an ablation study was performed on representative problem classes of the IEEE CEC 2020 suite in
- Unimodal / Ill-Conditioned: F1 (Shifted and Rotated Bent Cigar)
- Massively Multimodal Trap: F2 (Shifted and Rotated Schwefel)
- Non-Separable Valleys: F4 (Expanded Rosenbrock + Griewank)
- Multi-Basin Composition: F8 (Composition Function 1)
-
Full AD-BSA (Proposed): The complete architecture with Bounded Cosecant Repulsion ($|\csc|$ ), Multi-Tier Stratified Anti-Attractors ($M = 2$ ), Decoupled Power-Law Cooling ($\gamma = 1.5$ ), and Linear Population Size Reduction (LPSR). -
w/o Cosecant Repulsion (v_esc = 0): Repulsive force disabled ($M_{\max} = 1.0$ ), reducing search to pure positive attraction and differential archive exploitation. -
w/o Power-Law Cooling (gamma = 0): Constant repulsion force maintained throughout all 50,000 evaluations without power-law budget damping. -
w/o Stratification (Single Centroid M = 1): Replaces the stratified fitness-rank niching with a single lumped centroid of the worst individuals.
| Component Configuration | F1 (Bent Cigar) | F2 (Schwefel) | F4 (Rosenbrock+Griewank) | F8 (Composition 1) | Friedman Rank |
|---|---|---|---|---|---|
Full AD-BSA (Proposed) |
2.25 | ||||
w/o Power-Law Cooling ( |
2.25 | ||||
w/o Cosecant Repulsion ( |
2.50 | ||||
w/o Stratification (Single Centroid |
3.00 |
-
Crucial Role of Multi-Tier Stratification (
$M = 2$ vs$M = 1$ ): Lumping all sub-optimal solutions into a single centroid ($M = 1$ ) collapses directional information about stagnation zones. Stratifying the worst$15%$ into$M = 2$ rank-based tiers preserves topological resolution in 50D, preventing rank degradation from 2.25 to 3.00. -
Impact of the Bounded Cosecant Barrier (
$|\csc|$ ): Deactivating the repulsive escape vector ($\mathbf{v}_{\text{esc}} = 0$ ) causes a$38.5%$ error increase on F1 ($659 \to 913$ ), demonstrating that explosive transverse repulsion accelerates the evacuation of narrow parabolic ridge traps without destabilizing descent. -
Reproducibility:
The ablation experiment can be executed with a single command:
python benchmarks/run_ablation_study.py --runs 5 --workers 4
Beyond synthetic testbeds, AD-BSA was evaluated on Multi-Harmonic Optimal Quantum Floquet Control applied to the atomtronic quantum sensing framework introduced by Carmona-López et al. ("Enhancing supercurrent-based inertial sensing via interactions in atomtronic angular accelerometers", Physical Review Research 8, 033316, 2026).
Modeling
where the driving phase
AD-BSA systematically detected and evacuated destructive quantum interference traps, achieving significant sensitivity gains over standard evolutionary operators:
$+75.5%$ ($D=10$ )$+184.3%$ ($2.84\times$ boost,$D=15$ )$+54.1%$ ($D=20$ )
Multi-Algorithm Benchmark on Quantum Floquet Control ($D=15$ , 10 Independent Runs, 350 Evaluations; Maximized Sensitivity $\uparrow$ )
| Algorithm | Optimization Paradigm | Mean Sensitivity ± Std | Median | Peak Score | Wilcoxon vs. AD-BSA |
|---|---|---|---|---|---|
| AD-BSA-Csc (Proposed) | Negative-Learning DE ( |
5.13 ± 2.30 | 5.31 | 8.15 | — (Baseline) |
| jSO (Brest et al.) | Adaptive DE (Success-History) | 3.50 ± 1.88 | 2.44 | 6.51 | p = 0.084 (Competitive Parity) |
| Standard DE | Canonical Differential Evolution | 2.01 ± 0.45 | 1.88 | 2.95 | p = 3.91 × 10⁻³ (AD-BSA Wins, 2.5×) |
| dCRAB (Nelder-Mead) | Standard Quantum Optimal Control | 0.69 ± 0.30 | 0.65 | 1.39 | p = 1.95 × 10⁻³ (AD-BSA Wins, 7.5×) |
Key Physical Insights in Quantum Optimal Control:
- DE Lineage vs. Physics Standard (dCRAB): In many-body Floquet landscapes, the canonical physics framework dCRAB (Chopped Random Basis) frequently stalls in suboptimal parameter basins. Differential Evolution architectures prove substantially better suited for multi-harmonic parameter synthesis, with AD-BSA achieving a 7.5× sensitivity gain over dCRAB (
$p = 1.95 \times 10^{-3}$ ).- Evacuating Destructive Interference Traps: Non-linear coupling between interaction
$U$ and driving phases$\theta_k$ creates broad destructive anti-resonances where atomic currents collapse ($\bar{I} \to 0$ ). Standard DE falls into these zero-current manifolds and stagnates ($2.01$ ), whereas AD-BSA's bounded cosecant repulsion treats zero-current zones as anti-attractor traps, expelling search vectors into constructive Floquet transmission channels to achieve a peak sensitivity of 8.15.
Install directly from the repository in editable/developer mode:
git clone https://github.com/Pipin333/AD-BSA.git
cd AD-BSA
pip install -e .Or install dependencies via requirements.txt:
pip install -r requirements.txtimport numpy as np
from ad_bsa import AD_BSA
# Define any continuous objective function (Sphere: min at 0.0)
def objective(x):
x = np.atleast_2d(x)
return np.sum(x**2, axis=1)
# Set search bounds: 50 dimensions in [-100, 100]
bounds = np.array([[-100.0, 100.0]] * 50)
# Instantiate and optimize
optimizer = AD_BSA(objective_func=objective, bounds=bounds, max_evaluations=50000, seed=42)
result = optimizer.optimize()
print(f"Global Best Fitness: {result.best_fitness:.6e}")
print(f"Total Evaluations: {result.total_evaluations}")
print(f"Execution Time: {result.execution_time:.2f} s")Run the full test suite and PEP 8 verification:
pytest tests/ -v
flake8 src/ad_bsa --max-line-length=88Run the parallelized multi-core CEC 2020 experiment runner:
# Run 10 independent runs per function across 4 CPU cores
python benchmarks/run_cec2020_50d.py --runs 10 --max-evals 50000 --workers 4
# Re-generate the summary tables and figures
python benchmarks/generate_cec2020_report.pyAD-BSA/
├── .gitignore # Strict filter ensuring pure mathematical codebase
├── LICENSE # Apache License Version 2.0
├── NOTICE # Apache attribution notice
├── CITATION.cff # Citation metadata for GitHub and Zenodo
├── pyproject.toml # Modern pip-installable package specification
├── requirements.txt # Core dependencies (numpy, scipy, matplotlib, opfunu, cma, pytest)
├── README.md # Comprehensive documentation & benchmark analysis
├── src/
│ └── ad_bsa/ # Core Python Library
│ ├── __init__.py # Exports: AD_BSA, jSO, CMA_ES, L_SHADE, CanonicalCuckooSearch, StandardDE, StandardPSO
│ ├── algorithm.py # Canonical AD-BSA with Bounded Cosecant Repulsion |csc|
│ ├── competitors.py # Standardized competitor implementations (jSO, CMA-ES, L-SHADE, etc.)
│ └── utils.py # Boundary reflection, evaluation counters, Wilcoxon statistical tests
├── benchmarks/
│ ├── run_cec2020_50d.py # Parallel multi-core CEC 2020 (50D) experiment runner
│ ├── run_ablation_study.py # Empirical ablation study & component contribution runner
│ ├── benchmark_lshade_vs_adbsa.py # Head-to-head runtime & quality benchmark vs canonical L-SHADE
│ ├── lshade_vs_adbsa_results.json# Raw JSON output of 10-run 30D L-SHADE vs AD-BSA benchmark
│ ├── generate_cec2020_report.py # Report generator & statistical consolidation script
│ ├── cec2020_50d_results.json # Consolidated results database for all 7 algorithms
│ ├── cec2020_50d_report.md # Formatted Markdown report
│ └── cec2020_50d_comparison.png # High-resolution benchmark comparison chart
├── tests/
│ ├── test_algorithms.py # Unit tests verifying convergence and stability of all 7 algorithms
│ ├── test_bounds.py # Unit tests for boundary constraint reflections
│ └── test_cec2020_integration.py # Integration test for IEEE CEC 2020 benchmark suite
└── examples/
├── basic_usage.py # Standalone minimal quickstart
└── cec_quickstart.py # Single-run optimization of CEC 2020 F4 (50D)
If you use AD-BSA in your research or reference the atomtronic quantum control benchmark, please cite both the software and the foundational physics article:
@software{riquelmesalvo2026adbsa_code,
author = {Riquelme Salvo, Felipe S.},
title = {{AD-BSA: Adaptive Differential Boogeyman Search
Algorithm with Bounded Cosecant Repulsion Barrier (v1.0.0)}},
month = oct,
year = 2026,
publisher = {Zenodo},
version = {v1.0.0},
doi = {10.5281/zenodo.23147724},
url = {https://doi.org/10.5281/zenodo.23147724}
}@article{carmonalopez2026enhancing,
author = {Carmona-L{\'o}pez, S. and Matos-Abiague, A. and Isaule, F. and Morales-Molina, L.},
title = {Enhancing supercurrent-based inertial sensing via interactions in atomtronic angular accelerometers},
journal = {Physical Review Research},
volume = {8},
number = {3},
pages = {033316},
year = {2026},
month = {Sep},
publisher = {American Physical Society},
doi = {10.1103/zzx2-tttb},
url = {https://doi.org/10.1103/zzx2-tttb}
}This project is licensed under the Apache License Version 2.0. See the LICENSE and NOTICE files for details.
Copyright 2026 Felipe Riquelme Salvo (Pipin333)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0