function [f,g]=costqp(x,H,f,A,b)
%COSTQP Cost function and constraints for QP problem. Used by QPNEGDEF to
%	solve non positive definite problems.
f = 0.5*x'*H*x + f'*x;
g = A * x - b;
