- Instead of using "setDefaultConstraints," use the "setBound" method and set the lower limit and upper limit to negative infinite and positive infinite, respectively.
- Once you have set the bounds, you can utilize the "setBudget" method for putting constraints on your portfolio object.
- When the above two steps are done, you can use the "estimateFrontier" method for calculating the efficient frontier.
- "setBound": https://in.mathworks.com/help/finance/portfolio.setbounds.html
- "setBudget": https://in.mathworks.com/help/finance/portfolio.setbudget.html
- "estimateFrontier": https://in.mathworks.com/help/finance/portfolio.estimatefrontier.html