ntnuiotenergy / OpenEMPIRE

Stochastic linear program for investments in the European power system
https://openempire.readthedocs.io/en/latest/
MIT License
17 stars 15 forks source link

Version 1.0.0 of empire #33

Closed martinhjel closed 7 months ago

martinhjel commented 8 months ago

-Restructure empire as a python package -Add streamlit app -Add sphinx documentation -Add scripts to run on HPC -Add data managers to change input data at execution

Closes #4 and #8

stianbacke commented 7 months ago

Running on a High-Performance Cluster (HPC)

Example Script: For running multiple cases on an HPC, refer to the script scripts/copy_and_run_empire_on_hpc.sh. This script uses configurations from config/cluster.json and is designed for NTNU's HPC clusters: Solstorm and Idun.

Usage Linux or macOS: From the project directory, execute the following to run on the Solstorm cluster:

sh scripts/copy_and_run_empire_on_hpc.sh Solstorm

This command copies the EMPIRE code to the Solstorm cluster and performs several runs managed by the SGE task manager. Ensure the "empire_env" conda environment is set up on the cluster with dependencies as listed in environment.yml.

Usage Windows: Install "jq" on Windows:

curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe

From the project directory, execute the following command in Git Bash to run on the Solstorm cluster:

sh scripts/copy_and_run_empire_on_hpc.sh Solstorm

The scripts/run_analysis.py script demonstrates how to modify input data at execution time using data managers.