This is the git repository of the power system model medea and its derivatives.
medea is under constant development. For comments and bug reporting please contact Sebastian Wehrle.
as of August 29, 2018:
- medea/config.py holds configuration parameters, such as path and iteration parameters
- medea/execute/solve.py solves the *.gms-models in MEDEA/model/gamsdir/ by iterating according to settings in MEDEA/config.py
- medea/pass_through/pt_estimation.py is used to calibrate the model and define scenarios (i.e. modify parameters) for the paper "District Heating Systems under high Emission Cost: The Role of the Pass-Through from Emission Cost to Electricity Prices". Subsequently, the linear medea model is solved using solve.py.
- medea/execute/gamsdir/medea_data.gdx holds the model data required for
medea requires python ≥ 3.6.
An easy, yet lightweight way to install python is via miniconda.
To install required python packages you can do
conda install --yes --file requirements.txt or
pip install -r requirements.txt.
To allow for maximum freedom of choice, calls to GAMS are low-level implementations, avoiding GAMS-python routines that require specific GAMS versions or licenses.
For medea to work properly, the variables
gams_sysdir in config.py must point to the correct locations, i.e.
folder must point
to the local medea repository (e.g.
gams_sysdir must point to the
local GAMS installation (e.g.