Exemplo n.º 1
0
        private async Task CalcFitness()
        {
            await CalcGenomeRoutesAsync();

            Populations.ForEach(e => e.CalcFitness(Fitness));
            Populations = Populations
                          .OrderBy(o => o.Fitness).ToList();

            /*.OrderBy(e =>
             *  e.Trucks.Any(t => t.Routes.Any(r => r.Late)))
             *  .ThenBy(o => o.Fitness).ToList();*/
        }