示例#1
0
文件: Population.cs 项目: 7lb/TSP
        // Functionality
        public static Population randomized(Tour t, int n)
        {
            List<Tour> tmp = new List<Tour>();

            for (int i = 0; i < n; ++i)
                tmp.Add( t.shuffle() );

            return new Population(tmp);
        }
示例#2
0
文件: Population.cs 项目: marusi/TSP
        // Functionality
        public static Population randomized(Tour t, int n)
        {
            List <Tour> tmp = new List <Tour>();

            for (int i = 0; i < n; ++i)
            {
                tmp.Add(t.shuffle());
            }

            return(new Population(tmp));
        }