Skip to main content

Swarm Seek

Literature-validated Artificial Bee Colony (ABC) optimization for Python.

Swarm Seek implements Original ABC and principal peer-reviewed continuous variants (GABC, qABC, MABC) with a NumPy core, an ask/tell API, and automated checks against published benchmark figures.

Status: 0.1.1 (beta). Continuous ABC core, variants, ask/tell API, and literature oracles. Docs: https://swarm-seek.readthedocs.io/

Install

Requires Python 3.10+.

pip install swarm-seek

Editable install for development:

pip install -e ".[dev]"

Quick start

from swarm_seek import ABC, ContinuousSpace
from swarm_seek.benchmarks import sphere

space = ContinuousSpace([(-5.0, 5.0)] * 5)
colony = ABC(space, variant="original", pop_size=20, limit=100, max_evals=5_000, seed=0)
best = colony.minimize(sphere)
print(best.fitness)

Ask/tell loop:

import numpy as np

from swarm_seek import ABC, ContinuousSpace
from swarm_seek.benchmarks import sphere

space = ContinuousSpace([(-5.0, 5.0)] * 5)
colony = ABC(space, variant="gabc", pop_size=20, limit=100, max_evals=5_000, seed=0)

while not colony.converged:
    candidates = colony.ask()
    if candidates.size == 0:
        colony.tell([])
        continue
    colony.tell(np.asarray(sphere(candidates), dtype=np.float64))

print(colony.best.fitness)

Runnable notebooks with stated pass criteria live in examples/. Full documentation (variants, architecture, API, FAQ) builds from docs/source/.

License

Apache License 2.0. See LICENSE.

Citation

See CITATION.cff for citation metadata.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarm_seek-0.1.1.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarm_seek-0.1.1-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file swarm_seek-0.1.1.tar.gz.

File metadata

  • Download URL: swarm_seek-0.1.1.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for swarm_seek-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bc610b85bc50020ae1e39e934b56247b632768d342b8e38736a6fd597669aee2
MD5 eefa2526b38ccf4c5f03a192a9c03367
BLAKE2b-256 6df2380b7105554d58ea524a9191d303165ee3372d35796827f0666ccb588584

See more details on using hashes here.

Provenance

The following attestation bundles were made for swarm_seek-0.1.1.tar.gz:

Publisher: release.yml on tjkessler/swarm-seek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swarm_seek-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: swarm_seek-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for swarm_seek-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08c1f0e539bc90085f520addc79ff5d58e846ec47a0543da74952238e2712a00
MD5 ba4257779fa9e0e7e8c73d9cafc6c309
BLAKE2b-256 e278dee640513c627c760d8175d9805860d65813930881b55d1724b745c13201

See more details on using hashes here.

Provenance

The following attestation bundles were made for swarm_seek-0.1.1-py3-none-any.whl:

Publisher: release.yml on tjkessler/swarm-seek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page