Class GoldsteinFunction

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

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

    • GoldsteinFunction

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

    • evaluate

      public double evaluate(double[] genotype) throws IncompatibleConfigurationException
      Computes the Goldstein's function given a candidate solution.
      Parameters:
      genotype - candidate solution.
      Returns:
      fitness of the candidate solution.
      Throws:
      IncompatibleConfigurationException - when the dimension of the problem does not fit with the dimensionality of the function used as evaluator. Thrown if the problem is not 1-Dimensional.
    • 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.