Markowitz model Application of Markowitz quadratic model to portfolio optimization using the gradient descent algorithm