public State <T> AddChromosome(Chromosome <T> chromosome) { var newChromosomes = Chromosomes.Add(chromosome).OrderByDescending(c => c.Fitness); return(new State <T>(newChromosomes)); }
public int CompareTo(Chromosome <T> other) => Fitness.CompareTo(other.Fitness);