Open nathanramoscfa opened 1 year ago
Because the original "max_sharpe" calculation is not a convex optimization, therefore we cannot solve it directly. However, we could transform the "max_sharpe" calculation to a convex optimization by a simple math, but the risk of that transformation is not zero therefore you see the error above.
Please take a look at this book http://web.math.ku.dk/~rolf/CT_FinOpt.pdf or this short paper https://people.stat.sc.edu/sshen/events/backtesting/reference/maximizing%20the%20sharpe%20ratio.pdf
I have been running this portfolio optimization function and getting the following warning,
pypfopt\efficient_frontier\efficient_frontier.py:257: UserWarning: max_sharpe transforms the optimization problem so additional objectives may not work as expected.
Why might I be seeing this warning?