function [df,dg]=costqpg(x,H,f,A,b)
%COSTQPG Cost function and constraint gradients for QP problem. 
%	Used by QPNEGDEF to solve non positive definite problems.
df = H*x + f(:);
dg = A';
