public void Start(string inputFile, string outputFile, int timeLimit) { TSPInstance instance = new TSPInstance(inputFile); DiscreteSS ss = new DiscreteSS4TSP(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 DiscreteSS4TSP(instance, poolSize, refSetSize, explorationFactor); ss.Run(timeLimit - timePenalty); TSPSolution solution = new TSPSolution(instance, ss.BestSolution); solution.Write(outputFile); }