<?xml version="1.0" encoding="UTF-8"?><?xml-model type="application/xml-dtd" href="http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d3 20150301//EN" "http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd">
<article xmlns:ali="http://www.niso.org/schemas/ali/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" dtd-version="1.1d3" specific-use="Marcalyc 1.2" article-type="research-article" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="redalyc">3442</journal-id>
<journal-title-group>
<journal-title specific-use="original" xml:lang="es">TecnoLógicas</journal-title>
</journal-title-group>
<issn pub-type="ppub">0123-7799</issn>
<issn pub-type="epub">2256-5337</issn>
<publisher>
<publisher-name>Instituto Tecnológico Metropolitano</publisher-name>
<publisher-loc>
<country>Colombia</country>
<email>tecnologicas@itm.edu.co</email>
</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="art-access-id" specific-use="redalyc">344272383003</article-id>
<article-id pub-id-type="doi">https://doi.org/10.22430/22565337.2355</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Artículos de investigación</subject>
</subj-group>
</article-categories>
<title-group>
<article-title xml:lang="en">Stochastic Convex Optimization for Optimal Power Factor Correction in Microgrids with Photovoltaic Generation</article-title>
<trans-title-group>
<trans-title xml:lang="es">Optimización convexa estocástica para la corrección del factor de potencia óptimo en microrredes con generación fotovoltaica</trans-title>
</trans-title-group>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="no">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-4937-5236</contrib-id>
<name name-style="western">
<surname>Casilimas Peña</surname>
<given-names>Alexander</given-names>
</name>
<xref ref-type="aff" rid="aff1"/>
<email>acasilimasp@iingen.unam.mx</email>
</contrib>
<contrib contrib-type="author" corresp="no">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-6051-4925</contrib-id>
<name name-style="western">
<surname>Montoya</surname>
<given-names>Oscar Danilo</given-names>
</name>
<xref ref-type="aff" rid="aff2"/>
<email>odmontoyag@udistrital.edu.co</email>
</contrib>
<contrib contrib-type="author" corresp="no">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-6496-0594</contrib-id>
<name name-style="western">
<surname>Garcés Ruiz</surname>
<given-names>Alejandro</given-names>
</name>
<xref ref-type="aff" rid="aff3"/>
<email>alejandro.garces@utp.edu.co</email>
</contrib>
<contrib contrib-type="author" corresp="no">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-9499-2842</contrib-id>
<name name-style="western">
<surname>Camacho</surname>
<given-names>César Ángeles</given-names>
</name>
<xref ref-type="aff" rid="aff4"/>
<email>cangelesc@iingen.unam.mx</email>
</contrib>
</contrib-group>
<aff id="aff1">
<institution content-type="original">Universidad Nacional Autónoma de México, Instituto de ingenierías,  Ciudad de México-México, acasilimasp@iingen.unam.mx</institution>
<institution content-type="orgname">Universidad Nacional Autónoma de México</institution>
<country country="MX">México</country>
</aff>
<aff id="aff2">
<institution content-type="original">Universidad Distrital Francisco José de Caldas, Bogotá-Colombia,   odmontoyag@udistrital.edu.co</institution>
<institution content-type="orgname">Universidad Distrital Francisco José de Caldas</institution>
<country country="CO">Colombia</country>
</aff>
<aff id="aff3">
<institution content-type="original">Universidad Tecnológica de Pereira, Pereira-Risaralda,   alejandro.garces@utp.edu.co</institution>
<institution content-type="orgname">Universidad Tecnológica de Pereira</institution>
<country country="CO">Colombia</country>
</aff>
<aff id="aff4">
<institution content-type="original">Universidad Nacional Autónoma de México, Instituto de ingenierías,  Ciudad de México-México, cangelesc@iingen.unam.mx</institution>
<institution content-type="orgname">Universidad Nacional Autónoma de México</institution>
<country country="MX">México</country>
</aff>
<pub-date pub-type="epub-ppub">
<season>Septiembre-Diciembre</season>
<year>2022</year>
</pub-date>
<volume>25</volume>
<issue>55</issue>
<elocation-id>e2355</elocation-id>
<history>
<date date-type="received" publication-format="dd mes yyyy">
<day>18</day>
<month>03</month>
<year>2022</year>
</date>
<date date-type="accepted" publication-format="dd mes yyyy">
<day>17</day>
<month>08</month>
<year>2022</year>
</date>
<date date-type="pub" publication-format="dd mes yyyy">
<day>02</day>
<month>11</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-year>2015</copyright-year>
<copyright-holder>Instituto Tecnológico Metropolitano</copyright-holder>
<ali:free_to_read/>
<license xlink:href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
<ali:license_ref>https://creativecommons.org/licenses/by-nc-sa/4.0/</ali:license_ref>
<license-p>Esta obra está bajo una Licencia Creative Commons Atribución-NoComercial-CompartirIgual 4.0 Internacional.</license-p>
</license>
</permissions>
<abstract xml:lang="en">
<title>Abstract</title>
<p>This research focused on the development of a methodology for calculating the optimal power factor (OPF) in microgrids with the photovoltaic generation, in order to use solar inverters as reactive compensators, which will change their power factor according to the needs of the load. The developed methodology proposes a convex optimization model with multiple constraints to solve the OPF problem. Wirtinger's linearization in the power balance equation was implemented. The stochastic behavior of solar radiation was considered using the average sampling approach (ASA) to generate solar scenarios, which are used to calculate the magnitude of the generation of photovoltaic systems for specific hours of the day. Finally, the algorithm was run on CIGRE's 19-node test grid. The proposed methodology showed that as the radiation level increases during the day, more radiation scenarios can be tested, which increases the accuracy of the power factor value for each PV system. Although the general idea in power systems is to have a unity power factor, the algorithm resulted in power factors with values less than one in some inverters. This represents an injection of reactive power from the inverters to meet the reactive needs of the loads connected close to said PV generators, which is reflected in a variation in the magnitude of the power factor.</p>
</abstract>
<trans-abstract xml:lang="es">
<title>Resumen</title>
<p>Esta investigación se centró en el desarrollo de una metodología para el cálculo del factor de potencia óptimo (OPF) en micro redes con generación fotovoltaica, con el fin de usar los inversores solares como compensadores reactivos, los cuales cambiaran su factor de potencia de acuerdo a las necesidades de la carga. La metodología desarrollada planteó un modelo de optimización convexo con múltiples restricciones para resolver el problema de OPF; además, fue implementada la linealización de Wirtinger en la ecuación de balance de potencia. Se consideró el comportamiento estocástico de la radiación solar utilizando la aproximación de muestreo promedio (ASA) para generar escenarios solares, los cuales son usados para calcular la magnitud de la generación de los sistemas fotovoltaicos para horas específicas del día. Finalmente, se ejecutó el algoritmo en la red de pruebas de 19 nodos de CIGRE.  La metodología propuesta mostró que, a medida que el nivel de radiación incrementa en el transcurso del día, más escenarios de radiación pueden ser puestos a prueba, lo cual aumenta la precisión del valor de factor de potencia para cada sistema PV. Aunque la idea general en los sistemas de potencia es tener un factor de potencia unitario, el algoritmo brindó como resultado factores de potencia con valores inferiores a uno en algunos inversores. Esto representa una inyección de potencia reactiva desde los inversores para suplir las necesidades de reactivos de las cargas conectadas cerca a dichos generadores PV, lo cual se refleja en una variación en la magnitud del factor de potencia.</p>
</trans-abstract>
<kwd-group xml:lang="en">
<title>Keywords</title>
<kwd>Solar radiation studies</kwd>
<kwd>optimal power factor</kwd>
<kwd>stochastic formulation</kwd>
<kwd>nonlinear model</kwd>
<kwd>convex optimization</kwd>
</kwd-group>
<kwd-group xml:lang="es">
<title>Palabras clave</title>
<kwd>Estudios de radiación solar</kwd>
<kwd>factor de potencia óptimo</kwd>
<kwd>formulación estocástica</kwd>
<kwd>modelo no lineal</kwd>
<kwd>optimización convexa</kwd>
</kwd-group>
<counts>
<fig-count count="5"/>
<table-count count="4"/>
<equation-count count="19"/>
<ref-count count="29"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>How to cite / Cómo citar</meta-name>
<meta-value>A. Casilimas-Peña, O. D. Montoya, A. Garcés-Ruiz, C. A. Camacho, “Stochastic Convex Optimization for Optimal Power Factor Correction in Microgrids with Photovoltaic Generation,” <italic>TecnoLógicas</italic>, vol. 25, nro. 55, e2355, 2022. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.22430/22565337.2355">https://doi.org/10.22430/22565337.2355</ext-link>
</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec>
<title>
<bold>Highlights</bold>
</title>
<p>
<list list-type="bullet">
<list-item>
<p>The load increases affect the voltage profile in certain nodes of the network.</p>
</list-item>
<list-item>
<p>The reactive power allows to control of voltage, power transmission and reduces losses.</p>
</list-item>
<list-item>
<p>Stochastic analysis allows obtaining study scenarios that change throughout the day.</p>
</list-item>
<list-item>
<p>No existing purely resistive load, so there will always be a flow of reactive power.</p>
</list-item>
<list-item>
<p>Program the PF on inverters is useful in microgrids without communication systems.</p>
</list-item>
</list>
</p>
</sec>
<sec>
<title>
<bold>NOMENCLATURE</bold>
</title>
<p>
<table-wrap id="gt13">
<alternatives>
<graphic xlink:href="344272383003_gt2.png" position="anchor" orientation="portrait"/>
<table style="border-collapse:collapse;border:none;" id="gt2-526564616c7963">
<tbody>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>p<sub>L</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Total power loss</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>E(x)</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Expected value of the random variable <italic>x</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>p<sub>kG</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Active power generated at the converter connected at node <italic>k</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>q<sub>kG</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Reactive power generated at node <italic>k</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>v<sub>k</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Voltage value at node <italic>k</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>y<sub>km</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Component <italic>km</italic> of the nodal admittance matrix</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>S<sub>k</sub>
</italic>
</bold>
<bold>
<italic>
<sub>(max)</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Maximum capability of the converter connected to node <italic>k</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>P<sub>kG</sub>
</bold>
<bold>
<sub>(max)</sub>
</bold>
<bold/>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Maximum generated power in the converter connected to node <italic>k</italic>
</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>v<sub>min</sub>
</italic>
</bold>
<bold>
<italic>, v<sub>max</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Minimum and maximum voltages allowed in the grid</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>
<italic>ξ<sub>t</sub>
</italic>
</bold>
<bold>
<italic/>
</bold>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Scenario of irradiance</td>
</tr>
<tr style="height:14.15pt">
<td style="width:56.45pt;padding:0cm 5.4pt 0cm 5.4pt;   height:14.15pt">
<bold>ρ<sub>t</sub>
</bold>
<bold/>
</td>
<td style="width:342.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.15pt">Probability of scenario <italic>ξ<sub>t</sub>
</italic>
</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
</p>
</sec>
<sec>
<title>
<bold>1.     INTRODUCTION</bold>
</title>
<p>Modern distribution systems are characterized by high penetration of renewable energies such as wind and photovoltaics, which are integrated into the network through power inverter devices. Overcrowding in the installation of these devices has led to overvoltage, power factor violation, voltage imbalance, and other issues in electrical networks. Therefore, it is necessary to develop a methodology that allows for efficient control of the reactive power resources of these devices [<xref ref-type="bibr" rid="redalyc_344272383003_ref1">1</xref>]. Like FACT devices, inverters are built based on power electronics, and they have advantages such as high conversion efficiency, improved power quality, active and reactive power control, among others [<xref ref-type="bibr" rid="redalyc_344272383003_ref2">2</xref>]-[<xref ref-type="bibr" rid="redalyc_344272383003_ref4">4</xref>]. Although these converters have some power factor compensation capabilities, they are usually operated at a unit power factor. This operation mode reduces the efficiency of the entire system [<xref ref-type="bibr" rid="redalyc_344272383003_ref5">5</xref>]. One of the most promising ways to solve this problem is by including communications and a power factor management system. However, this approach is still expensive in many practical applications. Therefore, an optimization model for the power factor is required in order to define a fixed set point while considering the stochastic behavior of solar generation. This paper presents a methodology for defining this fixed set point, based on a series of convex approximations. Three-phase modeling of the grid is proposed, considering single and three-phase converters. The physical limitations of the converters are also considered, and the grid equations are linearized by using Wirtinger's calculus. The sample average approximation considers the stochastic behavior of solar radiation to maintain the problem convex and computationally tractable. Real data for solar radiation is considered and applied to the CIGRE benchmark [<xref ref-type="bibr" rid="redalyc_344272383003_ref6">6</xref>], [<xref ref-type="bibr" rid="redalyc_344272383003_ref7">7</xref>].</p>
<p>Several methods have been proposed before to solve this problem. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref8">8</xref>], a decentralized self-adjusting reactive power controller was presented, whose objective was to compensate for the reactive power of local loads and share the reactive power of non-local loads. That control included a drop constant that was adjusted according to the reactive power. Hatziargyriou <italic>et al.</italic> [<xref ref-type="bibr" rid="redalyc_344272383003_ref9">9</xref>] considered using a generalized DC power flow and quadratic programming in order to obtain an optimal reactive power flow to control the reactive power supplied by each distributed generator. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref10">10</xref>] was proposed a wireless control strategy using optimized virtual impedance controllers and load measurements of reactive power-sharing throughout the network. A genetic algorithm was used to define each distributed generator's virtual impedance parameters, which reduce the global reactive power-sharing error. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref11">11</xref>] was presented the concept of stochastic game modeling from game theory to develop an algorithm with the purpose of solving a multi-objective optimization, which included the reactive power reserve maximization and the improvement of the voltage profile. Wang <italic>et al.</italic> [<xref ref-type="bibr" rid="redalyc_344272383003_ref12">12</xref>] showed a control strategy for islanded microgrids which used small-signal models, state estimators, optimal regulators, and optimal control. All these allowed for voltage regulation without communication systems. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref13">13</xref>] was presented a review of multiple sharing strategies of active and reactive power in hierarchically controlled microgrids. Morais <italic>et al.</italic> [<xref ref-type="bibr" rid="redalyc_344272383003_ref14">14</xref>] mentioned multiple reactive power control strategies considering the smart grid paradigm, the management of distributed energy resources, and a distributed network aggregator, namely a Virtual Power Plant, which was proposed and implemented in a simulation tool. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref15">15</xref>] was proposed a bibliographical review of mathematical methods used for optimal selection and location of reactive power compensating elements applied to distribution systems, most of them based on metaheuristics. Few articles study the stochasticity of renewable resources and their load on microgrids. Some, like [<xref ref-type="bibr" rid="redalyc_344272383003_ref16">16</xref>] and [<xref ref-type="bibr" rid="redalyc_344272383003_ref17">17</xref>], carry out their investigation by performing a mathematical analysis of all the components and stochastic behavior of the system in order to obtain an optimal power flow and reduce losses.</p>
<p>In [<xref ref-type="bibr" rid="redalyc_344272383003_ref18">18</xref>], a stochastic multi-objective optimal dispatch was applied to grids with wind farms. This is in order to solve the problem of voltage stability and reactive power reserve (RPR) by minimizing the payments of energy and maximizing the RPR under wind power generation uncertainty using a combination of the lexicographic optimization technique and the augmented-weighted ∈ -constraint method. Nazmul et al. [<xref ref-type="bibr" rid="redalyc_344272383003_ref19">19</xref>] presented a review of reactive power management strategies and optimization algorithms applied to power electronic converters for renewable energy generators in order to solve steady-state voltage and dynamic stability issues. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref20">20</xref>] were presented two methodologies to use the reactive power capabilities of smart inverters on photovoltaic installations: the first one limits the amount of active power, which implies a reduction of PV production; and the second one oversize the inverter, which allows for better reactive power reserves.</p>
<p>In [<xref ref-type="bibr" rid="redalyc_344272383003_ref21">21</xref>], mixed integer linear programming linked with two stochastic stages is used to study the resilience of a microgrid under extreme conditions while considering reactive power management. Abreu <italic>et al.</italic> [<xref ref-type="bibr" rid="redalyc_344272383003_ref22">22</xref>] used stochastic optimal power flow to optimize the use of reactive power. This technique allows selecting the distributed energy resource that can provide reactive power by limiting the reactive power supplied by the transmission system operator, thus reducing losses. In [<xref ref-type="bibr" rid="redalyc_344272383003_ref23">23</xref>] was developed a reactive power methodology considering photovoltaic inverter capabilities and fixed capacitors. A mixed integer second-order conic programming model is used, minimizing the maintenance and operation cost of compensation devices, thus confirming a considerable reduction in investment and energy losses in distribution grids.</p>
<p>Mehbodniya <italic>et al.</italic> [<xref ref-type="bibr" rid="redalyc_344272383003_ref24">24</xref>] mentioned the effects of renewable energy (<italic>e.g.</italic>, wind and photovoltaic) on distribution grids. The objective function of the model minimizes the operating cost of the system, and stochastic programming is used to solve the formulated linear problem by improving the active and reactive power losses, the network energy cost, and the voltage deviation by more than 30 %.</p>
<p>As mentioned earlier, the main differences between the approaches are as follows. i) The proposed model is convexified by using Wirtinger linearization on the power flow equations [<xref ref-type="bibr" rid="redalyc_344272383003_ref25">25</xref>]. This linearization allows guaranteeing the global optimum in the approximated model with a high accuracy and fast convergence of the interior point algorithms. ii) The proposed model considers the stochastic behavior of solar generation directly by using sample average approximation. This approximation considers the stochastic nature of solar radiation and the loads without jeopardizing the convergence and uniqueness properties of the convex model. iii) The implementation of the proposed methodology can be executed directly in commercial converters, as it does not require communications or real-time operation. This, with the main purpose of scheduling the power factor of the converter for each type of day and each hour without a master controller.</p>
<p>The rest of the article is organized as follows. Section 2 presents the problem statement, where the objective function and the constraints are presented while considering the conventional non-linear non-convex representation of the grid, the convex formulation, and the relaxation of the power flow equation using Wirtinger linearization. The stochastic model is also explained. Finally, the grid model and algorithm simulation results of each test case are presented in Section 3, followed by the conclusions, acknowledgments, and relevant references. <italic>This article is part of a selection of the best works presented at the Symposium X SICEL -2021.</italic>
</p>
</sec>
<sec>
<title>
<bold>2. MATERIALS AND METHODS</bold>
</title>
<sec>
<title>
<bold>2.1 Model Definition</bold>
</title>
<p>Let us consider a microgrid represented by the three-phase nodal admittance matrix   , which is divided in two sub-matrices, namely <italic>Y<sub>S</sub>
</italic> for the substation and <italic>Y<sub>N</sub>
</italic>
<sub/>for the rest of the nodes. A three-phase representation of the grid is considered, so the slack node has three components, as given in (<xref ref-type="disp-formula" rid="e1">1</xref>):</p>
<p>
<disp-formula id="e1">
<label>(1)</label>
<graphic xlink:href="344272383003_ee2.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>The grid is therefore represented by the following non-linear/non-affine model (<xref ref-type="disp-formula" rid="e2">2</xref>):</p>
<p>
<disp-formula id="e2">
<label>(2)</label>
<graphic xlink:href="344272383003_ee3.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Where * represents the complex conjugate operator, and <italic>v<sub>k</sub>, v<sub>m</sub> ∈ V<sub>N</sub>,  y<sub>km</sub> ∈ Y<sub>N</sub>
</italic>. The optimization model consists of minimizing the expected value of the total losses <italic>p<sub>L</sub>
</italic>, which is subject to technical constrains as follows (<xref ref-type="disp-formula" rid="e3">3</xref>)-(<xref ref-type="disp-formula" rid="e7">7</xref>):</p>
<p>
<disp-formula id="e3">
<label>(3)</label>
<graphic xlink:href="344272383003_ee4.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e4">
<label>(4)</label>
<graphic xlink:href="344272383003_ee5.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e5">
<label>(5)</label>
<graphic xlink:href="344272383003_ee6.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e6">
<label>(6)</label>
<graphic xlink:href="344272383003_ee7.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e7">
<label>(7)</label>
<graphic xlink:href="344272383003_ee9.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<bold> Model 1</bold>. <italic>Complete model for the optimal set point of the reactive power in a three-phase grid. </italic>
</p>
<p>Where (<xref ref-type="disp-formula" rid="e3">3</xref>) is a convex function that represents the expected losses of the network, (<xref ref-type="disp-formula" rid="e4">4</xref>) are non-linear and non-convex equations that represent the active and reactive power flow constraints, respectively, (<xref ref-type="disp-formula" rid="e5">5</xref>) is the maximum and minimum voltage of the grid, (<xref ref-type="disp-formula" rid="e6">6</xref>) is the capability of the converter, and (<xref ref-type="disp-formula" rid="e7">7</xref>) is the maximum power that can be generated in each node.</p>
<p>Note that (<xref ref-type="disp-formula" rid="e6">6</xref>) depends on the converter, whereas (<xref ref-type="disp-formula" rid="e7">7</xref>) depends on the primary resource (i.e., the scenario of the irradiance <italic>ξ<sub>t</sub>
</italic>). Therefore,<italic> P<sub>kG(max)</sub>
</italic> is a random variable. It is important to note that (<xref ref-type="disp-formula" rid="e4">4</xref>) is maintained in complex form for the sake of a simple representation. However, this equation needs to be separated into real and imaginary parts.</p>
<p>This problem is difficult to solve due to the non-linear non-convex nature of the power flow equations and the stochastic nature of the model. In the next section, the model is simplified for a deterministic case in order to obtain a convex model (see [<xref ref-type="bibr" rid="redalyc_344272383003_ref26">26</xref>] for a formal definition of convexity). After that, in section 2.4, the stochastic model is considered.</p>
</sec>
<sec>
<title>
<bold>2.2 Convex Formulation</bold>
</title>
<p>The problem of non-convexity and non-linearity mentioned in Subsection 2.2 must be relaxed to obtain a tractable model. There are different linearizations proposed in the literature, where the ones presented by [<xref ref-type="bibr" rid="redalyc_344272383003_ref27">27</xref>]-[<xref ref-type="bibr" rid="redalyc_344272383003_ref29">29</xref>] stand out.</p>
<p>Although each of these linearizations comes from a different theoretical background, they are equivalent for values close to 1 p.u. In this paper, a linearization based on Wirtinger's calculus is used. Like the previous linearization, this is equivalent to values close to 1 p.u. However, the advantage of this approach is that it guarantees an affine separation between voltages and powers in the optimization model. The distributed resources are considered by using a ZIP model. A deep mathematical analysis of this linearization is beyond the objectives of this paper but can be found in [<xref ref-type="bibr" rid="redalyc_344272383003_ref25">25</xref>]. The approximated representation of a three-phase grid-connected is given by (<xref ref-type="disp-formula" rid="e8">8</xref>):</p>
<p>
<disp-formula id="e8">
<label>(8)</label>
<graphic xlink:href="344272383003_ee10.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Where <italic>H, M, T</italic> are constant matrices defined by (<xref ref-type="disp-formula" rid="e9">9</xref>)-(<xref ref-type="disp-formula" rid="e11">11</xref>):</p>
<p>
<disp-formula id="e9">
<label>(9)</label>
<graphic xlink:href="344272383003_ee11.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e10">
<label>(10)</label>
<graphic xlink:href="344272383003_ee12.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e11">
<label>(11)</label>
<graphic xlink:href="344272383003_ee14.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Therefore, constraint (<xref ref-type="disp-formula" rid="e4">4</xref>) can be represented as follows (<xref ref-type="disp-formula" rid="e12">12</xref>):</p>
<p>
<disp-formula id="e12">
<label>(12)</label>
<graphic xlink:href="344272383003_ee15.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Note that (<xref ref-type="disp-formula" rid="e12">12</xref>) defines an affine space, even when it is separated into real and imaginary parts, since neither <italic>H, M or T</italic>depends on the power.</p>
</sec>
<sec>
<title>
<bold>2.3 Stochastic Model</bold>
</title>
<p>The proposed model is designed for microgrids and small power distribution systems. Therefore, the irradiance scenario is the same for all the panels in the grid. The methodology takes real data for generated power and defines <italic>η<sub>t </sub>
</italic>scenarios with probability <italic>ξ<sub>t</sub>.</italic> In this situation, the expected value of the losses can be represented by the following sample average approximation (ASA), which defines an affine (<xref ref-type="disp-formula" rid="e13">13</xref>):</p>
<p>
<disp-formula id="e13">
<label>(13)</label>
<graphic xlink:href="344272383003_ee16.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Where ξ<sub>t</sub>   is the probability of each scenario –the number of scenarios can grow very fast in many power systems applications. However, the main supposition of this work is that the solar panels are very close geographically, and hence the scenario is the same in all the panels along the microgrid. In this situation, the value of ηt is small, as it will be presented in the results. Collecting all the aforementioned approximations, the model takes the following structure (<xref ref-type="disp-formula" rid="e14">14</xref>) - (<xref ref-type="disp-formula" rid="e15">15</xref>) and the (<xref ref-type="disp-formula" rid="e5">5</xref>)- (<xref ref-type="disp-formula" rid="e7">7</xref>):</p>
<p>
<bold> Model 2</bold>. <italic>Approximated convex model for the optimal power factor in a three-phase grid. </italic>
</p>
<p>
<disp-formula id="e14">
<label>(14)</label>
<graphic xlink:href="344272383003_ee17.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e15">
<label>(15)</label>
<graphic xlink:href="344272383003_ee18.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Note that this model is convex and tractable if the number of scenarios is finite. The power factor can be calculated after the optimization model is solved by using the values of <italic>p</italic> and <italic>q</italic>. In the next section, the generation of these scenarios will be presented.</p>
</sec>
</sec>
<sec>
<title>
<bold>3.     RESULTS AND DISCUSSION</bold>
</title>
<p>The proposed model was evaluated on the CIGRE benchmark [<xref ref-type="bibr" rid="redalyc_344272383003_ref6">6</xref>] (see <xref ref-type="fig" rid="gf1">Figure 1</xref>). The stochastic phenomenon was modeled as a set of scenarios using a database of irradiance with 8605 values taken at Universidad Tecnológica de Pereira (UTP). The information was collected using a device developed by UTP students. This device saved irradiance information in 5-minute intervals during September 2012. Using this database, five values with different solar radiation magnitudes were generated. These scenarios were obtained by grouping the solar radiation values through Matlab’s histogram (<italic>his</italic>) function.</p>
<p>
<fig id="gf1">
<label>Figure 1.</label>
<caption>
<title>Unifilar Diagram of the CIGRE benchmark</title>
</caption>
<alt-text>Figure 1.  Unifilar Diagram of the CIGRE benchmark</alt-text>
<graphic xlink:href="344272383003_gf2.png" position="anchor" orientation="portrait"/>
<attrib>Source: Taken from [<xref ref-type="disp-formula" rid="e6">6</xref>].</attrib>
</fig>
</p>
<p>Here, the <italic>his.Values</italic> function represents the frequency of occurrence of each value, and the <italic>his.binedges</italic> function represents the radiation value associated with the frequency. This allows to better differentiate the results, as a general radiation value is not used for the entire operating time of the photovoltaic installation; these radiation levels change hour by hour, which implies greater precision in the results. This process is applied for three cases: one at sunrise (6:00 a.m.), another one at mid-morning (9:00 a.m.), and the last one at the maximum solar radiation point (12:00 p.m.). <xref ref-type="fig" rid="gf2">Figure 2</xref> shows the number of scenarios and their corresponding frequency (which can be transformed into probability).</p>
<p>
<fig id="gf2">
<label>Figure 2.</label>
<caption>
<title>Solar scenarios at three specific hours of the day</title>
</caption>
<alt-text>Figure 2.  Solar scenarios at three specific hours of the day</alt-text>
<graphic xlink:href="344272383003_gf3.png" position="anchor" orientation="portrait"/>
<attrib>Source: Created by authors.</attrib>
</fig>
</p>
<p>As shown in <xref ref-type="fig" rid="gf2">Figure 2</xref>, the radiation level is different in every case, at sunrise, a high frequency of occurrence on low radiation values (127.3 W/m<sup>2</sup>) and low frequency on high radiation levels can be observed.</p>
<p>This means that, at 6:00 a.m., the radiation received is low and, over the course of the hours, the frequency of occurrence in the other radiation values increases (mid-morning, mid-day), which represents an increase in the radiation received by the photovoltaic installation. With that in mind, the generation of the system is going to change in any case, thus allowing to obtain different power factor profiles for each scenario.</p>
<p>Equation (<xref ref-type="disp-formula" rid="e14">14</xref>) presents a minimization of the losses, optimizing the active and reactive power supplied by each solar power plant connected to the microgrid.</p>
<p>Starting from the basic definition of power factor  (<xref ref-type="disp-formula" rid="e19">16</xref>) – (<xref ref-type="disp-formula" rid="e21">18</xref>), <italic>p</italic> element on (<xref ref-type="disp-formula" rid="e22">19</xref>) is defined, which limits the amount of reactive power in the grid. This is obtained as a result of the convex model programmed on MATLAB. Hence, the power factor for each optimized solar source can be obtained.</p>
<p>
<disp-formula id="e19">
<label>(16)</label>
<graphic xlink:href="344272383003_ee22.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e20">
<label>(17)</label>
<graphic xlink:href="344272383003_ee23.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e21">
<label>(18)</label>
<graphic xlink:href="344272383003_ee24.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>
<disp-formula id="e22">
<label>(19)</label>
<graphic xlink:href="344272383003_ee25.png" position="anchor" orientation="portrait"/>
</disp-formula>
</p>
<p>Our test system is based on CIGRE microgrid, which uses the same conductor type and grid scheme, albeit with some modifications. This microgrid has three mono-phase generators connected to each phase of node 2, three-phase solar generators connected to nodes 7, 13, and 18, with six unbalanced loads located at nodes 3, 8, 11, 14, and 15. The model was solved using the CVX convex optimization library for MATLAB, which was developed by Stanford University and executed on a computer with an Intel i7 processor and 6 GB of RAM.</p>
<sec>
<title>
<bold>3.1   Case 1 – 6:00 a.m.</bold>
</title>
<p>This case was evaluated at 6:00 a.m. with a computational time of 11.0507 seconds. Here, the radiation level is low, and, as shown in<xref ref-type="fig" rid="gf2"> Figure 2</xref>, the amount of data can only represent the first two of the five radiation scenarios. In <xref ref-type="fig" rid="gf3">Figure 3</xref>, graphs (a) and (b) plot the possible power factors for generation units 1 and 3 as an outcome of the optimization algorithm. The number of power factors presented on the graphic is related to the level of radiation and the frequency of occurrence obtained at sunrise (two scenarios: 127.3 W/m<sup>2</sup> and 381.9 W/m<sup>2</sup>). <xref ref-type="table" rid="gt10">Table 1</xref> presents the result of (<xref ref-type="disp-formula" rid="e13">13</xref>), which represents the sum of the power factors by their frequency of occurrence, which yields the result of the expected value of the PF for each solar generation inverter unit. This value will be adjusted in the inverters to ensure an efficient operation of the network at that hour of the day. Most of the PV generation nodes were set to one, except on node 13, in which the power factor is lower than one. This represents a reactive power current flowing from the PV inverters to the grid to supply the needs of reactive power near the node 13.</p>
<p>
<fig id="gf3">
<label>Figure 3.</label>
<caption>
<title>Possible power factor for phase 6 am: (a) generator 𝟏𝝋, node 2; (b) generator 𝟑𝝋, node 13</title>
</caption>
<alt-text>Figure 3.  Possible power factor for phase 6 am: (a) generator 𝟏𝝋, node 2; (b) generator 𝟑𝝋, node 13</alt-text>
<graphic xlink:href="344272383003_gf4.png" position="anchor" orientation="portrait"/>
<attrib>Source: Created by authors.</attrib>
</fig>
</p>
<p>
<table-wrap id="gt10">
<label>Table 1</label>
<caption>
<title>Expected reactive power for case 1 Source Created by the authors</title>
</caption>
<alt-text>Table 1 Expected reactive power for case 1 Source Created by the authors</alt-text>
<alternatives>
<graphic xlink:href="344272383003_gt3.png" position="anchor" orientation="portrait"/>
<table style="border-collapse:collapse;border:none;" id="gt3-526564616c7963">
<tbody>
<tr style="height:18.7pt">
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Generator</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Node</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Phase</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>E<sub>φ</sub>
</italic>
<italic/>
</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>1<sub>1</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
<italic/>
</td>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">2</td>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">A</td>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">1.0000</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>1<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">7</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">1.0000</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>1<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">13</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">0.9169</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">
<italic>3<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">18</td>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">ABC</td>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">1.0000</td>
</tr>
</tbody>
</table>
</alternatives>
<attrib>Source: Created by the authors.</attrib>
</table-wrap>
</p>
</sec>
<sec>
<title>
<bold>3.2   Case 2 – 9:00 a.m.</bold>
</title>
<p>The second test was evaluated at 9:00 a.m. with a computational time of 12.13337 seconds. In this case, the radiation level is higher than case 1, and, as shown in <xref ref-type="fig" rid="gf2">Figure 2</xref>, the amount of data can represent four out of five scenarios. In <xref ref-type="fig" rid="gf4">Figure 4</xref>, graphs (a) and (b) plot the possible power factors for generation units 1 and 3 as an outcome of the optimization algorithm. The number of power factors presented in the graph are related to the level of radiation and the frequency of occurrence obtained at mid-morning (four scenarios: 127.3 W/m<sup>2</sup>, 381.9 W/m<sup>2</sup>, 636.5 W/m<sup>2</sup>, and 891.1 W/m<sup>2</sup>). <xref ref-type="table" rid="gt11">Table 2</xref> presents the result of (<xref ref-type="disp-formula" rid="e19">13</xref>), which represents the sum of the power factors by their frequency of occurrence, thus yielding the result of the expected value of the PF for each solar generation inverter unit.</p>
<p>
<fig id="gf4">
<label>Figure 4.</label>
<caption>
<title>Possible power factor for phase 9 am: (a) generator   , node 2; (b) generator   , node 13</title>
</caption>
<alt-text>Figure 4.  Possible power factor for phase 9 am: (a) generator   , node 2; (b) generator   , node 13</alt-text>
<graphic xlink:href="344272383003_gf5.png" position="anchor" orientation="portrait"/>
<attrib>Source: Created by authors.</attrib>
</fig>
</p>
<p>
<table-wrap id="gt11">
<label>Table 2</label>
<caption>
<title>Expected reactive power for case 2 Source Created by the authors</title>
</caption>
<alt-text>Table 2 Expected reactive power for case 2 Source Created by the authors</alt-text>
<alternatives>
<graphic xlink:href="344272383003_gt4.png" position="anchor" orientation="portrait"/>
<table style="border-collapse:collapse;border:none;" id="gt4-526564616c7963">
<tbody>
<tr style="height:18.7pt">
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Generator</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Node</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">Phase</td>
<td style="width:53.85pt;border-top:solid windowtext 1.0pt;   border-left:none;border-bottom:solid windowtext 1.0pt;border-right:none;      padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt"/>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt"/>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">2</td>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">A</td>
<td style="width:53.85pt;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">1.0000</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt"/>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">7</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">0.9960</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt"/>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">13</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:53.85pt;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">0.8460</td>
</tr>
<tr style="height:18.7pt">
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt"/>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">18</td>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">ABC</td>
<td style="width:53.85pt;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">1.0000</td>
</tr>
</tbody>
</table>
</alternatives>
<attrib>Source: Created by the authors.</attrib>
</table-wrap>
</p>
<p>This value will be adjusted in the inverters to ensure an efficient operation of the network at that hour of the day. It can be observed that, for this case, two PV sources located on nodes 7 and 13 set their power factor to a value lower than one, which is due to an increase in the reactive power needs of the loads located near said nodes, which are supplied by the inverters of the sources.</p>
</sec>
<sec>
<title>
<bold>3.3   Case 3 – 12:00 m.</bold>
</title>
<p>This case was evaluated at 12:00 p.m. with a computational time of 11.5454 seconds. In this case, the radiation level is higher than in cases 1 and 2. As shown in <xref ref-type="fig" rid="gf2">Figure 2</xref>, the amount of data was enough to fit all the five proposed scenarios. In <xref ref-type="fig" rid="gf5">Figure 5</xref>, graphs (a) and (b) plot the possible power factors for generation units 1 and 3 as an outcome of the optimization algorithm. The number of power factors presented in the graph are related to the level of radiation and the frequency of occurrence obtained at midday (five scenarios: 127.3 W/m<sup>2</sup>, 381.9 W/m<sup>2</sup>, 636.5 W/m<sup>2</sup>, 891.1 W/m<sup>2</sup>, and 1145.7 W/m<sup>2</sup>). <xref ref-type="table" rid="gt12">Table 3</xref> presents the result of (<xref ref-type="disp-formula" rid="e19">13</xref>), which represents the sum of the power factors by their frequency of occurrence, thus yielding the result of the expected value of the PF for each solar generation inverter unit. This value will be adjusted in the inverters to ensure an efficient operation of the network at that hour of the day. As in the previous case, the sources connected to nodes 7 and 13 reduce their power factor because of more oversized loads and due to the fact that they are connected near said generation nodes, so their PF is altered since it must supply the necessary reactive power to feed the load.</p>
<p>
<fig id="gf5">
<label>Figure 5.</label>
<caption>
<title>Possible power factor for phase 12 p.m.: (a) generator 1φ, node 2; (b) generator 3φ, node 13</title>
</caption>
<alt-text>Figure 5.  Possible power factor for phase 12 p.m.: (a) generator 1φ, node 2; (b) generator 3φ, node 13</alt-text>
<graphic xlink:href="344272383003_gf6.png" position="anchor" orientation="portrait"/>
<attrib>Source: Created by authors.</attrib>
</fig>
</p>
<p>
<table-wrap id="gt12">
<label>Table 3</label>
<caption>
<title>Expected Reactive Power for Case 3 Source Created by the authors</title>
</caption>
<alt-text>Table 3 Expected Reactive Power for Case 3 Source Created by the authors</alt-text>
<alternatives>
<graphic xlink:href="344272383003_gt5.png" position="anchor" orientation="portrait"/>
<table style="border-collapse:collapse;border:none;" id="gt5-526564616c7963">
<tbody>
<tr style="height:18.7pt">
<td style="width:2.0cm;border-top:solid windowtext 1.0pt;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:none;padding:   0cm 5.4pt 0cm 5.4pt;height:18.7pt">Generator</td>
<td style="width:2.0cm;border-top:solid windowtext 1.0pt;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:none;padding:   0cm 5.4pt 0cm 5.4pt;height:18.7pt">Node</td>
<td style="width:2.0cm;border-top:solid windowtext 1.0pt;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:none;padding:   0cm 5.4pt 0cm 5.4pt;height:18.7pt">Phase</td>
<td style="width:2.0cm;border-top:solid windowtext 1.0pt;border-left:   none;border-bottom:solid windowtext 1.0pt;border-right:none;padding:   0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>E<sub>φ</sub>
</italic>
</td>
</tr>
<tr style="height:18.7pt">
<td style="width:2.0cm;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>1<sub>1</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:2.0cm;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">2</td>
<td style="width:2.0cm;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">A</td>
<td style="width:2.0cm;border:none;   padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">1.0000</td>
</tr>
<tr style="height:18.7pt">
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>1<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">7</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">0.9951</td>
</tr>
<tr style="height:18.7pt">
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">
<italic>2<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">13</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">ABC</td>
<td style="width:2.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:18.7pt">0.8662</td>
</tr>
<tr style="height:18.7pt">
<td style="width:2.0cm;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">
<italic>3<sub>3</sub>
</italic>
<italic>
<sub>∅</sub>
</italic>
</td>
<td style="width:2.0cm;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">18</td>
<td style="width:2.0cm;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">ABC</td>
<td style="width:2.0cm;border:none;border-bottom:solid windowtext 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt;   height:18.7pt">1.0000</td>
</tr>
</tbody>
</table>
</alternatives>
<attrib>Source: Created by the authors.</attrib>
</table-wrap>
</p>
</sec>
</sec>
<sec>
<title>
<bold>4.     CONCLUSIONS</bold>
</title>
<p>The development of an alternative methodology for reactive power management in microgrids was presented in this document. This methodology allows using linearized models, stochastic analysis, and convex optimization, the use of the capability of PV inverters to be programmed with a set of multiple power factor values which will change throughout the day. Traditionally, the main idea in power systems is to have a unitary power factor, which represents a completely resistive load. However, in the real world, there is no completely resistive load due to the multiple devices that inject or consume reactive power.</p>
<p>With this in mind, it was found that, in small microgrids with a high inclusion of photovoltaic generation, as the magnitude of the radiation increases during the day, photovoltaic sources increase their active power, but the power inverters tend to decrease their power factor to values lower than a unitary power factor. This implies an injection of reactive power from the sources to the grid to supply the load needs, which change over time. This injection of reactive power helps to reduce losses, increase the power transmission of the grid, and improve the voltage profiles.</p>
<p>An optimal setting of the power factor in multiple power inverters may replace the function of some capacitor banks or other reactive compensation devices in a microgrid. Moreover, our methodology allows to effectively set the power factor behavior of the sources with previous study of the grid and load for hourly operation throughout the day and year without the need for a master controller or communication devices that could increase the cost of the microgrid, making the small-scale use of these technologies viable.</p>
</sec>
</body>
<back>
<ack>
<title>Acknowledgments</title>
<p>We would like to thank the research groups, and Electrical and Computing Engineering faculties of Universidad Nacional Autónoma de Mexico, Universidad Distrital Francisco José de Caldas, and Universidad Tecnológica de Pereira. The Project did not receive funding from any public or private institution.</p>
</ack>
<ref-list>
<title>
<bold>REFERENCES</bold>
</title>
<ref id="redalyc_344272383003_ref1">
<label>[1]</label>
<mixed-citation>[1]        W. Y. Atmaja, M. P. Lesnanto, and E. Y. Pramono, “Hosting Capacity Improvement Using Reactive Power Control Strategy of Rooftop PV Inverters,” In <italic>2019 IEEE 7<sup>th</sup> International Conference on Smart Energy Grid Engineering (SEGE),</italic> Oshawa, Canada: SEGE, Aug. 2019, pp. 213-217. IEEE, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/SEGE.2019.8859888">https://doi.org/10.1109/SEGE.2019.8859888</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Atmaja</surname>
<given-names>W. Y.</given-names>
</name>
<name>
<surname>Lesnanto</surname>
<given-names>M. P.</given-names>
</name>
<name>
<surname>Pramono</surname>
<given-names>E. Y.</given-names>
</name>
</person-group>
<source>Hosting Capacity Improvement Using Reactive Power Control Strategy of Rooftop PV Inverters</source>
<year>2019</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/SEGE.2019.8859888">https://doi.org/10.1109/SEGE.2019.8859888</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref2">
<label>[2]</label>
<mixed-citation>[2]        M. Rabiul-Islam, A. M. Mahfuz-Ur-Rahman, K. M. Muttaqi, and D. Sutanto, “State-of-The-Art of the Medium-Voltage Power Converter Technologies for Grid Integration of Solar Photovoltaic Power Plants,” <italic>IEEE Transactions on Energy Conversion</italic>, vol. 34, no. 1, pp. 372–384, Mar. 2019, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TEC.2018.2878885">https://doi.org/10.1109/TEC.2018.2878885</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rabiul-Islam</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Mahfuz-Ur-Rahman</surname>
<given-names>A. M.</given-names>
</name>
<name>
<surname>Muttaqi</surname>
<given-names>K. M.</given-names>
</name>
<name>
<surname>Sutanto</surname>
<given-names>D.</given-names>
</name>
</person-group>
<article-title>State-of-The-Art of the Medium-Voltage Power Converter Technologies for Grid Integration of Solar Photovoltaic Power Plants</article-title>
<source>IEEE Transactions on Energy Conversion</source>
<year>2018</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TEC.2018.2878885">https://doi.org/10.1109/TEC.2018.2878885</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref3">
<label>[3]</label>
<mixed-citation>[3]        S. Amara and H. Abdallah-Hsan, "Power system stability improvement by FACTS devices: A comparison between STATCOM, SSSC and UPFC," in <italic>2012 First International Conference on Renewable Energies and Vehicular Technology</italic>, Nabeul, Tunisia: March 2012, pp. 360-365, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/REVET.2012.6195297">https://doi.org/10.1109/REVET.2012.6195297</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Amara and H. Abdallah-Hsan</surname>
<given-names>S.</given-names>
</name>
</person-group>
<source>Power system stability improvement by FACTS devices: A comparison between STATCOM, SSSC and UPFC</source>
<year>2012</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/REVET.2012.6195297">https://doi.org/10.1109/REVET.2012.6195297</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref4">
<label>[4]</label>
<mixed-citation>[4]        C. Ángeles-Camacho, and F. Bañuelos-Ruedas, "FACTS: Its Role in the Connection of Wind Power to Power Networks", in <italic>Wind Farm - Impact in Power System and Alternatives to Improve the Integration</italic>. London, United Kingdom: IntechOpen, 2011, pp. 93-108. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5772/21200">https://doi.org/10.5772/21200</ext-link>
</mixed-citation>
<element-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Ángeles-Camacho</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Bañuelos-Ruedas</surname>
<given-names>F.</given-names>
</name>
</person-group>
<source>Wind Farm - Impact in Power System and Alternatives to Improve the Integration</source>
<year>2011</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5772/21200">https://doi.org/10.5772/21200</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref5">
<label>[5]</label>
<mixed-citation>[5]        W. Lu, S. Lang, L. Zhou, H. H. C. Iu, and T. Fernando, “Improvement of stability and power factor in PCM controlled boost PFC converter with hybrid dynamic compensation,” <italic>IEEE Transactions on Circuits and Systems I: Regular Papers</italic>, vol. 62, no. 1, pp. 320–328, Jan. 2015, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TCSI.2014.2346111">https://doi.org/10.1109/TCSI.2014.2346111</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lang</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Iu</surname>
<given-names>H. H. C.</given-names>
</name>
<name>
<surname>Fernando</surname>
<given-names>T.</given-names>
</name>
</person-group>
<article-title>Improvement of stability and power factor in PCM controlled boost PFC converter with hybrid dynamic compensation</article-title>
<source>IEEE Transactions on Circuits and Systems I: Regular Papers</source>
<year>2014</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TCSI.2014.2346111">https://doi.org/10.1109/TCSI.2014.2346111</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref6">
<label>[6]</label>
<mixed-citation>[6]        N. Hatziargyriou, S. Papathanassiou, S. Papathanassiou, N. Hatziargyriou, and K. Strunz, “A benchmark low voltage microgrid network.” in <italic>Proceedings of the CIGRE symposium: power systems with dispersed generation</italic>, Athens, 01 2005, pp. 1-8. <ext-link ext-link-type="uri" xlink:href="https://www.researchgate.net/profile/NikosHatziargyriou/publication/237305036_A_Benchmark_Low_Voltage_Microgrid_Network/links/00b7d5269306c54780000000/A-Benchmark-Low-Voltage-Microgrid-Network.pdf">https://www.researchgate.net/profile/NikosHatziargyriou/publication/237305036_A_Benchmark_Low_Voltage_Microgrid_Network/links/00b7d5269306c54780000000/A-Benchmark-Low-Voltage-Microgrid-Network.pdf</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Hatziargyriou</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Papathanassiou</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Papathanassiou</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Hatziargyriou</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Strunz</surname>
<given-names>K.</given-names>
</name>
</person-group>
<source>A benchmark low voltage microgrid network</source>
<year>2005</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://www.researchgate.net/profile/NikosHatziargyriou/publication/237305036_A_Benchmark_Low_Voltage_Microgrid_Network/links/00b7d5269306c54780000000/A-Benchmark-Low-Voltage-Microgrid-Network.pdf">https://www.researchgate.net/profile/NikosHatziargyriou/publication/237305036_A_Benchmark_Low_Voltage_Microgrid_Network/links/00b7d5269306c54780000000/A-Benchmark-Low-Voltage-Microgrid-Network.pdf</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref7">
<label>[7]</label>
<mixed-citation>[7]        A. Garcés, W. Gil-González, O. D. Montoya, H. R. Chamorro, and L. Alvarado-Barrios, “A Mixed-Integer Quadratic Formulation of the Phase-Balancing Problem in Residential Microgrids,” <italic>Applied Sciences</italic>, vol. 11, no. 5, pp. 1972, Feb. 2021, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/app11051972">https://doi.org/10.3390/app11051972</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Garcés</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Gil-González</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Montoya</surname>
<given-names>O. D.</given-names>
</name>
<name>
<surname>Chamorro</surname>
<given-names>H. R.</given-names>
</name>
<name>
<surname>Alvarado-Barrios</surname>
<given-names>L.</given-names>
</name>
</person-group>
<article-title>A Mixed-Integer Quadratic Formulation of the Phase-Balancing Problem in Residential Microgrids</article-title>
<source>Applied Sciences</source>
<year>2021</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/app11051972">https://doi.org/10.3390/app11051972</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref8">
<label>[8]</label>
<mixed-citation>[8]        M. Hamzeh, H. Mokhtari, and H. Karimi, “A decentralized self-adjusting control strategy for reactive power management in an islanded multi-bus MV microgrid,” <italic>Canadian Journal of Electrical and Computer Engineering</italic>, vol. 36, no. 1, pp. 18–25, 2013, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/CJECE.2013.6544468">https://doi.org/10.1109/CJECE.2013.6544468</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hamzeh</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Mokhtari</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Karimi</surname>
<given-names>H.</given-names>
</name>
</person-group>
<article-title>A decentralized self-adjusting control strategy for reactive power management in an islanded multi-bus MV microgrid</article-title>
<source>Canadian Journal of Electrical and Computer Engineering</source>
<year>2013</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/CJECE.2013.6544468">https://doi.org/10.1109/CJECE.2013.6544468</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref9">
<label>[9]</label>
<mixed-citation>[9]        S. Bolognani and S. Zampieri, “A distributed control strategy for reactive power compensation in smart microgrids,” <italic>IEEE Transactions on Automatic Control</italic>, vol. 58, no. 11, pp. 2818–2833, 2013, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TAC.2013.2270317">https://doi.org/10.1109/TAC.2013.2270317</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bolognani and S. Zampieri</surname>
<given-names>S.</given-names>
</name>
</person-group>
<article-title>A distributed control strategy for reactive power compensation in smart microgrids</article-title>
<source>IEEE Transactions on Automatic Control</source>
<year>2013</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TAC.2013.2270317">https://doi.org/10.1109/TAC.2013.2270317</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref10">
<label>[10]</label>
<mixed-citation>[10]     Y. Zhu, F. Zhuo, F. Wang, B. Liu, R. Gou, and Y. Zhao, “A virtual impedance optimization method for reactive power sharing in networked microgrid,” <italic>IEEE Transactions on Power Electronics</italic>, vol. 31, no. 4, pp. 2890–2904, Apr. 2016, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPEL.2015.2450360">https://doi.org/10.1109/TPEL.2015.2450360</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhuo</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Gou</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Zhao</surname>
<given-names>Y.</given-names>
</name>
</person-group>
<article-title>A virtual impedance optimization method for reactive power sharing in networked microgrid</article-title>
<source>IEEE Transactions on Power Electronics</source>
<year>2015</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPEL.2015.2450360">https://doi.org/10.1109/TPEL.2015.2450360</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref11">
<label>[11]</label>
<mixed-citation>[11]     M. A. Arif, M. Ndoye, G. V. Murphy, and K. Aganah, “A stochastic game framework for reactive power reserve optimization and voltage profile improvement,” in <italic>2017 19th International Conference on Intelligent System Application to Power Systems (ISAP)</italic>, San Antonio TX, Sep. 2017, pp. 1–6. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ISAP.2017.8071372">https://doi.org/10.1109/ISAP.2017.8071372</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Arif</surname>
<given-names>M. A.</given-names>
</name>
<name>
<surname>Ndoye</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Murphy</surname>
<given-names>G. V.</given-names>
</name>
<name>
<surname>Aganah</surname>
<given-names>K.</given-names>
</name>
</person-group>
<source>A stochastic game framework for reactive power reserve optimization and voltage profile improvement</source>
<year>2017</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ISAP.2017.8071372">https://doi.org/10.1109/ISAP.2017.8071372</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref12">
<label>[12]</label>
<mixed-citation>[12]     Y. Wang, X. Wang, Z. Chen, and F. Blaabjerg, “Distributed optimal control of reactive power and voltage in islanded microgrids,” in <italic>Conference Proceedings - IEEE Applied Power Electronics Conference and Exposition - APEC</italic>, May 2016, vol. 2016-May, pp. 3431–3438. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/APEC.2016.7468360">https://doi.org/10.1109/APEC.2016.7468360</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Blaabjerg</surname>
<given-names>F.</given-names>
</name>
</person-group>
<source>Distributed optimal control of reactive power and voltage in islanded microgrids</source>
<year>2016</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/APEC.2016.7468360">https://doi.org/10.1109/APEC.2016.7468360</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref13">
<label>[13]</label>
<mixed-citation>[13]     Y. Han, H. Li, P. Shen, E. A. A. Coelho, and J. M. Guerrero, “Review of Active and Reactive Power Sharing Strategies in Hierarchical Controlled Microgrids,” <italic>IEEE Transactions on Power Electronics</italic>, vol. 32, no. 3, pp. 2427–2451, Mar. 01, 2017. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPEL.2016.2569597">https://doi.org/10.1109/TPEL.2016.2569597</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Han</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Shen</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Coelho</surname>
<given-names>E. A. A.</given-names>
</name>
<name>
<surname>Guerrero</surname>
<given-names>J. M.</given-names>
</name>
</person-group>
<article-title>Review of Active and Reactive Power Sharing Strategies in Hierarchical Controlled Microgrids</article-title>
<source>IEEE Transactions on Power Electronics</source>
<year>2016</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPEL.2016.2569597">https://doi.org/10.1109/TPEL.2016.2569597</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref14">
<label>[14]</label>
<mixed-citation>[14]     H. Morais, T. Sousa, P. Faria and Z. Vale, "Reactive power management strategies in future smart grids," in <italic>2013 IEEE Power &amp; Energy Society General Meeting</italic>, 2013, pp. 1-5. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/PESMG.2013.6672332">https://doi.org/10.1109/PESMG.2013.6672332</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Morais</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Sousa</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Faria and Z. Vale</surname>
<given-names>P.</given-names>
</name>
</person-group>
<source>Reactive power management strategies in future smart grids</source>
<year>2013</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/PESMG.2013.6672332">https://doi.org/10.1109/PESMG.2013.6672332</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref15">
<label>[15]</label>
<mixed-citation>[15]     A. Águila-Téllez, G. L. Opez, I. Isaac, and J. W. Gonz Alez, “Optimal reactive power compensation in electrical distribution systems with distributed resources. Review,” <italic>Heliyon</italic>, 2018, vol. 4, p. 746. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.heliyon.2018.e00746">https://doi.org/10.1016/j.heliyon.2018.e00746</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Águila-Téllez</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Opez</surname>
<given-names>G. L.</given-names>
</name>
<name>
<surname>Isaac</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Gonz Alez</surname>
<given-names>J. W.</given-names>
</name>
</person-group>
<article-title>Optimal reactive power compensation in electrical distribution systems with distributed resources. Review</article-title>
<source>Heliyon</source>
<year>2018</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.heliyon.2018.e00746">https://doi.org/10.1016/j.heliyon.2018.e00746</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref16">
<label>[16]</label>
<mixed-citation>[16]     V. Kekatos, G. Wang, A. J. Conejo, and G. B. Giannakis, “Stochastic Reactive Power Management in Microgrids with Renewables,” <italic>IEEE Transactions on Power Systems</italic>, vol. 30, no. 6, pp. 3386–3395, Nov. 2015, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRS.2014.2369452">https://doi.org/10.1109/TPWRS.2014.2369452</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kekatos</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Conejo</surname>
<given-names>A. J.</given-names>
</name>
<name>
<surname>Giannakis</surname>
<given-names>G. B.</given-names>
</name>
</person-group>
<article-title>Stochastic Reactive Power Management in Microgrids with Renewables</article-title>
<source>IEEE Transactions on Power Systems</source>
<year>2014</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRS.2014.2369452">https://doi.org/10.1109/TPWRS.2014.2369452</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref17">
<label>[17]</label>
<mixed-citation>[17]     S. M. Mohseni‐Bonab and A. Rabiee, “Optimal reactive power dispatch: a review, and a new stochastic voltage stability constrained multi‐objective model at the presence of uncertain wind power generation”. <italic>IET Generation, Transmission &amp; Distribution</italic>, vol. 11, no. 4, pp. 815-829, March 2017. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1049/iet-gtd.2016.1545">https://doi.org/10.1049/iet-gtd.2016.1545</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mohseni‐Bonab and A. Rabiee</surname>
<given-names>S. M.</given-names>
</name>
</person-group>
<article-title>Optimal reactive power dispatch: a review, and a new stochastic voltage stability constrained multi‐objective model at the presence of uncertain wind power generation</article-title>
<source>IET Generation, Transmission &amp; Distribution</source>
<year>2016</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1049/iet-gtd.2016.1545">https://doi.org/10.1049/iet-gtd.2016.1545</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref18">
<label>[18]</label>
<mixed-citation>[18]     M. Ghaljehei, Z. Soltani, J. Lin, G. B. Gharehpetian, and M. A. Golkar, “Stochastic multi-objective optimal energy and reactive power dispatch considering cost, loading margin and coordinated reactive power reserve management,” <italic>Electric Power Systems Research</italic>, vol. 166, pp. 163–177, Jan. 2019, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/J.EPSR.2018.10.009">https://doi.org/10.1016/J.EPSR.2018.10.009</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ghaljehei</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Soltani</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Lin</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Gharehpetian</surname>
<given-names>G. B.</given-names>
</name>
<name>
<surname>Golkar</surname>
<given-names>M. A.</given-names>
</name>
</person-group>
<article-title>Stochastic multi-objective optimal energy and reactive power dispatch considering cost, loading margin and coordinated reactive power reserve management</article-title>
<source>Electric Power Systems Research</source>
<year>2018</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/J.EPSR.2018.10.009">https://doi.org/10.1016/J.EPSR.2018.10.009</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref19">
<label>[19]</label>
<mixed-citation>[19]     M. Nazmul, I. Sarkar, G. Meegahapola, M. Datta, and L. G. Meegahapola, “Reactive Power Management in Renewable Rich Power Grids: A Review of Grid-Codes, Renewable Generators, Support Devices, Control Strategies and Optimization Algorithms,” <italic>IEEE Access</italic>, vol. 6, pp. 41458-41489, Aug. 2018, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ACCESS.2018.2838563">https://doi.org/10.1109/ACCESS.2018.2838563</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nazmul</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Sarkar</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Meegahapola</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Datta</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Meegahapola</surname>
<given-names>L. G.</given-names>
</name>
</person-group>
<article-title>Reactive Power Management in Renewable Rich Power Grids: A Review of Grid-Codes, Renewable Generators, Support Devices, Control Strategies and Optimization Algorithms</article-title>
<source>IEEE Access</source>
<year>2018</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ACCESS.2018.2838563">https://doi.org/10.1109/ACCESS.2018.2838563</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref20">
<label>[20]</label>
<mixed-citation>[20]     J. F. Gómez-González <italic>et al.</italic>, “Reactive power management in photovoltaic installations connected to low-voltage grids to avoid active power curtailment,” <italic>Renewable Energy and Power Quality Journal</italic>, vol. 1, no. 16, pp. 5–11, Apr. 2018, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.24084/repqj16.003">https://doi.org/10.24084/repqj16.003</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gómez-González et al</surname>
<given-names>J. F.</given-names>
</name>
</person-group>
<article-title>Reactive power management in photovoltaic installations connected to low-voltage grids to avoid active power curtailment</article-title>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref21">
<label>[21]</label>
<mixed-citation>[21]     A. Shaker, A. Safari, and M. Shahidehpour, “Reactive Power Management for Networked Microgrid Resilience in Extreme Conditions,” <italic>IEEE Transactions On Smart Grid</italic>, vol. 12, no. 5, pp. 3940–3953, Sept. 2021, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TSG.2021.3068049">https://doi.org/10.1109/TSG.2021.3068049</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shaker</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Safari</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Shahidehpour</surname>
<given-names>M.</given-names>
</name>
</person-group>
<article-title>Reactive Power Management for Networked Microgrid Resilience in Extreme Conditions</article-title>
<source>IEEE Transactions On Smart Grid</source>
<year>2021</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TSG.2021.3068049">https://doi.org/10.1109/TSG.2021.3068049</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref22">
<label>[22]</label>
<mixed-citation>[22]     T. Abreu, T. Soares, L. Carvalho, H. Morais, T. Simão, and M. Louro, “Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks,” <italic>Energies</italic>, vol. 12, no. 21, p. 4028, Oct. 2019, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/en12214028">https://doi.org/10.3390/en12214028</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Abreu</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Soares</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Carvalho</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Morais</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Simão</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Louro</surname>
<given-names>M.</given-names>
</name>
</person-group>
<article-title>Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks</article-title>
<source>Energies</source>
<year>2019</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/en12214028">https://doi.org/10.3390/en12214028</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref23">
<label>[23]</label>
<mixed-citation>[23]     S. Souri, H. M. Shourkaei, S. Soleymani, and B. Mozafari, “Flexible reactive power management using PV inverter overrating capabilities and fixed capacitor,” <italic>Electric Power Systems Research</italic>, vol. 209, p. 107927, Aug. 2022, <ext-link ext-link-type="uri" xlink:href="http://doi.org/10.1016/J.EPSR.2022.107927">http://doi.org/10.1016/J.EPSR.2022.107927</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Souri</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Shourkaei</surname>
<given-names>H. M.</given-names>
</name>
<name>
<surname>Soleymani</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Mozafari</surname>
<given-names>B.</given-names>
</name>
</person-group>
<article-title>Flexible reactive power management using PV inverter overrating capabilities and fixed capacitor</article-title>
<source>Electric Power Systems Research</source>
<year>2022</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="http://doi.org/10.1016/J.EPSR.2022.107927">http://doi.org/10.1016/J.EPSR.2022.107927</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref24">
<label>[24]</label>
<mixed-citation>[24]     A. Mehbodniya, A. Paeizi, M. Rezaie, M. Azimian, H. Masrur, and T. Senjyu, “Active and Reactive Power Management in the Smart Distribution Network Enriched with Wind Turbines and Photovoltaic Systems,” <italic>Sustainability, </italic>vol. 14, no. 7, p. 4273, April 2022, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/su14074273">https://doi.org/10.3390/su14074273</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mehbodniya</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Paeizi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Rezaie</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Azimian</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Masrur</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Senjyu</surname>
<given-names>T.</given-names>
</name>
</person-group>
<article-title>Active and Reactive Power Management in the Smart Distribution Network Enriched with Wind Turbines and Photovoltaic Systems</article-title>
<source>Sustainability</source>
<year>2022</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/su14074273">https://doi.org/10.3390/su14074273</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref25">
<label>[25]</label>
<mixed-citation>[25]     D. A. Ramírez, A. Garcés, and J. Mora-Florez, "A Wirtinger Linearization for the Power Flow in Microgrids," in <italic>2019 IEEE Power &amp; Energy Society General Meeting (PESGM)</italic>, Atlanta, 2019, pp. 1-5, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/PESGM40551.2019.8973647">https://doi.org/10.1109/PESGM40551.2019.8973647</ext-link>
</mixed-citation>
<element-citation publication-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Ramírez</surname>
<given-names>D. A.</given-names>
</name>
<name>
<surname>Garcés</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Mora-Florez</surname>
<given-names>J.</given-names>
</name>
</person-group>
<source>A Wirtinger Linearization for the Power Flow in Microgrids</source>
<year>2019</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/PESGM40551.2019.8973647">https://doi.org/10.1109/PESGM40551.2019.8973647</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref26">
<label>[26]</label>
<mixed-citation>[26]     S. P. Boyd and Lieven. Vandenberghe, <italic>Convex optimization</italic>. 1<sup>st</sup> ed., Cambridge University Press, 2004. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1017/CBO9780511804441">https://doi.org/10.1017/CBO9780511804441</ext-link>
</mixed-citation>
<element-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Boyd</surname>
<given-names>S. P.</given-names>
</name>
<name>
<surname>Vandenberghe</surname>
<given-names>L.</given-names>
</name>
</person-group>
<source>Convex optimization</source>
<year>2004</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1017/CBO9780511804441">https://doi.org/10.1017/CBO9780511804441</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref27">
<label>[27]</label>
<mixed-citation>[27]     S. Bolognani and S. Zampieri, “On the existence and linear approximation of the power flow solution in power distribution networks,” <italic>IEEE Transactions on Power Systems</italic>, vol. 31, no. 1, pp. 163–172, Jan. 2016, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRS.2015.2395452">https://doi.org/10.1109/TPWRS.2015.2395452</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bolognani and S. Zampieri</surname>
<given-names>S.</given-names>
</name>
</person-group>
<article-title>On the existence and linear approximation of the power flow solution in power distribution networks</article-title>
<source>IEEE Transactions on Power Systems</source>
<year>2015</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRS.2015.2395452">https://doi.org/10.1109/TPWRS.2015.2395452</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref28">
<label>[28]</label>
<mixed-citation>[28]     J. R. Martí, H. Ahmadi, and L. Bashualdo, “Linear power-flow formulation based on a voltage-dependent load model,” <italic>IEEE Transactions on Power Delivery</italic>, vol. 28, no. 3, pp. 1682–1690, 2013, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRD.2013.2247068">https://doi.org/10.1109/TPWRD.2013.2247068</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Martí</surname>
<given-names>J. R.</given-names>
</name>
<name>
<surname>Ahmadi</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Bashualdo</surname>
<given-names>L.</given-names>
</name>
</person-group>
<article-title>Linear power-flow formulation based on a voltage-dependent load model</article-title>
<source>IEEE Transactions on Power Delivery</source>
<year>2013</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TPWRD.2013.2247068">https://doi.org/10.1109/TPWRD.2013.2247068</ext-link>
</comment>
</element-citation>
</ref>
<ref id="redalyc_344272383003_ref29">
<label>[29]</label>
<mixed-citation>[29]     Y. Wang, N. Zhang, H. Li, J. Yang, and C. Kang, “Linear three-phase power flow for unbalanced active distribution networks with PV nodes”. <italic>CSEE Journal of Power and Energy Systems</italic>, vol. 3, no. 3, pp. 321-324, Sept. 2017, <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.17775/CSEEJPES.2017.00240">https://doi.org/10.17775/CSEEJPES.2017.00240</ext-link>
</mixed-citation>
<element-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Kang</surname>
<given-names>C.</given-names>
</name>
</person-group>
<article-title>Linear three-phase power flow for unbalanced active distribution networks with PV nodes</article-title>
<source>CSEE Journal of Power and Energy Systems</source>
<year>2017</year>
<comment>
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.17775/CSEEJPES.2017.00240">https://doi.org/10.17775/CSEEJPES.2017.00240</ext-link>
</comment>
</element-citation>
</ref>
</ref-list>
<fn-group>
<title>Notes</title>
<fn id="fn14" fn-type="other">
<label>-</label>
<p>
<bold> CONFLICTS OF INTEREST </bold>
</p>
<p>The authors declare no financial, professional, or personal conflict of interest arising from the publication of this article.</p>
</fn>
<fn id="fn15" fn-type="other">
<label>-</label>
<p>
<bold>AUTHOR CONTRIBUTIONS</bold>
</p>
<p>
<list list-type="simple">
<list-item>
<p>Alexander Casilimas: Design and programming of mathematical algorithms and stochastic analysis.</p>
</list-item>
<list-item>
<p>Óscar Danilo Montoya: Test case development, edition of concepts and contents of the article.</p>
</list-item>
<list-item>
<p>Alejandro Garcés: Operative information of MATLAB CVX library and establishment of the methodology.</p>
</list-item>
<list-item>
<p>César Angeles Camacho: Review and editing of the different chapters of the document, theory, and recommendations on the development methodology.</p>
</list-item>
</list>
</p>
</fn>
</fn-group>
</back>
</article>