-
-
Notifications
You must be signed in to change notification settings - Fork 490
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
If save_best_solutions = True, the best_solutions list is overwritten after each generation when a new population is being generated. A bug appears on line number 748. Solutions stored in best_solutions are probably just shallow copies, i.e., pointers to population.
What the bug looks like
best_solutions = []
best_solutions = [[9, 10, 5, 9, 9]] # after append on the line 728, it holds first best solution found
best_solutions = [[6, 9, 6, 9, 6]] # after the line 748, original value has been changed (changed after every single generation)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working