lokky
Swarm algorithms module
Installation
Base install
pip install git+https://github.com/OnisOris/lokky
pip install lokky
Install with visualisation
pip install "lokky[plotting]"
Examples
import numpy as np
from lokky.pionmath import SSolver
n_points = 1
params = {
"kp": np.ones((n_points, 6)),
"ki": np.zeros((n_points, 6)),
"kd": np.ones((n_points, 6)) * 0,
"attraction_weight": 1.0,
"cohesion_weight": 1.0,
"alignment_weight": 1.0,
"repulsion_weight": 1.0,
"unstable_weight": 1.0,
"noise_weight": 1.0,
"current_velocity_weight": 0.0,
"safety_radius": 1.0,
"max_acceleration": 1.0,
"max_speed": 1.0,
"unstable_radius": 2,
}
solver = SSolver(params)
drone1 = np.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
drone2 = np.array([1.0, 0.0, 0.0, 0.0, 0.0, 0.0])
target_matrix = np.array([4.0, 0.0, 0.0, 0.0, 0.0, 0.0])
state_matrix = np.array([drone1, drone2])
new_velocities = solver.solve_for_all(state_matrix, target_matrix, 0.1)
Testing script
After installation (lokky[plotting]) run scripts:
lokky-analyze --n 10
Metadata
Release files for lokky 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lokky-0.0.10.tar.gz | 13.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lokky-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / lokky-0.0.10.tar.gz
| Download URL | lokky-0.0.10.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2709d6201e2cf532149fe474b0140f87a34d73fd9decbab21bfb4f0bb14ca541
|
|
BLAKE2b-256 checksum How to use checksums |
bdf2b003741822497c9038f53e66f7d801d7eabbf8ebb952d388b0132755dbc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 9, 2025.
Transparency logRelease files / lokky-0.0.10-py3-none-any.whl
| Download URL | lokky-0.0.10-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a6eb9ecfcdb4be6f6ccda8ce537754c4ac6fa9d0715ba43b609bcf78be92595
|
|
BLAKE2b-256 checksum How to use checksums |
720bc209d6cb12b985ccd4ce92baf7546523e48f021ca2431cb456fb84a83401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 9, 2025.
Transparency log