I\'m trying to do a global minimization (via scipy dual_annealing) for the function func below but receive an error. Please find the code below - Goal