function err = KBas(x)
%

F(1) = -0.8+x(1);
F(2) = -0.85+(1-x(1))+x(2)-(1-x(1))*x(2);
F(3) = -0.95+(1-x(1))+x(3)-(1-x(1))*x(3);
F(4) = -0.65+(1-x(2))+x(4)-(1-x(2))*x(4);
F(5) = -0.85+(1-x(3))+x(4)-(1-x(3))*x(4);
F(6) = -0.1+x(4);
err = norm(F);
