|
Lean
$LEAN_TAG$
|
Provides an implementation of a portfolio optimizer with unconstrained mean variance. 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... | |
Provides an implementation of a portfolio optimizer with unconstrained mean variance.
Definition at line 24 of file UnconstrainedMeanVariancePortfolioOptimizer.cs.
| double [] QuantConnect.Algorithm.Framework.Portfolio.UnconstrainedMeanVariancePortfolioOptimizer.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). |
Implements QuantConnect.Algorithm.Framework.Portfolio.IPortfolioOptimizer.
Definition at line 33 of file UnconstrainedMeanVariancePortfolioOptimizer.cs.