def bohachevsky(individual):
 return (sum(((((((x ** 2) + (2 * (x1 ** 2))) - (0.3 * cos(((3 * pi) * x)))) - (0.4 * cos(((4 * pi) * x1)))) + 0.7) for (x, x1) in zip(individual[:(-1)], individual[1:]))),)

def bohachevsky ( individual ) : return ( sum ( ( ( ( ( ( ( x ** 2 ) + ( 2 * ( x1 ** 2 ) ) ) - ( 0.3 * cos ( ( ( 3 * pi ) * x ) ) ) ) - ( 0.4 * cos ( ( ( 4 * pi ) * x1 ) ) ) ) + 0.7 ) for ( x , x1 ) in zip ( individual [ : ( - 1 ) ] , individual [ 1 : ] ) ) ) , )
bohachevsky test objective function .