function err = KB78Fs(x)
%

F(1) = -0.14873+x(2);
F(2) = -0.39956+x(4);
F(3) = -0.99742+(1-x(3))+x(1)+x(5)-(1-x(3))*x(1)-(1-x(3))*x(5)-x(1)*x(5)+(1-x(3))*x(1)*x(5);
F(4) = -0.58025+x(1)+x(3)-x(1)*x(3);
F(5) = -0.98462+(1-x(2))+x(5)-(1-x(2))*x(5);
F(6) = -0.94391+(1-x(4))+(1-x(2))+x(3)-(1-x(4))*(1-x(2))-(1-x(4))*x(3)-(1-x(2))*x(3)+(1-x(4))*(1-x(2))*x(3);
F(7) = -0.86438+(1-x(5))+(1-x(4))+x(1)+x(2)-(1-x(5))*(1-x(4))-(1-x(5))*x(1)-(1-x(5))*x(2)-(1-x(4))*x(1)-(1-x(4))*x(2)-x(1)*x(2)+(1-x(5))*(1-x(4))*x(1)+(1-x(5))*(1-x(4))*x(2)+(1-x(5))*x(1)*x(2)+(1-x(4))*x(1)*x(2)-(1-x(5))*(1-x(4))*x(1)*x(2);
F(8) = -0.15368+(1-x(5))+x(3)-(1-x(5))*x(3);
F(9) = -0.99977+(1-x(3))+(1-x(2))+x(1)+x(4)+x(5)-(1-x(3))*(1-x(2))-(1-x(3))*x(1)-(1-x(3))*x(4)-(1-x(3))*x(5)-(1-x(2))*x(1)-(1-x(2))*x(4)-(1-x(2))*x(5)-x(1)*x(4)-x(1)*x(5)-x(4)*x(5)+(1-x(3))*(1-x(2))*x(1)+(1-x(3))*(1-x(2))*x(4)+(1-x(3))*(1-x(2))*x(5)+(1-x(3))*x(1)*x(4)+(1-x(3))*x(1)*x(5)+(1-x(3))*x(4)*x(5)+(1-x(2))*x(1)*x(4)+(1-x(2))*x(1)*x(5)+(1-x(2))*x(4)*x(5)+x(1)*x(4)*x(5)-(1-x(3))*(1-x(2))*x(1)*x(4)-(1-x(3))*(1-x(2))*x(1)*x(5)-(1-x(3))*(1-x(2))*x(4)*x(5)-(1-x(3))*x(1)*x(4)*x(5)-(1-x(2))*x(1)*x(4)*x(5)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x(3))*x(2)*x(4)+(1-x(3))*x(2)*x(5)+(1-x(3))*x(4)*x(5)+x(1)*x(2)*x(4)+x(1)*x(2)*x(5)+x(1)*x(4)*x(5)+x(2)*x(4)*x(5)-(1-x(3))*x(1)*x(2)*x(4)-(1-x(3))*x(1)*x(2)*x(5)-(1-x(3))*x(1)*x(4)*x(5)-(1-x(3))*x(2)*x(4)*x(5)-x(1)*x(2)*x(4)*x(5)+(1-x(3))*x(1)*x(2)*x(4)*x(5);
F(16) = -0.94971+(1-x(5))+(1-x(4))+(1-x(2))+x(3)-(1-x(5))*(1-x(4))-(1-x(5))*(1-x(2))-(1-x(5))*x(3)-(1-x(4))*(1-x(2))-(1-x(4))*x(3)-(1-x(2))*x(3)+(1-x(5))*(1-x(4))*(1-x(2))+(1-x(5))*(1-x(4))*x(3)+(1-x(5))*(1-x(2))*x(3)+(1-x(4))*(1-x(2))*x(3)-(1-x(5))*(1-x(4))*(1-x(2))*x(3);
err = norm(F);
