Beispiel #1
0
        protected Population(int size, TSP tsp)
        {
            Size = size;
            Tsp  = tsp;

            Individuals = new List <Individual>();

            for (var i = 0; i < size; i++)
            {
                Individuals.Add(new Individual(tsp.Towns));
            }

            Initialize();
        }
Beispiel #2
0
 public GreedyPopulation(int size, TSP tsp) : base(size, tsp)
 {
 }
Beispiel #3
0
 public GreedyPopulation(TSP tsp) : base(tsp.Towns.Count, tsp)
 {
 }
Beispiel #4
0
 public RandomPopulation(int size, TSP tsp) : base(size, tsp)
 {
 }