Introduction
Functional optimization deals with finding functions (rather than finite-dimensional vectors) that optimize a functional. A functional is a mapping from a space of functions to real numbers: (technically, ).
Concept of Functional and Variational Calculus
- In classical (discrete) optimisation, we minimize a function of variables
- In variational calculus, we consider a continuum of variables , where is continuous – it can be seen as a limit
- This approach allows us to optimize over entire functions rather than discrete parameters
Variation of a Functional
For a function and a “direction” (which is another function), the variation of objective function is:
The “derivative” of this variation should be zero for all admissible :
Euler-Lagrange Equation
For a functional of the form:
where represents , the necessary condition for an extremum is given by the Euler-Lagrange equation:
Derivation of Euler-Lagrange Equation
Starting with:
Using integration by parts for the second term:
For admissible , we have , so:
Since this must be zero for all , we get the Euler-Lagrange equation.
Example Problems
The Brachistochrone Problem
Problem Statement: Given two points A and B, find the path joining these points such that a bead sliding down under gravity travels from A to B in the shortest time.
Objective Function:
This is a classic problem that can be solved using the Euler-Lagrange equation. The solution is a cycloid.
Minimum Distance Path
Objective Function:
Here:
Applying the Euler-Lagrange equation yields (constant), so the solution is a straight line.
Connection to Other Areas
- Finite element method (FEM) is based on variational calculus (minimizing total system energy)
- Lagrange multiplier and KKT conditions extend to the continuum limit of variational calculus
- Contact and plasticity in FEM (constraints) also lead to KKT conditions
- Many physics problems can be formulated as minimization of energy functionals (principle of least action)
Key Differences from Discrete Optimization
- Instead of algebraic equations, we get differential equations as the first-order necessary conditions
- These differential equations, along with boundary conditions, need to be solved to find the extrema
- The solution is a function rather than a finite set of parameters
- Numerical solutions typically involve discretization (returning to finite dimensions)