public static void main(String[] args) throws JMetalException, FileNotFoundException {
    Problem<DoubleSolution> problem;
    Algorithm<List<DoubleSolution>> algorithm;
    MutationOperator<DoubleSolution> mutation;

    String referenceParetoFront = "" ;

    String problemName ;
    if (args.length == 1) {
      problemName = args[0];
    } else if (args.length == 2) {
      problemName = args[0] ;
      referenceParetoFront = args[1] ;
    } else {
      problemName = "org.uma.jmetal.problem.multiobjective.Kursawe";
      referenceParetoFront = "jmetal-problem/src/test/resources/pareto_fronts/Kursawe.pf" ;
    }

    problem = ProblemUtils.loadProblem(problemName);

    mutation = new PolynomialMutation(1.0 / problem.getNumberOfVariables(), 20.0) ;

    algorithm = new PAESBuilder<DoubleSolution>(problem)
            .setMutationOperator(mutation)
            .setMaxEvaluations(25000)
            .setArchiveSize(100)
            .setBiSections(5)
            .build() ;

    AlgorithmRunner algorithmRunner = new AlgorithmRunner.Executor(algorithm)
            .execute() ;

    List<DoubleSolution> population = algorithm.getResult() ;
    long computingTime = algorithmRunner.getComputingTime() ;

    JMetalLogger.logger.info("Total execution time: " + computingTime + "ms");

    printFinalSolutionSet(population);
    if (!referenceParetoFront.equals("")) {
      printQualityIndicators(population, referenceParetoFront) ;
    }
  }
public static void main ( String [ ] args ) throws JMetalException , FileNotFoundException { Problem < DoubleSolution > problem ; Algorithm < List < DoubleSolution > > algorithm ; MutationOperator < DoubleSolution > mutation ; String referenceParetoFront = "" ; String problemName ; if ( args . length == 1 ) { problemName = args [ 0 ] ; } else if ( args . length == 2 ) { problemName = args [ 0 ] ; referenceParetoFront = args [ 1 ] ; } else { problemName = "org.uma.jmetal.problem.multiobjective.Kursawe" ; referenceParetoFront = "jmetal-problem/src/test/resources/pareto_fronts/Kursawe.pf" ; } problem = ProblemUtils . loadProblem ( problemName ) ; mutation = new PolynomialMutation ( 1.0 / problem . getNumberOfVariables ( ) , 20.0 ) ; algorithm = new PAESBuilder < DoubleSolution > ( problem ) . setMutationOperator ( mutation ) . setMaxEvaluations ( 25000 ) . setArchiveSize ( 100 ) . setBiSections ( 5 ) . build ( ) ; AlgorithmRunner algorithmRunner = new AlgorithmRunner . Executor ( algorithm ) . execute ( ) ; List < DoubleSolution > population = algorithm . getResult ( ) ; long computingTime = algorithmRunner . getComputingTime ( ) ; JMetalLogger . logger . info ( "Total execution time: " + computingTime + "ms" ) ; printFinalSolutionSet ( population ) ; if ( ! referenceParetoFront . equals ( "" ) ) { printQualityIndicators ( population , referenceParetoFront ) ; } }
@param args Command line arguments.
@throws SecurityException
Invoking command:
java org.uma.jmetal.runner.multiobjective.PAESRunner problemName [referenceFront]