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
Instructions don't specify which Python version to use (tried with 3.11)
It's not explained that config files need to be a yaml file (had to go to run.py code to find out)
It's not clear that -d test will override the config file
GLPK option is not mentioned in optimization_solver option (and could be switched to HiGHS, which is much faster and has Pyomo support)
Describe the Bug
Trying to test with GLPK (no commercial solvers readily available). Copied testrun.yaml and replaced only the solver. The attempt ends with this:
RuntimeError: Failed to set value for param=genCapAvailStochRaw, index=('Belgium', 'Windoffshore', 1, 'scenario1', 1), value=0.858.
source error message="Index '('Belgium', 'Windoffshore', 1, 'scenario1', 1)' is not valid for indexed component 'genCapAvailStochRaw'"
Traceback (most recent call last):
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\param.py", line 774, in construct
self._validate_index(key), val)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\indexed_component.py", line 788, in _validate_index
raise KeyError(
KeyError: "Index '('Belgium', 'Windoffshore', 1, 'scenario1', 1)' is not valid for indexed component 'genCapAvailStochRaw'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\data\Toolbox_projects\OpenEMPIRE\scripts\run.py", line 48, in <module>
run_empire_model(
File "C:\data\Toolbox_projects\OpenEMPIRE\empire\core\model_runner.py", line 123, in run_empire_model
run_empire(
File "C:\data\Toolbox_projects\OpenEMPIRE\empire\core\empire.py", line 814, in run_empire
instance = model.create_instance(data) #, report_timing=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\PyomoModel.py", line 697, in create_instance
instance.load( data,
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\PyomoModel.py", line 734, in load
self._load_model_data(dp,
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\PyomoModel.py", line 787, in _load_model_data
self._initialize_component(modeldata, namespaces, component_name, profile_memory)
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\PyomoModel.py", line 825, in _initialize_component
declaration.construct(data)
File "C:\Users\prokjt\Miniconda3\envs\empire\Lib\site-packages\pyomo\core\base\param.py", line 777, in construct
raise RuntimeError(
RuntimeError: Failed to set value for param=genCapAvailStochRaw, index=('Belgium', 'Windoffshore', 1, 'scenario1', 1), value=0.858.
source error message="Index '('Belgium', 'Windoffshore', 1, 'scenario1', 1)' is not valid for indexed component 'genCapAvailStochRaw'"
Environment (please complete the following information):
Observations from trying install/run OpenEmpire
Describe the Bug
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: