Lean
$LEAN_TAG$
|
Interface for portfolio optimization algorithms More...
Public Member Functions | |
double[] | Optimize (double[,] historicalReturns, double[] expectedReturns=null, double[,] covariance=null) |
Perform portfolio optimization for a provided matrix of historical returns and an array of expected returns More... | |
Interface for portfolio optimization algorithms
Definition at line 21 of file IPortfolioOptimizer.cs.
double [] QuantConnect.Algorithm.Framework.Portfolio.IPortfolioOptimizer.Optimize | ( | double | historicalReturns[,], |
double[] | expectedReturns = null , |
||
double | covariance[,] = null |
||
) |
Perform portfolio optimization for a provided matrix of historical returns and an array of expected returns
historicalReturns | Matrix of annualized historical returns where each column represents a security and each row returns for the given date/time (size: K x N). |
expectedReturns | Array of double with the portfolio annualized expected returns (size: K x 1). |
covariance | Multi-dimensional array of double with the portfolio covariance of annualized returns (size: K x K). |
Implemented in QuantConnect.Algorithm.Framework.Portfolio.MinimumVariancePortfolioOptimizer, QuantConnect.Algorithm.Framework.Portfolio.MaximumSharpeRatioPortfolioOptimizer, QuantConnect.Algorithm.Framework.Portfolio.PortfolioOptimizerPythonWrapper, QuantConnect.Algorithm.Framework.Portfolio.UnconstrainedMeanVariancePortfolioOptimizer, and QuantConnect.Algorithm.Framework.Portfolio.RiskParityPortfolioOptimizer.