You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to perform the first basic test 'pp.runpm_ac_opf(net, pm_model="ACPPowerModel", pm_solver="gurobi")', I get the following error:
**_File "C:\Users...l\AppData\Local\Temp\ipykernel_1508\1602319788.py", line 1, in <cell line: 1>
pp.runpm_ac_opf(net, pm_model="ACPPowerModel", pm_solver="gurobi")
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\runpm.py", line 134, in runpm_ac_opf
_runpm(net, delete_buffer_file=delete_buffer_file, pm_file_path=pm_file_path, pdm_dev_mode=pdm_dev_mode)
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\opf\run_powermodels.py", line 34, in _runpm
result_pm = _call_pandamodels(buffer_file, net._options["julia_file"], pdm_dev_mode)
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\opf\run_powermodels.py", line 88, in _call_pandamodels
result_pm = Main.eval(julia_file + "(buffer_file)")
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 621, in eval
ans = self._call(src)
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 549, in _call
self.check_exception(src)
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 603, in check_exception
raise JuliaError(u'Exception '{}' occurred while calling julia code:\n{}'
JuliaError: Exception 'UndefVarError: Gurobi not defined' occurred while calling julia code:
run_powermodels_opf(buffer_file)_**
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered:
I am very sorry for the really late answer. Our colleague who was in charge of PowerModels has been away for serval months, and I took over the tasks only a few weeks ago.
The reason for the error is that "gurobi" is not successfully imported in PandaModels. I will update the version this week, and it should work well with gurobi.
Hi! I have installed Gurobi as an additional solver according to the instructions provided in https://pandapower.readthedocs.io/en/develop/opf/powermodels.html#additional-solvers.
When trying to perform the first basic test 'pp.runpm_ac_opf(net, pm_model="ACPPowerModel", pm_solver="gurobi")', I get the following error:
**_File "C:\Users...l\AppData\Local\Temp\ipykernel_1508\1602319788.py", line 1, in <cell line: 1>
pp.runpm_ac_opf(net, pm_model="ACPPowerModel", pm_solver="gurobi")
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\runpm.py", line 134, in runpm_ac_opf
_runpm(net, delete_buffer_file=delete_buffer_file, pm_file_path=pm_file_path, pdm_dev_mode=pdm_dev_mode)
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\opf\run_powermodels.py", line 34, in _runpm
result_pm = _call_pandamodels(buffer_file, net._options["julia_file"], pdm_dev_mode)
File "C:\Users...\development\work_env_spyder\lib\site-packages\pandapower\opf\run_powermodels.py", line 88, in _call_pandamodels
result_pm = Main.eval(julia_file + "(buffer_file)")
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 621, in eval
ans = self._call(src)
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 549, in _call
self.check_exception(src)
File "C:\Users...\development\work_env_spyder\lib\site-packages\julia\core.py", line 603, in check_exception
raise JuliaError(u'Exception '{}' occurred while calling julia code:\n{}'
JuliaError: Exception 'UndefVarError: Gurobi not defined' occurred while calling julia code:
run_powermodels_opf(buffer_file)_**
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: