Help needed: Pre‑processing & Post‑processing for Kenya OSeMOSYS PSM model (GLPK format)

Hi everyone,

I am trying to replicate the OSeMOSYS Kenya PSM model shared here:

I followed the instructions and solved the model using glpsol, which produced a results.txt file.

I have two questions:

1. Pre‑processing question

The shared model uses .txt data files (MathProg data format).
Is it possible to use clicSAND or MUIO as a pre‑processing interface for these .txt data files?

2. Post‑processing question

What is the recommended way to post‑process the GLPK results?

  • Is there a way to convert the GLPK results.txt into CSV files?

  • Can I use MUIO or SAND Excel Interface to read and visualise the results?

Any guidance or examples would be greatly appreciated.
Thank you!

Hi @andywang65384,

For all your questions, the answer is otoole. Otoole allows you to preprocess and post-process different data formats for OSeMOSYS models. You can explore the tool here: Welcome to the documentation of otoole!