Problem
Given a minimization problem with constraints, we want to find optimal parameters. The problem is formulated as follows:
Classes
There are two main problem classes that fit into this generalization.
- Linear programs solve
- Quadratic programs solve
Solution
We start with the augmented Lagrangian
where
Then, observe that
since if a constraint was violated, setting
Let
Duality
Let the Lagrange dual be
and optimal
The weak duality theorem states
and the strong duality theorem states that if
In many cases, the dual solution is easier to solve for. Thus, if the strong duality requirements are met, we can optimize for the dual instead.
KKT Conditions
If we solve the problem, we have the following KKT conditions. Let