Problem with scipy.optimize.fmin_slsqp when using very large or very small numbers
Are you updating your initial guess ("x0") when your underlying data changes scale dramatically?  for any iterative linear optimization problem, these problems will occur if your initial guess is far from the data you're trying to fit.  It's more of a optimization problem than a scipy problem.
Has anybody ever encountered problems with fmin_slsqp (or anything else in scipy.optimize) only when using very large or very small numbers?
I am working on some python code to take a grayscale image and a mask, generate a histogram, then fit multiple gaussians to the histogram.  To develop the code I used a small sample image, and after some work the code was working brilliantly.  However, when I normalize the histogram first, generating bin values <<1, or when I histogram huge images, generating bin values in the hundreds of thousands, fmin_slsqp() starts failing sporadically.  It quits after only ~5 iterations, usually just returning a slightly modified version of the initial guess I gave it, and returns exit mode 8, which means "Positive directional derivative for linesearch."  If I check the size of the bin counts at the beginning and scale them into the neighborhood of ~100-1000, fmin_slsqp() works as usual. I just un-scale things before returning the results. I guess I could leave it like that, but it feels like a hack.
I have looked around and found folks talking about the epsilon value, which is basically the dx used for approximating derivatives, but tweaking that has not helped.  Other than that I haven't found anything useful yet.  Any ideas would be greatly appreciated.  Thanks in advance.
james