def Rastrigin(ind):
    sum = (10 * len(ind))
    for i in ind:
        sum += ((i ** 2) - (10 * np.cos(((2 * np.pi) * i))))
    return sum
def Rastrigin(ind):
    sum = (10 * len(ind))
    for i in ind:
        sum += ((i ** 2) - (10 * np.cos(((2 * np.pi) * i))))
    return sum