Skip to content
Prev 4833 / 15274 Next

Newbie Question: Portfolio Optimization with MV, LPM and CVaR constraints

Jonathan Ling wrote:
No. 

VaR optimization does not have an analytical solution, as VaR is not a 
coherent measure that can be transformed into a linear programming or 
other similar method.  I've previously used a combination of grid search 
and library("Rdonlp2") to do VaR optimization.  fPortfolio development 
code has some support for these methods, but it isn't complete or 
released, to the best of my knowledge.

With only 2 instruments, you can easily do grid search and solve the VaR 
optimization problem via brute force. (with 200 this would obviously be 
computationally infeasible)
Yes, in general, you'd set your weights and then float.

Please be aware that the code in fPortfolio used to assume continuous 
rebalancing to maintain your weights.  You'll need to assess whether 
this is still the case.  If the fPortfolio code still uses continuous 
rebalancing, to allow your weights to "float" after the initial 
allocation, the calculation is a little more complicated.  We have some 
code that we haven't quite finished documenting and testing for release 
yet that does this, and I'd be happy to test it on your data and 
allocation weights and share it with you.
I've never done LPM optimization, so perhaps another fPortfolio user or 
Diethelm or Yohan can help you out with that part of your query.

Regards,

  - Brian