Closed David-Linan closed 1 year ago
It seems to me that the error was related to a variable that had very large values (m.S). I was able to solve the error by replacing the parameter "Infty" with 10, which allowed to scale variable m.S. Anyway, please take a look at this issue if you think both objectives should agree regardless of my scaling modeling error.
Summary
I am using GAMS solvers to solve an optimization problem involving pyomo.gdp and pyomo.dae. I have noticed several times that the solution obtained by GAMS is not the same as the one reported by pyomo in the attached file. It seems to me that there is an error when GAMS passes the results back to pyomo.
Steps to reproduce the issue
An example script is attached
Error Message
There is no error message, but the objective obtained by GAMS (-8.37) differs from the one reported by pyomo (-12.37).
Information on your system
Pyomo version: Pyomo 6.4.2, GAMS 37.1.0 Python version: 3.10.6 Operating system: Windows 10 How Pyomo was installed (PyPI, conda, source): conda Solver (if applicable):
Additional information
I think the problem is not related to the recent GAMS-pyomo issues, because I am using an older GAMS version. Note that I was able to reproduce the situation from another computer using:
Pyomo version: Pyomo 6.2, GAMS 34.3.0 Python version: 3.8.5 Operating system: Linux 5.4.72-microsoft-standard-WSL2 How Pyomo was installed (PyPI, conda, source): source Solver (if applicable):
Please contact me if additional info is required