I declared a function, I want to find its minimum by the method of differential evolution.
import math def f(x): return math.sin(x/5.0)*math.exp(x/10.0)+5*math.exp(-x/2.0) from scipy import optimize bounds = [1, 30] result = optimize.differential_evolution(f, bounds) But after running the script, I get the following error:
# population is scaled to between [0, 1]. IndexError: tuple index out of range What is the problem?