Skip to content

Commit

Permalink
New randoms/empties in autoconstruction get age 0; lein release :patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lspector committed Mar 18, 2017
1 parent 5c76fe7 commit a989b6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/clojush/pushgp/genetic_operators.clj
Original file line number Diff line number Diff line change
Expand Up @@ -939,9 +939,11 @@ be set globally or eliminated in the future."
new-genome
[])
:history (:history parent1)
:age ((age-combining-function argmap)
(inc (:age parent1))
(inc (:age parent2)))
:age (if use-child
((age-combining-function argmap)
(inc (:age parent1))
(inc (:age parent2)))
0)
:ancestors (if maintain-ancestors
(cons (:genome parent1) (:ancestors parent1))
(:ancestors parent1)))
Expand All @@ -960,3 +962,4 @@ be set globally or eliminated in the future."




0 comments on commit a989b6e

Please sign in to comment.