benchmarkfcns.griewankn2

benchmarkfcns.griewankn2(arg0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.c_contiguous']) Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']

Computes the value of the Griewank N. 2 benchmark function. griewankn2 is an alias for griewank for n=2. Properties:

  • Global minimum: 0

  • Location of global minimum: (0, 0)

  • Number of dimensions: 2

  • Recommended domain: [-600, 600]^2

  • Modality: multimodal

Mathematical Definition

\[f(x_1, x_2) = \frac{x_1^2 + x_2^2}{4000} - \cos(x_1) \cos(\frac{x_2}{\sqrt{2}}) + 1\]

Visualization