Skip to content
School micro project to learn genetic algorithms
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
compare.py
genetic.py
individual.py
population.py
simulation.py

README.md

genetic

Basic genetic algorithm

Dependencies

Be sure to have matplotlib installed. If you don't, you can install it like that :

python -m pip install matplotlib

Usage

python genetic.py [options]

You can specify the following options :

-v, --verbose:
    If specified the last population will be printed out in the terminal.
-p, --population-size [integer]:
    The size of the population that will be use in the genetic algorithm.
-u, --individual-size [integer]
    The number of gene of each individual member of the population.
-d, --delta [float]
    A value for the convergence detection. The less this value will be, the longer the algorithm will take to stop but the greater the average fitness value will be.
    This value must be less than 1.
You can’t perform that action at this time.