I would like to get the weights of a risk parity portfolio (equal risk contribution). Therefore I use following formulas:
$\sigma(w)=\sqrt{w' \Sigma w}$
$\sigma_i(w)= w_i \times \partial_{w_i} \sigma(w)$
$\sigma(w)=\sum_{i=1}^n \sigma_i(w)$
$c(w)= \frac{\Sigma w}{\sqrt{w' \Sigma w}}$
$\underset{w}{\arg \min} \sum_{i=1}^N [\frac{\sqrt{w^T \Sigma w}}{N} - w_i \cdot c(w)_i]^2$
probably I need to calculate and then scale the portfolio volatility $\sigma(w)$ on a desired value, e.g. $\sigma(w)$=5%, but I dont know how to do it. Thanks for your help already! Best