function f=obj(x) % calcula a função objetivo % Prof. Reyolando Brasil 04/04/2013 f=x(1,1)^2+2*x(2,1)^2+2*x(3,1)^2+2*x(1,1)*x(2,1)+2*x(2,1)*x(3,1);