def Rosenbrock(ind):
    sum = 0
    for i in range((len(ind) - 1)):
        sum += ((100 * ((ind[(i + 1)] - (ind[i] ** 2)) ** 2)) + ((ind[i] - 1) ** 2))
    return sum
def Rosenbrock(ind):
    sum = 0
    for i in range((len(ind) - 1)):
        sum += ((100 * ((ind[(i + 1)] - (ind[i] ** 2)) ** 2)) + ((ind[i] - 1) ** 2))
    return sum