Skip to main content

Implementation of Firefly Algorithm in Python

Project description

Firefly Algorithm --- Implementation of Firefly algorithm in Python


PyPI Version PyPI - Python Version PyPI - Downloads Downloads GitHub license GitHub commit activity Average time to resolve an issue Percentage of issues still open GitHub contributors

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.

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


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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FireflyAlgorithm-0.3.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file FireflyAlgorithm-0.3.1.tar.gz.

File metadata

  • Download URL: FireflyAlgorithm-0.3.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.12 Linux/5.17.11-100.fc34.x86_64

File hashes

Hashes for FireflyAlgorithm-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5124a01f95e147bdd61b83070b75b0decf29e809fec1689122b3f3afee5f853d
MD5 e0947bf1453a28fe774d7f274d560eeb
BLAKE2b-256 4f50b23fda1f358b80a574e5854cbcebbc5919ef7b6b154294d1228e7e913f4d

See more details on using hashes here.

File details

Details for the file FireflyAlgorithm-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: FireflyAlgorithm-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.12 Linux/5.17.11-100.fc34.x86_64

File hashes

Hashes for FireflyAlgorithm-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae5cf8706d9a79b9005a6e8e19adc2eb7bd3249912f3cdbd51638ed56786ec4
MD5 ae90187d4419e521ea9af887304189dc
BLAKE2b-256 1c7b84da5aeae9b696d3dbae0e367670d9308193dcee475e84a88c22e117f3e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page