Optimality and least squares · Definition

Optimization problem

continuous optimizationoptimality and least squares

Before you start you need to know

Many problems in engineering, economics, and machine learning are formulated as finding the best value of a quantity under limits. This general form lets us study all of them with the same tools.

Definition

An optimization problem consists of minimizing or maximizing an objective function \(f\) over a set of points that satisfy certain constraints.

\[\min_{x \in \mathbb{R}^n} f(x) \quad \text{sujeto a} \quad g_i(x) \le 0\]

If \(f\) is convex and the feasible set is convex, every local minimum is also global, and the KKT conditions are necessary and sufficient under regularity conditions. Gradient descent, Newton, and interior-point methods allow solving them numerically.

Consider minimizing \(f(x,y)=x^2+y^2\) subject to \(x+y=2\). Substituting \(y=2-x\) gives \(h(x)=x^2+(2-x)^2\), whose critical point \(x=1\) yields the minimum \(f(1,1)=2\).

A typical mistake is looking for points where \(\nabla f=0\) without checking the constraints, which may give a point outside the feasible set. Also, confusing a local minimum with the global one leads to wrong conclusions in nonconvex problems.

Think about it

What would happen to a local minimum if the objective function stopped being convex?

There could be another feasible point with a smaller value, so a local minimum no longer guarantees being global.

Exercises 10

References

  • Stephen Boyd, Lieven Vandenberghe, Convex Optimization, 1st edition, Cambridge University Press, 2004.
  • Jorge Nocedal, Stephen J. Wright, Numerical Optimization, 2nd edition, Springer, 2006.