Lean  $LEAN_TAG$
QuantConnect.Algorithm.Framework.Portfolio.UnconstrainedMeanVariancePortfolioOptimizer Class Reference

Provides an implementation of a portfolio optimizer with unconstrained mean variance. More...

Inheritance diagram for QuantConnect.Algorithm.Framework.Portfolio.UnconstrainedMeanVariancePortfolioOptimizer:
[legend]

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...
 

Detailed Description

Provides an implementation of a portfolio optimizer with unconstrained mean variance.

Definition at line 24 of file UnconstrainedMeanVariancePortfolioOptimizer.cs.

Member Function Documentation

◆ Optimize()

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

Parameters
historicalReturnsMatrix of annualized historical returns where each column represents a security and each row returns for the given date/time (size: K x N).
expectedReturnsArray of double with the portfolio annualized expected returns (size: K x 1).
covarianceMulti-dimensional array of double with the portfolio covariance of annualized returns (size: K x K).
Returns
Array of double with the portfolio weights (size: K x 1)

Implements QuantConnect.Algorithm.Framework.Portfolio.IPortfolioOptimizer.

Definition at line 33 of file UnconstrainedMeanVariancePortfolioOptimizer.cs.


The documentation for this class was generated from the following file: