Pyomo ERROR: Solver (gurobi) returned non-zero return code (1)
AnsweredHello.
I'm using Python 3.10 and Gurobi 10.0.1.
I've been using it without any problem, but now I got the following message
ERROR: Solver (gurobi) returned non-zero return code (1)
ERROR: Solver log: Set parameter Username Academic license - for non-
commercial use only - expires 2024-05-03 Traceback (most recent call
last):
File "<stdin>", line 5, in <module> File
"C:\Users\Samuel\anaconda3\lib\site-
packages\pyomo\solvers\plugins\solvers\GUROBI_RUN.py", line 62, 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\Samuel\AppData\Local\Temp\tmpsuqf8m5u.pyomo.lp at line 7
Malformed term in expression Neighboring tokens: " nan x1
-14975.298245614034 x2 -14974.982456140351 "
ApplicationError: Solver (gurobi) did not exit normally
- Does anyone know how I can fix it?
0
-
Hi Samuel,
It seems that the LP file that Pyomo wrote out does not have the right format, it seems to have "nan" included.
You might check whether you have some issues with your input data.Best regards,
Mario1 -
Thank you Mario, there was a problem loading data from Excel. It is now fixed
0 -
Sorry, what was the issue with the excel data. I am encountering the same issue.
0
Please sign in to leave a comment.
Comments
3 comments