I\'m trying to use scipy.optimze.minimize to optimize a function of x with four paramaters a,b,c,d. The function could be something like:
def func(x,a,b,c,d):