constrained optimization is the problem of optimizing an objective function with respect to some variables when there’re constraints on those variables
Example:
Maximize
Process
- Substitute the constraint function
into the function and solve the now unconstrained function - Lagrange multipliers
Process with Example
- Make sure the problem follow a form:
- The problem can be represented by a differentiable, multivariate function
with n-dimensional inputs - There are
constraint functions, each takes the form of multivariate function , where is a constant and has the same dimension as - Both
and are twice-differentiable around the open neighborhood of the optimizer - For each constraint function
, introduce a new variables —Lagrange multiplier. Then define the Lagrangian function as follows:
- Set the gradient of
to the zero vector to find critical points of . All components (partial derivatives) of must equate to 0.
- This leads to a system of equations
- Each candidate solution looks like
. Remove , then we have found critical points of , namely To classify these critical point, there are two ways:
- Plug back the values
into function and compare function values, to determine the global maximum and minimum over the feasible region ). Easy and recommended. - Check bordered Hessian
: if the leading principal minor Examples
Link to original