Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```