Small Group Tutorials

Here to help students catch up, keep up, and move ahead. Book a consultation here.

How ADMM Algorithms Solve Constrained Portfolio Optimisation: Variable Splitting, Augmented Lagrangians, Proximal Transaction Costs, Primal–Dual Residuals, Rho Tuning and Convergence Failure

Reader question: Portfolio optimisation can combine a smooth quadratic risk term with budgets, box limits, long-only rules, transaction costs and sparsity penalties. How can one algorithm separate those mathematically different pieces without turning the entire problem into one monolithic nonlinear solve?

The Alternating Direction Method of Multipliers (ADMM) does this by variable splitting. It gives different mathematical terms their own copies of the portfolio vector, ties those copies together with an equality constraint, and uses an augmented Lagrangian to make the copies agree. One subproblem can exploit a fast quadratic solve while another uses a projection or proximal operator for constraints and nonsmooth costs.

This article owns one precise computational job: operator-splitting solution of convex portfolio-allocation problems with separable smooth and nonsmooth terms. It does not own mean–variance theory, risk-parity objectives, Black–Litterman views, covariance estimation or every nonconvex cardinality problem.

This is public mathematical and computational education. It is not personalised portfolio advice, a recommendation to buy or sell assets, or a claim that numerical convergence makes an investment model economically correct.

1. A portfolio problem with several mathematical pieces

A stylised rebalancing problem can be written:

minw ½ wTΣw − λ μTw + κ||w−w0||1

subject to:

1Tw = 1,

l ≤ w ≤ u.

Here:

  • Σ is a covariance matrix;
  • μ is an expected-return vector if the model uses one;
  • λ controls the risk/return trade-off;
  • w0 is the current portfolio;
  • κ penalises turnover through an L1 transaction-cost approximation;
  • l and u are lower/upper position bounds.

The quadratic term is smooth. The L1 term is nonsmooth. The budget and bounds are constraints. ADMM is useful because these pieces often have very different efficient solvers.

2. The general ADMM form

ADMM begins with:

min f(x)+g(z)

subject to:

Ax+Bz=c.

Its scaled-form iterations are:

xk+1 = argminx f(x) + (ρ/2)||Ax+Bzk−c+uk||22,

zk+1 = argminz g(z) + (ρ/2)||Axk+1+Bz−c+uk||22,

uk+1 = uk + Axk+1+Bzk+1−c.

ρ > 0 is the augmented-Lagrangian penalty parameter. The dual-like variable u accumulates disagreement between the split variables.

3. Consensus splitting for portfolios

A particularly transparent split sets:

x = z.

Put the smooth risk/return objective into f(x), and put transaction costs plus hard portfolio constraints into g(z).

Then:

min f(x)+g(z), subject to x−z=0.

The x-step can exploit quadratic algebra; the z-step can exploit proximal operators or projection.

4. The quadratic x-step

Suppose:

f(x)=½xTΣx−λμTx.

With x=z consensus, the x-update solves:

min ½xTΣx−λμTx +(ρ/2)||x−zk+uk||².

The first-order condition is:

(Σ+ρI)x = λμ + ρ(zk−uk).

If Σ and ρ remain fixed, a factorisation of Σ+ρI can be reused across iterations. That can make each x-step much cheaper than solving the original constrained problem from scratch.

5. The z-step can carry nonsmooth costs

If:

g(z)=κ||z−w0||1

without additional constraints, the z-step becomes a soft-thresholding proximal operator around w0.

For a scalar v:

soft(v,τ)=sign(v)max(|v|−τ,0).

Applied componentwise to trading changes, L1 regularisation can shrink small proposed trades toward zero.

But an L1 penalty does not guarantee an exact number of holdings or trades. It encourages sparsity; it does not impose a fixed cardinality.

6. Constraints can be represented by indicator functions

Define the feasible set:

C={z: 1Tz=1, l≤z≤u}.

Its indicator function is:

IC(z)=0 if z∈C, and +∞ otherwise.

Putting IC inside g means the z-step becomes a constrained proximal problem or projection onto C.

This is an important modelling device: a hard constraint becomes a function that makes infeasible points infinitely expensive.

7. Simplex projection for long-only portfolios

For:

w≥0, 1Tw=1,

the feasible set is the probability simplex.

Projection solves:

minz ½||z−v||² subject to z≥0, 1Tz=1.

Efficient sorting-based algorithms exist. With upper bounds or sector constraints, the projection becomes more complex but is still often much simpler than the original risk-plus-cost problem.

8. Primal residual

For consensus ADMM, the primal residual is:

rk=xk−zk.

It measures whether the split portfolio copies agree.

A small objective change is not enough. If x and z disagree materially, the algorithm has not solved the original unsplit problem.

9. Dual residual

A standard consensus dual residual is:

sk=ρ(zk−zk−1).

It measures movement associated with dual feasibility/stationarity.

Stopping rules commonly require both:

||rk|| ≤ εpri

and:

||sk|| ≤ εdual.

Reporting only iteration count or objective value hides whether the consensus constraint has actually converged.

10. What ρ does

ρ changes the numerical balance between fitting each subproblem and forcing agreement.

If ρ is too small, primal agreement can improve slowly. If ρ is too large, the variables may agree quickly while progress on the underlying objective becomes slow.

For an exactly solved convex problem, changing ρ should change the path and speed of convergence—not the true optimum.

Falsifier: solve the same convex problem with several sensible ρ values to tight tolerances. Materially different final portfolios indicate incomplete convergence, implementation error or non-uniqueness that needs to be reported.

11. Residual balancing

A common adaptive heuristic increases ρ when the primal residual is much larger than the dual residual and decreases ρ in the opposite case.

Schematically:

  • if ||r|| > μ||s||, increase ρ;
  • if ||s|| > μ||r||, decrease ρ.

When ρ changes in scaled ADMM, the scaled dual variable must be adjusted consistently.

Adaptive ρ is a convergence heuristic, not a new investment assumption.

12. Inputs and outputs

Inputs can include:

  • covariance matrix Σ;
  • expected-return vector or target-return terms;
  • current holdings w0;
  • transaction-cost coefficients;
  • budget, long-only, leverage and box constraints;
  • sector/factor exposure matrices;
  • risk-aversion or objective coefficients;
  • ρ and adaptive-ρ policy;
  • primal/dual tolerances;
  • maximum iterations;
  • linear-system factorisation strategy.

Outputs can include:

  • portfolio weights;
  • trade vector w−w0;
  • objective decomposition;
  • primal and dual residual histories;
  • constraint violations;
  • KKT residuals;
  • iteration count and runtime;
  • ρ history;
  • benchmark-solver difference;
  • sensitivity to covariance/return inputs.

13. Evidence polarity

Evidence for confidence includes:

  • both primal and dual residuals meet explicit tolerances;
  • all hard constraints are satisfied numerically;
  • the ADMM objective matches a trusted interior-point or conic solver on benchmark cases;
  • different initialisations converge to the same convex optimum;
  • different reasonable ρ choices converge to the same solution;
  • KKT conditions are satisfied;
  • runtime scales favourably when repeated large structured problems are solved.

Evidence against confidence includes:

  • objective appears stable while consensus residual remains large;
  • constraint violations persist;
  • portfolio depends materially on ρ at tight tolerance;
  • linear solves become ill-conditioned;
  • adaptive ρ oscillates without progress;
  • benchmark solver finds a materially better feasible objective;
  • small input perturbations create large allocation jumps that are not explained by binding constraints.

14. Covariance conditioning is upstream of ADMM

If Σ is nearly singular or noisy, the quadratic x-step can be poorly conditioned and the economic allocation can be unstable.

ADMM does not repair a bad covariance model merely because the linear algebra converges.

See Ledoit–Wolf Covariance Shrinkage for the separate estimation problem.

15. Counterexample: an indefinite covariance matrix

A mean–variance quadratic is convex only when its Hessian is positive semidefinite after all objective terms are considered.

An empirically corrupted or improperly adjusted covariance matrix can contain negative eigenvalues.

The x-step may still produce numbers, but the standard convex ADMM convergence theory no longer applies.

Falsifier: check eigenvalues and convexity before invoking convex convergence claims.

16. Counterexample: hard cardinality

Suppose the user requires exactly 20 nonzero holdings:

||w||0 ≤ 20.

This is a nonconvex cardinality constraint.

One can insert a hard-thresholding or mixed-integer-like z-step, but the classical convex ADMM guarantee is lost. The algorithm may converge to different local/stationary points from different starts.

Falsifier: run multiple initialisations and compare against mixed-integer or exhaustive small-instance benchmarks.

17. Counterexample: L1 turnover is not real execution cost

κ||w−w0||1 approximates proportional transaction cost.

Real costs can include bid–ask spread, nonlinear market impact, minimum fees and discrete lots.

Boundary: the solver can optimise the objective exactly while the objective is an inaccurate model of trading cost.

See Almgren–Chriss for a separate execution-impact model.

18. Scaling matters

If one constraint is measured in dollars, another in basis points and another in unitless weights, raw residual norms can be dominated by arbitrary units.

Variable and constraint scaling can materially affect ADMM speed.

Falsifier: rescale mathematically equivalent formulations. The final portfolio should agree; convergence speed may change. If the optimum changes, the implementation has introduced a scale-dependent error.

19. Infeasible constraints

Consider:

w≥0, 1Tw=1

plus upper bounds whose total sum is only 0.8.

No feasible portfolio exists.

ADMM residuals may fail to vanish rather than producing a clean explanatory message.

Falsifier: run a separate feasibility check or use solver certificates where available. A maximum-iteration exit is not evidence that an infeasible problem has a meaningful approximate optimum.

20. Warm starts

Portfolio problems are often solved repeatedly with slightly changed forecasts, prices or holdings.

Using the previous x,z,u as the new initial state can reduce iterations.

But warm starts can hide regime changes if convergence tolerances are loose.

Falsifier: periodically compare warm-start and cold-start solutions at tight tolerance.

21. Factor-model linear algebra

If:

Σ = FΛFT + D

with few factors, the x-step linear system can exploit the Woodbury identity rather than factorising a dense N×N matrix each iteration.

This is one reason operator splitting can scale well to large portfolios: it exposes repeated structured algebra.

22. Distributed decomposition

ADMM became popular partly because different blocks of a large objective can be solved in parallel and reconciled through consensus variables.

Portfolio versions can split by scenario blocks, asset groups or risk terms when the mathematical structure permits.

Distributed implementation introduces new weak links: communication latency, stale workers and inconsistent stopping rules.

23. Relation to risk parity

Risk-Parity Algorithms own the equal-risk-contribution objective and its nonlinear structure.

ADMM is a numerical splitting framework. It can solve some reformulations or constrained subproblems, but it does not define what “equal risk” means.

24. Relation to Black–Litterman

Black–Litterman owns the construction of equilibrium-plus-view expected returns. Those expected returns can become μ in an optimisation problem solved by ADMM, but inference and numerical optimisation remain different jobs.

25. Relation to CVaR optimisation

Rockafellar–Uryasev CVaR Optimisation owns the tail-risk objective and its auxiliary-variable representation.

ADMM can sometimes decompose large scenario CVaR problems, but the tail-risk mathematics belongs to the CVaR owner.

26. Alternatives

Interior-point/conic solvers: high-accuracy default for many medium-sized convex problems and an excellent benchmark.

Projected/proximal gradient and FISTA: efficient when the smooth term has cheap gradients and the nonsmooth proximal map is simple.

Coordinate descent: effective for some separable penalised problems.

Active-set QP methods: useful when the problem is primarily quadratic with linear constraints.

Mixed-integer optimisation: appropriate when exact cardinality or discrete trading constraints are genuinely required.

27. Weak links

  • wrong split that makes both subproblems difficult;
  • poor scaling;
  • ρ treated as an economic hyperparameter instead of a solver parameter;
  • primal residual checked without dual residual;
  • approximate subproblems solved too loosely;
  • indefinite Hessian while claiming convex convergence;
  • nonconvex cardinality hidden behind convex language;
  • infeasible constraints not detected;
  • transaction-cost model too crude;
  • benchmark solver omitted.

28. What would falsify confidence?

Confidence should be withdrawn if ADMM cannot reproduce trusted convex-solver solutions; if KKT and feasibility residuals fail; if the portfolio changes materially with ρ at tight tolerance; if scaling changes the optimum; if nonconvex extensions depend strongly on initialisation; or if out-of-sample behaviour reveals that the numerical solver is accurately solving a poorly specified risk/cost model.

29. Verification and update triggers

Preserve the exact objective, constraints, split, proximal/projection operators, Σ/μ versions, ρ policy, scaling, tolerances, initialisation, linear-solver settings and benchmark results.

Revalidate when:

  • constraints change;
  • transaction-cost model changes;
  • covariance estimator changes;
  • problem dimension changes materially;
  • cardinality/discrete constraints are introduced;
  • ρ adaptation changes;
  • distributed computation is introduced;
  • a new benchmark solver/version is adopted.

30. Primary and high-quality references

Educational boundary: ADMM is an optimisation algorithm. It can solve a well-posed convex portfolio problem efficiently, but it cannot validate forecasts, covariance assumptions, transaction-cost models or the economic suitability of the resulting allocation.

Discover more from Bukit Timah Tutor

Subscribe now to keep reading and get access to the full archive.

Continue reading