def rosenbrock(individual):  
    """Rosenbrock test objective function.
    """
    return sum(100 * (x * x - y)**2 + (1. - x)**2 \
                   for x, y in zip(individual[:-1], individual[1:]))