Repository navigation
Foundation release: correctness, reproducibility, and supply-chain hygiene.
Added
Swarm(seed=...)makes runs reproducible. All randomness comes from anumpy.random.Generator; SwarmOpt no longer reads or changes NumPy's or Python's global random state.Swarm(respect_boundary=...)sets the standoff distance explicitly (default remains 10% of the search-space diagonal whentarget_positionis given). Invalid distances raiseValueError.- CI: unit tests on Python 3.10–3.13 (plus macOS and Windows), a build and wheel smoke test, and a weekly integration run.
- Supply chain: OpenSSF Scorecard, Dependabot, pinned action SHAs,
SECURITY.mdwith private reporting, and build-provenance attestations on releases.
Fixed
get_optimal_positionreturned wrong optima for Dixon-Price and Perm.dimension_wise_clampingcrashed on scalar bounds.diversity_monitoring=Truecrashed when an intervention fired.
Changed
- Requires Python 3.10+. Packaging moved to
pyproject.toml; the version lives inswarmopt.__version__. inertia.random_inertia_weight(s)uses a private generator, so seeded values differ from 0.2.0.algo='multiswarm'(DMS-PSO) raisesNotImplementedError. It crashed on construction in 0.2.0 and is being reworked.
Removed
- The optional ETDA hook that modified
sys.pathon import, and the unusedetdasubmodule entry.