code: public static void main(String[] args) throws Exception {
  
      DoubleProblem problem;
      Algorithm<DoubleSolution> algorithm;
      SolutionListEvaluator<DoubleSolution> evaluator ;
  
      String problemName = "org.uma.jmetal.problem.singleobjective.Sphere" ;
  
      problem = (DoubleProblem) ProblemUtils.<DoubleSolution> loadProblem(problemName);
  
      int numberOfCores ;
      if (args.length == 1) {
        numberOfCores = Integer.valueOf(args[0]) ;
      } else {
        numberOfCores = DEFAULT_NUMBER_OF_CORES ;
      }
  
      if (numberOfCores == 1) {
        evaluator = new SequentialSolutionListEvaluator<DoubleSolution>() ;
      } else {
        evaluator = new MultithreadedSolutionListEvaluator<DoubleSolution>(numberOfCores, problem) ;
      }
  
      algorithm = new StandardPSO2011(problem,
              10 + (int) (2 * Math.sqrt(problem.getNumberOfVariables())),
              25000, 3, evaluator) ;
  
      AlgorithmRunner algorithmRunner = new AlgorithmRunner.Executor(algorithm)
          .execute() ;
  
      DoubleSolution solution = algorithm.getResult() ;
      long computingTime = algorithmRunner.getComputingTime() ;
  
      List<DoubleSolution> population = new ArrayList<>(1) ;
      population.add(solution) ;
      new SolutionListOutput(population)
          .setSeparator("\t")
          .setVarFileOutputContext(new DefaultFileOutputContext("VAR.tsv"))
          .setFunFileOutputContext(new DefaultFileOutputContext("FUN.tsv"))
          .print();
  
      JMetalLogger.logger.info("Total execution time: " + computingTime + "ms");
      JMetalLogger.logger.info("Objectives values have been written to file FUN.tsv");
      JMetalLogger.logger.info("Variables values have been written to file VAR.tsv");
  
      JMetalLogger.logger.info("Fitness: " + solution.getObjective(0)) ;
      JMetalLogger.logger.info("Solution: " + solution.getVariableValueString(0)) ;
      evaluator.shutdown();
    }
docs: Usage: java org.uma.jmetal.runner.singleobjective.StandardPSO2007Runner [cores]