I should minimize the variance wƩw, subject to 3 constraints. I want no short selling (w_i >= 0), and I want an equally weighted portfolio (w_i=w_j).
min wƩw
w
s.t.
w_i >= 0 for all i
sum(w) = 1
w_i= 1/n
# where n is the number of assets in order to have an equally weighted portfolio
Does anyone if it is possible, and if so, how to do it?
Or, given the fact that the weights must be equal it does not make sense implement the optimization? Because, I have already set the value of the weights.