Skip to article frontmatterSkip to article content

2.4Optimality conditions for unconstrained optimization

First, we consider the unconstrained optimization problem

minimizef0(x)subject toxRn\begin{array}{ll} \minimize& f_0({x})\\ \st & x \in \mathbb{R}^n \end{array}

We assume that f0f_0 has “good” properties on Rn\mathbb{R}^n, i.e., f0f_0 is twice continuously differentiable (or at least continuously differentiable).

Provided optima exist (not always guaranteed!), we will derive conditions on a point xx^\star to be a local optimum of the problem. (in the unconstrained case, one also says that xx^\star is a local minimizer of f0f_0). To be able to characterize global optimality, we’ll need to assume convexity of the objective function f0f_0.

Most of the results from this section are reproduced from Nocedal & Wright (2006, Chapter 2), where detailed proofs are available.

Necessary conditions (unconstrained case)

We call xx^\star a stationary or critical point of f0f_0 if f0(x)=0\nabla f_0(x^\star) = 0.

Any local optima must be a stationary point.

Prove Theorem 1 and Theorem 2 by contradiction using Taylor’s theorem.

Sufficient conditions (unconstrained case)

Exercise 2 (Quadratic function)

Let f:R2Rf:\mathbb{R}^2 \rightarrow \mathbb{R} such that f(x)=x12x22f(x) = x_1^2 - x_2^2. Compute its gradient and Hessian. List critical points and their properties.

To help, here is how to plot this function in Python.

import numpy as np
import matplotlib.pyplot as plt

u = np.linspace(-1, 1, 128)
x1, x2= np.meshgrid(u, u)

plt.contourf(x1, x2, x1**2-x2**2)
plt.colorbar()
plt.xlabel(r'$x_1$')
plt.ylabel(r'$x_2$');
<Figure size 640x480 with 2 Axes>
Exercise 3 (Rosenbrock function)

Let f:R2Rf:\mathbb{R}^2 \rightarrow \mathbb{R} such that f(x)=(1x1)2+5(x2x12)2f(x) = (1-x_1)^2 + 5(x_2-x_1^2)^2.

Does the point [1,1][1, 1]^\top satisfy the necessary conditions? the sufficient conditions?

Necessary and sufficient conditions (unconstrained case)

When f0f_0 is convex there is a simple characterization of optimal points.

References
  1. Nocedal, J., & Wright, S. J. (2006). Numerical optimization (Second Edition). Springer.