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
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
EasyGA-0.0.7.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file EasyGA-0.0.7.tar.gz
.
File metadata
- Download URL: EasyGA-0.0.7.tar.gz
- Upload date:
- Size: 2.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646f5b69805aa2bc75e88655544b156f2e0d47b8d6777190f2feae41d304008a |
|
MD5 | 5813c25ab87a9b68f273eb2a203351d9 |
|
BLAKE2b-256 | 6081021f34bf654b4c4cc117452f360fc46296f9f154532c4b8eaf7b018e8882 |
File details
Details for the file EasyGA-0.0.7-py2-none-any.whl
.
File metadata
- Download URL: EasyGA-0.0.7-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9629dce80c2c66b2b465eedac98d19a761f00cd24aae9d9caefbd1f58d888e4a |
|
MD5 | 61633e00650e42dd5b59268ed7c0c48b |
|
BLAKE2b-256 | d9da8ae9178c722a8ce2b80f698cfa05516a4bf0ce8d7a460173015edfc0911c |