Duality in quadratic programming | Synapse