I have been using Pyomo with a free Academic license for Gurobi and so far it worked quite well. Now my license expired and I received a new license that is stored in the folder
However, when I now run Pyomo I get the error message:
"ApplicationError: Solver (gurobi) did not exit normally"
and the error is thrown by the last of the following lines:
solver = pyo.SolverFactory('gurobi') solver.options['MIPGap'] = 0.1 solver.options['TimeLimit'] = 100 solution = solver.solve(model, tee=True)
Do you have any idea why I now get this error? The license itself should be okay according to the Gurobi website (it expires in 2022). I just downloaded it to the before mentioned folder as recommended by Gurobi. Do I have to do anything else?
I'd appreciate every comment.
Update: Here is the full error message:
runfile('C:/Users/wi9632/bwSyncShare3/Eigene Arbeit/Code/Python/Demand_Side_Management/Building_1_mHP_EV.py', wdir='C:/Users/wi9632/bwSyncShare3/Eigene Arbeit/Code/Python/Demand_Side_Management') Traceback (most recent call last): File "C:\Users\wi9632\bwSyncShare3\Eigene Arbeit\Code\Python\Demand_Side_Management\Building_1_mHP_EV.py", line 589, in <module> solution = solver.solve(model, tee=True) File "C:\Users\wi9632\Anaconda3\envs\tf\lib\site-packages\pyomo\opt\base\solvers.py", line 602, in solve "Solver (%s) did not exit normally" % self.name) ApplicationError: Solver (gurobi) did not exit normally