Skip to content

Commit

Permalink
Added the _ps attribute at the begin of the update for parents
Browse files Browse the repository at this point in the history
--HG--
branch : dev
  • Loading branch information
fmder committed Apr 29, 2014
1 parent 65199d8 commit 53c713b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deap/cma.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ def generate(self, ind_init):
return individuals

def update(self, population):
for i, p in enumerate(self.parents):
p._ps = "p", i

candidates = population + self.parents
# print len(candidates)

Expand Down

0 comments on commit 53c713b

Please sign in to comment.