This repository implements several swarm optimization algorithms and visualizes their (intermediate) solutions. To run the algorithms one can either use the CLI (recommended) or the API.
For a list of all available algorithms and their detailed description checkout the wiki.
You can install the package with
pip from pypi.
Installing the library in a virtual environment is recommended:
# Create virtual environment python3 -m venv .venv source .venv/bin/activate # Install the latest version of swarmlib pip install --upgrade swarmlib # Verify installation swarm --version
To print all available algorithms:
Pull Requests are welcome!
Swarmlib's wiki includes all of the documentation and more details to each algorithm. It can be found here.
When you like this package make sure to star the repository. I am always looking for new ideas and feedback.