-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyomo hangs when running MAiNGO solver #3266
Comments
@SolverMax - Question: does the same thing happen if you do not have |
Yes. tee = True or False makes no difference. |
@MAiNGO-github - FYI - issue regarding MAiNGO interface! |
@mrmundt We had a look at the issue. @SolverMax Could you please try the following code and see if it still hangs without output?
|
The revised model runs and produces the expected output: |
@mrmundt It seems to us, that MAiNGO is not registered to the default
@mrmundt Is this intended behavior, or should MAiNGO also be registered to the default |
Summary
Pyomo 6.7.2 added support for the MAiNGO solver. When running a simple model, Pyomo hangs, with no output or result.
Steps to reproduce the issue
I'm running the following model. If the solver is set to 'bonmin', then Pyomo returns the correct optimal solution of x = 2, z = -1. When the solver if set to 'maingo', Pyomo produces no output. In Task Manager, I can see that the MAiNGO.exe process is running and using the CPU, but it does not end.
MAiNGO correctly solves the same model when written using its interface, as follows:
Information on your system
Pyomo version: 6.7.2
Python version: 3.11.8
Operating system: Windows 11
How Pyomo was installed (PyPI, conda, source): PyPl
Solver (if applicable): MAiNGO
The text was updated successfully, but these errors were encountered: