Skip to main content

genetic algorithm framework

Project description

openGA

Test Codacy Publish Codacy Badge codecov PyPI version GPLv3 license

Overview

Open source genetic algorithm framework. openGA works on Python >= 3.7.

Goals

The main goals for this library are:

  • to be convenient to adapt to optimization problems
  • to have clean and easy to understand code base
  • to have minimal 3-rd party dependencies

Usage

  • demo problem Seach optimal x-y combination to get maximal response of objective function. Surface plot of object function: object_function_surface

  • theoretical solution

    $$ z = 4.00 \text{, at } x = 0.25, y= 0.25 $$

  • openGA solution

    $$ z = 3.99 \text{, at } x = 0.2393, y = 0.2411 $$

    notice: solution will change marginally between each run for random searching machenism.

  • openGA searching process Evolve 15 generations with 20 individuals in each iteration. evolution_process

Check the examples folder for extended usage demo.

Installation

openGA is available on:

pip install openGA

Documentation

https://openga.readthedocs.io/en/latest/

Dependencies

openGA uses the following libraries:

  • numpy : for array operation
  • pandas : for process record

Contributing

Please have a look over the contributing guidelines.

features for v1.0.0

algorithm

  • SOGA
  • NSGA

CI

  • codacy for static check
  • codecov for coverage
  • read the docs
  • pypi

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

openGA-0.2.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

openGA-0.2.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file openGA-0.2.0.tar.gz.

File metadata

  • Download URL: openGA-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for openGA-0.2.0.tar.gz
Algorithm Hash digest
SHA256 436f02c3c6807492e84f1402db9650dd58689eb83570e8956a1678e1dac6855b
MD5 69206fc1eb05962b072fc78078530e1a
BLAKE2b-256 eed041ecafa4f0b8c9f6a7de8991aee2f387fbdd0604208895f0941597958bb3

See more details on using hashes here.

File details

Details for the file openGA-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: openGA-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for openGA-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08b943655ea27c12db7e63764d2ab205937c85508bce4ed1e758a6890d0e8865
MD5 70d361c937cdd051a76aad0759758cab
BLAKE2b-256 c5d0e8cc3380b5d36b1b67c41f04c5c9cb202a42703a41fed591ea55b0d32be2

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