I am trying to do portfolio optimization in R based on asset returns, covariances and variance I have calculated elewhere for all periods. I would then do backtesting using the calculated weights and actual past returns of the assets.
I'm ultimately attempting to try multiple optimization methids, but decided t ostart off simple, with Markowtiz Variance Optimization.
Optimization packages/functions I've been able to find so far are able to do exactly what I'm trying t achieve, but just using returns data. On the other hand, I'm trying to utilize expected returns I have calculated wth a separate model which give me the expected returns & variance for all the assets instead of simplu utilizing past performance.
Is there a simple optimization formula to achieve this? I am abe to pull off the simple optimization in Excel, but this is way too heavy to perform for a large number of periods. Should I just do the optimizatin semi-manually, by using the underlying optimization formulas and some sort of "solver" for R?
I have tried to see how the most common optimization functions in R work, but they all seem to only utilize past returns data directly.