def normalize_nd_cv

unified-nsga-iii@0.2.2.0 · normalization.bend:654

import unified-nsga-iii@0.2.2.0/normalization.bend as Normalization
import Base
import unified-nsga-iii@0.2.2.0/individual.bend as Ind

654# Feasible-only ideal / nadir when any member is infeasible.
655# All-feasible and empty pools are `normalize_nd`.
656def normalize_nd_cv(state: State, +pop: List<&2, Ind.Individual>, nd: List<&2, Nat>) -> State & List<&2, List<&2, F32>>:
657  match pop:
658    case Nil{}:
659      (state, Nil{})
660    case h <> t:
661      normalize_nd.pick(state, h <> t, nd, has_infeas(h <> t))

Uses (9)

Used by (1)