apaMeanVariance.Restricted.Bounded.Frontier.xQxc(nPortfolios, ExpectedReturns, Covariances, LowerBounds, UpperBounds, PortfolioExposure, Q, c)
=apaMeanVariance.Restricted.Bounded.Frontier.xQxc(nPortfolios, ExpectedReturns, Covariances, LowerBounds, UpperBounds, PortfolioExposure, Q, c)Result
Calculates the bounded mean-variance efficient frontier with one additional quadratic constraint w'Q*w <= c. Columns: volatility, return and constituent weights of the frontier portfolios, from the minimum variance to the maximum return portfolio.
Syntax
nPortfolios: number of frontier portfolios to calculate, equally spaced in expected return (at least 2)
ExpectedReturns: 1 x n vector with expected constituent returns
Covariances: n x n covariance matrix. Singular matrices are allowed if the efficient portfolios are unique, e.g. zero-variance cash assets
LowerBounds: 1 x n vector with lower constituent exposure bounds
UpperBounds: 1 x n vector with upper constituent exposure bounds
PortfolioExposure: value of the equality constraint on total portfolio exposure, i.e. the sum of constituent exposures
Q: n x n symmetric positive semidefinite matrix of the quadratic constraint w'Q*w <= c, e.g. a tracking error covariance matrix, or the identity matrix for a concentration limit
c: upper limit of the quadratic constraint w'Q*w <= c, e.g. the squared tracking error, or 1/(effective number of assets) for Q = identity matrix
Algorithm
The feasible minimum variance and maximum return portfolios are determined, taking the quadratic constraint into account.
Remarks
With Q equal to the identity matrix, the constraint limits the Herfindahl concentration index of the weights, i.e. c = 1/N enforces at least N effective assets.
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
