coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
514 stars 89 forks source link

Fix Gurobi `objective` #290

Closed Markus28 closed 1 year ago

Markus28 commented 1 year ago

This PR is supposed to fix https://github.com/coin-or/python-mip/issues/289, a very small change was required.

@sebheger I added tests that should have caught this mistake. Could you enable the workflows for me?

Please also note that I changed obj_expr.sense = self.get_objective_sense to sense=self.get_objective_sense(). I'm like 98% sure that's what it's supposed to be.