function f = funcao_quadratica(x,y)
x1 = x;
y1 = y;
f = 2 - x1^2 - 2*y1^2 - 0.5*x1*y1;