Optimising under rules
Real portfolios obey rules: the weights add up to one, no short sales, a cap on turnover. A constrained problem is subject to equalities and inequalities . With one equality, the best feasible point is where points straight through the constraint surface, because any sideways component could be used to improve without leaving the surface. That is the Lagrange condition , and the number is the Lagrange multiplier. Collecting everything in the Lagrangian turns the constrained problem into the search for a stationary point of .
For inequalities the full set of conditions, named after Karush, Kuhn and Tucker, has four parts: stationarity of the Lagrangian, primal feasibility (the constraints hold), dual feasibility () and complementary slackness (). Complementary slackness says each inequality is either inactive, with and , so it does not matter, or active, with and , so it acts like an equality. For a convex problem these conditions are necessary and sufficient for a global optimum. The multiplier is also a price: it is the rate at which the best value of improves when the constraint is relaxed by one unit.
The minimum-variance portfolio is the model case: minimise subject to . The Lagrange condition gives . For two uncorrelated assets with variances and the weights are proportional to and , so , and the portfolio variance is . The multiplier equals times that minimum variance. In a real portfolio a long-only rule or a turnover cap has its own multiplier, and a large tells you that rule is costing you a lot.
- Equality constraint: together with .
- Inequality: and ; active means , inactive means .
- Price: a multiplier is the sensitivity of the best value to a relaxation of its constraint.
After solving, verify the answer against all four conditions. The most common slips are a multiplier with the wrong sign for an inequality (it must be when constraints are written ) and an active constraint that was assumed inactive. Sign conventions differ between textbooks and libraries, so always read which form your solver expects.
Lab · what's graded
8 tasks · 100 pts- The multiplier10 pts
- The optimal point10 pts
- Relaxing the constraint10 pts
- A two-asset minimum-variance weight15 pts
- The minimum variance15 pts
- The four KKT conditions15 pts
- An active constraint10 pts
- What a multiplier tells you15 pts