pnnl / oedisi_dopf

OpenEDI - System Integration (OEDI-SI) - PNNL Distributed Optimal Power Flow (DOPF)
https://data.openei.org/oedi_si
Other
4 stars 2 forks source link

OEDISI DOPF

Open Energy Data Initiative - Solar Systems Integration Data and Analytics (OEDI-SI) Distributed Optimal Power Flow

Docker

Once the container is build and running, follow the link to the jupyter notebook and selet the workflow.ipynb notebook and follow the instructions for selecting scenarios and running the co-simulation.

    docker build -t openenergydatainitiative/<repo>:<tag> --build-arg MODEL=<model> -f Dockerfile.<algo> .
    docker run --rm -it -p 8888:8888 openenergydatainitiative/<repo>:<tag>

#

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

or

poetry update

Building EKF

There is one federate that is not a python script that must be built. Use the following script which will build the dependencies and copy the exe files into the ekf_federate directory. You may be prompted to entry your password multiple times.

./build_ekf.sh

Jupyter Notebook

The following notebook provides a more interactive experiance and a frontend for the container if you are running in docker. Once the notebook is running open the notebook link with it's generated token.

jupyter notebook workflow.ipynb

Build and Run

Replace the \<scenario> below to point to the desired scenario folder name

./run.sh <scenario>

or

poetry ./run.sh <scenario>