You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying a simple example to test out GEKKO. I'm providing the keyword argument integer=True to initialize an array of variables, yet the solution found doesn't ensure that they're integers. What am I doing wrong?
Figured out how to enable mixed-integer optimization by changing the solver- just added the following line:
m.options.SOLVER=1
this wasn't very intuitive. Maybe you could throw an error if someone specifies integer=True but tries to use a solver that doesn't support mixed integer.
I'm trying a simple example to test out GEKKO. I'm providing the keyword argument
integer=True
to initialize an array of variables, yet the solution found doesn't ensure that they're integers. What am I doing wrong?The text was updated successfully, but these errors were encountered: