Skip to content
Snippets Groups Projects
Commit 2de42490 authored by Santos Garcia Carlos's avatar Santos Garcia Carlos
Browse files

corrections distance/arguments de fonctions

parent e1b707ec
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class Individu():
self.score = 1/max(list_distance)
return 1/distance
return 1/max(list_distance)
def mutation(self, proba = P1):
......
......@@ -15,7 +15,10 @@ class Population:
self.indiv = liste_individus
return self
def selection_p_best(self,p=self.n//2):
def selection_p_best(self,p=None):
if p==None:
p=(self.n)//2
def tri_rapide_aux(tableau,debut,fin):
if debut < fin-1:
positionPivot=partitionner(tableau,debut,fin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment