1 Star 1 Fork 0

JiweiTian / Physics-Informed-Neural-Networks-for-Power-Systems

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Physics-Informed Neural Networks for Power Systems

We introduce a framework for physics-informed neural networks in power system applications. Exploiting the underlying physical laws governing power systems, and inspired by recent developments in the field of machine learning, we propose a neural network training procedure that can make use of the wide range of mathematical models describing power system behavior, both in steady-state and in dynamics. Physics-informed neural networks require substantially less training data and result in much simpler neural network structures, while achieving high accuracy. This work unlocks a range of opportunities in power systems, being able to determine dynamic states, such as rotor angles and frequency, and uncertain parameters such as inertia and damping at a fraction of the computational time required by conventional methods. We focus on introducing the framework and showcases its potential using a single-machine infinite bus system as a guiding example. Physics-informed neural networks are shown to accurately determine rotor angle and frequency up to 87 times faster than conventional methods.

The folder continuous_time_inference’ corresponds to the results presented in Section III.B. First, we load the input data file (swingEquation_inference.mat’). Then, we randomly define the training set based on the number of Nu. After the training process, the variables U_pred and Exact contain the predicted and actual values of the angle trajectories, respectively. The code also provides the L2 error between exact and predicted solutions for the angle (error_u). The folder `continuous_time_identification’ corresponds to the results presented in Section III.C. By running the file swingEquation_identification.py we can predict system inertia and damping based on the input data (swingEquation_identification.mat). The exact values of the inertia and damping levels are 0.25 and 0.15. After the training process, the code prints the estimation error for the inertia (error_lambda_1) and damping (error_lambda_2), as well as the L2 error between exact and predicted solutions for the angle (error_u).

Code variables: lb : defines the lower bound for the inputs (P,t) ub: defines the upper bound for the inputs (P,t) Nu : number of initial and boundary data Nf : number of collocation points usol (δ): is an array containing the angle trajectories for different pair of (P,t) (output to the NN) x (P1): is an array containing different power levels in the range [0.08, 0.18] (input to the NN) t : is an array containing time instants in the range [0, 20] (input to the NN)

When publishing results based on this data/code, please cite: G. Misyris, A. Venzke, S. Chatzivasileiadis, " Physics-Informed Neural Networks for Power Systems", 2019. Available online: https://arxiv.org/abs/1911.03737

@misc{misyris2019physicsinformed, title={Physics-Informed Neural Networks for Power Systems}, author={George S. Misyris and Andreas Venzke and Spyros Chatzivasileiadis}, year={2019}, eprint={1911.03737}, archivePrefix={arXiv}, primaryClass={eess.SY} }

MIT License Copyright (c) 2019 Georgios Misyris Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JiweiTian2019_admin/Physics-Informed-Neural-Networks-for-Power-Systems.git
git@gitee.com:JiweiTian2019_admin/Physics-Informed-Neural-Networks-for-Power-Systems.git
JiweiTian2019_admin
Physics-Informed-Neural-Networks-for-Power-Systems
Physics-Informed-Neural-Networks-for-Power-Systems
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891