Skip to main content
QUICK REVIEW

[Paper Review] Hybrid Symbolic-Numeric Framework for Power System Modeling and Analysis

Hantao Cui, Fangxing Li|arXiv (Cornell University)|Feb 21, 2020
Real-time simulation and control systemsEngineering21 references5 citations
TL;DR

This paper proposes a hybrid symbolic-numeric framework implemented in the open-source ANDES library, enabling rapid, modular power system modeling via descriptive equation strings and automatic code generation. It achieves numerical performance comparable to commercial tools, with validated results in power flow, time-domain simulation, and eigenvalue analysis across multiple test systems.

ABSTRACT

With the recent proliferation of open-source packages for computing, power system differential-algebraic equation (DAE) modeling and simulation are being revisited to reduce the programming efforts. Existing open-source tools require manual efforts to develop code for numerical equations, sparse Jacobians, and discontinuous components. This paper proposes a hybrid symbolic-numeric framework, exemplified by an open-source Python-based library ANDES, which consists of a symbolic layer for descriptive modeling and a numeric layer for vector-based numerical computation. This method enables the implementation of DAE models by mixing and matching modeling components, through which models are described. In the framework, a rich set of discontinuous components and standard transfer function blocks are provided besides essential modeling elements for rapid modeling. ANDES can automatically generate robust and fast numerical simulation code, as well as and high-quality documentation. Case studies present a) two implementations of turbine governor model TGOV1, b) power flow computation time break down for MATPOWER systems, c) validation of time-domain simulation with commercial software using three test systems with a variety of models, and d) the full eigenvalue analysis for Kundur's system. Validation shows that ANDES closely matches the commercial tool DSATools for power flow, time-domain simulation, and eigenvalue analysis.

Motivation & Objective

  • Address the high programming effort required to manually implement differential-algebraic equation (DAE) models in open-source power system tools.
  • Reduce manual coding for numerical equations, sparse Jacobians, and discontinuous components in power system simulations.
  • Enable rapid, modular modeling using symbolic descriptions and block-based components while maintaining high numerical performance.
  • Provide automated code generation and documentation to streamline model development and improve reproducibility.
  • Verify the framework’s accuracy and performance against commercial software across multiple standard test systems and simulation tasks.

Proposed method

  • Employ a two-layer architecture: a symbolic layer for descriptive modeling and a numeric layer for vectorized numerical computation.
  • Use symbolic computation to generate efficient, robust numerical code from high-level equation strings and modular components.
  • Integrate discontinuous components (e.g., transfer functions, PI controllers) and standard modeling blocks directly into the symbolic layer.
  • Leverage vectorization in generated code to update all devices of the same model type simultaneously, improving simulation speed.
  • Preserve numerical interfaces to allow seamless integration with traditional numerical implementations where needed.
  • Automate documentation generation alongside code to enhance model transparency and reproducibility.

Experimental results

Research questions

  • RQ1Can a hybrid symbolic-numeric framework significantly reduce the effort required to implement DAE models in open-source power system tools?
  • RQ2How accurately can such a framework reproduce results from commercial simulation software across diverse power system models and test cases?
  • RQ3To what extent does the framework maintain numerical performance while enabling high-level, modular modeling?
  • RQ4Can the framework handle complex, real-world systems including dynamic models like TGOV1, EXDC2, and PSS with minimal manual coding?
  • RQ5How effective is the automated code generation and documentation pipeline in supporting reproducible research and model sharing?

Key findings

  • ANDES successfully implements two distinct versions of the TGOV1 turbine governor model using symbolic descriptions, demonstrating model flexibility.
  • Power flow computation time breakdown for MATPOWER systems shows that symbolic processing time scales with model complexity, not system size, confirming scalability.
  • Time-domain simulations of Kundur’s system, IEEE 14-bus, and NPCC 140-bus systems using ANDES match DSATools TSAT results within numerical tolerance, with simulation times of 1.2s, 4.1s, and 2.5s respectively.
  • Eigenvalue analysis results for Kundur’s system show near-identical damping ratios and eigenvalues between ANDES and DSATools SSAT, with differences less than 0.02% in damping ratio for the first three modes.
  • The framework generates high-quality, production-ready numerical code and documentation automatically, reducing manual implementation errors and maintenance overhead.
  • The symbolic layer’s agnostic design to system topology allows efficient model reuse across different test systems without re-encoding equations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.