pyswarm
pyswarm copied to clipboard
Problems with integer and float decision variables
Hi all, I would like to ask about the optimization problems with both integer and float numbers. Is it possible to define the integer variables separately in pyswarm?
Kind regards,
Mert.
Hi, @efendiogulu I consider that the integer number can be written in your objective and constraints function, for example:
def obj(x):
x_int = np.int32(x)
# your objective function
def constraints(x):
x_int = np.int32(x)
# your constrains
Do you find the way to how to set up the integer variable?