def clear_niche

unified-nsga-iii@0.2.2.0 · individual.bend:142

import unified-nsga-iii@0.2.2.0/individual.bend as Individual
import Base

142# CV fill does not assign a niche (pymoo merges these after survival).
143def clear_niche(ind: Individual) -> Individual:
144  match ind:
145    case MkIndividual{x, f, g, cv, rnk, nic, ar, pd, ev, lnk}:
146      MkIndividual{x, f, g, cv, rnk, 0n, 0n, 0.0, ev, False{}}

Uses (2)

Used by (1)