HyPowerFlow algorithm accelerates power flow convergence across multiple grid scenarios by leveraging GPU parallelism, data compression, structured hyper-sparsity, and refined initial estimates. Efficient data formatting optimizes GPU utilization and eliminates redundant matrix re-creation. Structured hyper-sparsity exploits redundancy in the storage-intensive matrices to minimize memory overhead. Improved initial estimate of node voltage angles reduces iterations and accelerates convergence.
HyPowerFlow is the winner of Machine Learning for Physical Simulation Challenge - powergrid use case
-
Clone the GitHub repository:
git clone https://github.com/IRT-SystemX/ml4physim_startingkit_powergrid.git
-
Install the Python dependencies:
pip install -r requirements.txt
-
Edit
parameters.json:- Set
data_downloadparameter (1 to download the data, 0 to skip) - Set
train_batch_sizeandeval_batch_sizeas needed
- Set
-
Set Dataset-Specific Parameters in
parameters.json:These parameters must be provided for each dataset before running:
base_volt— base voltages for busestopo_vect_unique— unique topologies in the datasetYbus_sparse_const— base admittance matrix with no outagesPQ_unique— PQ vector for eachtopo_vect_uniquePV_unique— PV vector for eachtopo_vect_uniquebus_enable_flagbus_renumber
-
Run the main script:
python main.py
This work is licensed under a Attribution-NonCommercial-NoDerivatives 4.0 International License .