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.7.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

EasyGA-0.0.7-py2-none-any.whl (3.2 kB view hashes)

Uploaded Python 2

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