function fit=myFitnessLinEqn(w)

global x
global d

a=w(1);
b=w(2);

y = a*x+b;
fit = sum((d-y).^2);