Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Definitions

Consider the general constrained optimization problem

minimize⁡f0(x)subject to⁡x∈Ω\begin{array}{ll} \minimize& f_0(x)\\ \st & x \in \Omega\end{array}

We suppose that the problem is solvable, i.e., p⋆p^\star is finite and there exists x⋆∈Ωx^\star \in \Omega such that f0(x⋆)=p⋆f_0(x^\star) = p^\star. In many settings, it is important to be able to distinguish between local and global optima of a given optimization problem.

Examples

To illustrate the notion of local / global optima we consider the unconstrained optimization case of a given function f0(x)f_0(x).

1D polynomial function

Consider the 1D function defined over R\mathbb{R} as

f0(x)=360x−6x2−498.167x3+13.1875x4+44x5−3.20833x6−1.14286x7+0.125x8f_0(x) = 360x - 6x^2 - 498.167x^3 + 13.1875x^4 + 44x^5 - 3.20833x^6 - 1.14286x^7 + 0.125x^8

The unconstrained optimization problem, which consists in finding xx that minimizes f0f_0 over R\mathbb{R}, admits a unique solution given by x⋆=6x^\star = 6 (the global optimum). Yet they are many local optima, as shown by the following snippet.

Values at local optima:
x = -4.0, f(x) = 2441.986559999994
x = -0.5, f(x) = -119.82061953125002
x = 4.0, f(x) = -5780.625919999999
x = 6.0, f(x) = -6088.573439999978
<Figure size 640x480 with 1 Axes>

2D function

The Rastrigin function is a non-convex function commonly used as a performance test problem for optimization algorithms. Its expression in two dimensions is given by:

f0(x1,x2)=20+x12+x22−10(cos⁡(2πx1)+cos⁡(2πx2))f_0(x_1, x_2) = 20 + x_1^2 + x_2^2 - 10\left(\cos(2\pi x_1) + \cos(2\pi x_2)\right)

where x1,x2∈Rx_1, x_2 \in \mathbb{R}. As shown by the following code snippet, it has many local optima and a single global optimum at (x1,x2)=(0,0)(x_1, x_2) = (0, 0).

<Figure size 800x600 with 2 Axes>