@@ -0,0 +1,1865 @@
+package org.uma.jmetal.example.singleobjective;%0A%0Aimport org.uma.jmetal.algorithm.Algorithm;%0Aimport org.uma.jmetal.algorithm.multiobjective.randomsearch.RandomSearchBuilder;%0Aimport org.uma.jmetal.example.AlgorithmRunner;%0Aimport org.uma.jmetal.problem.Problem;%0Aimport org.uma.jmetal.problem.singleobjective.OneMax;%0Aimport org.uma.jmetal.solution.binarysolution.BinarySolution;%0Aimport org.uma.jmetal.solution.doublesolution.DoubleSolution;%0Aimport org.uma.jmetal.util.AbstractAlgorithmRunner;%0Aimport org.uma.jmetal.util.JMetalException;%0Aimport org.uma.jmetal.util.JMetalLogger;%0Aimport org.uma.jmetal.util.ProblemUtils;%0A%0Aimport java.io.FileNotFoundException;%0Aimport java.util.List;%0A%0A/**%0A * Class for configuring and running the random search algorithm%0A *%0A * @author Antonio J. Nebro %3Cantonio@lcc.uma.es%3E%0A */%0A%0Apublic class RandomSearchRunner extends AbstractAlgorithmRunner %7B%0A  /**%0A   * @param args Command line arguments.%0A   * @throws SecurityException%0A   * Invoking command:%0A  java org.uma.jmetal.runner.multiobjective.RandomSearchRunner problemName %5BreferenceFront%5D%0A   */%0A  public static void main(String%5B%5D args) throws JMetalException, FileNotFoundException %7B%0A    Problem%3CBinarySolution%3E problem;%0A    Algorithm%3CList%3CBinarySolution%3E%3E algorithm;%0A%0A    problem = new OneMax(1024) ;%0A%0A    algorithm = new RandomSearchBuilder%3C%3E(problem)%0A            .setMaxEvaluations(25000)%0A            .build() ;%0A%0A    AlgorithmRunner algorithmRunner = new AlgorithmRunner.Executor(algorithm)%0A            .execute() ;%0A%0A    List%3CBinarySolution%3E population = algorithm.getResult() ;%0A    long computingTime = algorithmRunner.getComputingTime() ;%0A%0A    JMetalLogger.logger.info(%22Total execution time: %22 + computingTime + %22ms%22);%0A%0A    JMetalLogger.logger.info(%22Fitness: %22 + population.get(0).getObjective(0)) ;%0A    JMetalLogger.logger.info(%22Solution: %22 + population.get(0).getVariable(0)) ;%0A  %7D%0A%7D%0A

Add new example