Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucidrains/firefly-torch
Exploration into the Firefly algorithm in Pytorch
https://github.com/lucidrains/firefly-torch
differential-evolution fireflies genetic-algorithms swarm-intelligence
Last synced: 19 days ago
JSON representation
Exploration into the Firefly algorithm in Pytorch
- Host: GitHub
- URL: https://github.com/lucidrains/firefly-torch
- Owner: lucidrains
- License: mit
- Created: 2024-09-08T13:25:00.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-15T22:24:04.000Z (2 months ago)
- Last Synced: 2024-10-29T22:53:11.108Z (22 days ago)
- Topics: differential-evolution, fireflies, genetic-algorithms, swarm-intelligence
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 35
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Firefly Algorithm - Pytorch
Exploration into the Firefly algorithm (a generalized version of particle swarm optimization) in Pytorch. In particular interested in hybrid firefly + genetic algorithms, or ones that are gender-based.
## Install
```bash
$ pip install -r requirements.txt
```## Usage
Test on rosenbrock minimization
```bash
$ python firefly.py --use-genetic-algorithm
```## Citations
```bibtex
@article{Yang2018WhyTF,
title = {Why the Firefly Algorithm Works?},
author = {Xin-She Yang and Xingshi He},
journal = {ArXiv},
year = {2018},
volume = {abs/1806.01632},
url = {https://api.semanticscholar.org/CorpusID:46940737}
}
``````bibtex
@article{article,
author = {El-Shorbagy, M. and Elrefaey, Adel},
year = {2022},
month = {04},
pages = {706-730},
title = {A hybrid genetic-firefly algorithm for engineering design problems},
volume = {Journal of Computational Design and Engineering, Volume 9},
journal = {Journal of Computational Design and Engineering},
doi = {10.1093/jcde/qwac013}
}
```