robertmartin8 / PyPortfolioOpt

Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
https://pyportfolioopt.readthedocs.io/
MIT License
4.43k stars 948 forks source link

`efficient_return` does not generate optimal portfolio #516

Closed shidahe closed 1 year ago

shidahe commented 1 year ago

Hi, I tried both efficient_return and efficient_risk function when generating optimal portfolio. I noticed that, efficient_return doesn't generate optimal portfolio compared to efficient_risk. e.g. I tried to get a portfolio at 7% return target using efficient_return, and it gave me a portfolio with 6% as volatility. But when I tried to get a portfolio at 5.5% volatility using efficient_risk, it gave me a portfolio with 7% return. For the same constraints, this would suggest efficient_return cannot find portfolios with the minimum volatility. Do you have insight on what might cause this? Thank you.