Skip to main content

Python micro framework for building nature-inspired algorithms.

Project description

Unix Build Status Windows Build status Coverage Status Scrutinizer Code Quality PyPI Version Documentation Status GitHub license

About

Nature-inspired algorithms are a very popular tool for solving optimization problems. Numerous variants of nature-inspired algorithms have been developed since the beginning of their era. To prove their versatility, those were tested in various domains on various applications, especially when they are hybridized, modified or adapted. However, implementation of nature-inspired algorithms is sometimes a difficult, complex and tedious task. In order to break this wall, NiaPy is intended for simple and quick use, without spending time for implementing algorithms from scratch.

http://c1.staticflickr.com/5/4757/26625486258_41ea6d95e0.jpg

Mission

Our mission is to build a collection of nature-inspired algorithms and create a simple interface for managing the optimization process.
NiaPy will offer:
  • numerous benchmark functions implementations,

  • use of various nature-inspired algorithms without struggle and effort with a simple interface,

  • easy comparison between nature-inspired algorithms and

  • export of results in various formats (LaTeX, JSON, Excel).

Overview

Python micro framework for building nature-inspired algorithms. Official documentation is available here.

The micro framework features following algorithms:

  • basic:
    • Artificial bee colony algorithm

    • Bat algorithm

    • Differential evolution algorithm

    • Firefly algorithm

    • Flower pollination algorithm

    • Genetic algorithm

    • Grey wolf optimizer

    • Particle swarm optimization

  • modified:
    • Hybrid bat algorithm

    • Self-adaptive differential evolution algorithm

The following benchmark functions are included in NiaPy:

  • Ackley

  • Alpine
    • Alpine1

    • Alpine2

  • Chung Reynolds

  • Csendes

  • Griewank

  • Happy cat

  • Pintér

  • Qing

  • Quintic

  • Rastrigin

  • Ridge

  • Rosenbrock

  • Salomon

  • Schumer Steiglitz

  • Schwefel
    • Schwefel 2.21

    • Schwefel 2.22

  • Sphere

  • Step
    • Step2

    • Step3

  • Stepint

  • Styblinski-Tang

  • Sum Squares

  • Whitley

Setup

Requirements

  • Python 3.6+ (backward compatibility with 2.7.14)

  • Pip

Dependencies

  • click == *

  • numpy == 1.14.0

  • scipy == 1.0.0

  • xlsxwriter == 1.0.2

List of development dependencies and requirements can be found in the installation section of NiaPy documentation.

Installation

Install NiaPy with pip:

$ pip install NiaPy

or directly from the source code:

$ git clone https://github.com/NiaOrg/NiaPy.git
$ cd NiaPy
$ python setup.py install

Usage

After installation, the package can imported:

$ python
>>> import NiaPy
>>> NiaPy.__version__

For more usage examples please look at examples folder.

Contributing

Open Source Helpers

We encourage you to contribute to NiaPy! Please check out the Contributing to NiaPy guide for guidelines about how to proceed.

Everyone interacting in NiaPy’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the NiaPy code of conduct.

Licence

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!

Revision History

1.0.1 (Mar 21, 2018)

This release reflects the changes from Journal of Open Source Software (JOSS) review: - Better API Documentation - Clarification of set-up requirements in README - Improved paper

1.0.0 (Feb 28, 2018)

  • stable release 1.0.0

1.0.0rc2 (Feb 28, 2018)

  • fix PyPI build

1.0.0rc1 (Feb 28, 2018)

  • version 1.0.0 release candidate 1

  • added 10 algorithms

  • added 26 benchmark functions

  • added Runner utility with export functionality

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

NiaPy-1.0.1.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

NiaPy-1.0.1-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

Details for the file NiaPy-1.0.1.tar.gz.

File metadata

  • Download URL: NiaPy-1.0.1.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for NiaPy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1ea831659e86b0b4baa6e1025ea39994bcf942e462dc63ff1d96d85456c332a1
MD5 596dc0018ad161c707514c57019fe9e6
BLAKE2b-256 d6bc2e6d593be6b5469b44110bf4fbc8b6882681b7db050349656e64a957af21

See more details on using hashes here.

File details

Details for the file NiaPy-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for NiaPy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 060e99ad87faaf388cf15db2311ead6d19e4a86f3802d21866dec6290f132b7f
MD5 73165fa9312c09841eeb03d982af988b
BLAKE2b-256 e62973c050cc6ea0dfab38df53b8c15854154b0bd36b5acb067d8a411af556bb

See more details on using hashes here.

Supported by

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