cla
Subject
Section titled “Subject”Portfolio Construction and Risk
Why This Module Exists
Section titled “Why This Module Exists”CLA solves constrained Markowitz problems efficiently with active-set style line updates.
Mathematical Foundations
Section titled “Mathematical Foundations”MVO Objective
Section titled “MVO Objective”
Budget Constraint
Section titled “Budget Constraint”
Usage Examples
Section titled “Usage Examples”Prepare covariance for CLA
Section titled “Prepare covariance for CLA”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);API Reference
Section titled “API Reference”Rust API
Section titled “Rust API”CLAcovarianceReturnsEstimation
Implementation Notes
Section titled “Implementation Notes”- CLA behavior depends on weight bounds and return estimates.
- Use robust covariance estimators when sample size is small.