# Holomorphic Embedding Load-flow method

The Holomorphic Embedding Load-flow Method (HELM)  is a solution method for the power-flow equations of electrical power systems. Its main features are that it is direct (that is, non-iterative) and that it mathematically guarantees a consistent selection of the correct operative branch of the multivalued problem, also signalling the condition of voltage collapse when there is no solution. These properties are relevant not only for the reliability of existing off-line and real-time applications, but also because they enable new types of analytical tools that would be impossible to build with existing iterative load-flow methods (due to their convergence problems). An example of this would be decision-support tools providing validated action plans in real time.
The HELM load-flow algorithm was invented by Antonio Trias and has been granted two US Patents. A detailed description was presented at the 2012 IEEE PES General Meeting and subsequently published. The method is founded on advanced concepts and results from complex analysis, such as holomorphicity, the theory of algebraic curves, and analytic continuation. However, the numerical implementation is rather straightforward as it uses standard linear algebra and the Padé approximation. Additionally, since the limiting part of the computation is the factorization of the admittance matrix and this is done only once, its performance is competitive with established fast-decoupled loadflows. The method is currently implemented into industrial-strength real-time and off-line packaged EMS applications.

## Background

The load-flow calculation is one of the most fundamental components in the analysis of power systems and is the cornerstone for almost all other tools used in power system simulation and management. The load-flow equations can be written in the following general form:
where the given (complex) parameters are the admittance matrix Y$_{ik}$, the bus shunt admittances Y$_i$$^{sh}$, and the bus power injections S$_i$ representing constant-power loads and generators.
To solve this non-linear system of algebraic equations, traditional load-flow algorithms were developed based on three iterative techniques: the Gauss–Seidel method, which has poor convergence properties but very little memory requirements and is straightforward to implement; the full Newton–Raphson method which has fast (quadratic) iterative convergence properties, but it is computationally costly; and the Fast Decoupled Load-Flow (FDLF) method, which is based on Newton–Raphson, but greatly reduces its computational cost by means of a decoupling approximation that is valid in most transmission networks. Many other incremental improvements exist; however, the underlying technique in all of them is still an iterative solver, either of Gauss-Seidel or of Newton type. There are two fundamental problems with all iterative schemes of this type. On the one hand, there is no guarantee that the iteration will always converge to a solution; on the other, since the system has multiple solutions, it is not possible to control which solution will be selected. As the power system approaches the point of voltage collapse, spurious solutions get closer to the correct one, and the iterative scheme may be easily attracted to one of them because of the phenomenon of Newton fractals: when the Newton method is applied to complex functions, the basins of attraction for the various solutions show fractal behavior. As a result, no matter how close the chosen initial point of the iterations (seed) is to the correct solution, there is always some non-zero chance of straying off to a different solution. These fundamental problems of iterative loadflows have been extensively documented. A simple illustration for the two-bus model is provided in Although there exist homotopic continuation techniques that alleviate the problem to some degree, the fractal nature of the basins of attraction precludes a 100% reliable method for all electrical scenarios.
The key differential advantage of the HELM is that it is fully deterministic and unambiguous: it guarantees that the solution always corresponds to the correct operative solution, when it exists; and it signals the non-existence of the solution when the conditions are such that there is no solution (voltage collapse). Additionally, the method is competitive with the FDNR method in terms of computational cost. It brings a solid mathematical treatment of the load-flow problem that provides new insights not previously available with the iterative numerical methods.

## Methodology and applications

HELM is grounded on a rigorous mathematical theory, and in practical terms it could be summarized as follows:
* Define a specific (holomorphic) embedding for the equations in terms of a complex parameter s, such that for s=0 the system has an obvious correct solution, and for s=1 one recovers the original problem.
* Given this holomorphic embedding, it is now possible to compute univocally power series for voltages as analytic functions of s. The correct load-flow solution at s=1 will be obtained by analytic continuation of the known correct solution at s=0.
* Perform the analytic continuation using algebraic approximants, which in this case are guaranteed to either converge to the solution if it exists, or not converge if the solution does not exist (voltage collapse).
HELM provides a solution to a long-standing problem of all iterative load-flow methods, namely the unreliability of the iterations in finding the correct solution (or any solution at all).
This makes HELM particularly suited for real-time applications, and mandatory for any EMS software based on exploratory algorithms, such as contingency analysis, and under alert and emergency conditions solving operational limits violations and restoration providing guidance through action plans.

## Holomorphic embedding

For the purposes of the discussion, we will omit the treatment of controls, but the method can accommodate all types of controls. For the constraint equations imposed by these controls, an appropriate holomorphic embedding must be also defined.
The method uses an embedding technique by means of a complex parameter s. The first key ingredient in the method lies in requiring the embedding to be holomorphic, that is, that the system of equations for voltages V is turned into a system of equations for functions V(s) in such a way that the new system defines V(s) as holomorphic functions (i.e. complex analytic) of the new complex variable s. The aim is to be able to use the process of analytic continuation which will allow the calculation of V(s) at s=1. Looking at equations (1), a necessary condition for the embedding to be holomorphic is that V$^*$ is replaced under the embedding with V$^*$(s$^*$), not V$^*$(s). This is because complex conjugation itself is not a holomorphic function. On the other hand, it is easy to see that the replacement V$^*$(s$^*$) does allow the equations to define a holomorphic function V(s). However, for a given arbitrary embedding, it remains to be proven that V(s) is indeed holomorphic. Taking into account all these considerations, an embedding of this type is proposed:
With this choice, at s=0 the right hand side terms become zero, (provided that the denominator is not zero), this corresponds to the case where all the injections are zero and this case has a well known and simple operational solution: all voltages are equal and all flow intensities are zero. Therefore, this choice for the embedding provides at s=0 a well known operational solution.
Now using classical techniques for variable elimination in polynomial systems (results from the theory of Resultants and Gröbner basis it can be proven that equations (1) do in fact define V(s) as holomorphic functions. More significantly, they define V(s) as algebraic curves. It is this specific fact, which becomes true because the embedding is holomorphic that guarantees the uniqueness of the result. The solution at s=0 determines uniquely the solution everywhere (except on a finite number of branch cuts), thus getting rid of the multi-valuedness of the load-flow problem.
The technique to obtain the coefficients for the power series expansion (on s=0) of voltages V is quite straightforward, once one realizes that equations (2) can be used to obtain them order after order. Consider the power series expansion for $\textstyle V(s)=\sum _{n=0}^{\infty }a[n]s^{n}$ and $\textstyle 1/V(s)=\sum _{n=0}^{\infty }b[n]s^{n}$. By substitution into equations (1) and identifying terms at each order in s$^n$, one obtains:
It is then straightforward to solve the sequence of linear systems (2) successively order after order, starting from n=0. Note that the coefficients of the expansions for V and 1/V are related by the simple convolution formulas derived from the following identity:
so that the right-hand side in (2) can always be calculated from the solution of the system at the previous order. Note also how the procedure works by solving just linear systems, in which the matrix remains constant.
A more detailed discussion about this procedure is offered in Ref.

## Analytic continuation

Once the power series at s=0 are calculated to the desired order, the problem of calculating them at s=1 becomes one of analytic continuation. It should be strongly remarked that this does not have anything in common with the techniques of homotopic continuation. Homotopy is powerful since it only makes use of the concept of continuity and thus it is applicable to general smooth nonlinear systems, but on the other hand it does not always provide a reliable method to approximate the functions (as it relies on iterative schemes such as Newton-Raphson).
It can be proven that algebraic curves are complete global analytic functions, that is, knowledge of the power series expansion at one point (the so-called germ of the function) uniquely determines the function everywhere on the complex plane, except on a finite number of branch cuts. Stahl's extremal domain theorem further asserts that there exists a maximal domain for the analytic continuation of the function, which corresponds to the choice of branch cuts with minimal logarithmic capacity measure. In the case of algebraic curves the number of cuts is finite, therefore it would be feasible to find maximal continuations by finding the combination of cuts with minimal capacity. For further improvements, Stahl's theorem on the convergence of Padé Approximants states that the diagonal and supra-diagonal Padé (or equivalently, the continued fraction approximants to the power series) converge to the maximal analytic continuation. The zeros and poles of the approximants remarkably accumulate on the set of branch cuts having minimal capacity.
These properties confer the load-flow method with the ability to unequivocally detect the condition of voltage collapse: the algebraic approximations are guaranteed to either converge to the solution if it exists, or not converge if the solution does not exist.