Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.2.0] - 2026-11-04
Changed
- Breaking: benchmark protocol and data. Every run now gets the same budget of
function evaluations (COCO style) instead of a fixedmax_iter, which was not a common budget (an iteration costs from 0.1 to about 3000 evaluations). The published data is a new format (schema version 2:index.json,cells/<function>-<dimension>.json,ranks.json,trajectory-<function>-2.json);benchmark-results.jsonand the demo data are gone. Dimensions are 2, 5, 10 and 20 with 15 runs, as in BBOB, on five functions whose optimum is moved away from the centre of the domain (as COCO does), because several optimizers find the optimum of the unshifted functions by construction. - Breaking: documentation URLs. A page's slug is now the optimizer's file stem (
whale_optimization_algorithm.pyis/algorithms/swarm-intelligence/whale-optimization-algorithm), and its title and acronym come from the Algorithm Metadata table. 65 of 117 pages moved (for examplewhale,cuckoo,tabu,genetic); the old URLs are not redirected. - Breaking: module paths.
opt.probabilistic.parzen_tree_stimatoris nowparzen_tree_estimatorandopt.metaheuristic.variable_neighbourhood_searchis nowvariable_neighborhood_search. The classes and the exports fromoptand the category packages are unchanged. - Acronyms are unique: Bee Algorithm
BEEA, Artificial Gorilla TroopsAGTO, Squirrel SearchSQSA. - The 11 identical 4 MB Griffe dumps are no longer committed;
docs/api/full_api.jsonis generated in CI.
Added
- Benchmarks for every single-objective optimizer (115 with the baseline, up from 13), in a pipeline that runs one job per category and function with resumable per-cell output. Scheduled runs only upload an artifact; a manual run with
publishcommits the data and redeploys the docs. - Scientific metrics: success rate, COCO ERT and SP1, runtime ECDF, convergence median and interquartile range, scaling with dimension, wall-clock cost, dispersion of the evaluated points, a one-sided Mann-Whitney U test against
RandomSearch(Holm-adjusted) with Cliff's delta, average ranks and the Friedman test.docs/benchmarks/methodology.mddocuments the protocol, formulas and limitations. - Every algorithm page has a benchmark panel with function and dimension selectors, compare-with chips and tabs for convergence, distribution, ECDF, scaling, statistics (sortable, CSV export), dispersion and the 2D landscape path.
benchmarks/results.mdshows the generated rank table. - A JSON schema (
docs/schemas/benchmark-data-schema.json) and TypeScript types generated from the Pydantic models inbenchmarks/models.py. RandomSearch(opt.classical, acronymRS): pure uniform random search over the search box, the reference baseline for the statistical tests in the benchmark suite. It forwardstrack_history,target_precisionandf_optto the base class, uses one seeded generator and spends exactlypopulation_size * iterationsevaluations. The library now has 118 optimizers.- Generated category index pages and an algorithm catalog (all 118 optimizers are in the sidebar, up from 23), generated API pages for all ten categories, a generated README catalog and package tree, and
changelogandcontributingpages. optimizers.jsoncarries the fullreferenceslist (with DOIs) of every optimizer;referenceis now filled for 103 of 117 instead of 48.- Validation is blocking:
unified_validator.py --allchecks every optimizer, requires unique acronyms and fails on a new placeholder citation.scripts/test/test_docs_consistency.pychecks that source files, pages, JSON entries and sidebar links agree, that everyfrom opt... import ...in the docs and README resolves, and that advertised counts are right. - Docs charts: zoom, pan, box zoom, reset and PNG export on the convergence, ECDF and violin charts (Ctrl/⌘ + scroll or pinch zooms; a plain scroll still scrolls the page). The 3D landscape works again with a normalised height, per-function domains, a linear/log height option, click-to-enable scroll zoom, a working function selector and a reset button.
- Convergence charts show the median with its interquartile band (or mean ± σ) against true iterations or function evaluations.
AbstractOptimizer.enable_history_tracking()to switch on history after construction; the benchmark runner uses it so every optimizer reports a history.- Release tooling checks via repo-release-tools: version targets across the package, benchmark module, README and docs nav, plus fingerprints for the generated optimizer index and sidebar.
Fixed
- Lint: the ignore list in
pyproject.tomlis down from 26 to 11 rules, each with its reason (#82). The violations of the other rules were fixed without changing results (a seeded run of all 16 affected optimizers gives identical output before and after): closures that did not bind their loop variable (BarrierMethodOptimizer,PenaltyMethodOptimizer,BayesianOptimizer), unused variables and imports inside functions. Variables named after the symbols of a paper are exempted per file instead of globally. - The Quickstart and guides imported names that do not exist (
CMAES,AugmentedLagrangianMethod,opt.abstract_optimizer) and the constrained example passed aconstraints=argument the class does not take; they now run. The README listed 54 of 117 optimizers with links to the pre-src/layout. - 21 optimizers whose
Referencesentry was a stand-in now carry the citation their module docstring already had; 14 still lack a citation and are tracked inscripts/placeholder_references.txt. search()of 16 optimizers never finalisedhistorybecause the final-state block had ended up inside a docstring:SGD,SGDMomentum,ADAMOptimization,AMSGrad,AdaMax,Nadam,NesterovAcceleratedGradient,RMSprop,AugmentedLagrangian,BarrierMethodOptimizer,PenaltyMethodOptimizer,ArtificialFishSwarm,DandelionOptimizer,DragonflyOptimizer,HoneyBadgerAlgorithmandMothSearchAlgorithm.- Optimizers that recorded their history before the first evaluation (e.g.
CatSwarmOptimization,ParticleFilter,ShuffledFrogLeapingAlgorithm) raised a shape error with tracking on; entries without a finite best are now skipped. - Benchmark results had convergence history for only 4 of 13 optimizers; the runner now enables it for all of them. Aggregated histories also store their true iteration indices, so the x-axis no longer shows 0-99.
- The ECDF chart no longer plots the budget 0 on a log axis, draws a step curve, and counts every (run, target) pair instead of "any run reached the target".
- The violin chart is a real density violin, its checkboxes work, and the points no longer move on every redraw. Charts reflow when their container resizes.
- Refreshed benchmark data now triggers the docs deployment.
- Docs CI no longer fails on pull requests after a benchmark refresh: generated pages no longer depend on the benchmark data, which is not part of the artifact lock.
- The documentation described benchmark settings the code did not use (30 runs, 100 iterations, a Wilcoxon signed-rank test for unpaired runs); the methodology page now describes what runs.
- Optimizers without a
seedparameter, whose runs were not reproducible, are seeded by the runner; a test checks reproducibility and run-to-run variability for every optimizer.
Removed
- The unused
vue-echartsdependency of the docs site (charts use ECharts directly throughuseEChart). benchmarks/generate_plots.pyand thebenchmark-visualizationsworkflow (the charts are drawn by the docs site), the hand-written result tables, the demo and test-chart pages and theseaborndependency of thebenchmarkextra.
[0.1.2] - 2024-08-11
Changed
- Version bump to activate Zenodo archiving.