Exemple #1
0
 private static void RunAlgorithm(TspAlgorithmBase algorithm, IDictionary <int, int>[] data)
 {
     Console.WriteLine(algorithm.ShortestRoute.Value);
     algorithm.CalculateRoutes(data);
     ResultExporter.Save(algorithm);
     Console.WriteLine("Zapisano:" + algorithm.Name);
 }
Exemple #2
0
        public static void Report4(IDictionary <int, int>[] data)
        {
            var rrC = new RunnerRoutesComparer {
                CountRoutes = 1000
            };

            rrC.CalculateRoutes(data);
            rrC.CompareRoutes();
            ResultExporter.SaveRoutescomparisions(rrC);
        }