How do I remove short-selling constraints from a portfolio?

3 次查看(过去 30 天)
I need to calculate an efficient frontier for a Markowitz portfolio using the integrated Portfolio class. If I use the function "setDefaultConstraints", I set short-selling restrictions. The only restriction I need is that the portfolio weights sum to one, how can I thus removed the short-selling restriction? I have tried to "setBounds", but it is not possible to use infinite bounds.

回答(1 个)

Aman
Aman 2024-9-24
Hi MLB,
As per my understanding, you just want to find an efficient frontier with the condition that there should be no bound on the short-selling and your budget constraints sum to one.
In order to achieve this, you need to follow the below steps:
  1. Instead of using "setDefaultConstraints," use the "setBound" method and set the lower limit and upper limit to negative infinite and positive infinite, respectively.
  2. Once you have set the bounds, you can utilize the "setBudget" method for putting constraints on your portfolio object.
  3. When the above two steps are done, you can use the "estimateFrontier" method for calculating the efficient frontier.
You can refer to the below documentation to learn more about the mentioned method:
I hope this helps you to proceed ahead with your workflow!

类别

Help CenterFile Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by