function F = KBg3F(x)
%

F(1) = -0.86423 + (1-x(3)) + x(1) + x(2) - x(6)*x(2) - x(7)*x(1) - x(7)*x(2) + x(7)*x(6)*x(2);
F(2) = -0.90611 + (1-x(4)) + (1-x(3)) + x(1) - x(8)*x(1) - x(9)*(1-x(3)) - x(9)*x(1) + x(9)*x(8)*x(1);
F(3) = -0.79135 + x(1) + x(3) + x(4) - x(10)*x(4) - x(11)*x(3) - x(11)*x(4) + x(11)*x(10)*x(4);
F(4) = -0.52067 + (x(4));
F(5) = -0.87656 + (1-x(1)) + x(2) + x(4) - x(12)*x(4) - x(13)*x(2) - x(13)*x(4) + x(13)*x(12)*x(4);
F(6) = -0.78287 + (1-x(1)) + x(4) - x(14)*x(4);
F(7) = -0.79906 + (1-x(5)) + (1-x(4)) + (1-x(1)) - x(15)*(1-x(1)) - x(16)*(1-x(4)) - x(16)*(1-x(1)) + x(16)*x(15)*(1-x(1));
F(8) = -0.87673 + (1-x(4)) + (1-x(3)) + x(5) - x(17)*x(5) - x(18)*(1-x(3)) - x(18)*x(5) + x(18)*x(17)*x(5);
F(9) = -0.85124 + (1-x(3)) + x(5) - x(18)*x(5);
F(10) = -0.90717 + x(1) + x(4) + x(5) - x(19)*x(5) - x(20)*x(4) - x(20)*x(5) + x(20)*x(19)*x(5);
F(11) = -0.73123 + (1-x(5)) + (1-x(4)) - x(21)*(1-x(4));
F(12) = -0.88986 + (1-x(2)) + x(1) + x(5) - x(22)*x(5) - x(23)*x(1) - x(23)*x(5) + x(23)*x(22)*x(5);
