function err = KB51Fs(x)
%

F(1) = -0.89513+(1-x(5))+(1-x(4))+(1-x(1))+x(2)+x(3)-(1-x(5))*(1-x(4))-(1-x(5))*(1-x(1))-(1-x(5))*x(2)-(1-x(5))*x(3)-(1-x(4))*(1-x(1))-(1-x(4))*x(2)-(1-x(4))*x(3)-(1-x(1))*x(2)-(1-x(1))*x(3)-x(2)*x(3)+(1-x(5))*(1-x(4))*(1-x(1))+(1-x(5))*(1-x(4))*x(2)+(1-x(5))*(1-x(4))*x(3)+(1-x(5))*(1-x(1))*x(2)+(1-x(5))*(1-x(1))*x(3)+(1-x(5))*x(2)*x(3)+(1-x(4))*(1-x(1))*x(2)+(1-x(4))*(1-x(1))*x(3)+(1-x(4))*x(2)*x(3)+(1-x(1))*x(2)*x(3)-(1-x(5))*(1-x(4))*(1-x(1))*x(2)-(1-x(5))*(1-x(4))*(1-x(1))*x(3)-(1-x(5))*(1-x(4))*x(2)*x(3)-(1-x(5))*(1-x(1))*x(2)*x(3)-(1-x(4))*(1-x(1))*x(2)*x(3)+(1-x(5))*(1-x(4))*(1-x(1))*x(2)*x(3);
F(2) = -0.36919+x(3);
F(3) = -0.90674+(1-x(4))+(1-x(3))+(1-x(1))-(1-x(4))*(1-x(3))-(1-x(4))*(1-x(1))-(1-x(3))*(1-x(1))+(1-x(4))*(1-x(3))*(1-x(1));
F(4) = -0.0080241+x(2);
F(5) = -0.99997+(1-x(5))+(1-x(2))+(1-x(1))+x(3)+x(4)-(1-x(5))*(1-x(2))-(1-x(5))*(1-x(1))-(1-x(5))*x(3)-(1-x(5))*x(4)-(1-x(2))*(1-x(1))-(1-x(2))*x(3)-(1-x(2))*x(4)-(1-x(1))*x(3)-(1-x(1))*x(4)-x(3)*x(4)+(1-x(5))*(1-x(2))*(1-x(1))+(1-x(5))*(1-x(2))*x(3)+(1-x(5))*(1-x(2))*x(4)+(1-x(5))*(1-x(1))*x(3)+(1-x(5))*(1-x(1))*x(4)+(1-x(5))*x(3)*x(4)+(1-x(2))*(1-x(1))*x(3)+(1-x(2))*(1-x(1))*x(4)+(1-x(2))*x(3)*x(4)+(1-x(1))*x(3)*x(4)-(1-x(5))*(1-x(2))*(1-x(1))*x(3)-(1-x(5))*(1-x(2))*(1-x(1))*x(4)-(1-x(5))*(1-x(2))*x(3)*x(4)-(1-x(5))*(1-x(1))*x(3)*x(4)-(1-x(2))*(1-x(1))*x(3)*x(4)+(1-x(5))*(1-x(2))*(1-x(1))*x(3)*x(4);
F(6) = -0.99003+(1-x(1))+x(2)+x(4)-(1-x(1))*x(2)-(1-x(1))*x(4)-x(2)*x(4)+(1-x(1))*x(2)*x(4);
F(7) = -0.87575+(1-x(3))+x(5)-(1-x(3))*x(5);
err = norm(F);
