how to minimize a function with discrete variable values in scipy
I'm trying to optimize a target function that has multiple input variables (between 24 and 30). These variables are samples of three different statistical variables, and target function values are t-test probability values. An error function represents the error (sum of squares of differences) between the desired and the actual t-test probabilities. I can only accept solutions where the error is less than 1e-8, for all of the three t-tests. I was using scipy.optimize.fmin and it worked great. There are many solutions where the target function became zero. The problem is that I need to find a