How do i minimize a smoothed Value at Risk function in Matlab?

Viewed 27

I am trying to build a script on Matlab to compute a mean-VaR efficient frontier. To do that I need to minimize the portfolio Value at Risk for a given value of expected return of the portfolio; the main issue is that the Value at Risk, seen as a function of the portfolio wights, is a very irregular non-convex function. Because of the features of the VaR function, one needs to smooth it first, and only then it is possible to do the minimization process.

In order to smooth the function I tried using a cuibic spline, using the Matlab function called "csaps()", available in the curve fitting toolbox. Once the smoothed function is computed I can also plot it using the "fnplot()" function; the main issue is that the format of the output of the "csaps()" function is a "struct" object (precisely it's a ppform object) and not a "function handle", which means that functions like "fmincon()" cannot be used to minimize it.

Is there a way to use the "fmincon()" function with ppform objects or to convert the ppform object into a function handle? Or even another way to smooth the function that will allow me to minimize it after the smoothing?

0 Answers
Related