function f= ggoal(x)
f= 0;
for i=1:100
    f=f+x(i)^(2*(mod(i,4)+1));
end