code: def _reset_bookkeeping(self):
          
          self.iteration = 0
          self.fitness_runs = 0
          self.best_solution = None
          self.best_fitness = None
          self.solution_found = False
docs: Reset bookkeeping parameters to initial values.
  
          Call before beginning optimization.