Example #1
0
        //Functions

        // Initialize Population of 100 chromosome
        public static Population initializePop()
        {
            List <Tour> temp = new List <Tour>();

            for (int i = 0; i < Env.POPULATION_SIZE; i++)
            {
                Tour gnome = Tour.create_gnome(Env.NO_OF_CITIES);
                temp.Add(gnome);
            }
            return(new Population(temp));
        }