Paper companion for paper: Predicting fault-ride-through probability of inverter-dominated power grids using machine learning
This GitHub repository includes code and data that allow you to explore the codebase and potentially reuse parts of it for future projects. You can find the complete code and data for reproducing the results at: https://zenodo.org/record/11193718.
├── 1_simulation
├── Manifest.toml
├── new_postprocessing
├── Project.toml
├── scripts
├── src
└── test
├── 2_machine_learning
└── Readme.md
The directory 1_simulation
contains the code to generate the datasets and the follwing scripts can be used to generate synthetic grids, conduct dynamical simulations and prepare the data for ML.
The paths need to be set, to execute the scripts properly.
generate_grids.jl
orgenerate_ieee_grid.jl
run_dynamic_simulation.jl
orrun_ieee96_sim.jl
prepare_dataframes.jl
prepare4pytorch.py
To code for training the TAG model can be found in 2_machine_learning
. The training can be started by running python start_ray.py
, after manipulating the file paths and installing the necessary packages.