def seen_start

unified-nsga-iii@0.2.2.0 · algorithm.bend:394

import unified-nsga-iii@0.2.2.0/algorithm.bend as Algorithm
import Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind

394# Hash the survivor population (not the mating sample). An individual
395# who lost every tournament is still a duplicate of P.
396def seen_start(+survivors: List<&2, Ind.Individual>, elim: Bool) -> List<&2, List<&2, F32>>:
397  match elim:
398    case True{}:
399      vars_of(survivors)
400    case False{}:
401      Nil{}

Uses (5)

Used by (1)