Class AckleyFunction

java.lang.Object
planner.utils.evaluators.testfunctions.TestFunction
planner.utils.evaluators.testfunctions.AckleyFunction
All Implemented Interfaces:
Evaluator

public class AckleyFunction extends TestFunction
AckleyFunction is a class implementing the Ackley's function over the TestFunction abstract base class.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • AckleyFunction

      public AckleyFunction(Execution exe)
      Constructor.
      Parameters:
      exe - configuration of the current execution.
  • Method Details

    • evaluate

      public double evaluate(double[] genotype)
      Computes the Ackley's function given a candidate solution.
      Parameters:
      genotype - candidate solution.
      Returns:
      fitness of the candidate solution.
    • toString

      public String toString()
      Gets a string representing the visualization by console of the Test Function.
      Overrides:
      toString in class Object
      Returns:
      the name of the Test Function.