function retval = ezfn(x)
% usage:  y = ezfn(x)
% description: Returns value of an easy test function
% assuming that x is a vector of length 2
% This fcn has absolute min at (-1,0).
% Typical starting point: (5,-5)

% no bulletproofing
retval = x(1)^2+x(2)^2-x(1)*x(2)+2*x(1)-x(2)+1;