Example #1
0
        public PathWithValues GetVns(int start, int min)
        {
            var(cords, weights) = FileReader.ReadTestData();
            var distances = CalculateDistances(cords);
            var result    = AlgorithmRunner.VNS(distances, weights, min, start);

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

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

            return(result);
        }