def rastrigin_skew(individual):
 N = len(individual)
 return (((10 * N) + sum((((((10 * x) if (x > 0) else x) ** 2) - (10 * cos(((2 * pi) * ((10 * x) if (x > 0) else x))))) for x in individual))),)

def rastrigin_skew ( individual ) : N = len ( individual ) return ( ( ( 10 * N ) + sum ( ( ( ( ( ( 10 * x ) if ( x > 0 ) else x ) ** 2 ) - ( 10 * cos ( ( ( 2 * pi ) * ( ( 10 * x ) if ( x > 0 ) else x ) ) ) ) ) for x in individual ) ) ) , )
skewed rastrigin test objective function .