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.1.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.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openGA-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f5ee86be21585d16ba48fd97de8a6851387cbcb3492e4cb681c2c06c5c619d59
MD5 cec4b68b2c76795f61bd415ec9cc4cf4
BLAKE2b-256 8a089d75a6ff8f5d5e67f725f00e341e568e3653e93fd7e96a9bee98403f154d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openGA-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77319678806a4550f3b5fcf5a8e46a30d54589c628822a942b70cf78903c2a04
MD5 4410520728e14cf833e7aa5fa28f5be4
BLAKE2b-256 e2174cd482110c51f890f91672ff7a7c1621ca9a5f15151c14155e81a75e8e1b

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