SciPy - Advanced Optimization
What will be the output of the following code?
import numpy as np
from scipy.optimize import basinhopping
def func(x):
return (x - 3)**2
result = basinhopping(func, 0)
print(round(result.fun, 2))