ArticleslgStudy

mathematics

Griewank function

Griewank function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Griewank function rather than just read about it. In short: 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.

Griewank function — main illustration
Griewank function — illustration

Key takeaways

  • Griewank function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Griewank function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Griewank function from memory before moving on to harder problems.

Reference excerpt

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 + 1 4000 ∑ i = 1 n x i 2 − ∏ i = 1 n P i ( x i ) with P i ( x i ) = cos ⁡ ( x i i ) {\displaystyle f(x)=1+{\tfrac {1}{4000}}\sum _{i=1}^{n}x_{i}^{2}-\prod _{i=1}^{n}P_{i}(x_{i}){\text{ with }}P_{i}(x_{i})=\cos \left({\tfrac {x_{i}}{\sqrt {i}}}\right)}

where x = ( x 1 , … , x n ) ∈ R n {\displaystyle x=(x_{1},\dots ,x_{n})\in \mathbb {R} ^{n}} is a vector of real-valued variables. The nonlinear and nonconvex function is characterized by its unique multimodal structure, featuring multiple local minima and maxima around its single global minimum at x ∗ = 0 {\displaystyle x^{\ast }=0} , where the function has minimal value f ( x ∗ ) = 0 {\displaystyle f(x^{\ast })=0} . The number of stationary points increases as the dimensionality n ∈ N {\displaystyle n\in \mathbb {N} } grows.

For instance, the one-dimensional Griewank function f ( x 1 ) := 1 + ( 1 / 4000 ) ⋅ x 1 2 − cos ⁡ ( x 1 ) {\displaystyle 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 ∇ f ( x 1 ) = 1 2000 ⋅ x 1 + sin ⁡ ( x 1 ) = 0 {\displaystyle \nabla f(x_{1})={\tfrac {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.

Non-Smooth Variant of the Griewank Function A non-smooth version of the Griewank function has been developed 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:

… excerpt ends here. Continue reading the full article.

Illustrations

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

Worked examples

Example 1 — a first encounter with Griewank function

Start with the simplest possible case. Write down what Griewank function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Griewank function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Griewank function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Griewank function

In research
Griewank function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Griewank function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Griewank function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Special functions, Test functions for optimization, so understanding it makes those chapters shorter.
In everyday life
Look for Griewank function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Griewank function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Griewank function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Griewank function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Griewank function in simple terms?

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.

Why does Griewank function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Griewank function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Griewank function.

Tags

  • Special functions
  • Test functions for optimization

Keep exploring