function F = KBg84F(x)
%

F(1) = -0.77631 + (1-x(5)) + (1-x(3)) - x(6)*(1-x(3));
F(2) = -0.86741 + (1-x(5)) + x(1) + x(2) - x(7)*x(2) - x(8)*x(1) - x(8)*x(2) + x(8)*x(7)*x(2);
F(3) = -0.68928 + (1-x(5)) + x(3) - x(8)*x(3);
F(4) = -0.47679 + (1-x(4));
F(5) = -0.5344 + (x(3));
F(6) = -0.78941 + (1-x(4)) + x(2) - x(9)*x(2);
F(7) = -0.88306 + (1-x(4)) + x(2) + x(5) - x(10)*x(5) - x(11)*x(2) - x(11)*x(5) + x(11)*x(10)*x(5);
F(8) = -0.77292 + (1-x(3)) + x(1) - x(12)*x(1);
F(9) = -0.80322 + (1-x(2)) + x(3) - x(13)*x(3);
F(10) = -0.80562 + (1-x(4)) + x(5) - x(14)*x(5);
F(11) = -0.70743 + x(1) + x(2) - x(14)*x(2);
F(12) = -0.52861 + (x(1));
F(13) = -0.58978 + (1-x(2));
