示例#1
0
        public PathWithValues GetIls(int start, int min)
        {
            var(cords, weights) = FileReader.ReadTestData();
            var distances = CalculateDistances(cords);
            var result    = AlgorithmRunner.ILS(distances, weights, min, start);

            return(result);
        }
示例#2
0
        public PathWithValues GetIlsRealData(int start, int min)
        {
            var(connections, distances, weights) = FileReader.ReadRealData();
            var distancesArray = AlgorithmRunner.Dijkstra(connections, distances, 201);

            var result = AlgorithmRunner.ILS(distancesArray, weights, min, start);

            return(result);
        }