Skip to content

neal9900/openGA

Repository files navigation

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

About

open source genetic algorithm framework

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •