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

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

            solution.Write(outputFile);
        }