Pyomo ERROR: Solver (gurobi) returned non-zero return code (1)
回答済みHello.
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
-
正式なコメント
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 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
投稿コメントは受け付けていません。
コメント
4件のコメント