A Review of Matrix Algebra for Power and Energy Applications
Alejandro Garces-Ruiz
TL;DR
The paper surveys essential matrix algebra techniques and their Julia implementations for power and energy applications, highlighting practical visualization, data handling, and code organization. It covers vectors, matrices, and hyper-arrays; linear transformations and eigenanalysis; quadratic forms and norms; linear systems and sparse representations; and data management with DataFrames and CSV, all within the context of power-system modeling such as convergence of power flows. The work emphasizes computational efficiency (e.g., LU factorization, Cholesky, pseudoinverse for singular systems, sparse matrices) and software engineering practices to produce modular, scalable Julia scripts. Together, these elements enable robust mathematical analysis and efficient simulation in modern power systems.
Abstract
This report presents a brief review of matrix algebra and its implementation in Julia for power and energy applications. First, we present basic examples of data visualization, followed by conventional operations with matrices and vectors. Then, we study quadratic forms and norms, two main concepts required in the convergence study of the power flow in power and energy applications. After that, we give good practices to create a neat code in Julia. There is an extensive set of examples available on the Internet related to these basic aspects, so we avoid repeating what is well documented. Hence, we show only basic examples to create our first scripts.
