function err = KB31Fs(x)
%

F(1) = -0.66958+x(4);
F(2) = -0.74513+x(2)+x(3)+x(4)-x(2)*x(3)-x(2)*x(4)-x(3)*x(4)+x(2)*x(3)*x(4);
F(3) = -0.99774+(1-x(4))+(1-x(3))+(1-x(2))+x(1)-(1-x(4))*(1-x(3))-(1-x(4))*(1-x(2))-(1-x(4))*x(1)-(1-x(3))*(1-x(2))-(1-x(3))*x(1)-(1-x(2))*x(1)+(1-x(4))*(1-x(3))*(1-x(2))+(1-x(4))*(1-x(3))*x(1)+(1-x(4))*(1-x(2))*x(1)+(1-x(3))*(1-x(2))*x(1)-(1-x(4))*(1-x(3))*(1-x(2))*x(1);
F(4) = -0.85044+(1-x(5))+(1-x(4))+(1-x(1))+x(2)-(1-x(5))*(1-x(4))-(1-x(5))*(1-x(1))-(1-x(5))*x(2)-(1-x(4))*(1-x(1))-(1-x(4))*x(2)-(1-x(1))*x(2)+(1-x(5))*(1-x(4))*(1-x(1))+(1-x(5))*(1-x(4))*x(2)+(1-x(5))*(1-x(1))*x(2)+(1-x(4))*(1-x(1))*x(2)-(1-x(5))*(1-x(4))*(1-x(1))*x(2);
F(5) = -0.9833+(1-x(5))+(1-x(2))+(1-x(1))+x(4)-(1-x(5))*(1-x(2))-(1-x(5))*(1-x(1))-(1-x(5))*x(4)-(1-x(2))*(1-x(1))-(1-x(2))*x(4)-(1-x(1))*x(4)+(1-x(5))*(1-x(2))*(1-x(1))+(1-x(5))*(1-x(2))*x(4)+(1-x(5))*(1-x(1))*x(4)+(1-x(2))*(1-x(1))*x(4)-(1-x(5))*(1-x(2))*(1-x(1))*x(4);
F(6) = -0.99608+(1-x(4))+(1-x(3))+(1-x(2))+x(5)-(1-x(4))*(1-x(3))-(1-x(4))*(1-x(2))-(1-x(4))*x(5)-(1-x(3))*(1-x(2))-(1-x(3))*x(5)-(1-x(2))*x(5)+(1-x(4))*(1-x(3))*(1-x(2))+(1-x(4))*(1-x(3))*x(5)+(1-x(4))*(1-x(2))*x(5)+(1-x(3))*(1-x(2))*x(5)-(1-x(4))*(1-x(3))*(1-x(2))*x(5);
F(7) = -0.18448+x(2);
F(8) = -0.92761+(1-x(4))+(1-x(2))+x(5)-(1-x(4))*(1-x(2))-(1-x(4))*x(5)-(1-x(2))*x(5)+(1-x(4))*(1-x(2))*x(5);
F(9) = -0.66242+(1-x(5))+x(2)-(1-x(5))*x(2);
F(10) = -0.41395+x(5);
F(11) = -0.99806+(1-x(3))+(1-x(2))+x(4)+x(5)-(1-x(3))*(1-x(2))-(1-x(3))*x(4)-(1-x(3))*x(5)-(1-x(2))*x(4)-(1-x(2))*x(5)-x(4)*x(5)+(1-x(3))*(1-x(2))*x(4)+(1-x(3))*(1-x(2))*x(5)+(1-x(3))*x(4)*x(5)+(1-x(2))*x(4)*x(5)-(1-x(3))*(1-x(2))*x(4)*x(5);
F(12) = -0.97874+(1-x(4))+(1-x(3))+x(5)-(1-x(4))*(1-x(3))-(1-x(4))*x(5)-(1-x(3))*x(5)+(1-x(4))*(1-x(3))*x(5);
F(13) = -0.9095+(1-x(5))+(1-x(1))+x(4)-(1-x(5))*(1-x(1))-(1-x(5))*x(4)-(1-x(1))*x(4)+(1-x(5))*(1-x(1))*x(4);
F(14) = -0.99339+(1-x(3))+(1-x(2))+(1-x(1))-(1-x(3))*(1-x(2))-(1-x(3))*(1-x(1))-(1-x(2))*(1-x(1))+(1-x(3))*(1-x(2))*(1-x(1));
F(15) = -0.89759+(1-x(4))+x(1)+x(2)+x(3)+x(5)-(1-x(4))*x(1)-(1-x(4))*x(2)-(1-x(4))*x(3)-(1-x(4))*x(5)-x(1)*x(2)-x(1)*x(3)-x(1)*x(5)-x(2)*x(3)-x(2)*x(5)-x(3)*x(5)+(1-x(4))*x(1)*x(2)+(1-x(4))*x(1)*x(3)+(1-x(4))*x(1)*x(5)+(1-x(4))*x(2)*x(3)+(1-x(4))*x(2)*x(5)+(1-x(4))*x(3)*x(5)+x(1)*x(2)*x(3)+x(1)*x(2)*x(5)+x(1)*x(3)*x(5)+x(2)*x(3)*x(5)-(1-x(4))*x(1)*x(2)*x(3)-(1-x(4))*x(1)*x(2)*x(5)-(1-x(4))*x(1)*x(3)*x(5)-(1-x(4))*x(2)*x(3)*x(5)-x(1)*x(2)*x(3)*x(5)+(1-x(4))*x(1)*x(2)*x(3)*x(5);
F(16) = -0.99888+(1-x(3))+(1-x(2))+x(1)+x(4)-(1-x(3))*(1-x(2))-(1-x(3))*x(1)-(1-x(3))*x(4)-(1-x(2))*x(1)-(1-x(2))*x(4)-x(1)*x(4)+(1-x(3))*(1-x(2))*x(1)+(1-x(3))*(1-x(2))*x(4)+(1-x(3))*x(1)*x(4)+(1-x(2))*x(1)*x(4)-(1-x(3))*(1-x(2))*x(1)*x(4);
F(17) = -0.97477+(1-x(5))+(1-x(2))+x(4)-(1-x(5))*(1-x(2))-(1-x(5))*x(4)-(1-x(2))*x(4)+(1-x(5))*(1-x(2))*x(4);
err = norm(F);
