Class Gallagher

All Implemented Interfaces:
AutoCloseable, Problem

public class Gallagher extends BBOBFunction
The 101-peak Gallagher function. It is not intended for this function to be used directly since the BBOB test suite applies additional transformations to the test functions.

Properties:

  • Multimodal (with random locations of local optima)
  • Constructor Details

    • Gallagher

      public Gallagher(int numberOfVariables, double[][] rotation, double[][] xLocal, double[][] arrScales, double[] peaks)
      Constructs a new instance of the 101-peak Gallagher function.
      Parameters:
      numberOfVariables - the number of decision variables
      rotation - the rotation matrix
      xLocal - the location of the local optima
      arrScales - controls the steepness of the peaks
      peaks - the magnitude of the peaks
  • Method Details

    • evaluate

      public void evaluate(Solution solution)
      Description copied from interface: Problem
      Evaluates the solution, updating the solution's objectives in place. Algorithms must explicitly call this method when appropriate to evaluate new solutions or reevaluate modified solutions.
      Parameters:
      solution - the solution to be evaluated