public Chromosom(Chromosom item) { gens = new List <double>(Program.ProblemSize); strategy = new List <double>(Program.ProblemSize); this.fitness = item.fitness; gens.AddRange(item.gens); strategy.AddRange(item.strategy); }
private void InitPopulation() { for (int i = 0; i < Program.PopSize; i++) { Chromosom cr = new Chromosom(); cr.InitRandom(_random); _population.Add(cr); } EvaluateObjective(_population); }