Explore techniques for solving optimization problems involving nonlinear functions in various scientific and engineering fields.
Nonlinear optimization deals with problems where the objective function or the constraints are nonlinear. This is the typical situation in engineering, economics, and machine learning, where the relationships between variables are curved [1].
We seek $\min f(x)$ with $g_i(x) \le 0$ and $h_j(x) = 0$, where $f$, $g_i$, $h_j$ are functions of multiple variables not necessarily linear. Without constraints, candidate minima are points with zero gradient [1][2].
- First order: $\nabla f(x^*) = 0$ (stationary point).
- Second order: the Hessian matrix $H$ positive definite at $x^*$ guarantees a local minimum.
- With constraints: Karush-Kuhn-Tucker conditions, which generalize Lagrange multipliers (see the dedicated line).
Let $f(x, y) = x^2 + y^2 - xy - 3x$ (values taken). The gradient is $(2x - y - 3,\ 2y - x)$. Setting it to zero, $y = x/2$ and $2x - x/2 = 3$, then $x = 2$, $y = 1$. The Hessian $\begin{pmatrix}2 & -1\\ -1 & 2\end{pmatrix}$ has eigenvalues $1$ and $3$, both positive: the point $(2, 1)$ is a minimum, with $f = 4 + 1 - 2 - 6 = -3$ (calculation). Since the function is convex, it is also a global minimum (see the lines on eigenvalues).
- Gradient descent: simple, uses only first derivatives (see the dedicated line).
- Newton and quasi-Newton methods (BFGS): use the Hessian or an approximation and converge faster.
- Conjugate gradients: for very large problems.
- Penalty and barrier methods, sequential quadratic programming: for constrained problems.
If $f$ is convex and the feasible set is convex, every local minimum is global. For this reason, convexity is the property that separates "easy" problems from difficult ones [1].
Optimal structural design, model calibration, neural network training, economics, and control (general observation).
In nonconvex problems, methods usually find local minima, which depend on the starting point. Second derivatives may be needed, which are costly, and good variable scaling is required. For the linear case see the line on linear programming.
[1] Wikipedia (it): Ottimizzazione (matematica)
[2] Wikipedia (en): Nonlinear programming
Generating summary…