ERROR: Solver (gurobi) returned non-zero return code (1)
Awaiting user inputI downloaded Gurobi license on my pc and ran my code, and then a colleague downloaded the academic license as well on her pc. As soon as I logged in Outlook using my credentials on her device, she and I received this error message trying to run our code which was working completely fine before that log in.
Set parameter Username
Academic license - for non-commercial use only - expires 2024-08-17
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "C:\Users\boroomandnia\AppData\Local\anaconda3\Lib\site-packages\pyomo\solvers\plugins\solvers\GUROBI_RUN.py", line 66, in gurobi_run
model = read(model_file)
File "src\gurobipy\gurobi.pxi", line 3647, in gurobipy.read
File "src\gurobipy\gurobi.pxi", line 86, in gurobipy.gurobi.read
gurobipy.GurobiError: Unable to read model
Error reading LP format file C:\Users\BOROOM~1\AppData\Local\Temp\tmpao2qz9t0.pyomo.lp at line 140215
Unrecognized constraint RHS or sense
Neighboring tokens: " = nan c_u_x70111_: +1 x70110 -10000.0 x70112 "
Unable to read file
ERROR: Solver (gurobi) returned non-zero return code (1)
ERROR: See the solver log above for diagnostic information.
File ~\AppData\Local\anaconda3\Lib\site-packages\pyomo\opt\base\solvers.py:627, in OptSolver.solve(self, *args, **kwds) 625 elif hasattr(_status, 'log') and _status.log: 626 logger.error("Solver log:\n" + str(_status.log)) --> 627 raise ApplicationError("Solver (%s) did not exit normally" % self.name) 628 solve_completion_time = time.time() 629 if self._report_timing: ApplicationError: Solver (gurobi) did not exit normally
How can I urgently fix this error? I tried to submit a request, but support isn't offered for academic license.
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Arezoo,
My first thought is I'm a little sceptical that Outlook has a role to play here. The LP file that is causing the error is produced by Pyomo as an intermediate step. Can you try using Pyomo to write this file, or alternatively copy and paste it somewhere other than the "Temp" directory so that it is not removed?
If possible please share the LP file via a dropbox or Google Drive (etc) link and I'll see if I can reproduce this error.
- Riley
0
Post is closed for comments.
Comments
2 comments