Skip to content
Prev 68958 / 398513 Next

opimization problem

The form of the problem looks like you are trying to do a mean-variance 
portfolio optimization.  If that is the case, you should not be dealing 
with variance as a restriction, but as part of the objective function:

max (r'*w - rho*w'*V*w)
s.t. sum(w) == 1

where rho is a risk aversion parameter.

You can solve this as a quadratic programming problem using either 1) 
solve.QP from the quadprog package; 2) portfolio.optim in package 
tseries

see http://tolstoy.newcastle.edu.au/R/help/05/01/10505.html for details 
on how to use the two.