I have been trying to find the min of this function but i cant seem to get the proper syntax. y2 and y1a are numpy arrays im trying to pass to my lambda function and x is my third variable used by fmin.
y2 = numpy.array(Apple[i:i+len(Leal)])
y1 = Leal
y1a = y1 + dif
y = lambda x, y2, y1a: sum(abs((y2)+x)-y1a)
emin = fmin(y,0)
Any help would be great.