I need to find the global minimum of a function F(x_1, x_2, ...) whose entries can take only two possible values, 0 and 1. I'm trying to use scipy.optimize.shgo like this
optimize.shgo( F , bounds, args= args , constraints=cons)
but I don't know how to pass the two-possible-values restriction in shgo.
Thanks in advance!