Skip to content

Commit

Permalink
Update readme with new links
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Mar 15, 2023
1 parent 533eea9 commit 3ff463b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@

This is an example OSeMOSYS model used to demonstrate the functionality of the Python
package [otoole](https://github.com/OSeMOSYS/otoole). You can use **otoole** to generate
a GNU MathProg data file from the dataset with the following commands. Full
**otoole** documentation (including installation and examples) can be found on
its [ReadTheDocs site](https://otoole.readthedocs.io/en/latest/).
a GNU MathProg data file from the dataset with the following commands. Full
**otoole** documentation (including installation and examples) can be found on
its [ReadTheDocs site](https://otoole.readthedocs.io/en/latest/).

**NOTE**: To be able to solve the model in this example, you will need to install
**NOTE**: To be able to solve the model in this example, you will need to install
the free and open-source solver [GLPK](https://www.gnu.org/software/glpk/)

```bash
# Install the OSeMOSYS toolkit
pip install otoole>=1.0.0

# Download the dataset. On Linux or OSX use wget, otherwise download and unzip
wget https://zenodo.org/record/3707794/files/OSeMOSYS/simplicity-v0.2.1.zip
unzip simplicity-v0.2.1.zip -d simplicity
wget https://zenodo.org/record/7736670/files/OSeMOSYS/simplicity-v1.0.zip?download=1

unzip simplicity-v1.0 -d simplicity

# Create the GNUMathProg data file with otoole
mv simplicity/OSeMOSYS-simplicity-f0d3e83/* simplicity
otoole convert csv datafile simplicity/data ./simplicity.txt simplicity/config.yaml

# Solve the model
Expand Down

0 comments on commit 3ff463b

Please sign in to comment.