CONTENTS

Lagrange Multipliers and KKT Conditions

Motivation: why this matters in quant finance

Constrained portfolios obey budget constraints, leverage caps, factor-neutrality rules, and box limits. Lagrange multipliers and KKT conditions turn those restrictions into equations and shadow prices.

The informal idea

A multiplier measures how much the objective would improve if a constraint were relaxed. KKT combines stationarity, feasibility, complementary slackness, and sign restrictions.

Formal definitions

For equality constraints gi(x)=0g_i(x)=0, L(x,λ)=f(x)+iλigi(x)\mathcal{L}(x,\lambda)=f(x)+\sum_i\lambda_i g_i(x). With inequalities hj(x)0h_j(x)\le0, KKT adds νj0\nu_j\ge0 and νjhj(x)=0\nu_jh_j(x)=0.

Key properties

Stationarity balances objective and constraints

At the optimum, the objective gradient lies in the span of active constraint gradients.

Complementary slackness identifies active constraints

A non-binding inequality has zero multiplier.

Convexity makes KKT sufficient

Under regularity conditions, KKT certifies global optima for convex problems.

Worked example

For minimum variance with 1w=1\mathbf{1}^\top\mathbf{w}=1, L=wΣw+λ(1w1)\mathcal{L}=\mathbf{w}^\top\Sigma\mathbf{w}+\lambda(\mathbf{1}^\top\mathbf{w}-1). Stationarity gives 2Σw+λ1=02\Sigma\mathbf{w}+\lambda\mathbf{1}=0.

Common confusions and pitfalls

"A multiplier is an arbitrary trick." It is the shadow value of relaxing a constraint.
"All constraints need positive multipliers." Only active inequalities can have non-zero multipliers.
"KKT always proves a global optimum." Sufficiency needs convexity and regularity.

Where this goes next

Exercises

Test your understanding with 3 exercises for this lesson.