bounds = [(-5, 5),(-10, 10)]
result = differential_evolution(function2, bounds)
result.x, result.fun
print(result.x, result.fun)
def function2(x):
xi = int(round(x))
res = xi[0] * xi[1]
return res
def function2(x):
xi = int(x)
res = xi[0] * xi[1]
return res