Skip to main content

A ubiquitous or general purpuse GA

Project description

EasyGA - A general solution to Genetic Algorithms

The projects has just started

Installation

Run the rolling to install:

pip3 install EasyGA

To use the package

import EasyGA

Usage

import random
import EasyGA

# The user defined gene function
def user_gene_function():
    return random.randint(1, 100)

# Standard user size requirements
Population_size = 10
Chromosome_length = 10

# Create the Genetic algorithm
ga = EasyGA.GA(Population_size, Chromosome_length,user_gene_function)
ga.initialize()

# Looking at the first chromosome in the population
print(ga.population.chromosomes[0].print_chromosome())

Developing EasyGA

Download the repository to some folder - If you never used git. Look up a youtube tutorial. It will all make sense.

git clone https://github.com/danielwilczak101/EasyGA.git

Then install the repositroy using this command:

pip install -e .

Working on developing a devel branch

To install EASY, along with the tools you need to develop and run tests, run the following in your virtual env:

$ pip install -e .[devel]

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

EasyGA-0.0.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

EasyGA-0.0.8-py2-none-any.whl (3.2 kB view details)

Uploaded Python 2

File details

Details for the file EasyGA-0.0.8.tar.gz.

File metadata

  • Download URL: EasyGA-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6rc1

File hashes

Hashes for EasyGA-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7edc598309b6593b123b08e6ac67d10e4e68319641486ac5d65d5c87cecb1de4
MD5 9f4f6f5476f329c4a04984d1e98c8d3c
BLAKE2b-256 927d0406403aecc8e664cf24c460c771fcbfedbcc7c648fb36a1aaeba8d59f3d

See more details on using hashes here.

File details

Details for the file EasyGA-0.0.8-py2-none-any.whl.

File metadata

  • Download URL: EasyGA-0.0.8-py2-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6rc1

File hashes

Hashes for EasyGA-0.0.8-py2-none-any.whl
Algorithm Hash digest
SHA256 012099f33dc7ab54edb93433146c7e4d298876e26c447f4f96ff735bc6efaced
MD5 16aa5becdbd811fbb331e5e5075d3796
BLAKE2b-256 ec181b4ab98120d82e80b37c0fdd263c889438db38680b5f7e606142e1b77543

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