diff --git a/algogenetique.py b/algogenetique.py index 3c025857a6bdaad65acc70446290e33480716928..1a0fa8348f1102079f6a2b06f22c0be8f79638e4 100644 --- a/algogenetique.py +++ b/algogenetique.py @@ -45,7 +45,7 @@ def main(N,tmax,pmutation, proportion): S2=[individu.score for individu in People.indiv] print("Score final: ",best.score) - + print("Avg:", sum(S2)/len(S2)) plt.subplot(224) plt.hist(S2, range = (0,maximum+10), bins = 20, color = 'blue') @@ -56,7 +56,7 @@ def main(N,tmax,pmutation, proportion): lineList = [line.rstrip('\n') for line in open("plasmid_8k.fasta")] brin = ''.join(lineList[1:]) -best,People = main(200,10,0.01,100) +best,People = main(20,10,0.01,10) test = Traj3D() test.compute(brin, best.table) test.draw("first_plot")