This function is used to calculate the portfolio variance via a call to constrained_objective when var is an object for mean variance or quadratic utility optimization.
xts object of asset returns
vector of asset weights
numeric value of the portfolio variance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.