Efficient Sampling for Data-Driven Frequency Stability Constraint via Forward-Mode Automatic Differentiation

Wangkun Xu, Qian Chen, Pudong Ge, Zhongda Chu, Fei Teng
7/21/2024
eess.SYcs.LG

Official code: xuwkk/frequency_sample_ad (6 stars, last commit 2024-05-30).

Abstract

Encoding frequency stability constraints in the operation problem is challenging due to its complex dynamics. Recently, data-driven approaches have been proposed to learn the stability criteria offline with the trained model embedded as a constraint of online optimization. However, random sampling of stationary operation points is less efficient in generating balanced stable and unstable samples. Meanwhile, the performance of such a model is strongly dependent on the quality of the training dataset. Observing this research gap, we propose a gradient-based data generation method via forward-mode automatic differentiation. In this method, the original dynamic system is augmented with new states that represent the dynamic of sensitivities of the original states, which can be solved by invoking any ODE solver for a single time. To compensate for the contradiction between the gradient of various frequency stability criteria, gradient surgery is proposed by projecting the gradient on the normal plane of the other. In the end, we demonstrate the superior performance of the proposed sampling algorithm, compared with the unrolling differentiation and finite difference. All codes are available at https://github.com/xuwkk/frequency_sample_ad.

View on arXivView PDF

Code Implementations(1)

60PythonMay 30, 20242 years ago

Similar Papers

Cite this paper

@article{xu2024efficient,
  title  = {Efficient Sampling for Data-Driven Frequency Stability Constraint via Forward-Mode Automatic Differentiation},
  author = {Wangkun Xu and Qian Chen and Pudong Ge and Zhongda Chu and Fei Teng},
  year   = {2024},
  eprint = {2407.15045},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.15045v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.15045.svg)](https://codeofpaper.com/paper/2407.15045)

Discussion