Does anybody know a python function (proven to work and having its description in internet) which able to make minimum search for a provided user function when argument is an array of integers?
Something like
scipy.optimize.fmin_l_bfgs_b
scipy.optimize.leastsq
but for integers
There is no general solution for this problem. If you know the properties of the function it should be possible to deduce some bounds for the variables and then test all combinations. But that is not very efficient.
You could approximate a solution with scipy.optimize.leastsq and then round the results to integers. The quality of the result of course depends on the structure of the function.
Optimizer/minimizer for integer argument