Skip to content

cla

Portfolio Construction and Risk

CLA solves constrained Markowitz problems efficiently with active-set style line updates.

minw  12wTΣwλμTw\min_w\;\frac{1}{2}w^T\Sigma w-\lambda\mu^T w

1Tw=1\mathbf{1}^T w=1

use nalgebra::DMatrix;
use openquant::cla::covariance;
let returns = DMatrix::from_row_slice(3, 2, &[0.01, 0.02, -0.01, 0.01, 0.015, 0.03]);
let sigma = covariance(&returns);
  • CLA
  • covariance
  • ReturnsEstimation
  • CLA behavior depends on weight bounds and return estimates.
  • Use robust covariance estimators when sample size is small.