Example #1
0
  @Override
  public void evaluate(Individual individual) {

    /*
     * subtract optimum offset for standardization
     */
    individual.setFitness(
        generic.evaluate(individual.getVariable()) - generic.getBenchmark().getFadd());
  }
Example #2
0
  @Override
  public void init(Algorithm algorithm) {

    generic = new BBOB(1, 0, 30);
    generic.init();

    algorithm.run();
  }