Skip to content

Commit

Permalink
Fix bug in update solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
PytLab committed Dec 13, 2017
1 parent 4c7f531 commit e13302f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gaft/operators/mutation/flip_bit_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def mutate(self, individual, engine):
if do_flip:
individual.chromsome[i] = genome^1

# Update variants.
individual.variants = individual.decode()
# Update solution.
individual.solution = individual.decode()

return individual

Expand Down

0 comments on commit e13302f

Please sign in to comment.