Maximizing sharpe ratio of a portfolio with shorting allowed, where sum of absolute weights must be one.
5 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Mukul Rao
on 24 Apr 2017
Edited: Mukul Rao
on 24 Apr 2017
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 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!