Splitting methods for constrained quadratic programs in data analysis