S2 quadratic programming

S2 quadratic programming