Lagrange Multipliers for SVM optimization

For each constraint we will use Lagrange multipliers (Lagrange-Multiplikatoren).

The Lagrange multiplier needs to be maximized with , but we still want to minimze the whole function with .

Primal vs. Dual Formulation

  • Primal formulation:

  • Dual formulation:

These formulations are actually the same (Slater’s condition), so we can solve the dual formulation by first minimizing the function for and .

Solution using Partial Derivatives

We would like to minimize this function:

To do this, we want to calculate the extreme values, so we calculate the partial derivatives for \begin{equation} \frac{\partial \mathcal{L}}{\partial w}\end{equation} and \begin{equation} \frac{\partial \mathcal{L}}{\partial b}\end{equation} like this:

We then insert the results for and resulting in the reamining maximization problem under two constraints.

This is the optimization problem now:

also see Karush-Kuhn-Tucker Conditions.