Maximizing sharpe ratio of a portfolio with shorting allowed, where sum of absolute weights must be one.
1 次查看(过去 30 天)
显示 更早的评论
Hi!
I am attempting to solve a problem in which I have a portfolio with 10 assets and their respective means and covariances, and I am trying to maximize the sharpe ratio. Shorting is allowed, but the sum of absolute weights of the assets must be 1. I have tried it but am not able to implement the constraint which limits the sum of absolute value of the weights to 1. Any help would be appreciated!
Thanks!
0 个评论
回答(1 个)
Mukul Rao
2017-4-24
编辑:Mukul Rao
2017-4-24
Hello,
Have you tried specifying bounds to be negative with "setBounds"
You can specify the constraint that the weights add up to 1 with "addEquality"
I also found a similar thread, that might be helpful
You could also try to write your own portfolio optimization problem similar to what is described here
While the example above has the weights restricted to be greater than zero, I would assume for the case of shorting, your use case would involve negative weights. The objective function can then be formulated to maximize the Sharpe Ratio.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!