Closed lpsinger closed 2 years ago
@lpsinger
Thank you for opening this PR. It's been a long time open, I now did some analysis. There might be an import issue where you suggest a fix, but you feed the keyword solver with the solver_name (by the values of the "name" enum). So your reported errors by the calls occur because nothing from mip is imported. All your adaptions in the code are not reached by the calls. With solver keyword a mipSolver instance should be passed. I am still trying to understand why and how to pass a mipSolver instance, as the mipSolver self contains the model?
Sorry, I don't remember. I'm not using python-mip any more.
Thanks for the information/update @lpsinger
Thus, I will close this PR.
There were import errors due to redefinition of the top-level
mip
module through conditional absolute imports when explicitly specifying the solver:This patch fixes these imprt errors through selective use of relative imports.