SciPy - Advanced Optimization
What will be the output of the following code snippet?
from scipy.optimize import dual_annealing
def f(x):
return (x[0] - 3)**2 + (x[1] + 1)**2
bounds = [(-5, 5), (-5, 5)]
result = dual_annealing(f, bounds)
print(round(result.fun, 2))