Esempio n. 1
0
 public void Start(string inputFile, string outputFile, int timeLimit)
 {
     TSPInstance instance = new TSPInstance(inputFile);
     DiscreteSS ss = new DiscreteSS2OptFirst4TSP(instance, poolSize, refSetSize, explorationFactor);
     ss.Run(timeLimit - timePenalty);
     TSPSolution solution = new TSPSolution(instance, ss.BestSolution);
     solution.Write(outputFile);
 }
        public void Start(string inputFile, string outputFile, int timeLimit)
        {
            TSPInstance instance = new TSPInstance(inputFile);
            DiscreteSS  ss       = new DiscreteSS2OptFirst4TSP(instance, poolSize, refSetSize, explorationFactor);

            ss.Run(timeLimit - timePenalty);
            TSPSolution solution = new TSPSolution(instance, ss.BestSolution);

            solution.Write(outputFile);
        }