diff --git a/__pycache__/RotTable.cpython-37.pyc b/__pycache__/RotTable.cpython-37.pyc index d0d2bee9e71c849781de9a96c497f02788ecaaf7..97c7b449f729cb4937feb17325b1d5876ee76f4e 100644 Binary files a/__pycache__/RotTable.cpython-37.pyc and b/__pycache__/RotTable.cpython-37.pyc differ diff --git a/algogenetique.py b/algogenetique.py index 8c65c4add44853c8d195b4e8b4eb4e64babb0351..b2457f9823cb66b4966656f7b3b915d2044600ba 100644 --- a/algogenetique.py +++ b/algogenetique.py @@ -15,14 +15,10 @@ start_time = time.time() def main(N,tmax,pmutation, proportion): - - #Setting up initial variables - L=[] - lineList = [line.rstrip('\n') for line in open("plasmid_8k.fasta")] - brin = ''.join(lineList[1:]) - + #Creation of the initial population People=Population(N) + L=[] #Evaluating the initial population for the histogram S1=[] diff --git a/population.py b/population.py index fbb42effbc6b0041a630273b7b0eee5e5c72e396..c576750c6a07d703b25181a5bdf5a53d5a2a1281 100644 --- a/population.py +++ b/population.py @@ -4,7 +4,10 @@ from RotTable import RotTable from croisement import croisement_un_point, croisement_deux_points import copy + class Population: + '''A class of the ensemble of individuals and the methods associated with them,such as reproduction and different types of selections''' + #Class initialization def __init__(self,n):