fireflyalgorithm-0.3.4
توضیحات
Implementation of Firefly Algorithm in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fireflyalgorithm-0.3.4 |
| نام | fireflyalgorithm |
| نسخه کتابخانه | 0.3.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Iztok Fister Jr. |
| ایمیل نویسنده | iztok@iztok-jr-fister.eu |
| آدرس صفحه اصلی | https://github.com/firefly-cpp/FireflyAlgorithm |
| آدرس اینترنتی | https://pypi.org/project/fireflyalgorithm/ |
| مجوز | MIT |
<p align="center">
<img width="200" src="https://raw.githubusercontent.com/firefly-cpp/FireflyAlgorithm/master/.github/imgs/firefly_logo.png">
</p>
---
# Firefly Algorithm --- Implementation of Firefly algorithm in Python
---
[](https://pypi.python.org/pypi/fireflyalgorithm)


[](https://pepy.tech/project/fireflyalgorithm)
[](https://github.com/firefly-cpp/FireflyAlgorithm/blob/master/LICENSE)

[](http://isitmaintained.com/project/firefly-cpp/FireflyAlgorithm "Average time to resolve an issue")
[](http://isitmaintained.com/project/firefly-cpp/FireflyAlgorithm "Percentage of issues still open")

## About
This package implements a nature-inspired algorithm for optimization called Firefly Algorithm (FA) in Python programming language.
## Installation:
```sh
pip install fireflyalgorithm
```
To install FireflyAlgorithm on Fedora, use:
```sh
dnf install python-fireflyalgorithm
```
## Usage:
```python
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](http://www.iztok-jr-fister.eu/static/publications/44.pdf) 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](http://www.iztok-jr-fister.eu/static/publications/23.pdf). 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!
نیازمندی
| مقدار | نام |
|---|---|
| >=1.21.5,<2.0.0) | numpy |
| >=1.22.0,<2.0.0) | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl fireflyalgorithm-0.3.4:
pip install fireflyalgorithm-0.3.4.whl
نصب پکیج tar.gz fireflyalgorithm-0.3.4:
pip install fireflyalgorithm-0.3.4.tar.gz