3.1. Master Stage: HOA
Since this algorithm is a nonlinear method and binary in nature, it can be solved by using a meta-heuristic approach [
38]. This technique is nature-inspired and mainly based on the observation of radial wind and pressure profiles. In this technique, the meteorological performance is described as the change of temperature over the Earth’s surface, where regions of low and high pressures originate corresponding to the geographical location. Therefore, this pressure difference provides atmospheric gases or winds, which flow from the high-pressure region to the low-pressure region. Subsequently, tropical and subtropical seas receive large amounts of energy from the sun, where it is transferred to the atmosphere in the form of water vapor, generating the movement of air perpendicular to the Earth and creating a low-pressure zone; here, the rotation in the direction of the earth’s rotation is established, containing the energy of this spiral airflow known as a hurricane. In summary, the hurricane is a low-pressure zone with a warm core that forms over the tropical and subtropical oceans, highlighting its three main parts: the eye (the center of the hurricane, low-pressure zone), the eyewall (area of high and deep clouds in the form of a ring, registering the most intense surrounding winds), and the rain bands (area of excessive rainfall in a spiral shape converging toward the center).
3.1.1. Initial Population
The HOA method requires an initial population, which is constituted by the wind plots. In the algorithm, these wind plots are represented by the nodes of the system. In this manner, validation is made possible for each possible solution [
39]. The matrix size is determined by the number of plots required and the search space; each individual in the matrix is randomly established within the search space [
38]. The form of the initial population is presented in Equation (
7):
where matrix
corresponds to the initial population, and
represents the possible connection of node
i and the
n solution group. Additionally, Equation (
8) represents random numbers with uniform distribution, which are used to generate all population members [
6]:
where rand(1) is a random number between 0 and 1 with uniform distribution; floor () takes the integer part of the argument; and
and
are the minimum and maximum values that variable
x can take, which for the phase-swapping problem is as recommended in [
6], and they are defined as 1 and 7, respectively. It is relevant to mention that the initial population contains the best solution and initial position of the eye of the hurricane.
3.1.2. Displacement Wind Plots
Concerning their basic physical structure, winds initially increase exponentially toward the center then rapidly decay to quiescence. In contrast, the pressure decreases exponentially toward the center and settles in the low-pressure zone within the eye of the hurricane, and this forms a belt of intense winds known as the maximum radius of the surrounding wind (
), where the maximum radius is modified in a manner that it increases from the initial radius [
40].
According to this performance, the vortex formed on the hurricane’s horizontal surface top is approximated by a logarithmic spiral pattern, where each pattern
is a new location for each plot from its previous position; following the path of the spiral from a specific time
t, this is described in Equations (
9) and (
10) [
41].
Equation (
9) shows that
is the radius of the hurricane in its polar expression. The rational numbers
are the coordinates of the hurricane eye or the spiral center and correspond to the best option obtained from the set of solutions mentioned in detail below in
Section 3.1.3. In the case of Equation (
10),
and
are the variables that determine the spiral shape. Then, it is evident that
contained in the exponential indicates the spiral increase rate and, together with its sign, determines the spiral rotation direction, while
indicates the initial hurricane eye. Under initial conditions, when time
,
is, therefore, proceeds to zero; consequently,
is equal to the initial radius, i.e.,
, which is a user-defined positive number [
38].
The possible solutions or plots need velocity to initiate and maintain motion. Therefore, velocity in the method is considered to be an angular change rate. The next angular coordinate
presents the velocity increase to the previous angular coordinate
[
40]. The algorithm links the basic hurricane shape and the historical work on general whirlpools related to logarithmic spirals. Therefore, the combinatorial-Rankine presented by Depperman is the most appropriate model for this technique [
38]; this model is a simple parametric description of two equations of a swirling flow. Similarly, the inner radial region around the center of the flow is a solid rotation. In contrast, the outer sector is vorticity-free as observed in Equation (
11).
Regarding the radial region between the center of the hurricane and , it must maintain its angular momentum due to the laws of physics, meaning that the angular velocity is constant, where . On the outer part, the speed is inversely proportional to the distance from the center. For the algorithm, this angular velocity is user-defined in the interval and in the positive rational number interval .
3.1.3. Fitness Function
The eye of the hurricane corresponds to the best option since it holds the lowest pressure zone [
38]. It is crucial to evaluate each new position as a possible best solution. For this reason, a fitness function has been determined comparing the pressure of each plot with the selected eye pressure (best option) as follows: if this pressure to be evaluated is lower than the pressure of the eye, the location of the eye changes to the calculated plot location; otherwise, it discards the new position and retains the current eye position.
Observing the above hurricane performance, it is evident that the wind parcels move around the eye according to the displacement of parcels, where wind speed decreases in the direction of the eye in search of the lowest pressure. In turn, this position becomes the new eye, and the process starts again. Equation (
12) displays this information [
41].
Algorithm 1 shows the flow diagram corresponding to the master stage, determining the operation of the HOA algorithm presented in the computational code developed in this article.
3.2. Slave Stage: Matricial Backward/Forward Power Flow Method
In this section, the main aspects for the implementation of the matricial backward/forward power method are presented, which have been proposed by Montoya et al. in [
42]. The main characteristic of the matricial backward/forward power flow approach is that it is formulated with the usage of the node-to-branch matrix that allows representing the electrical configuration of the distribution network through the nodal admittance matrix [
43]. This method has the ability to deal with radial and meshed distribution networks. In addition, the classical backward sweep by applying the Kirchhoff’s current law and the forward sweep by Kirchhoff’s voltage law are compared in a general power flow formula that makes both calculations in only one step [
5]. To illustrate the general formulation of the matricial backward/forward power flow method, a small distribution system is chosen with some nodes, lines, and current flow directions that are defined. Next, the formulation process is detailed using the case study represented in
Figure 2.
Algorithm 1: General implementation of the HOA in the master stage. |
|
From the electrical connection among nodes in
Figure 2, it is possible to obtain the node-to-branch incidence matrix (
) presented in Equation (
13). Note that the rows of the matrix node-to-branch are assigned to the nodes in the following order, i.e.,
, and in the columns, the lines ordered as
are assigned, respectively. Note that each position of the matrix
is filled as follows:
- ✓
if the node i in the phase is the sending node for the line j in the phase ;
- ✓
if the node i in the phase is the receiving node for the line j in the phase ;
- ✓
if the node i is not connected with the line j.
Equation (
13) shows the node-to-branch incidence matrix for the four-node test feeder in
Figure 2:
where
i corresponds to the node number,
to the node phase,
j corresponds to the line, and
corresponds to the line phase. Note that nodes 1, 2, 3, and 4 are placed vertically along with the lines A, B, C, and D, respectively.
In order to obtain system voltage drops, the difference between each node per phase connected is carried out. If node 1 is located as the slack node, it reaches the subdivision of the matrix
in section
corresponding to the generator node and another area containing the demand nodes of system
, as shown in Equation (
14) [
5].
Equation (
15) presents information related to the demanded drop voltage from the distribution network, where
is the voltage drop between the extremes of each line for phase
.
For any general case and using the information of Equation (
15), Equation (
16) is used in a matrix form [
43].
For application purposes, an initial voltage profile is assumed in which and corresponds to all the demand nodes; in turn, E determines the potential drops in all system nodes.
Following Kirchhoff’s current law and the direction of currents in the network, Equation (
17) is obtained.
Observe that using the information in Equation (
17), Equation (
18) is determined in matrix form. [
5].
With the impedance matrix of the system employing Ohm’s law in [
44], it is possible to determine the voltage drop per phase as shown in the matrix (
19).
With this information, Equation (
20) is established in matrix form [
43].
In the search to relate network demand voltages and currents, the adjacency matrix, which cannot be inverted, and the inverse impedance matrix are considered. From the line voltage of Equation (
20), one can obtain the line currents and subsequently replace this expression in the demand currents (
21), which results in an expression of demand node currents dependent on the adjacent matrix, line voltages, and impedances [
6].
By using Equation (
21), the slack node and demand nodes are obtained, which results in Equations (
22) and (
23) [
43].
where
is equal to
, and
equals
. Equation (
24) reorganizes and determines the nodes’ stress [
5].
The three-phase demand current depends on whether the type of connection of the load is in
or
Y (i.e., star connection); see
Figure 3 for this case study, which is taken as reference for a kind of load in
Y. Therefore, Equations (
25)–(
27) were selected. Likewise, Equations (
28)–(
30) are detailed if the type of load is in triangle [
6].
Finally, using an iterative counter to solve Equation (
24), Equation (
31) is defined, where
m is the iteration counter with values greater than 0.
Observe that the recursive formula in (
31) converges to the power flow solution if the maximum difference between two consecutive voltage iterations is lower than the assigned tolerance [
6].
Once the power flow Equations (
2) and (
3) are solved and the voltage in the demand nodes is determined, the three-phase power generation in the slack source can be easily calculated with Equation (
32):
where
represents the complex three-phase power generation in the slack bus.