Optimality Conditions
Problem Statement
We are interested in solving unconstrained optimization problem:
where \(f: \mathbb{R}^n \rightarrow \mathbb{R}\) is continuous and twice continuously differentiable.
Optimality Conditions
Two optimality conditions that are necessary but not sufficient are as follows:
First-Order
What are the conditions under which \(\mathbf{x}^*\) is a local optima? From Taylor series:
If \(\mathbf{x}^*\) is a local minima, then we know that \(f(\mathbf{x}^* + \Delta \mathbf{x}) \geq f(\mathbf{x}^*)\) for a sufficiently small \(\Delta \mathbf{x}\), i.e.:
since the lower order term dominates. However, \(\Delta \mathbf{x}\) can be either positive or negative. Hence, we must have:
This also holds for local maxima, i.e., if \(\mathbf{x}^*\) is a local maxima or minima, then we must have \(\nabla f(\mathbf{x}^*) = 0\). A point where the gradient vanishes is called a stationary point.
Second-Order
Per first-order condition, if \(\mathbf{x}^*\) is a local minima, then we have a vanishing gradient, i.e., \(\nabla f(\mathbf{x}^*) = 0\). For \(f(\mathbf{x}^* + \Delta \mathbf{x}) \geq f(\mathbf{x}^*)\) to hold for all \(\Delta \mathbf{x} = 0\), we must have:
i.e., the Hessian must be positive semidefinite.