I am trying to understand how to maximize Sharpe ratio in portfolio optimization.
$\boxed{\begin{align}\max\>&\frac{r^Tx-r_f}{\sqrt{x^TQx}}\\ & \sum_i x_i = 1\\ & x_i\ge 0\end{align}}$
In order to solve this problem using general QP solver, according to a post, we could transform the problem into the following:
$\boxed{\begin{align}\min\>&y^TQy\\ & \sum_i (r_i-r_f) y_i = 1\\ & \sum_i y_i = \kappa\\ & Ay \sim \kappa b \\ & y_i,\kappa \ge 0\end{align}}$
and retrieve optimal by $x^*_i := y^*_i / \kappa^*$.
I got lost with the math. How did it work?