I am trying to use the scipy.optimize
package to optimize a discrete optimization problem (global optimization). Acc to the doc, simulated annealing implemented in scipy.optimize.anneal
should be a good choice for the same. But I am not sure how to force the optimizer to search only integer values of the search space. Can someone help?
An illustrative example:
f(x1,x2) = (1-0.4*x1)^2 + 100*(0.6*x2 -0.4*x1^2)^2
where, $x1, x2 \in I$