encyclopegia.org

Griewank function

In mathematics, 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 function is defined as : f(x) = 1 + \frac{1}{4000}\sum_{i=1}^n x_i^2 - \prod_{i=1}^n P_i(x_i), where x = (x_1,\dots,x_n) \in \R^n and P_i(x_i)=\cos(x_i/\sqrt{i}) . The non-linear and non-convex function is characterized by its unique multimodal structure, featuring multiple local minima and maxima around its single global minimum at x^\ast = 0 , where the function has minimal value f(x^\ast) = 0 . The number of stationary points increases as the dimensionality n grows. For instance, the one-dimensional Griewank function f(x_1) = 1+(1/4000)\cdot x_1^2-\cos(x_1) has 6365 critical points in the interval [-10000,10000] , where the first derivative vanishes. These points satisfy the equation : \nabla f(x_1) = \frac{1}{2000} \cdot x_1 + \sin(x_1) = 0 . 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. This is particularly problematic for gradient-based methods. The Griewank function is commonly used to benchmark global optimization algorithms, such as genetic algorithms or particle swarm optimization.…

In mathematics, 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 function is defined as f(x) = 1 + \frac{1}{4000}\sum_{i=1}^n x_i^2 - \prod_{i=1}^n P_i(x_i), where x = (x_1,\dots,x_n) \in \R^n and P_i(x_i)=\cos(x_i/\sqrt{i}) . The non-linear and non-convex function is characterized by its unique multimodal structure, featuring multiple local minima and maxima around its single global minimum at x^\ast = 0 , where the function has minimal value f(x^\ast) = 0 . The number of stationary points increases as the dimensionality n grows. For instance, the one-dimensional Griewank function f(x_1) = 1+(1/4000)\cdot x_1^2-\cos(x_1) has 6365 critical points in the interval [-10000,10000] , where the first derivative vanishes. These points satisfy the equation \nabla f(x_1) = \frac{1}{2000} \cdot x_1 + \sin(x_1) = 0 . 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. This is particularly problematic for gradient-based methods. 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. f(x) = 1 + \frac{1}{4000} \sum_{i=1}^n x_i^2 - \prod_{i=1}^n P_i(x_i) \text{ with } P_i(x_i)=\left| \cos\left(\frac{x_i}{2\sqrt{i}}\right) \right| - \left| \sin\left(\frac{x_i}{2\sqrt{i}}\right) \right|. 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. ==References==

References

  1. Generalized descent for global optimization · retrieved 2026-11-17 · rev 1378639420
    Cite this reference

    MLA "Generalized descent for global optimization." Griewank, A. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Generalized descent for global optimization." Griewank, A. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Griewank, A. (2026). Generalized descent for global optimization. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  2. A note on the Griewank test function · retrieved 2026-11-17 · rev 1378639420
    Cite this reference

    MLA "A note on the Griewank test function." Locatelli, M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A note on the Griewank test function." Locatelli, M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Locatelli, M. (2026). A note on the Griewank test function. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  3. A piecewise smooth version of the Griewank function · retrieved 2026-11-17 · rev 1378639420
    Cite this reference

    MLA "A piecewise smooth version of the Griewank function." Bosse, Torsten F. 2026-11-17. https://doi.org/10.1080%2F10556788.2024.2414186. Accessed 24 November 2026.

    Chicago "A piecewise smooth version of the Griewank function." Bosse, Torsten F. 2026-11-17. https://doi.org/10.1080%2F10556788.2024.2414186.

    APA Bosse, Torsten F. (2026). A piecewise smooth version of the Griewank function. Retrieved November 24, 2026, from https://doi.org/10.1080%2F10556788.2024.2414186

Cite this article

MLA

"Griewank function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/griewank-function. Accessed 24 November 2026.

Chicago

"Griewank function." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/griewank-function.

APA

encyclopegia.org. (2026). Griewank function. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/griewank-function

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378639420 · 0.5 · snapshot enwiki-001378639420

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.