@@ -0,0 +1,2350 @@
+%0A%0A%0A%0A//%0A%0A%0A%0A%0A// %0A%0A%0A%0Apackage org.uma.jmetal.runner.singleobjective;%0A%0Aimport org.uma.jmetal.algorithm.Algorithm;%0Aimport org.uma.jmetal.algorithm.singleobjective.evolutionstrategy.EvolutionStrategyBuilder;%0Aimport org.uma.jmetal.operator.MutationOperator;%0Aimport org.uma.jmetal.operator.impl.mutation.BitFlipMutation;%0Aimport org.uma.jmetal.problem.BinaryProblem;%0Aimport org.uma.jmetal.problem.singleobjective.OneMax;%0Aimport org.uma.jmetal.solution.BinarySolution;%0Aimport org.uma.jmetal.util.AlgorithmRunner;%0Aimport org.uma.jmetal.util.JMetalLogger;%0Aimport org.uma.jmetal.util.fileoutput.SolutionListOutput;%0Aimport org.uma.jmetal.util.fileoutput.impl.DefaultFileOutputContext;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Class to configure and run an elitist (mu + lambda) evolution strategy. The target problem is%0A * OneMax.%0A *%0A * @author Antonio J. Nebro %3Cantonio@lcc.uma.es%3E%0A */%0Apublic class ElitistEvolutionStrategyRunner %7B%0A  /**%0A   * Usage: java org.uma.jmetal.runner.singleobjective.ElitistEvolutionStrategyRunner%0A   */%0A  public static void main(String%5B%5D args) throws Exception %7B%0A    Algorithm%3CBinarySolution%3E algorithm;%0A    BinaryProblem problem = new OneMax(512) ;%0A%0A    MutationOperator%3CBinarySolution%3E mutationOperator =%0A        new BitFlipMutation(1.0 / problem.getNumberOfBits(0)) ;%0A%0A    algorithm = new EvolutionStrategyBuilder%3CBinarySolution%3E(problem, mutationOperator,%0A        EvolutionStrategyBuilder.EvolutionStrategyVariant.ELITIST)%0A        .setMaxEvaluations(25000)%0A        .setMu(1)%0A        .setLambda(10)%0A        .build() ;%0A%0A    AlgorithmRunner algorithmRunner = new AlgorithmRunner.Executor(algorithm)%0A        .execute() ;%0A%0A    BinarySolution solution = algorithm.getResult() ;%0A    List%3CBinarySolution%3E population = new ArrayList%3C%3E(1) ;%0A    population.add(solution) ;%0A%0A    long computingTime = algorithmRunner.getComputingTime() ;%0A%0A    new SolutionListOutput(population)%0A        .setSeparator(%22%5Ct%22)%0A        .setVarFileOutputContext(new DefaultFileOutputContext(%22VAR.tsv%22))%0A        .setFunFileOutputContext(new DefaultFileOutputContext(%22FUN.tsv%22))%0A        .print();%0A%0A    JMetalLogger.logger.info(%22Total execution time: %22 + computingTime + %22ms%22);%0A    JMetalLogger.logger.info(%22Objectives values have been written to file FUN.tsv%22);%0A    JMetalLogger.logger.info(%22Variables values have been written to file VAR.tsv%22);%0A  %7D%0A%7D%0A

Add class LocalSearchRunner