genetic algorithm framework
Project description
openGA
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:
-
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
436f02c3c6807492e84f1402db9650dd58689eb83570e8956a1678e1dac6855b
|
|
| MD5 |
69206fc1eb05962b072fc78078530e1a
|
|
| BLAKE2b-256 |
eed041ecafa4f0b8c9f6a7de8991aee2f387fbdd0604208895f0941597958bb3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08b943655ea27c12db7e63764d2ab205937c85508bce4ed1e758a6890d0e8865
|
|
| MD5 |
70d361c937cdd051a76aad0759758cab
|
|
| BLAKE2b-256 |
c5d0e8cc3380b5d36b1b67c41f04c5c9cb202a42703a41fed591ea55b0d32be2
|