Skip to content
Snippets Groups Projects
Commit 447db08d authored by Busson Loic's avatar Busson Loic
Browse files

Merge branch 'master' of...

parents cc8dfec3 32b84240
Branches
No related tags found
No related merge requests found
...@@ -26,13 +26,13 @@ class Individu(): ...@@ -26,13 +26,13 @@ class Individu():
first_name = brin[0] first_name = brin[0]
last_name = brin[-1] last_name = brin[-1]
rot_computed = self.table.rot_table[last_name+first_name] #rot_computed = self.table.rot_table[last_name+first_name]
rot_traj = first_nucleotide - last_nucleotide #rot_traj = first_nucleotide - last_nucleotide
# print(rot_traj) # print(rot_traj)
# print(rot_computed) # print(rot_computed)
diff_angle = sum(abs(rot_computed - rot_traj)) #diff_angle = sum(abs(rot_computed - rot_traj))
self.score = 1/(distance + diff_angle) self.score = 1/(distance)
def mutation(self, proba = P1): def mutation(self, proba = P1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment