def METHOD_NAME(self) -> None:
    choices = self._waiting + ([] if self._config.only_offsprings else list(self._population.values()))
    if self._rank_method is not None and self.num_objectives > 1:
        choices_rank = self._rank_method(choices, n_selected=self._config.popsize)
        choices = [x for x in choices if x.uid in choices_rank]
    else:
        choices.sort(key=base._loss)
    self._population = {x.uid: x for x in choices[: self._config.popsize]}
    self._uid_queue.clear()
    self._waiting.clear()
    for uid in self._population:
        self._uid_queue.tell(uid)