https://github.com/haaleo/swarmlib
This repository implements several swarm optimization algorithms and visualizes them. Implemented algorithms: Particle Swarm Optimization (PSO), Firefly Algorithm (FA), Cuckoo Search (CS), Ant Colony Optimization (ACO), Artificial Bee Colony (ABC), Grey Wolf Optimizer (GWO) and Whale Optimization Algorithm (WOA)
https://github.com/haaleo/swarmlib
aco ant-colony-optimization artificial-bee-colony cuckoo-search firefly-algorithm grey-wolf-optimizer gwo heuristic-optimization heuristic-search-algorithms levy-walks optimization-algorithms particle-swarm-optimization pso pypi swarm traveling-salesman-problem tsp tsplib tsplib95 whale-optimization
Last synced: 2 months ago
JSON representation
This repository implements several swarm optimization algorithms and visualizes them. Implemented algorithms: Particle Swarm Optimization (PSO), Firefly Algorithm (FA), Cuckoo Search (CS), Ant Colony Optimization (ACO), Artificial Bee Colony (ABC), Grey Wolf Optimizer (GWO) and Whale Optimization Algorithm (WOA)
- Host: GitHub
- URL: https://github.com/haaleo/swarmlib
- Owner: HaaLeo
- License: bsd-3-clause
- Created: 2018-11-04T16:47:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T20:47:50.000Z (over 4 years ago)
- Last Synced: 2025-04-03T17:13:09.890Z (3 months ago)
- Topics: aco, ant-colony-optimization, artificial-bee-colony, cuckoo-search, firefly-algorithm, grey-wolf-optimizer, gwo, heuristic-optimization, heuristic-search-algorithms, levy-walks, optimization-algorithms, particle-swarm-optimization, pso, pypi, swarm, traveling-salesman-problem, tsp, tsplib, tsplib95, whale-optimization
- Language: Python
- Homepage:
- Size: 192 MB
- Stars: 527
- Watchers: 9
- Forks: 111
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# swarmlib
[](https://pypi.python.org/pypi/swarmlib) [](https://pypi.python.org/pypi/swarmlib) [](https://pepy.tech/project/swarmlib) [](https://github.com/HaaLeo/swarmlib/stargazers)
[](https://raw.githubusercontent.com/HaaLeo/swarmlib/master/LICENSE.txt) [](https://github.com/HaaLeo/swarmlib/actions?query=workflow%3A%22Lint%2C+Test%2C+Bundle+and+Deploy%22) [](https://codecov.io/github/HaaLeo/swarmlib)
[](https://gitter.im/HaaLeo/swarmlib) [](https://www.paypal.me/LeoHanisch/3eur) [](http://makeapullrequest.com)
![]()
![]()
## Description
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](https://github.com/HaaLeo/swarmlib/wiki).
## Installation
You can install the package with `pip` from [pypi](https://pypi.org/project/swarmlib).
Installing the library in a virtual environment is recommended:```zsh
# 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
```## Usage
To print all available algorithms:
```
swarm --help
```## Contribution
If you found a bug or are missing a feature do not hesitate to [file an issue](https://github.com/HaaLeo/swarmlib/issues/new/choose) or to ask questions on [gitter](https://gitter.im/HaaLeo/swarmlib).
For a more detailed guide checkout the [CONTRIBUTING.md](https://github.com/HaaLeo/swarmlib/blob/master/CONTRIBUTING.md#how-to-contribute) file.Pull Requests are welcome!
## Wiki
Swarmlib's wiki includes all of the documentation and more details to each algorithm.
It can be found [here](https://github.com/HaaLeo/swarmlib/wiki).## Support
When you like this package make sure to [star the repository](https://github.com/HaaLeo/swarmlib/stargazers).
I am always looking for new ideas and feedback.In addition, it is possible to sponsor this project via [PayPal](https://www.paypal.me/LeoHanisch/3eur) or [GitHub sponsors](https://github.com/sponsors/HaaLeo).
## Example
