Skip to content

SwarmOpt v0.3.0

Latest

Choose a tag to compare

@SioKCronin SioKCronin released this 16 Nov 18:06
· 37 commits to master since this release

Foundation release: correctness, reproducibility, and supply-chain hygiene.

Added

  • Swarm(seed=...) makes runs reproducible. All randomness comes from a numpy.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 when target_position is given). Invalid distances raise ValueError.
  • 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.md with private reporting, and build-provenance attestations on releases.

Fixed

  • get_optimal_position returned wrong optima for Dixon-Price and Perm.
  • dimension_wise_clamping crashed on scalar bounds.
  • diversity_monitoring=True crashed when an intervention fired.

Changed

  • Requires Python 3.10+. Packaging moved to pyproject.toml; the version lives in swarmopt.__version__.
  • inertia.random_inertia_weight(s) uses a private generator, so seeded values differ from 0.2.0.
  • algo='multiswarm' (DMS-PSO) raises NotImplementedError. It crashed on construction in 0.2.0 and is being reworked.

Removed

  • The optional ETDA hook that modified sys.path on import, and the unused etda submodule entry.