Skip to content

Commit

Permalink
Merge pull request #5 from limury/patch-2
Browse files Browse the repository at this point in the history
Fixed bug in polynomial mutation
  • Loading branch information
jbmouret authored Dec 14, 2020
2 parents 4a89488 + 8b6f57a commit d9cb187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map_elites/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def polynomial_mutation(x):
delta_i = math.pow(2.0 * r[i], 1.0 / (eta_m + 1.0)) - 1.0
else:
delta_i = 1 - math.pow(2.0 * (1.0 - r[i]), 1.0 / (eta_m + 1.0))
y[i] = delta_i
y[i] += delta_i
return y

def sbx(x, y, params):
Expand Down

0 comments on commit d9cb187

Please sign in to comment.