From 6580ea44d0ba00630a906f62010270a271dc156c Mon Sep 17 00:00:00 2001 From: Tom Minka <8955276+tminka@users.noreply.github.com> Date: Tue, 11 Aug 2020 11:59:10 +0100 Subject: [PATCH] Explain which version of OSeMOSYS to use --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12312e0..1b75227 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,19 @@ The Data Package was constructed with the help of the Python **otoole** package Simplicity `v0.2` requires `v0.5.4` or later of **otoole**. You can use **otoole** to generate a GNU MathProg data file from the dataset with the following commands and then run OSeMOSYS. +Simplicity also requires a specific version of [OSeMOSYS](https://github.com/OSeMOSYS/OSeMOSYS_GNU_MathProg/blob/1567dbe2d341841c97e6fdb9fa130bd22d66fe83/src/osemosys.txt) that you can obtain via: +``` +cd OSeMOSYS_GNU_MathProg +git checkout 1567dbe2d +``` + ```bash # Install the OSeMOSYS toolkit pip install otoole>=0.5.4 # Download the dataset and build a GNU MathProg datafile -otoole convert datapackage datafile https://zenodo.org/record/3479823/files/OSeMOSYS/simplicity-v0.2.zip ./simplicity.txt -# Solve the model +otoole convert datapackage datafile https://github.com/OSeMOSYS/simplicity ./simplicity.txt +# Solve the model (slow version) glpsol -m OSeMOSYS.txt -d simplicity.txt +# Solve the model (fast version) +glpsol -m OSeMOSYS_short.txt -d simplicity.txt ```