apaMeanVariance.Restricted.Unbounded.LinearEqualityConstraints.Axb.Weights.FromReturn(PortfolioReturn, ExpectedReturns, Covariances, A, b, MaximumReturn, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Restricted.Unbounded.LinearEqualityConstraints.Axb.Weights.FromReturn(PortfolioReturn, ExpectedReturns, Covariances, A, b, MaximumReturn, DoShowVolRetOtherwiseWeightsOnly)Result
Returns the weights of the restricted and unbounded mean-variance efficient portfolio with a given return, subject to general linear equality constraints A*w = b. 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
A: m x n matrix of left-hand side parameters of the equality constraints A*w = b, with m the number of equality constraints and n the number of assets
b: m x 1 vector of right-hand side parameters of the equality constraints A*w = b
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
