Beispiel #1
0
        static void Main(string[] args)
        {
            TravelingSalesmanProblem problem = new TravelingSalesmanProblem();
            TravelingSalesmanSolver  solver  = new TravelingSalesmanSolver(problem, "towns.txt");

            solver.SolveTravelingSalesmanProblem();
            Console.ReadLine();
        }
 public TravelingSalesmanSolver(TravelingSalesmanProblem problem, string inputPath)
 {
     this.problem = problem;
     this.problem.ReadTownsFromFile(inputPath);
 }