Exemplo n.º 1
0
 public void Start(string inputFile, string outputFile, int timeLimit)
 {
     QAPInstance instance = new QAPInstance(inputFile);
     DiscreteSS ss = new DiscreteSS2OptFirst4QAP(instance, poolSize, refSetSize, explorationFactor);
     ss.Run(timeLimit - timePenalty);
     QAPSolution solution = new QAPSolution(instance, ss.BestSolution);
     solution.Write(outputFile);
 }
        public void Start(string inputFile, string outputFile, int timeLimit)
        {
            QAPInstance instance = new QAPInstance(inputFile);
            DiscreteSS  ss       = new DiscreteSS2OptFirst4QAP(instance, poolSize, refSetSize, explorationFactor);

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

            solution.Write(outputFile);
        }