function [y,z] = mycon1(x) % this function is used in a unconstrained minimization example y = 2*x(1)^2+2*x(1)*x(2)+x(2)^2-1; z = []; end