public void Start(string inputFile, string outputFile, int timeLimit)
 {
     SPPInstance instance = new SPPInstance(inputFile);
     DiscreteSS ss = new DiscreteSS2OptFirst4SPP(instance, poolSize, refSetSize, explorationFactor);
     ss.Run(timeLimit - timePenalty);
     SPPSolution solution = new SPPSolution(instance, ss.BestSolution);
     solution.Write(outputFile);
 }
Beispiel #2
0
        public void Start(string inputFile, string outputFile, int timeLimit)
        {
            SPPInstance instance = new SPPInstance(inputFile);
            DiscreteSS  ss       = new DiscreteSS2OptFirst4SPP(instance, poolSize, refSetSize, explorationFactor);

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

            solution.Write(outputFile);
        }