Open jxmorris12 opened 2 years ago
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.
Great suggestion! I've added it as an upcoming feature request.
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?