Implementation of Firefly Algorithm in Python
Project description
Firefly Algorithm --- Implementation of Firefly algorithm in Python
About
This package implements a nature-inspired algorithm for optimization called Firefly Algorithm (FA) in Python programming language.
Installation:
pip install fireflyalgorithm
To install FireflyAlgorithm on Fedora, use:
dnf install python-fireflyalgorithm
Usage:
import numpy as np
from fireflyalgorithm import FireflyAlgorithm
def sphere(x):
return np.sum(x ** 2)
FA = FireflyAlgorithm()
best = FA.run(function=sphere, dim=10, lb=-5, ub=5, max_evals=10000)
print(best)
Reference Papers:
I. Fister Jr., X.-S. Yang, I. Fister, J. Brest. Memetic firefly algorithm for combinatorial optimization in Bioinspired Optimization Methods and their Applications (BIOMA 2012), B. Filipic and J.Silc, Eds. Jozef Stefan Institute, Ljubljana, Slovenia, 2012
I. Fister, I. Fister Jr., X.-S. Yang, J. Brest. A comprehensive review of firefly algorithms. Swarm and Evolutionary Computation 13 (2013): 34-46.
License
This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.
Disclaimer
This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!
Project details
Release history Release notifications | RSS feed
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
Hashes for fireflyalgorithm-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69dfaec0a4ef24752efc50e0bfe21057ead80173e9891950fb6c2ad92e9893df |
|
MD5 | 247c0ba97def2b5a7c6da6bd50ad7702 |
|
BLAKE2b-256 | 69da78ae143aa6f9ab7883ddf0c62ec27100b97e4d86d5899a899e7f0bb4fee1 |