Griewank function

The Griewank test function is a smooth multidimensional mathematical function used in unconstrained optimization.

It is commonly employed to evaluate the performance of global optimization algorithms.

The nonlinear and nonconvex function is characterized by its unique multimodal structure, featuring multiple local minima and maxima around its single global minimum at

The number of stationary points increases as the dimensionality

For instance, the one-dimensional Griewank function

has 6365 critical points in the interval [−10000,10000], where the first derivative vanishes.

The multimodal structure of the Griewank function presents a challenge for many deterministic optimization algorithms, which may become trapped in one of the numerous local minima.

The Griewank function is commonly used to benchmark global optimization algorithms, such as genetic algorithms or particle swarm optimization.

In addition to the original version, there are several variants of the Griewank function specifically designed to test algorithms in high-dimensional optimization scenarios.

A non-smooth version of the Griewank function has been developed[3] to emulate the characteristics of objective functions frequently encountered in optimization problems from machine learning (ML).

These functions often exhibit piecewise smooth or non-smooth behavior due to the presence of regularization terms, activation functions, or constraints in learning models.

A non-smooth variant of the Griewank function is the following: By incorporating non-smooth elements, such as absolute values in the cosine and sine terms, this function mimics the irregularities present in many ML loss landscapes.

It offers a robust benchmark for evaluating optimization algorithms, especially those designed to handle the challenges of non-convex, non-smooth, or high-dimensional problems, including sub-gradient, hybrid, and evolutionary methods.

The function's resemblance to practical ML objective functions makes it particularly valuable for testing the robustness and efficiency of algorithms in tasks such as hyperparameter tuning, neural network training, and constrained optimization.

2D Plot of the one dimensional Griewank function
3D plot of the two dimensional Griewank function
Contour plot of the two dimensional Griewank function