Firefly algorithm implementation.
Project description
Firefly Algorithm --- Implementation of Firefly algorithm in Python
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.
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
FireflyAlgorithm-0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for FireflyAlgorithm-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14263d473564c6e01759da0b3699d50ef34c3d63590a32f8f8c5923bc51442f4 |
|
MD5 | 86511e9db3f64896e119d7515f4c746e |
|
BLAKE2b-256 | 1cffe4c3264edbf56bd7778fed602e7c9e9377102310c38d965041f7dce1de06 |