Individual.set_constraints: def of unified-nsga-iii@0.2.2.0 Import: import unified-nsga-iii@0.2.2.0/individual.bend as Individual Lines 120-124 of unified-nsga-iii@0.2.2.0/individual.bend: https://jend.leeeet.dev/read.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&start_line=120&end_line=124 import Base # Replace g and recompute cv (sum of positive parts). def set_constraints(ind: Individual, +g2: List<&2, F32>) -> Individual: match ind: case MkIndividual{x, f, g, cv, rnk, nic, ar, pd, ev, lnk}: MkIndividual{x, f, g2, sum_pos(g2), rnk, nic, ar, pd, ev, lnk} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=Individual https://jend.leeeet.dev/definition.txt?path=unified-nsga-iii@0.2.2.0/individual.bend&name=sum_pos