Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrey Pavlov anpavlov

View GitHub Profile
View gen.py
import random
from chromosome import Chromosome
dim = 10
chromosome_length = dim # min is (dim - 2)
my_src = 4
my_dest = 1
my_gens = 1000
quite = True