Stav dette: Optimal Quadratic Programming and QCQP Algorithms with Applications