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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58bcaf0f2f5514112a694951878abec103e003c03addab0389357704bfffae17
|
|
| MD5 |
351a86646c02e96947a672914d315ea2
|
|
| BLAKE2b-256 |
e0e39baca4a52a139a33646878ad7df4bdfb9f11c4533988bc08986cdc392e2a
|
Provenance
The following attestation bundles were made for swarm_seek-0.1.0.tar.gz:
Publisher:
release.yml on tjkessler/swarm-seek
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swarm_seek-0.1.0.tar.gz -
Subject digest:
58bcaf0f2f5514112a694951878abec103e003c03addab0389357704bfffae17 - Sigstore transparency entry: 2259914061
- Sigstore integration time:
-
Permalink:
tjkessler/swarm-seek@82f67e75080e2272da20ee762b697812fb3d0d65 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tjkessler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@82f67e75080e2272da20ee762b697812fb3d0d65 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb4e9b41ac89122ef0b5ae4cbb79dd3bd320535ba0ef995fcda4a9db73e09e3c
|
|
| MD5 |
106e93feb455a68a6d8789134a0c4b23
|
|
| BLAKE2b-256 |
334d8957e3c937663b1cca2f51b0bdee789a2ebbb6824924981ac6d1883f949e
|
Provenance
The following attestation bundles were made for swarm_seek-0.1.0-py3-none-any.whl:
Publisher:
release.yml on tjkessler/swarm-seek
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swarm_seek-0.1.0-py3-none-any.whl -
Subject digest:
fb4e9b41ac89122ef0b5ae4cbb79dd3bd320535ba0ef995fcda4a9db73e09e3c - Sigstore transparency entry: 2259914152
- Sigstore integration time:
-
Permalink:
tjkessler/swarm-seek@82f67e75080e2272da20ee762b697812fb3d0d65 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tjkessler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@82f67e75080e2272da20ee762b697812fb3d0d65 -
Trigger Event:
release
-
Statement type: