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.0 (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.0.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.0-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarm_seek-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 58bcaf0f2f5514112a694951878abec103e003c03addab0389357704bfffae17
MD5 351a86646c02e96947a672914d315ea2
BLAKE2b-256 e0e39baca4a52a139a33646878ad7df4bdfb9f11c4533988bc08986cdc392e2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for swarm_seek-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: swarm_seek-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4e9b41ac89122ef0b5ae4cbb79dd3bd320535ba0ef995fcda4a9db73e09e3c
MD5 106e93feb455a68a6d8789134a0c4b23
BLAKE2b-256 334d8957e3c937663b1cca2f51b0bdee789a2ebbb6824924981ac6d1883f949e

See more details on using hashes here.

Provenance

The following attestation bundles were made for swarm_seek-0.1.0-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