1.2SYNov 8, 2016
Emulated Inertia and Damping of Converter-Interfaced Power SourceBin Wang, Yichen Zhang, Kai Sun et al.
Converter-interfaced power sources (CIPSs), like wind turbine and energy storage, can be switched to the inertia emulation mode when the detected frequency deviation exceeds a pre-designed threshold, i.e. dead band, to support the frequency response of a power grid. This letter proposes an approach to derive the emulated inertia and damping from a CIPS based on the linearized model of the CIPS and the power grid, where the grid is represented by an equivalent single machine. The emulated inertia and damping can be explicitly expressed in time and turn out to be time-dependent.
12.4AIJul 15, 2025
Function-to-Style Guidance of LLMs for Code TranslationLonghui Zhang, Bin Wang, Jiahao Wang et al.
Large language models (LLMs) have made significant strides in code translation tasks. However, ensuring both the correctness and readability of translated code remains a challenge, limiting their effective adoption in real-world software development. In this work, we propose F2STrans, a function-to-style guiding paradigm designed to progressively improve the performance of LLMs in code translation. Our approach comprises two key stages: (1) Functional learning, which optimizes translation correctness using high-quality source-target code pairs mined from online programming platforms, and (2) Style learning, which improves translation readability by incorporating both positive and negative style examples. Additionally, we introduce a novel code translation benchmark that includes up-to-date source code, extensive test cases, and manually annotated ground-truth translations, enabling comprehensive functional and stylistic evaluations. Experiments on both our new benchmark and existing datasets demonstrate that our approach significantly improves code translation performance. Notably, our approach enables Qwen-1.5B to outperform prompt-enhanced Qwen-32B and GPT-4 on average across 20 diverse code translation scenarios.
1.2SYNov 14, 2016
Nonlinear Modal Decoupling of Multi-Oscillator Systems with Applications to Power SystemsBin Wang, Kai Sun, Wei Kang
Many natural and manmade dynamical systems that are modeled as large nonlinear multi-oscillator systems like power systems are hard to analyze. For such a system, we propose a nonlinear modal decoupling (NMD) approach inversely constructing as many decoupled nonlinear oscillators as the system oscillation modes so that individual decoupled oscillators can easily be analyzed to infer dynamics and stability of the original system. The NMD follows a similar idea to the normal form except that we eliminate inter-modal terms but allow intra-modal terms of desired nonlinearities in decoupled systems, so decoupled systems can flexibly be shaped into desired forms of nonlinear oscillators. The NMD is then applied to power systems towards two types of nonlinear oscillators, i.e. the single-machine-infinite-bus (SMIB) systems and a proposed non-SMIB oscillator. Numerical studies on a 3-machine 9-bus system and New England 10-machine 39-bus system show that (i) decoupled oscillators keep a majority of the original system modal nonlinearities and the NMD provides a bigger validity region than the normal form, and (ii) decoupled non-SMIB oscillators may keep more authentic dynamics of the original system than decoupled SMIB systems.