Polynomial time weak approximation algorithms for quadratic programming