def schaffer(individual):
 return (sum((((((x ** 2) + (x1 ** 2)) ** 0.25) * ((sin((50 * (((x ** 2) + (x1 ** 2)) ** 0.1))) ** 2) + 1.0)) for (x, x1) in zip(individual[:(-1)], individual[1:]))),)

def schaffer ( individual ) : return ( sum ( ( ( ( ( ( x ** 2 ) + ( x1 ** 2 ) ) ** 0.25 ) * ( ( sin ( ( 50 * ( ( ( x ** 2 ) + ( x1 ** 2 ) ) ** 0.1 ) ) ) ** 2 ) + 1.0 ) ) for ( x , x1 ) in zip ( individual [ : ( - 1 ) ] , individual [ 1 : ] ) ) ) , )
schaffer test objective function .