apaMeanVariance.Restricted.Unbounded.LinearEqualityConstraints.Weights.FromReturn(PortfolioReturn, ExpectedReturns, Covariances, PortfolioExposure, Betas, PortfolioBetas, MaximumReturn, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Restricted.Unbounded.LinearEqualityConstraints.Weights.FromReturn(PortfolioReturn, ExpectedReturns, Covariances, PortfolioExposure, Betas, PortfolioBetas, MaximumReturn, DoShowVolRetOtherwiseWeightsOnly)Result
Returns the weights of the restricted and unbounded mean-variance efficient portfolio with a given return, subject to additional linear equality constraints on portfolio betas. Optionally, the portfolio volatility and expected return are shown in front of the weights.
Syntax
PortfolioReturn: return of the frontier portfolio
ExpectedReturns: 1 x n vector of expected constituent returns
Covariances: n x n covariance matrix
PortfolioExposure: value of the equality constraint on total portfolio exposure, i.e. the sum of constituent exposures
Betas: m x n matrix of betas, with m the number of additional linear equality constraints
PortfolioBetas: m x 1 vector of target portfolio betas
MaximumReturn: return of the portfolio defining the upper end of the frontier
DoShowVolRetOtherwiseWeightsOnly: optional; TRUE returns the portfolio volatility sqrt(w'Σw), calculated from Covariances and therefore a sample or population volatility as Covariances is, the portfolio expected return e'w, and the n constituent weights, i.e. a 1 x (n + 2) row; FALSE returns the weights only; default: FALSE
