<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Energy Res.</journal-id>
<journal-title>Frontiers in Energy Research</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Energy Res.</abbrev-journal-title>
<issn pub-type="epub">2296-598X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1399114</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2024.1399114</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Energy Research</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>AC/DC optimal power flow and techno-economic assessment for hybrid microgrids: TIGON CEDER demonstrator</article-title>
<alt-title alt-title-type="left-running-head">Mart&#xed;n-Crespo et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fenrg.2024.1399114">10.3389/fenrg.2024.1399114</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Mart&#xed;n-Crespo</surname>
<given-names>Alejandro</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2633035/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Hern&#xe1;ndez-Serrano</surname>
<given-names>Alejandro</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Izquierdo-Monge</surname>
<given-names>&#xd3;scar</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Pe&#xf1;a-Carro</surname>
<given-names>Paula</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Hern&#xe1;ndez-Jim&#xe9;nez</surname>
<given-names>&#xc1;ngel</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Frechoso-Escudero</surname>
<given-names>Fernando</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Baeyens</surname>
<given-names>Enrique</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2801560/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Centro Tecnol&#xf3;gico CARTIF</institution>, <addr-line>Boecillo</addr-line>, <country>Spain</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>Centro de Desarrollo de Energ&#xed;as Renovables (CEDER)&#x2014;Centro de Investigaciones Energ&#xe9;ticas Medioambientales y T&#xe9;cnol&#xf3;gicas (CIEMAT)</institution>, <addr-line>Soria</addr-line>, <country>Spain</country>
</aff>
<aff id="aff3">
<sup>3</sup>
<institution>Departamento de Ingenier&#xed;a El&#xe9;ctrica</institution>, <institution>Escuela de Ingenier&#xed;as Industriales</institution>, <institution>Universidad de Valladolid</institution>, <addr-line>Valladolid</addr-line>, <country>Spain</country>
</aff>
<aff id="aff4">
<sup>4</sup>
<institution>Instituto de las Tecnolog&#xed;as Avanzadas de la Producci&#xf3;n</institution>, <institution>Universidad de Valladolid</institution>, <addr-line>Valladolid</addr-line>, <country>Spain</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1500944/overview">George Tsekouras</ext-link>, University of West Attica, Greece</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2298290/overview">Pavlos Georgilakis</ext-link>, National Technical University of Athens, Greece</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2778518/overview">Roberto Faranda</ext-link>, Polytechnic University of Milan, Italy</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Alejandro Mart&#xed;n-Crespo, <email>alemar@cartif.es</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>30</day>
<month>08</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>12</volume>
<elocation-id>1399114</elocation-id>
<history>
<date date-type="received">
<day>11</day>
<month>03</month>
<year>2024</year>
</date>
<date date-type="accepted">
<day>31</day>
<month>07</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2024 Mart&#xed;n-Crespo, Hern&#xe1;ndez-Serrano, Izquierdo-Monge, Pe&#xf1;a-Carro, Hern&#xe1;ndez-Jim&#xe9;nez, Frechoso-Escudero and Baeyens.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Mart&#xed;n-Crespo, Hern&#xe1;ndez-Serrano, Izquierdo-Monge, Pe&#xf1;a-Carro, Hern&#xe1;ndez-Jim&#xe9;nez, Frechoso-Escudero and Baeyens</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<p>In recent years, the interest in electric direct current (DC) technologies (such as converters, batteries, and electric vehicles) has increased due to their potential in energy efficiency and sustainability. However, the vast majority of electric systems and networks are based on alternating current (AC) as they also have certain advantages regarding cost-effective transport and robustness. In this paper, an AC/DC optimal power flow method for hybrid microgrids and several key performance indicators (KPIs) for its techno-economic assessment are presented. The combination of both calculations allows users to determine the viability of their hybrid microgrids. AC/DC networks have been modeled considering their most common elements. For the power flow method, polynomial optimization is formulated considering four different objective functions: the minimization of energy losses, voltage deviation, and operational costs and the maximization of the microgrid generation. The power flow method and the techno&#x2013;economic analysis are implemented in Python and validated in the Centro de Desarrollo de Energ&#xed;as Renovables (CEDER) demonstrator for TIGON. The results show that the calculated power flow variables and those measured at CEDER are practically the same. In addition, the KPIs are obtained and compared for four operating scenarios: baseline, no battery, battery flexibility, and virtual battery (VB) flexibility. The last scenario results in the most profitable option.</p>
</abstract>
<kwd-group>
<kwd>AC/DC optimal power flow</kwd>
<kwd>hybrid microgrids</kwd>
<kwd>key performance indicators</kwd>
<kwd>techno-economic assessment</kwd>
<kwd>polynomial optimization</kwd>
<kwd>Python</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Smart Grids</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>The global shift toward decarbonization has propelled significant transformations in the design, operation, and management of electric grids. The urgent need to mitigate climate change has led to the adoption of renewable energy sources and the phasing out of fossil fuel-based power generation, resulting in a paradigm shift in the electricity sector. The integration of variable renewable sources, such as solar and wind, presents unique challenges due to their intermittent nature and geographical distribution. As a result, electric grids have witnessed a remarkable transition toward more dynamic, flexible, and intelligent systems.</p>
<p>Microgrids (<xref ref-type="bibr" rid="B14">Lasseter, 2002</xref>; <xref ref-type="bibr" rid="B11">Hatziargyriou et al., 2007</xref>; <xref ref-type="bibr" rid="B12">Katiraei et al., 2008</xref>; <xref ref-type="bibr" rid="B27">Salam et al., 2008</xref>; <xref ref-type="bibr" rid="B25">Saeed et al., 2021</xref>) are localized and self-contained electricity distribution systems. They have gained prominence due to their ability to effectively integrate distributed energy resources (DERs). DERs include small-scale renewable energy installations, energy storage systems, and demand response capabilities. Microgrids provide an innovative solution to enhance the resilience, reliability, and sustainability of the electric grid at a smaller scale while offering opportunities for local energy generation, utilization, and management. In general, microgrids can work as an island or connected to the main power network, which acts as an external grid (<xref ref-type="bibr" rid="B15">Marnay et al., 2015</xref>).</p>
<p>Furthermore, the choice between alternating current (AC) and direct current (DC) elements within microgrids has become a subject of considerable interest (<xref ref-type="bibr" rid="B34">Wang et al., 2013</xref>). While AC has historically been the dominant standard for power transmission and distribution, recent advancements in DC technologies, such as state-of-the-art batteries and electric vehicles (EVs), have brought attention to these systems (<xref ref-type="bibr" rid="B30">Shao and Agelidis, 2010</xref>; <xref ref-type="bibr" rid="B31">Shi et al., 2017</xref>; <xref ref-type="bibr" rid="B10">Fotopoulou et al., 2021</xref>).</p>
<p>In microgrids, where local generation and consumption are tightly integrated, DC elements offer several benefits (<xref ref-type="bibr" rid="B26">Saeedifard et al., 2010</xref>; <xref ref-type="bibr" rid="B23">Rauf et al., 2016</xref>; <xref ref-type="bibr" rid="B35">Zubieta, 2016</xref>; <xref ref-type="bibr" rid="B21">Pires et al., 2023</xref>). First, DC distribution systems enable higher efficiency in the utilization of renewable energy sources. Most renewable energy technologies, such as solar panels and batteries, inherently generate and store DC power. By directly integrating these DC sources into the microgrid without the need for AC/DC conversions, energy losses associated with multiple conversions can be minimized, resulting in improved overall system efficiency. Moreover, DC systems offer increased flexibility for the integration of emerging technologies. As the demand for EVs grows, the DC charging infrastructure becomes crucial. DC microgrids can seamlessly accommodate EV charging stations without the need for additional power conversion equipment, reducing infrastructure costs and improving charging efficiency (<xref ref-type="bibr" rid="B6">Ashique et al., 2017</xref>).</p>
<p>Despite that, AC technologies still offer certain advantages that make them relevant and preferred in specific aspects of microgrid design and operation. For instance, high-voltage AC transmission systems inherently offer better voltage control than DC through reactive power, they are easier to isolate and interrupt in the case of faults, and the existing infrastructure is more abundant. In the end, both AC and DC technologies have their unique advantages and limitations, and their selection should be based on the careful evaluation and analysis of the specific circumstances. In this context, hybrid AC/DC microgrids emerge as a suitable solution for the transition to an electricity system with reduced or zero greenhouse gas emissions, taking advantage of the benefits of both forms of electricity current. One example of a project that seeks to maximize the benefits of these networks is the Horizon 2020 European project called Towards Intelligent DC-based hybrid Grids Optimizing the Network performance (TIGON). It also aims to improve the reliability, resilience, performance, and cost efficiency of hybrid AC/DC grids.</p>
<p>The main contribution of this article is the development of a procedure to study and evaluate the correct operation and the technical and economic feasibility of hybrid microgrid installations. The developed procedure consists of two components. The first component is a power flow calculation method for hybrid AC/DC microgrids based on optimization. The power flow can be performed by choosing among four different cost functions, depending on the objective to be achieved. The method is based on the recent literature on both AC and DC load flows (<xref ref-type="bibr" rid="B2">Agundis-Tinajero et al., 2018</xref>, <xref ref-type="bibr" rid="B3">2019</xref>; <xref ref-type="bibr" rid="B32">Tinajero et al., 2021</xref>; <xref ref-type="bibr" rid="B8">Chopra et al., 2022</xref>) but differs from them by including a larger number of elements and a different formulation. The second component is a techno-economic evaluation based on key performance indicators (KPIs). In this case, several references were used (<xref ref-type="bibr" rid="B29">Sartori et al., 2014</xref>; <xref ref-type="bibr" rid="B20">Papapetrou et al., 2017</xref>; <xref ref-type="bibr" rid="B1">Abadie and Chamorro, 2019</xref>; <xref ref-type="bibr" rid="B13">Kiran, 2022</xref>) although the methodology of this article differs as it is specifically adapted to hybrid AC/DC microgrids. Another contribution of the article is the validation of the developed procedure in a real hybrid microgrid located in the facilities of the Centro de Desarrollo de Energ&#xed;as Renovables (CEDER), which is part of the EU-funded TIGON project dedicated to the demonstration of innovations in hybrid microgrids for greener, more resilient, and safer power grids. The measurable variables in the CEDER hybrid AC/DC microgrid have been compared with the values obtained in the power flow simulation for validation, demonstrating the accuracy and validity of the developed procedure.</p>
<p>The remainder of this article is organized as follows: <xref ref-type="sec" rid="s2">Section 2</xref> presents the optimal power flow formulation and the possible objective functions that can be used for optimization. <xref ref-type="sec" rid="s3">Section 3</xref> presents the KPIs used for the techno-economic assessment. <xref ref-type="sec" rid="s4">Section 4</xref> details the characteristics of the TIGON CEDER demonstrator. <xref ref-type="sec" rid="s5">Section 5</xref> presents the experimental and simulation results for different operating scenarios. The conclusion is given in <xref ref-type="sec" rid="s6">Section 6</xref>. Finally, the microgrid model used for the AC/DC optimal power flow and the techno-economic analysis is detailed in Appendix A.</p>
</sec>
<sec id="s2">
<title>2 AC/DC optimal power flow</title>
<p>The AC/DC optimal power flow allows us to study the feasibility of the microgrid operation, self-consumption capability, load supply, and power losses.</p>
<sec id="s2-1">
<title>2.1 Formulation</title>
<p>The nomenclature used in the formulation of the problem is detailed at the end of the paper. All electrical variables are represented in phasor form. Consider an electrical network whose topology is represented by a graph <inline-formula id="inf1">
<mml:math id="m1">
<mml:mi mathvariant="script">G</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="script">B</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf2">
<mml:math id="m2">
<mml:mi mathvariant="script">B</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> is the set of buses (vertices) and <inline-formula id="inf3">
<mml:math id="m3">
<mml:mi mathvariant="script">L</mml:mi>
<mml:mo>&#x2282;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mspace width="0.1em"/>
<mml:mi mathvariant="script">B</mml:mi>
</mml:math>
</inline-formula> is the set of lines (edges). The lines are unordered pairs of buses <inline-formula id="inf4">
<mml:math id="m4">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf5">
<mml:math id="m5">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> and <inline-formula id="inf6">
<mml:math id="m6">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> are the pair of buses connected by the line.</p>
<p>A bus <inline-formula id="inf7">
<mml:math id="m7">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> is adjacent to another bus <inline-formula id="inf8">
<mml:math id="m8">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> if there is a line connecting them, i.e., if <inline-formula id="inf9">
<mml:math id="m9">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">L</mml:mi>
</mml:math>
</inline-formula>. The set of buses adjacent to bus <inline-formula id="inf10">
<mml:math id="m10">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> is denoted by <inline-formula id="inf11">
<mml:math id="m11">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and is defined as follows:<disp-formula id="e1">
<mml:math id="m12">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
<mml:mo stretchy="false">&#x2223;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">L</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>
</p>
<p>The state of the network variables is physically related (<xref ref-type="bibr" rid="B4">Alexander and Sadiku, 2013</xref>). First, the apparent power at each bus <inline-formula id="inf12">
<mml:math id="m13">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is expressed using <xref ref-type="disp-formula" rid="e2">Equation 2</xref>, where <inline-formula id="inf13">
<mml:math id="m14">
<mml:msubsup>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> is the complex conjugate of <inline-formula id="inf14">
<mml:math id="m15">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>.<disp-formula id="e2">
<mml:math id="m16">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mo>.</mml:mo>
</mml:math>
<label>(2)</label>
</disp-formula>
</p>
<p>
<inline-formula id="inf15">
<mml:math id="m17">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is an aggregation of currents, as stated in <xref ref-type="disp-formula" rid="e3">Equation 3</xref>.<disp-formula id="e3">
<mml:math id="m18">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:math>
<label>(3)</label>
</disp-formula>
</p>
<p>Both <inline-formula id="inf16">
<mml:math id="m19">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf17">
<mml:math id="m20">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> can be calculated using Ohm&#x2019;s law, as shown in <xref ref-type="disp-formula" rid="e4">Equations 4</xref>, <xref ref-type="disp-formula" rid="e5">5</xref>, respectively.<disp-formula id="e4">
<mml:math id="m21">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(4)</label>
</disp-formula>
<disp-formula id="e5">
<mml:math id="m22">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(5)</label>
</disp-formula>
</p>
<p>Power flow equations are obtained combining all the previous expressions. In the case of AC buses, the resulting expressions are <xref ref-type="disp-formula" rid="e6">Equations 6</xref>&#x2013;<xref ref-type="disp-formula" rid="e7">7</xref> (<xref ref-type="bibr" rid="B19">Montes and Castro, 1995</xref>; <xref ref-type="bibr" rid="B28">Samperio, 2023</xref>).<disp-formula id="e6">
<mml:math id="m23">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="[" close="">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="1em"/>
<mml:mfenced open="" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(6)</label>
</disp-formula>
<disp-formula id="e7">
<mml:math id="m24">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="[" close="">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close="">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="1em"/>
<mml:mfenced open="" close="]">
<mml:mrow>
<mml:mfenced open="" close=")">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(7)</label>
</disp-formula>
</p>
<p>
<inline-formula id="inf18">
<mml:math id="m25">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, which is the power injected or transferred from converters, is added to the active power load flow equation. In the case of DC buses, the expressions are <xref ref-type="disp-formula" rid="e8">Equations 8</xref>, <xref ref-type="disp-formula" rid="e9">9</xref>.<disp-formula id="e8">
<mml:math id="m26">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:math>
<label>(8)</label>
</disp-formula>
<disp-formula id="e9">
<mml:math id="m27">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>.</mml:mo>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>In any case, <inline-formula id="inf19">
<mml:math id="m28">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf20">
<mml:math id="m29">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are the sum of generation and demand (<xref ref-type="disp-formula" rid="e10">Equations 10</xref>, <xref ref-type="disp-formula" rid="e11">11</xref>).<disp-formula id="e10">
<mml:math id="m30">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(10)</label>
</disp-formula>
<disp-formula id="e11">
<mml:math id="m31">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
<p>At all times, <inline-formula id="inf21">
<mml:math id="m32">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf22">
<mml:math id="m33">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are limited to the nominal power and the minimum power of the generators (<xref ref-type="disp-formula" rid="e12">Equations 12</xref>, <xref ref-type="disp-formula" rid="e13">13</xref>, respectively).<disp-formula id="e12">
<mml:math id="m34">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(12)</label>
</disp-formula>
<disp-formula id="e13">
<mml:math id="m35">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(13)</label>
</disp-formula>
</p>
<p>If two buses are connected through a converter, the expression that describes the power exchange between them is given by <xref ref-type="disp-formula" rid="e14">Equation 14</xref>.<disp-formula id="e14">
<mml:math id="m36">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ki</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(14)</label>
</disp-formula>
</p>
<p>The maximum and minimum voltage limits of buses are maintained, as shown in <xref ref-type="disp-formula" rid="e15">Equation 15</xref>.<disp-formula id="e15">
<mml:math id="m37">
<mml:msubsup>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max,i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2265;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2265;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">min,i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>.</mml:mo>
</mml:math>
<label>(15)</label>
</disp-formula>
</p>
<p>When grid-forming mode is activated in a converter, the voltage at the output bus of the converter is set to its nominal value, as described in <xref ref-type="disp-formula" rid="e16">Equation 16</xref>.<disp-formula id="e16">
<mml:math id="m38">
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>.</mml:mo>
</mml:math>
<label>(16)</label>
</disp-formula>
</p>
<p>When the converter is in grid-following mode, this restriction is not considered.</p>
<p>The total current that lines can transport is limited by <xref ref-type="disp-formula" rid="e17">Equation 17</xref>.<disp-formula id="e17">
<mml:math id="m39">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msubsup>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max,ik</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x2265;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="[" close="">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:msup>
<mml:mrow>
<mml:mfenced open="" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(17)</label>
</disp-formula>
</p>
<p>Transformers cannot exceed their nominal power when operating, as shown in <xref ref-type="disp-formula" rid="e18">Equations 18</xref>, <xref ref-type="disp-formula" rid="e19">19</xref>.<disp-formula id="e18">
<mml:math id="m40">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msubsup>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x2265;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="[" close="">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mfenced open="" close="}">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(18)</label>
</disp-formula>
<disp-formula id="e19">
<mml:math id="m41">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msubsup>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x2265;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="[" close="">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mfenced open="" close="}">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="" close="]">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(19)</label>
</disp-formula>
</p>
<p>In the case of converters, this limitation is expressed using <xref ref-type="disp-formula" rid="e20">Equation 20</xref>.<disp-formula id="e20">
<mml:math id="m42">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2265;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(20)</label>
</disp-formula>
</p>
</sec>
<sec id="s2-2">
<title>2.2 Optimization</title>
<p>Four different objective functions <inline-formula id="inf23">
<mml:math id="m43">
<mml:mi>h</mml:mi>
</mml:math>
</inline-formula> can be chosen for minimization in the AC/DC optimal power flow, depending on the objective to be achieved.<list list-type="simple">
<list-item>
<p>1. <bold>H1: Total active power generated</bold>. This function focuses on reducing energy losses (<xref ref-type="disp-formula" rid="e21">Equation 21</xref>).</p>
</list-item>
</list>
<disp-formula id="e21">
<mml:math id="m44">
<mml:mi>H</mml:mi>
<mml:mn>1</mml:mn>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(21)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>2. <bold>H2: Bus voltage deviation from their nominal value</bold>. This function focuses on achieving grid stability (<xref ref-type="disp-formula" rid="e22">Equation 22</xref>).</p>
</list-item>
</list>
<disp-formula id="e22">
<mml:math id="m45">
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>.</mml:mo>
</mml:math>
<label>(22)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>3. <bold>H3: Total amount of operational costs associated with each generator</bold>. This function focuses on achieving economic savings (<xref ref-type="disp-formula" rid="e23">Equation 23</xref>).</p>
</list-item>
</list>
<disp-formula id="e23">
<mml:math id="m46">
<mml:mi>H</mml:mi>
<mml:mn>3</mml:mn>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(23)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>4. <bold>H4: Active power microgrid generation</bold>. This function focuses on making the highest possible use of the available generation resources in the microgrid (<xref ref-type="disp-formula" rid="e24">Equation 24</xref>). The objective function is set to be negative in order to calculate maximization.</p>
</list-item>
</list>
<disp-formula id="e24">
<mml:math id="m47">
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(24)</label>
</disp-formula>
</p>
<p>The variables that are optimized when performing the power flow are <inline-formula id="inf24">
<mml:math id="m48">
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, <inline-formula id="inf25">
<mml:math id="m49">
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, <inline-formula id="inf26">
<mml:math id="m50">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, <inline-formula id="inf27">
<mml:math id="m51">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and <inline-formula id="inf28">
<mml:math id="m52">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">conv,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>.</p>
</sec>
</sec>
<sec id="s3">
<title>3 Techno-economic assessment</title>
<p>The techno-economic assessment presented in this paper consists of the calculation of eight KPIs. They allow the evaluation of a microgrid in terms of costs, energy generation, storage capabilities, and financial feasibility. Moreover, it provides critical insights for making informed decisions and maximizing the overall performance of the microgrid. The KPIs, presented below, are divided into two categories: technical and economic.</p>
<sec id="s3-1">
<title>3.1 Technical KPIs</title>
<p>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf29">
<mml:math id="m53">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI1: Electrical energy generated</bold>. This indicator represents the amount of electrical energy generated per year.</p>
</list-item>
</list>
<disp-formula id="e25">
<mml:math id="m54">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>1</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi>W</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mn>8760</mml:mn>
<mml:mo>.</mml:mo>
</mml:math>
<label>(25)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf30">
<mml:math id="m55">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI2: CO</bold>
<sub>
<bold>2</bold>
</sub> <bold>emissions</bold>. This indicator represents the total CO<sub>2</sub> emitted by all energy carriers associated with the primary energy use in the microgrid per year.</p>
</list-item>
</list>
<disp-formula id="e26">
<mml:math id="m56">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>2</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>O</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mn>8760</mml:mn>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>G</mml:mi>
<mml:mi>H</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(26)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf31">
<mml:math id="m57">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI3: Self-consumption percentage</bold>. This indicator represents the amount of energy obtained from the generators of the microgrid in relation to the energy used by the loads.</p>
</list-item>
</list>
<disp-formula id="e27">
<mml:math id="m58">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>3</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(27)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf32">
<mml:math id="m59">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI4: Storage flexibility</bold>. This indicator represents the total flexible power available in the microgrid due to the storage systems.</p>
</list-item>
</list>
<disp-formula id="e28">
<mml:math id="m60">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>4</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mi>W</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(28)</label>
</disp-formula>
</p>
</sec>
<sec id="s3-2">
<title>3.2 Economic KPIs</title>
<p>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf33">
<mml:math id="m61">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI5: Total life cycle income</bold>. This indicator represents the total income earned by the microgrid over its useful life. This index includes income from energy production and flexibility management.</p>
</list-item>
</list>
<disp-formula id="e29">
<mml:math id="m62">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>5</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>P</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>F</mml:mi>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(29)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf34">
<mml:math id="m63">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI6: Total life cycle cost</bold>. This indicator represents the total cost incurred by the microgrid over its useful life. The index includes the investment, operation, and management costs and residual values of the microgrid and generators.</p>
</list-item>
</list>
<disp-formula id="e30">
<mml:math id="m64">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>6</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="1em"/>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>M</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="1em"/>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(30)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf35">
<mml:math id="m65">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI7: Payback</bold>. This indicator represents the period of time required to recover the capital investment of the microgrid (<xref ref-type="bibr" rid="B13">Kiran, 2022</xref>).</p>
</list-item>
</list>
<disp-formula id="e31">
<mml:math id="m66">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>7</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>y</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>s</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mi>N</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi>w</mml:mi>
<mml:mi>h</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mfenced open="(" close="">
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>P</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>F</mml:mi>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="1em"/>
<mml:mfenced open="" close=")">
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>M</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(31)</label>
</disp-formula>
<list list-type="simple">
<list-item>
<p>
<inline-formula id="inf36">
<mml:math id="m67">
<mml:mo>&#x2022;</mml:mo>
</mml:math>
</inline-formula> <bold>KPI8: Levelized cost of energy (LCOE</bold>). This indicator represents the price at which the generated electricity should be sold to break even by the end of the useful life of the microgrid (<xref ref-type="bibr" rid="B20">Papapetrou et al., 2017</xref>; <xref ref-type="bibr" rid="B1">Abadie and Chamorro, 2019</xref>).</p>
</list-item>
</list>
<disp-formula id="e32">
<mml:math display="block" id="m68">
<mml:mtable class="align" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mi>K</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>I</mml:mi>
<mml:mn>8</mml:mn>
<mml:mspace width="0.3333em"/>
<mml:mfenced close=")" open="(" separators="none">
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>y</mml:mi>
<mml:mo>/</mml:mo>
<mml:mi>k</mml:mi>
<mml:mi>W</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left">
<mml:mspace width="-3em"/>
<mml:mfrac>
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mfenced close=")" open="(" separators="none">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>C</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>M</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:msup>
<mml:mfenced close=")" open="(" separators="none">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mi>n</mml:mi>
</mml:msup>
</mml:mfrac>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mrow>
<mml:msup>
<mml:mfenced close=")" open="(" separators="none">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mfrac>
</mml:mrow>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi mathvariant="script">B</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mrow>
<mml:msup>
<mml:mfenced close=")" open="(" separators="none">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mi>n</mml:mi>
</mml:msup>
</mml:mfrac>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(32)</label>
</disp-formula>
</p>
</sec>
</sec>
<sec id="s4">
<title>4 TIGON CEDER demonstrator</title>
<p>CEDER is the acronym for Center for the Development of Renewable Energies<xref ref-type="fn" rid="fn1">
<sup>1</sup>
</xref>. It is located in Lubia (Soria, Spain) and serves as a national center for energy research that belongs to the Center for Energy, Environmental, and Technological Research (CIEMAT)<xref ref-type="fn" rid="fn2">
<sup>2</sup>
</xref>, a public research organization under the Ministry of Science and Innovation. This facility covers an area of 640 ha (13,000 m<sup>2</sup> built) and features a smart microgrid (electrical and thermal) operated and managed in real time (see <xref ref-type="fig" rid="F1">Figure 1</xref>, left).</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>CEDER facilities (left) and TIGON demonstrator (right).</p>
</caption>
<graphic xlink:href="fenrg-12-1399114-g001.tif"/>
</fig>
<p>The Spanish demonstrator of TIGON is installed at CEDER (see <xref ref-type="fig" rid="F1">Figure 1</xref>, right) and consists of the following elements:<list list-type="simple">
<list-item>
<p>1. Transformer station: 15 kV<sub>AC</sub>&#x2013;400 V<sub>AC</sub>.</p>
</list-item>
<list-item>
<p>2. Small wind turbine: A three-bladed, horizontal axis wind turbine with a nominal power of 4.2 kW (Ryse E-5).</p>
</list-item>
<list-item>
<p>3. Photovoltaic (PV) system: Comprising 3 strings with 18 modules (URECO) of 410 W each, amounting to a total capacity of 22.14 kW.</p>
</list-item>
<list-item>
<p>4. NMC batteries: 3 modules, each with 80 cells (50 Ah and 3.6 V per cell).</p>
</list-item>
<list-item>
<p>5. Programmable AC loads: Three programmable AC loads of 2.9 kW each.</p>
</list-item>
<list-item>
<p>6. DC loads: Three adjustable DC loads of 4 kW each.</p>
</list-item>
</list>
</p>
<p>A schematic diagram of the CEDER demonstrator is shown in <xref ref-type="fig" rid="F2">Figure 2</xref>. It consists of AC loads, wind turbines, transformers, and DC sections in the network. The characteristics of the elements used to test the microgrid are given in <xref ref-type="table" rid="T1">Tables 1</xref>&#x2013;<xref ref-type="table" rid="T3">3</xref>.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>TIGON layout at CEDER.</p>
</caption>
<graphic xlink:href="fenrg-12-1399114-g002.tif"/>
</fig>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>TIGON CEDER electrical data.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Bus</th>
<th align="center">
<inline-formula id="inf38">
<mml:math id="m70">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kV)</th>
<th align="center">Type</th>
<th align="left"/>
<th align="left"/>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">15.000</td>
<td align="center">AC</td>
<td/>
</tr>
<tr>
<td align="center">1</td>
<td align="center">0.400</td>
<td align="center">AC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">2</td>
<td align="center">0.400</td>
<td align="center">AC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">3</td>
<td align="center">0.630</td>
<td align="center">DC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">4</td>
<td align="center">0.800</td>
<td align="center">DC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">5</td>
<td align="center">0.860</td>
<td align="center">DC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">6</td>
<td align="center">0.800</td>
<td align="center">DC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">7</td>
<td align="center">0.230</td>
<td align="center">AC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">8</td>
<td align="center">0.630</td>
<td align="center">AC</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Line</th>
<th align="center">
<inline-formula id="inf39">
<mml:math id="m71">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">Length (km)</th>
<th align="center">
<inline-formula id="inf40">
<mml:math id="m72">
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<inline-formula id="inf41">
<mml:math id="m73">
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:math>
</inline-formula>/km)</th>
<th align="center">
<inline-formula id="inf42">
<mml:math id="m74">
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (<inline-formula id="inf43">
<mml:math id="m75">
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:math>
</inline-formula>/km)</th>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">(2,1)</td>
<td align="center">0.15</td>
<td align="center">0.5</td>
<td align="center">0.35</td>
<td align="left"/>
</tr>
<tr>
<td align="center">1</td>
<td align="center">(4,6)</td>
<td align="center">0.20</td>
<td align="center">0.5</td>
<td align="center">&#x2013;</td>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Line</th>
<th align="center">
<inline-formula id="inf44">
<mml:math id="m76">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf45">
<mml:math id="m77">
<mml:msub>
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (nF/km)</th>
<th align="center">
<inline-formula id="inf46">
<mml:math id="m78">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kA)</th>
<th align="center">Type</th>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">(2,1)</td>
<td align="center">100</td>
<td align="center">100</td>
<td align="center">AC</td>
<td align="left"/>
</tr>
<tr>
<td align="center">1</td>
<td align="center">(4,6)</td>
<td align="center">&#x2013;</td>
<td align="center">100</td>
<td align="center">DC</td>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Transformer</th>
<th align="center">
<inline-formula id="inf47">
<mml:math id="m79">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf48">
<mml:math id="m80">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kVA)</th>
<th align="center">
<inline-formula id="inf49">
<mml:math id="m81">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">ccL,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (%)</th>
<th align="center">
<inline-formula id="inf50">
<mml:math id="m82">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">RccL,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (%)</th>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">(1,0)</td>
<td align="center">250</td>
<td align="center">1.5</td>
<td align="center">1.0</td>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Converter</th>
<th align="center">
<inline-formula id="inf51">
<mml:math id="m83">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf52">
<mml:math id="m84">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kVA)</th>
<th align="center">
<inline-formula id="inf53">
<mml:math id="m85">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</th>
<th align="center">Control</th>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">(3,2)</td>
<td align="center">20</td>
<td align="center">0.99</td>
<td align="center">Grid following</td>
<td align="left"/>
</tr>
<tr>
<td align="center">1</td>
<td align="center">(3,4)</td>
<td align="center">20</td>
<td align="center">0.99</td>
<td align="center">Grid forming</td>
<td align="left"/>
</tr>
<tr>
<td align="center">2</td>
<td align="center">(4,5)</td>
<td align="center">30</td>
<td align="center">0.86</td>
<td align="center">Grid forming</td>
<td align="left"/>
</tr>
<tr>
<td align="center">3</td>
<td align="center">(4,7)</td>
<td align="center">12</td>
<td align="center">0.99</td>
<td align="center">Grid forming</td>
<td align="left"/>
</tr>
<tr>
<td align="center">4</td>
<td align="center">(8,4)</td>
<td align="center">5</td>
<td align="center">0.99</td>
<td align="center">Grid following</td>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Generator</th>
<th align="center">Bus <inline-formula id="inf54">
<mml:math id="m86">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf55">
<mml:math id="m87">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,max,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf56">
<mml:math id="m88">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf57">
<mml:math id="m89">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,max,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf58">
<mml:math id="m90">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">3</td>
<td align="center">22.14</td>
<td align="center">0.5</td>
<td align="center">0</td>
<td align="center">0</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">8</td>
<td align="center">4.20</td>
<td align="center">0.0</td>
<td align="center">10</td>
<td align="center">&#x2212;10</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">2</td>
<td align="center">0.00</td>
<td align="center">0.0</td>
<td align="center">10</td>
<td align="center">&#x2212;10</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">7</td>
<td align="center">0.00</td>
<td align="center">0.0</td>
<td align="center">10</td>
<td align="center">&#x2212;10</td>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Load</th>
<th align="center">Bus <inline-formula id="inf59">
<mml:math id="m91">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf60">
<mml:math id="m92">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf61">
<mml:math id="m93">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="left"/>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">6</td>
<td align="center">5</td>
<td align="center">0</td>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="center">1</td>
<td align="center">7</td>
<td align="center">4</td>
<td align="center">0</td>
<td align="left"/>
<td align="left"/>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Storage</th>
<th align="center">Bus <inline-formula id="inf62">
<mml:math id="m94">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf63">
<mml:math id="m95">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="left"/>
<th align="left"/>
<th align="left"/>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">5</td>
<td align="center">25</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
</tbody>
</table>
</table-wrap>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Techno-economic information of TIGON CEDER generators.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Generator</th>
<th align="center">Bus <inline-formula id="inf65">
<mml:math id="m97">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf66">
<mml:math id="m98">
<mml:mi>I</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (&#x20ac;)</th>
<th align="center">
<inline-formula id="inf67">
<mml:math id="m99">
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (&#x20ac;)</th>
<th align="center">
<inline-formula id="inf68">
<mml:math id="m100">
<mml:mi>M</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (&#x20ac;/year)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">3</td>
<td align="center">23,000</td>
<td align="center">100</td>
<td align="center">200</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">8</td>
<td align="center">10,000</td>
<td align="center">150</td>
<td align="center">600</td>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Generator</th>
<th align="center">Bus <inline-formula id="inf69">
<mml:math id="m101">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">
<inline-formula id="inf70">
<mml:math id="m102">
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (&#x20ac;/kWh)</th>
<th align="center">
<inline-formula id="inf71">
<mml:math id="m103">
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (%)</th>
<th align="center">
<inline-formula id="inf72">
<mml:math id="m104">
<mml:mi>G</mml:mi>
<mml:mi>H</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kgCO<sub>2</sub>/kWh)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">3</td>
<td align="center">0.003</td>
<td align="center">33.5</td>
<td align="center">0.03500</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">8</td>
<td align="center">0.008</td>
<td align="center">42.0</td>
<td align="center">0.00464</td>
</tr>
</tbody>
</table>
</table-wrap>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Techno&#x2013;economic information of the TIGON CEDER microgrid.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">
<inline-formula id="inf73">
<mml:math id="m105">
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
</mml:math>
</inline-formula> (&#x20ac;)</th>
<th align="center">
<inline-formula id="inf74">
<mml:math id="m106">
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
</mml:math>
</inline-formula> (&#x20ac;)</th>
<th align="center">
<inline-formula id="inf75">
<mml:math id="m107">
<mml:mi>O</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>C</mml:mi>
</mml:math>
</inline-formula> (&#x20ac;/year)</th>
<th align="center">
<inline-formula id="inf76">
<mml:math id="m108">
<mml:mi>r</mml:mi>
</mml:math>
</inline-formula> (%)</th>
<th align="center">
<inline-formula id="inf77">
<mml:math id="m109">
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:math>
</inline-formula> (years)</th>
<th align="center">
<inline-formula id="inf78">
<mml:math id="m110">
<mml:mi>E</mml:mi>
<mml:mi>P</mml:mi>
</mml:math>
</inline-formula> (&#x20ac;/kWh)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">195,500</td>
<td align="center">28,900</td>
<td align="center">1,400</td>
<td align="center">1</td>
<td align="center">25</td>
<td align="center">0.145</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>
<inline-formula id="inf79">
<mml:math id="m111">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf80">
<mml:math id="m112">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">min,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> have been fixed at 5% above and below the nominal value, respectively. <inline-formula id="inf81">
<mml:math id="m113">
<mml:mi>G</mml:mi>
<mml:mi>H</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> of generators 0 and 1 have been obtained from the study by <xref ref-type="bibr" rid="B7">Baldwin (2006</xref>). Generators 2 and 3 model the reactive power management of converters 0 and 3, respectively. The CEDER microgrid has one connection to an external grid located on bus 0. The frequency is 50 Hz (<inline-formula id="inf82">
<mml:math id="m114">
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>100</mml:mn>
<mml:mi>&#x3c0;</mml:mi>
</mml:math>
</inline-formula> rad/s).</p>
<p>
<inline-formula id="inf83">
<mml:math id="m115">
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
</mml:math>
</inline-formula> and <inline-formula id="inf84">
<mml:math id="m116">
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
</mml:math>
</inline-formula> have been calculated as the sum of the investment cost and the residual value of the microgrid equipment and labor, as given in <xref ref-type="table" rid="T4">Table 4</xref>.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>Investment costs and residual values of TIGON CEDER equipment and labor.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Equipment</th>
<th align="center">Investment cost (&#x20ac;)</th>
<th align="center">Residual value (&#x20ac;)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">DC PV converter</td>
<td align="center">23,000</td>
<td align="center">2,500</td>
</tr>
<tr>
<td align="center">AC PV converter</td>
<td align="center">22,000</td>
<td align="center">2,000</td>
</tr>
<tr>
<td align="center">Wind turbine converter</td>
<td align="center">10,000</td>
<td align="center">500</td>
</tr>
<tr>
<td align="center">Battery</td>
<td align="center">34,000</td>
<td align="center">400</td>
</tr>
<tr>
<td align="center">Battery converter</td>
<td align="center">25,000</td>
<td align="center">3,000</td>
</tr>
<tr>
<td align="center">AC load converter</td>
<td align="center">31,000</td>
<td align="center">2,500</td>
</tr>
<tr>
<td align="center">Wiring</td>
<td align="center">15,500</td>
<td align="center">4,000</td>
</tr>
<tr>
<td align="center">Cabins</td>
<td align="center">18,000</td>
<td align="center">18,000</td>
</tr>
<tr>
<td align="center">Labor</td>
<td align="center">17,000</td>
<td align="center">0</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec sec-type="results|discussion" id="s5">
<title>5 Results and discussion</title>
<sec id="s5-1">
<title>5.1 AC/DC optimal power flow</title>
<p>The AC/DC optimal power flow simulation has been implemented in Python due to its wide range of available open-source optimization libraries. In this paper, the optimization has been performed using CasADi (<xref ref-type="bibr" rid="B5">Andersson et al., 2019</xref>), which is a software library equipped with specific tools focused on the modeling, optimization, and control of nonlinear dynamic systems. CasADi is widely used to define both mathematical models and constraints involved and allows us to utilize different solvers in order to optimize the problem. In this study, the solver IPOPT (<xref ref-type="bibr" rid="B33">W&#xe4;chter and Biegler, 2006</xref>) has been used. IPOPT applies sequential quadratic programming (SQP) to solve constrained nonlinear optimization problems, which is the case in the AC/DC optimal power flow. The calculation time is not significant: it is only a few seconds.</p>
<p>Four scenarios have been tested, one per objective function. In all scenarios, TIGON CEDER storage has been considered to act as a load that consumes electricity at half its nominal power (<inline-formula id="inf85">
<mml:math id="m117">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>/2), and the external grid has been limited to power consumption (if required). The results obtained in each scenario are given in <xref ref-type="table" rid="T5">Table 5</xref>.</p>
<table-wrap id="T5" position="float">
<label>TABLE 5</label>
<caption>
<p>Simulation results for different scenarios.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Bus <inline-formula id="inf86">
<mml:math id="m118">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">Scenario</th>
<th align="center">
<inline-formula id="inf87">
<mml:math id="m119">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf88">
<mml:math id="m120">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kVA)</th>
<th align="center">
<inline-formula id="inf89">
<mml:math id="m121">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kV)</th>
<th align="center">
<inline-formula id="inf90">
<mml:math id="m122">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (rad)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">H1</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">14.82807</td>
<td align="center" style="color:#FF0000">0.06733</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H1</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.39542</td>
<td align="center" style="color:#FF0000">0.06733</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H1</td>
<td align="center">0.00000</td>
<td align="center">&#x2212;0.00074</td>
<td align="center">0.39542</td>
<td align="center" style="color:#FF0000">0.06733</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H1</td>
<td align="center">19.75450</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H1</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.80000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H1</td>
<td align="center">&#x2212;12.50000</td>
<td align="center">0.00000</td>
<td align="center">0.86000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H1</td>
<td align="center">&#x2212;5.00000</td>
<td align="center">0.00000</td>
<td align="center">0.79937</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H1</td>
<td align="center">&#x2212;4.00000</td>
<td align="center">0.00000</td>
<td align="center">0.23000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H1</td>
<td align="center">4.06289</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">0</td>
<td align="center">H2</td>
<td align="center">&#x2212;0.05089</td>
<td align="center">0.00000</td>
<td align="center">14.99987</td>
<td align="center" style="color:#FF0000">0.59858</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H2</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.40000</td>
<td align="center" style="color:#FF0000">0.59858</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H2</td>
<td align="center">0.00000</td>
<td align="center">&#x2212;0.00075</td>
<td align="center">0.40001</td>
<td align="center" style="color:#FF0000">0.59860</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H2</td>
<td align="center">19.80580</td>
<td align="center">0.00000</td>
<td align="center">0.63000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H2</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.80000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H2</td>
<td align="center">&#x2212;12.50000</td>
<td align="center">0.00000</td>
<td align="center">0.86000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H2</td>
<td align="center">&#x2212;5.00000</td>
<td align="center">0.00000</td>
<td align="center">0.79937</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H2</td>
<td align="center">&#x2212;4.00000</td>
<td align="center">0.00000</td>
<td align="center">0.23000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H2</td>
<td align="center">4.06300</td>
<td align="center">0.00000</td>
<td align="center">0.63000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">0</td>
<td align="center">H3</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">14.95132</td>
<td align="center" style="color:#FF0000">0.06573</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H3</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.39870</td>
<td align="center" style="color:#FF0000">0.06573</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H3</td>
<td align="center">0.00000</td>
<td align="center">&#x2212;0.00075</td>
<td align="center">0.39870</td>
<td align="center" style="color:#FF0000">0.06573</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H3</td>
<td align="center">20.00000</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H3</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.80000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H3</td>
<td align="center">&#x2212;12.50000</td>
<td align="center">0.00000</td>
<td align="center">0.86000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H3</td>
<td align="center">&#x2212;5.00000</td>
<td align="center">0.00000</td>
<td align="center">0.79937</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H3</td>
<td align="center">&#x2212;4.00000</td>
<td align="center">0.00000</td>
<td align="center">0.23000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H3</td>
<td align="center">3.81736</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">0</td>
<td align="center">H4</td>
<td align="center">&#x2212;2.49415</td>
<td align="center">0.00000</td>
<td align="center">14.75867</td>
<td align="center" style="color:#FF0000">0.01449</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H4</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.39361</td>
<td align="center" style="color:#FF0000">0.01460</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H4</td>
<td align="center">0.00000</td>
<td align="center">0.00166</td>
<td align="center">0.39408</td>
<td align="center" style="color:#FF0000">0.01545</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H4</td>
<td align="center">22.14000</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H4</td>
<td align="center">0.00000</td>
<td align="center">0.00000</td>
<td align="center">0.80000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H4</td>
<td align="center">&#x2212;12.50000</td>
<td align="center">0.00000</td>
<td align="center">0.86000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H4</td>
<td align="center">&#x2212;5.00000</td>
<td align="center">0.00000</td>
<td align="center">0.79937</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H4</td>
<td align="center">&#x2212;4.00000</td>
<td align="center">0.00000</td>
<td align="center">0.23000</td>
<td align="center">0.00000</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H4</td>
<td align="center">4.20000</td>
<td align="center">0.00000</td>
<td align="center">0.62046</td>
<td align="center">0.00000</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>In all scenarios, all the power demanded by loads and storage is delivered. In none of them exists the demand for reactive power, so all the reactive power in the microgrid is generated in the AC section at bus 2 because of the transformer and AC line reactance.</p>
<p>In scenarios H1 and H3, the exact active power is generated to supply the demand and compensate for losses. The difference between them is that the wind turbine reduces its active power generation in scenario H3 because this technology has higher operational costs than the PV, whereas more power is saved in scenario H1.</p>
<p>In scenario H2, <inline-formula id="inf96">
<mml:math id="m128">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> at all buses is the nominal value or very close to it. To achieve it, the generation of active power and the consumption of the external grid are precisely adjusted.</p>
<p>In scenario H4, the PV and wind turbine generate the maximum active power, which is then supplied to the external grid.</p>
<p>All the scenarios have been recreated in the real environment of the TIGON CEDER microgrid. The two quantities accessed for measurement are active power and voltage. The values obtained in the measurements taken for each scenario are shown in <xref ref-type="table" rid="T6">Table 6</xref>.</p>
<table-wrap id="T6" position="float">
<label>TABLE 6</label>
<caption>
<p>CEDER microgrid measurements for different scenarios.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Bus <inline-formula id="inf97">
<mml:math id="m129">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</th>
<th align="center">Scenario</th>
<th align="center">
<inline-formula id="inf98">
<mml:math id="m130">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf99">
<mml:math id="m131">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kV)</th>
<th align="center">Scenario</th>
<th align="center">
<inline-formula id="inf100">
<mml:math id="m132">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kW)</th>
<th align="center">
<inline-formula id="inf101">
<mml:math id="m133">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> (kV)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">0</td>
<td align="center">H1</td>
<td align="center">0.000</td>
<td align="center">14.790</td>
<td align="center">H2</td>
<td align="center">&#x2212;0.050</td>
<td align="center">14.990</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H1</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
<td align="center">H2</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H1</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
<td align="center">H2</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H1</td>
<td align="center">19.750</td>
<td align="center">0.612</td>
<td align="center">H2</td>
<td align="center">19.800</td>
<td align="center">0.611</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H1</td>
<td align="center">0.000</td>
<td align="center">0.799</td>
<td align="center">H2</td>
<td align="center">0.000</td>
<td align="center">0.808</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H1</td>
<td align="center">&#x2212;12.500</td>
<td align="center">0.859</td>
<td align="center">H2</td>
<td align="center">&#x2212;12.500</td>
<td align="center">0.862</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H1</td>
<td align="center">&#x2212;5.000</td>
<td align="center">0.799</td>
<td align="center">H2</td>
<td align="center">&#x2212;5.000</td>
<td align="center">0.799</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H1</td>
<td align="center">&#x2212;4.000</td>
<td align="center">0.230</td>
<td align="center">H2</td>
<td align="center">&#x2212;4.000</td>
<td align="center">0.230</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H1</td>
<td align="center">4.100</td>
<td align="center">0.629</td>
<td align="center">H2</td>
<td align="center">4.102</td>
<td align="center">0.630</td>
</tr>
<tr>
<td align="center">0</td>
<td align="center">H3</td>
<td align="center">0.000</td>
<td align="center">14.920</td>
<td align="center">H4</td>
<td align="center">&#x2212;2.490</td>
<td align="center">14.880</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">H3</td>
<td align="center">0.000</td>
<td align="center">0.398</td>
<td align="center">H4</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">H3</td>
<td align="center">0.000</td>
<td align="center">0.398</td>
<td align="center">H4</td>
<td align="center">0.000</td>
<td align="center">0.399</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">H3</td>
<td align="center">20.000</td>
<td align="center">0.613</td>
<td align="center">H4</td>
<td align="center">22.140</td>
<td align="center">0.632</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">H3</td>
<td align="center">0.000</td>
<td align="center">0.806</td>
<td align="center">H4</td>
<td align="center">0.000</td>
<td align="center">0.805</td>
</tr>
<tr>
<td align="center">5</td>
<td align="center">H3</td>
<td align="center">&#x2212;12.500</td>
<td align="center">0.860</td>
<td align="center">H4</td>
<td align="center">&#x2212;12.500</td>
<td align="center">0.865</td>
</tr>
<tr>
<td align="center">6</td>
<td align="center">H3</td>
<td align="center">&#x2212;5.000</td>
<td align="center">0.801</td>
<td align="center">H4</td>
<td align="center">&#x2212;5.000</td>
<td align="center">0.799</td>
</tr>
<tr>
<td align="center">7</td>
<td align="center">H3</td>
<td align="center">&#x2212;4.000</td>
<td align="center">0.230</td>
<td align="center">H4</td>
<td align="center">&#x2212;4.000</td>
<td align="center">0.230</td>
</tr>
<tr>
<td align="center">8</td>
<td align="center">H3</td>
<td align="center">3.800</td>
<td align="center">0.628</td>
<td align="center">H4</td>
<td align="center">4.200</td>
<td align="center">0.625</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The measures obtained are very similar to the calculated values in the simulations, as shown in <xref ref-type="fig" rid="F3">Figures 3</xref>, <xref ref-type="fig" rid="F4">4</xref>. In <xref ref-type="table" rid="T7">Table 7</xref>, the mean relative error (MRE) has been calculated for both active power and voltage using Equation <xref ref-type="disp-formula" rid="e33">Equation 33</xref>.<disp-formula id="e33">
<mml:math id="m134">
<mml:mi>M</mml:mi>
<mml:mi>R</mml:mi>
<mml:mi>E</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>100</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x22c5;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(33)</label>
</disp-formula>
</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Comparison of simulation and measurement values of active power: <bold>(A)</bold> scenario H1, <bold>(B)</bold> scenario H2, <bold>(C)</bold> scenario H3, and <bold>(D)</bold> scenario H4.</p>
</caption>
<graphic xlink:href="fenrg-12-1399114-g003.tif"/>
</fig>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Comparison of simulation and measurement values of voltage: <bold>(A)</bold> scenario H1, <bold>(B)</bold> scenario H2, <bold>(C)</bold> scenario H3, and <bold>(D)</bold> scenario H4.</p>
</caption>
<graphic xlink:href="fenrg-12-1399114-g004.tif"/>
</fig>
<table-wrap id="T7" position="float">
<label>TABLE 7</label>
<caption>
<p>Mean relative error of measurements.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">MRE (%)</th>
<th align="center">H1</th>
<th align="center">H2</th>
<th align="center">H3</th>
<th align="center">H4</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Active power</td>
<td align="center">0.10</td>
<td align="center">0.31</td>
<td align="center">0.05</td>
<td align="center">0.02</td>
</tr>
<tr>
<td align="center">Voltage</td>
<td align="center">0.56</td>
<td align="center">0.55</td>
<td align="center">0.44</td>
<td align="center">0.80</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The largest differences are observed between the expected and actually measured PV voltages, with a maximum relative error of 3.11%. This occurs because the PV voltage (bus 3) varies considerably as the delivered active power changes. Small differences in accuracy arise from the monitoring devices and the difficulty of precisely obtaining at the same time the proposed values of active power generation from both the wind turbine and PV due to their inherent variability depending on the weather conditions and technical restrictions.</p>
<p>The results confirm that the AC/DC optimal power flow works correctly and accurately enough to assess the operation of the microgrid.</p>
</sec>
<sec id="s5-2">
<title>5.2 Techno-economic assessment</title>
<p>The techno-economic assessment calculations have been implemented in Python. Again, the calculation time is very short, only a few seconds. Four scenarios in which the TIGON CEDER microgrid could operate have been studied: baseline, no battery, battery flexibility, and virtual battery (VB) flexibility.</p>
<p>In the baseline scenario, the microgrid elements have been considered with the same characteristics presented in <xref ref-type="sec" rid="s4">Section 4</xref>. Nevertheless, in this situation, which is real, the battery is being used only for performing tests and research experiments. For this reason, we have considered three more scenarios in which the microgrid could be more profitable. In the no-battery scenario, the battery and its converter have been removed from the microgrid, along with their investment costs and residual values. In the battery flexibility scenario, the battery has not been eliminated, but it has been deemed to be used in the Spanish upward tertiary regulation market. Batteries are loads with inherent electrical flexibility as they can be charged and discharged at the most convenient time, keeping the daily balance of the generated and consumed electricity unchanged. The upward tertiary regulation market has been chosen because it is the balance market with the highest average price in Spain in 2022: 224.17 &#x20ac;/MWh<xref ref-type="fn" rid="fn3">
<sup>3</sup>
</xref>. The power of the battery is very small to participate in the Spanish tertiary regulation market on its own as it is necessary to make bids of at least 1 MW (<xref ref-type="bibr" rid="B24">Red El&#xe9;ctrica de Espa&#xf1;a, 2021</xref>). Therefore, it needs to be part of an aggregation that participates in the market as a unitary market agent, following the methodology explained by <xref ref-type="bibr" rid="B16">Mart&#xed;n-Crespo et al. (2023)</xref>. Lastly, in the VB flexibility scenario, the battery has been replaced by a VB consisting of an aggregation of thermostatically controlled loads (TCLs) already in place, with the same nominal power <inline-formula id="inf102">
<mml:math id="m135">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. These TCLs have the capacity to store thermal energy equivalent to a given electricity consumption. They could be heat pumps or water heaters, for instance. The aggregation of TCLs in the VB has been achieved using the method proposed by <xref ref-type="bibr" rid="B17">Mart&#xed;n-Crespo et al. (2021)</xref>. This method is a control algorithm executed in real time and consists of three steps: <italic>Check of TCLs</italic>, <italic>Aggregation</italic>, and <italic>Priority Control</italic>. As a result of these stages, the controller decides which TCLs should be switched on or off to meet the stated power requirement. For both flexibility scenarios, storage participation in the market for 1 h per day is assumed to operate at its nominal power <inline-formula id="inf103">
<mml:math id="m136">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and the aggregation shares its benefits proportionally between its loads. This results in an additional flexibility income <inline-formula id="inf104">
<mml:math id="m137">
<mml:mi>F</mml:mi>
<mml:mi>I</mml:mi>
</mml:math>
</inline-formula> of 2,045.55 &#x20ac; per year.</p>
<p>The KPI values obtained for each scenario are given in <xref ref-type="table" rid="T8">Table 8</xref>.</p>
<table-wrap id="T8" position="float">
<label>TABLE 8</label>
<caption>
<p>KPI results.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Scenario</th>
<th align="center">KPI1 (kWh)</th>
<th align="center">KPI2 (kgCO<sub>2</sub>)</th>
<th align="center">KPI3 (%)</th>
<th align="center">KPI4 (kW)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Baseline</td>
<td align="center">80,425</td>
<td align="center">2,346</td>
<td align="center">102.01</td>
<td align="center">25</td>
</tr>
<tr>
<td align="center">No battery</td>
<td align="center">80,425</td>
<td align="center">2,346</td>
<td align="center">102.01</td>
<td align="center">0</td>
</tr>
<tr>
<td align="center">Battery flexibility</td>
<td align="center">80,425</td>
<td align="center">2,346</td>
<td align="center">102.01</td>
<td align="center">25</td>
</tr>
<tr>
<td align="center">VB flexibility</td>
<td align="center">80,425</td>
<td align="center">2,346</td>
<td align="center">102.01</td>
<td align="center">25</td>
</tr>
</tbody>
</table>
<table>
<thead valign="top">
<tr>
<th align="center">Scenario</th>
<th align="center">KPI5 (&#x20ac;)</th>
<th align="center">KPI6 (&#x20ac;)</th>
<th align="center">KPI7 (years)</th>
<th align="center">KPI8 (&#x20ac;/kWh)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">Baseline</td>
<td align="center">256,824.77</td>
<td align="center">260,635.35</td>
<td align="center">Never</td>
<td align="center">145.73</td>
</tr>
<tr>
<td align="center">No Battery</td>
<td align="center">256,824.77</td>
<td align="center">204,286.56</td>
<td align="center">21</td>
<td align="center">113.92</td>
</tr>
<tr>
<td align="center">Battery</td>
<td align="center">301,874.24</td>
<td align="center">260,635.35</td>
<td align="center">24</td>
<td align="center">145.73</td>
</tr>
<tr>
<td align="center">VB flexibility</td>
<td align="center">301,874.24</td>
<td align="center">204,286.56</td>
<td align="center">17</td>
<td align="center">113.92</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>KPI2 (CO<sub>2</sub>) proves that carbon dioxide emissions are very low. This is caused by the usage of renewable generation technologies, specifically PV and wind turbines. KPI3 (self-consumption percentage) shows that the microgrid produces more energy than required by the loads per year, thus compensating for energy losses.</p>
<p>KPI7 (payback) shows that in the baseline scenario, the microgrid is not profitable. It makes sense as the TIGON CEDER microgrid is a small-scale network where the elements are high-cost prototypes. The battery, which is the storage element of the grid, is key for increasing or decreasing costs and incomes. The battery flexibility scenario demonstrates that using the battery for making bids in the Spanish electricity balance markets enhances the incomes and makes the microgrid profitable. Nevertheless, the flexibility remuneration is not high enough to make the microgrid payback lower than that when the battery is removed, i.e., the no-battery scenario. In the no-battery scenario, costs are highly reduced, as well as in KPI8 (LCOE). This is at the expense of reducing KPI4 (storage flexibility) to zero. The most profitable scenario is VB flexibility as it combines the additional income obtained by participation in the tertiary regulation market with the cost savings caused by the disappearance of the physical battery. KPI7 (payback) is reduced to 17 years and KPI8 (LCOE) to 113.92 &#x20ac;/kWh, whereas KPI4 (storage flexibility) remains at 25 kW.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s6">
<title>6 Conclusion</title>
<p>In this paper, an AC/DC optimal power flow and a techno-economic assessment have been presented with the aim of helping users evaluate the operation and viability of their hybrid AC/DC microgrids. In addition, both calculations can be used for proposing improvements and new investments. The AC/DC optimal power flow is a useful technique for checking the correct operation of hybrid microgrids under specific instantaneous conditions, while the techno-economic assessment allows us to verify their performance in the long term.</p>
<p>Both methodologies have been tested on the TIGON CEDER microgrid, which has been described in this paper. The AC/DC optimal power flow has been validated using real measurements and considering different objective function scenarios. Among the four techno-economic scenarios, the VB flexibility scenario is the most profitable and offers the fastest return on investment. Based on the results of flexibility scenarios, we encourage the stakeholders in the Spanish electricity system to increase the remuneration of flexibility to increase the penetration of renewable energy sources and advance the transition to a more efficient AC/DC hybrid power system with low greenhouse gas emissions.</p>
<p>In future work, we will apply the AC/DC optimal power flow and the techno-economic assessment to other microgrids, especially those primarily aimed at supplying electricity to residential consumers and industries. We also hope that the two developed techniques and the TIGON CEDER microgrid example can be used by other companies and research institutions in their developments.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s7">
<title>Data availability statement</title>
<p>The raw data supporting the conclusion of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec id="s8">
<title>Author contributions</title>
<p>AM-C: conceptualization, data curation, formal analysis, investigation, methodology, software, validation, visualization, writing&#x2013;original draft, and writing&#x2013;review and editing. AH-S: conceptualization, formal analysis, investigation, methodology, project administration, software, and writing&#x2013;review and editing. &#xd3;I-M: conceptualization, data curation, formal analysis, investigation, project administration, resources, validation, visualization, and writing&#x2013;review and editing. PP-C: investigation, resources, and writing&#x2013;review and editing. &#xc1;H-J: investigation, resources, and writing&#x2013;review and editing. FF-E: conceptualization, methodology, supervision, and writing&#x2013;review and editing. EB: conceptualization, methodology, supervision, and writing&#x2013;review and editing.</p>
</sec>
<sec sec-type="funding-information" id="s9">
<title>Funding</title>
<p>The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This research received funding from the European Union&#x2019;s Horizon 2020 TIGON project under grant agreement no. 957769.</p>
</sec>
<sec sec-type="COI-statement" id="s10">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s11">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<fn-group>
<fn id="fn1">
<label>1</label>
<p>
<ext-link ext-link-type="uri" xlink:href="http://www.ceder.es/">http://www.ceder.es/</ext-link>
</p>
</fn>
<fn id="fn2">
<label>2</label>
<p>
<ext-link ext-link-type="uri" xlink:href="https://www.ciemat.es/portal.do?IDM=6&amp;NM=1">https://www.ciemat.es/portal.do?IDM&#x3d;6&#x26;NM&#x3d;1</ext-link>
</p>
</fn>
<fn id="fn3">
<label>3</label>
<p>
<ext-link ext-link-type="uri" xlink:href="https://www.sistemaelectrico-ree.es/informe-del-sistema-electrico/mercados/servicios-ajuste/energias-precios-balance">https://www.sistemaelectrico-ree.es/informe-del-sistema-electrico/mercados/servicios-ajuste/energias-precios-balance</ext-link>
</p>
</fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Abadie</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Chamorro</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Levelized cost of electricity: key drivers and valuation methods</article-title>. <source>Dyna</source> <volume>94</volume>, <fpage>656</fpage>&#x2013;<lpage>661</lpage>. <pub-id pub-id-type="doi">10.6036/9223</pub-id>
</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Agundis-Tinajero</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Aldana</surname>
<given-names>N. L. D.</given-names>
</name>
<name>
<surname>Luna</surname>
<given-names>A. C.</given-names>
</name>
<name>
<surname>Segundo-Ram&#xed;rez</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Visairo-Cruz</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Guerrero</surname>
<given-names>J. M.</given-names>
</name>
<etal/>
</person-group> (<year>2018</year>). <article-title>Extended-optimal-power-flow-based hierarchical control for islanded ac microgrids</article-title>. <source>IEEE Trans. Power Electron.</source> <volume>34</volume>, <fpage>840</fpage>&#x2013;<lpage>848</lpage>. <pub-id pub-id-type="doi">10.1109/tpel.2018.2813980</pub-id>
</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Agundis-Tinajero</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Segundo-Ram&#xed;rez</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Visairo-Cruz</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Savaghebi</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Guerrero</surname>
<given-names>J. M.</given-names>
</name>
<name>
<surname>Barocio</surname>
<given-names>E.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Power flow modeling of islanded ac microgrids with hierarchical control</article-title>. <source>Int. J. Electr. Power and Energy Syst.</source> <volume>105</volume>, <fpage>28</fpage>&#x2013;<lpage>36</lpage>. <pub-id pub-id-type="doi">10.1016/j.ijepes.2018.08.002</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Alexander</surname>
<given-names>C. K.</given-names>
</name>
<name>
<surname>Sadiku</surname>
<given-names>M. N.</given-names>
</name>
</person-group> (<year>2013</year>). <source>Fundamentos de circuitos el&#xe9;tricos</source>. <publisher-name>McGraw-Hill Interamericana de Espa&#xf1;a S.L</publisher-name>.</citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Andersson</surname>
<given-names>J. A. E.</given-names>
</name>
<name>
<surname>Gillis</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Horn</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Rawlings</surname>
<given-names>J. B.</given-names>
</name>
<name>
<surname>Diehl</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>CasADi &#x2013; a software framework for nonlinear optimization and optimal control</article-title>. <source>Math. Program. Comput.</source> <volume>11</volume>, <fpage>1</fpage>&#x2013;<lpage>36</lpage>. <pub-id pub-id-type="doi">10.1007/s12532-018-0139-41007/s12532-018-0139-4</pub-id>
</citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ashique</surname>
<given-names>R. H.</given-names>
</name>
<name>
<surname>Salam</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Aziz</surname>
<given-names>M. J. B. A.</given-names>
</name>
<name>
<surname>Bhatti</surname>
<given-names>A. R.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Integrated photovoltaic-grid dc fast charging system for electric vehicle: a review of the architecture and control</article-title>. <source>Renew. Sustain. Energy Rev.</source> <volume>69</volume>, <fpage>1243</fpage>&#x2013;<lpage>1257</lpage>. <pub-id pub-id-type="doi">10.1016/j.rser.2016.11.245</pub-id>
</citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Baldwin</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>Carbon footprint of electricity generation</article-title>. <source>Parliam. Office Sci. Technol.</source> <volume>268</volume>.</citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chopra</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Vanaprasad</surname>
<given-names>G. M.</given-names>
</name>
<name>
<surname>Tinajero</surname>
<given-names>G. D. A.</given-names>
</name>
<name>
<surname>Bazmohammadi</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Vasquez</surname>
<given-names>J. C.</given-names>
</name>
<name>
<surname>Guerrero</surname>
<given-names>J. M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Power-flow-based energy management of hierarchically controlled islanded ac microgrids</article-title>. <source>Int. J. Electr. Power and Energy Syst.</source> <volume>141</volume>, <fpage>108140</fpage>. <pub-id pub-id-type="doi">10.1016/j.ijepes.2022.108140</pub-id>
</citation>
</ref>
<ref id="B9">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Cui</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>Static parameter detection and identification of power grid branch based on PMU measurement</article-title>,&#x201d; in <source>2016 4th international conference on machinery, materials and information technology applications</source> (<publisher-name>Atlantis Press</publisher-name>), <fpage>313</fpage>&#x2013;<lpage>318</lpage>.</citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fotopoulou</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Rakopoulos</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Trigkas</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Stergiopoulos</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Blanas</surname>
<given-names>O.</given-names>
</name>
<name>
<surname>Voutetakis</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>State of the art of low and medium voltage direct current (DC) microgrids</article-title>. <source>Energies</source> <volume>14</volume>, <fpage>5595</fpage>. <pub-id pub-id-type="doi">10.3390/en14185595</pub-id>
</citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hatziargyriou</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Asano</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Iravani</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Marnay</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2007</year>). <article-title>Microgrids</article-title>. <source>IEEE power energy Mag.</source> <volume>5</volume>, <fpage>78</fpage>&#x2013;<lpage>94</lpage>. <pub-id pub-id-type="doi">10.1109/mpae.2007.376583</pub-id>
</citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Katiraei</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Iravani</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Hatziargyriou</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Dimeas</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2008</year>). <article-title>Microgrids management</article-title>. <source>IEEE power energy Mag.</source> <volume>6</volume>, <fpage>54</fpage>&#x2013;<lpage>65</lpage>. <pub-id pub-id-type="doi">10.1109/mpe.2008.918702</pub-id>
</citation>
</ref>
<ref id="B13">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Kiran</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2022</year>). <source>Principles of economics and management for manufacturing engineering</source>. <publisher-name>Butterworth-Heinemann</publisher-name>.</citation>
</ref>
<ref id="B14">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lasseter</surname>
<given-names>R. H.</given-names>
</name>
</person-group> (<year>2002</year>). &#x201c;<article-title>Microgrids</article-title>,&#x201d; in <source>2002 IEEE power engineering society winter meeting. Conference proceedings (Cat. No. 02CH37309)</source> (<publisher-name>IEEE</publisher-name>), <volume>1</volume>, <fpage>305</fpage>&#x2013;<lpage>308</lpage>. <pub-id pub-id-type="doi">10.1109/pesw.2002.985003</pub-id>
</citation>
</ref>
<ref id="B15">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Marnay</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Chatzivasileiadis</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Abbey</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Iravani</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Joos</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Lombardi</surname>
<given-names>P.</given-names>
</name>
<etal/>
</person-group> (<year>2015</year>). &#x201c;<article-title>Microgrid evolution roadmap</article-title>,&#x201d; in <source>2015 international symposium on smart electric distribution systems and technologies (EDST)</source> (<publisher-name>IEEE</publisher-name>), <fpage>139</fpage>&#x2013;<lpage>144</lpage>.</citation>
</ref>
<ref id="B16">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Mart&#xed;n-Crespo</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Baeyens</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Saludes-Rodil</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Frechoso-Escudero</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2023</year>). <source>Aggregated demand flexibility prediction of residential thermostatically controlled loads and participation in electricity balance markets</source>. <comment>
<italic>arXiv preprint arXiv:2308.04853</italic>
</comment>.</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mart&#xed;n-Crespo</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Saludes-Rodil</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Baeyens</surname>
<given-names>E.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Flexibility management with virtual batteries of thermostatically controlled loads: real-time control system and potential in Spain</article-title>. <source>Energies</source> <volume>14</volume>, <fpage>1711</fpage>. <pub-id pub-id-type="doi">10.3390/en14061711</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mohammed</surname>
<given-names>S. A. Q.</given-names>
</name>
<name>
<surname>Jung</surname>
<given-names>J.-W.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>A state-of-the-art review on soft-switching techniques for DC&#x2013;DC, DC&#x2013;AC, AC&#x2013;DC, and AC&#x2013;AC power converters</article-title>. <source>IEEE Trans. Industrial Inf.</source> <volume>17</volume>, <fpage>6569</fpage>&#x2013;<lpage>6582</lpage>. <pub-id pub-id-type="doi">10.1109/tii.2021.3058218</pub-id>
</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Montes</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Castro</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>1995</year>). <article-title>Solving the load flow problem using gr&#xf6;bner basis</article-title>. <source>ACM SIGSAM Bull.</source> <volume>29</volume>, <fpage>1</fpage>&#x2013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1145/216685.216686</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Papapetrou</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Cipollina</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>La Commare</surname>
<given-names>U.</given-names>
</name>
<name>
<surname>Micale</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Zaragoza</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Kosmadakis</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Assessment of methodologies and data used to calculate desalination costs</article-title>. <source>Desalination</source> <volume>419</volume>, <fpage>8</fpage>&#x2013;<lpage>19</lpage>. <pub-id pub-id-type="doi">10.1016/j.desal.2017.05.038</pub-id>
</citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pires</surname>
<given-names>V. F.</given-names>
</name>
<name>
<surname>Pires</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Cordeiro</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>DC microgrids: benefits, architectures, perspectives and challenges</article-title>. <source>Energies</source> <volume>16</volume>, <fpage>1217</fpage>. <pub-id pub-id-type="doi">10.3390/en16031217</pub-id>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Quezada</surname>
<given-names>V. M.</given-names>
</name>
<name>
<surname>Abbad</surname>
<given-names>J. R.</given-names>
</name>
<name>
<surname>Roman</surname>
<given-names>T. G. S.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>Assessment of energy distribution losses for increasing penetration of distributed generation</article-title>. <source>IEEE Trans. power Syst.</source> <volume>21</volume>, <fpage>533</fpage>&#x2013;<lpage>540</lpage>. <pub-id pub-id-type="doi">10.1109/tpwrs.2006.873115</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rauf</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Wahab</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Rizwan</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Rasool</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Khan</surname>
<given-names>N.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Application of dc-grid for efficient use of solar PV system in smart grid</article-title>. <source>Procedia Comput. Sci.</source> <volume>83</volume>, <fpage>902</fpage>&#x2013;<lpage>906</lpage>. <pub-id pub-id-type="doi">10.1016/j.procs.2016.04.182</pub-id>
</citation>
</ref>
<ref id="B24">
<citation citation-type="journal">
<collab>Red El&#xe9;ctrica de Espa&#xf1;a</collab> (<year>2021</year>). <article-title>Gu&#xed;a descriptiva</article-title>. <source>Ser Proveed. Serv. balance. Versi&#xf3;n 03</source>. <comment>(in Spanish)</comment>.</citation>
</ref>
<ref id="B25">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Saeed</surname>
<given-names>M. H.</given-names>
</name>
<name>
<surname>Fangzong</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Kalwar</surname>
<given-names>B. A.</given-names>
</name>
<name>
<surname>Iqbal</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>A review on microgrids&#x2019; challenges and perspectives</article-title>. <source>IEEE Access</source> <volume>9</volume>, <fpage>166502</fpage>&#x2013;<lpage>166517</lpage>. <pub-id pub-id-type="doi">10.1109/access.2021.3135083</pub-id>
</citation>
</ref>
<ref id="B26">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Saeedifard</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Graovac</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Dias</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Iravani</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2010</year>). &#x201c;<article-title>DC power systems: challenges and opportunities</article-title>,&#x201d; in <source>
<italic>IEEE PES general meeting</italic> (IEEE)</source>, <fpage>1</fpage>&#x2013;<lpage>7</lpage>.</citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Salam</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Mohamed</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Hannan</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2008</year>). <article-title>Technical challenges on microgrids</article-title>. <source>ARPN J. Eng. Appl. Sci.</source> <volume>3</volume>, <fpage>64</fpage>&#x2013;<lpage>69</lpage>.</citation>
</ref>
<ref id="B28">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Samperio</surname>
<given-names>&#xc1;.</given-names>
</name>
</person-group> (<year>2023</year>). <source>Sparse recovery of an electrical network</source>. <comment>
<italic>arXiv preprint arXiv:2304.06676</italic>
</comment>.</citation>
</ref>
<ref id="B29">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sartori</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Catalano</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Genco</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Pancotti</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Sirtori</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Vignetti</surname>
<given-names>S.</given-names>
</name>
<etal/>
</person-group> (<year>2014</year>). <article-title>Guide to cost-benefit analysis of investment projects. Economic appraisal tool for cohesion policy 2014-2020</article-title>, <comment>European Commission. Directorate-General for Regional and Urban policy</comment>. <source>Tech. Rep</source>.</citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shao</surname>
<given-names>S. J.</given-names>
</name>
<name>
<surname>Agelidis</surname>
<given-names>V. G.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Review of DC system technologies for large scale integration of wind energy systems with electricity grids</article-title>. <source>Energies</source> <volume>3</volume>, <fpage>1303</fpage>&#x2013;<lpage>1319</lpage>. <pub-id pub-id-type="doi">10.3390/en3061303</pub-id>
</citation>
</ref>
<ref id="B31">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shi</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Semsar</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Lehn</surname>
<given-names>P. W.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Constant current fast charging of electric vehicles via a DC grid using a dual-inverter drive</article-title>. <source>IEEE Trans. Industrial Electron.</source> <volume>64</volume>, <fpage>6940</fpage>&#x2013;<lpage>6949</lpage>. <pub-id pub-id-type="doi">10.1109/tie.2017.2686362</pub-id>
</citation>
</ref>
<ref id="B32">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tinajero</surname>
<given-names>G. D. A.</given-names>
</name>
<name>
<surname>Nasir</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Vasquez</surname>
<given-names>J. C.</given-names>
</name>
<name>
<surname>Guerrero</surname>
<given-names>J. M.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Comprehensive power flow modelling of hierarchically controlled AC/DC hybrid islanded microgrids</article-title>. <source>Int. J. Electr. Power and Energy Syst.</source> <volume>127</volume>, <fpage>106629</fpage>. <pub-id pub-id-type="doi">10.1016/j.ijepes.2020.106629</pub-id>
</citation>
</ref>
<ref id="B33">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>W&#xe4;chter</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Biegler</surname>
<given-names>L. T.</given-names>
</name>
</person-group> (<year>2006</year>). <article-title>On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming</article-title>. <source>Math. Program.</source> <volume>106</volume>, <fpage>25</fpage>&#x2013;<lpage>57</lpage>. <pub-id pub-id-type="doi">10.1007/s10107-004-0559-y</pub-id>
</citation>
</ref>
<ref id="B34">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Goel</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Choo</surname>
<given-names>F. H.</given-names>
</name>
</person-group> (<year>2013</year>). <article-title>Harmonizing AC and DC: a hybrid AC/DC future grid solution</article-title>. <source>IEEE Power Energy Mag.</source> <volume>11</volume>, <fpage>76</fpage>&#x2013;<lpage>83</lpage>. <pub-id pub-id-type="doi">10.1109/mpe.2013.2245587</pub-id>
</citation>
</ref>
<ref id="B35">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zubieta</surname>
<given-names>L. E.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Are microgrids the future of energy? DC microgrids from concept to demonstration to deployment</article-title>. <source>IEEE Electrification Mag.</source> <volume>4</volume>, <fpage>37</fpage>&#x2013;<lpage>44</lpage>. <pub-id pub-id-type="doi">10.1109/mele.2016.2544238</pub-id>
</citation>
</ref>
</ref-list>
<app-group>
<app id="app1">
<title>Appendix A</title>
<sec>
<title/>
<sec>
<title>Microgrid Model</title>
<p>The <inline-formula id="inf998">
<mml:math id="m931">
<mml:mi>&#x3c0;</mml:mi>
</mml:math>
</inline-formula> model representation of grid lines (<xref ref-type="fig" rid="FA1">Figure A1</xref> (<xref ref-type="bibr" rid="B9">Cui, 2017</xref>; <xref ref-type="bibr" rid="B4">Alexander and Sadiku, 2013</xref>)) is used for performing the AC/DC optimal power flow. In the case of DC lines, <inline-formula id="inf999">
<mml:math id="m932">
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf900">
<mml:math id="m933">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are not considered, as the reactive part of impedances does not affect electric charges when they move always in the same direction over time.</p>
<fig id="FA1" position="float">
<label>FIGURE A1</label>
<caption>
<p>
<inline-formula id="inf901">
<mml:math id="m934">
<mml:mi>&#x3c0;</mml:mi>
</mml:math>
</inline-formula> model of lines.</p>
</caption>
<graphic xlink:href="FENRG_fenrg-2024-1399114_wc_app1.tif"/>
</fig>
<p>
<inline-formula id="inf902">
<mml:math id="m935">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is the inverse of the line impedance <inline-formula id="inf903">
<mml:math id="m936">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, which is expressed by <xref ref-type="disp-formula" rid="eA1">Equation A1</xref>.<disp-formula id="eA1">
<mml:math id="m837">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A1)</label>
</disp-formula>
</p>
<p>Both <inline-formula id="inf904">
<mml:math id="m938">
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf905">
<mml:math id="m939">
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are directly proportional to the line length, and, in the case of <inline-formula id="inf906">
<mml:math id="m940">
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, also the frequency. In the case of DC lines, <inline-formula id="inf907">
<mml:math id="m941">
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is not considered because it is a reactive parameter. For AC cases, <inline-formula id="inf908">
<mml:math id="m942">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is obtained using <xref ref-type="disp-formula" rid="eA2">Equation A2</xref>.<disp-formula id="eA2">
<mml:math id="m843">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c9;</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A2)</label>
</disp-formula>
</p>
<p>
<inline-formula id="inf909">
<mml:math id="m944">
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is directly proportional to the line length. Each line has a current limit <inline-formula id="inf910">
<mml:math id="m945">
<mml:msub>
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max,ik</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>.</p>
<p>Voltage at each bus can be expressed by its real and imaginary part, as in <xref ref-type="disp-formula" rid="eA3">Equation A3</xref>
<disp-formula id="eA3">
<mml:math id="m846">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>j</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A3)</label>
</disp-formula>
</p>
<p>The bus voltage phase <inline-formula id="inf911">
<mml:math id="m947">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> can be calculated by <xref ref-type="disp-formula" rid="eA4">Equation A4</xref>.<disp-formula id="eA4">
<mml:math id="m848">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>arctan</mml:mi>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A4)</label>
</disp-formula>
</p>
<p>Each bus of the grid can have a different reference voltage. In order to ease load flow calculations in grids where voltage and current transformations occur through converters or transformers, a base power <inline-formula id="inf912">
<mml:math id="m949">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and a base voltage <inline-formula id="inf913">
<mml:math id="m950">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are set. Base impedance <inline-formula id="inf914">
<mml:math id="m951">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is calculated as in <xref ref-type="disp-formula" rid="eA5">Equation A5</xref>.<disp-formula id="eA5">
<mml:math id="m852">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">base</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A5)</label>
</disp-formula>
</p>
<p>All magnitudes in the grid model are divided by their base values, so they can be expressed per unit (p.u.). Maximum and minimum voltages at each bus are specified (<inline-formula id="inf915">
<mml:math id="m953">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">max</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf916">
<mml:math id="m954">
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">min</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, respectively).</p>
<p>Transformers in the grid are modelled in the same way as lines, but without taking <inline-formula id="inf917">
<mml:math id="m955">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> into account because it is considered to have a minimal impact on the total transformer impedance. The magnitude and the resistive part of their <inline-formula id="inf918">
<mml:math id="m956">
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> are calculated with <xref ref-type="disp-formula" rid="eA6">Equations A6</xref>, <xref ref-type="disp-formula" rid="eA7">A7</xref>.<disp-formula id="eA6">
<mml:math id="m857">
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">ccL,ik</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>N</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:mn>100</mml:mn>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:math>
<label>(A6)</label>
</disp-formula>
<disp-formula id="eA7">
<mml:math id="m858">
<mml:msub>
<mml:mrow>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">RccL,ik</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>N</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:mn>100</mml:mn>
<mml:mo>&#x22c5;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(A7)</label>
</disp-formula>
</p>
<p>Besides transformers, converters are the other grid elements that changes voltage levels between buses. There exists AC/DC, DC/AC, AC/AC and DC/DC converters (<xref ref-type="bibr" rid="B18">Mohammed and Jung, 2021</xref>). Their characteristics needed to perform load flow calculations are nominal power <inline-formula id="inf919">
<mml:math id="m959">
<mml:msub>
<mml:mrow>
<mml:mi>S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, performance <inline-formula id="inf920">
<mml:math id="m960">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and control mode (grid-following or grid-forming). The reactive power at the output of DC/AC and AC/AC converters is included in the grid model of this paper as a reactive power generator in order to recreate the reactive power management operation of these converters.</p>
<p>All generators existing in the microgrid are characterized by their nominal active power <inline-formula id="inf921">
<mml:math id="m961">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, minimum active power <inline-formula id="inf922">
<mml:math id="m962">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, nominal reactive power <inline-formula id="inf923">
<mml:math id="m963">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,nom,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and minimum reactive power <inline-formula id="inf924">
<mml:math id="m964">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">gen,min,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. Regarding loads, they are defined by two parameters: demanded active power <inline-formula id="inf925">
<mml:math id="m965">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and demanded reactive power <inline-formula id="inf926">
<mml:math id="m966">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. Supplying <inline-formula id="inf927">
<mml:math id="m967">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf928">
<mml:math id="m968">
<mml:msub>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">load,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is considered mandatory. In the case of storages, they can act as generators of loads in the power flow. Their defining parameter is <inline-formula id="inf929">
<mml:math id="m969">
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">stor,i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>.</p>
<p>If present, external grids are considered to be capable of providing and consuming active power and reactive power with no limits, but not at the same time.</p>
<p>For the techno-economic assessment, additional information about generators is considered. This includes their investment cost <inline-formula id="inf930">
<mml:math id="m970">
<mml:mi>I</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, residual value <inline-formula id="inf931">
<mml:math id="m971">
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, maintenance cost <inline-formula id="inf932">
<mml:math id="m972">
<mml:mi>M</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, operational cost <inline-formula id="inf933">
<mml:math id="m973">
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, capacity factor <inline-formula id="inf934">
<mml:math id="m974">
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and CO<sub>2</sub> equivalent <inline-formula id="inf935">
<mml:math id="m975">
<mml:mi>G</mml:mi>
<mml:mi>H</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. <inline-formula id="inf936">
<mml:math id="m976">
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is the percentage of power produced by the generator with respect to the power that could have been produced if the generator had operated at maximum rate (<xref ref-type="bibr" rid="B22">Quezada et al., 2006</xref>).</p>
<p>Regarding the rest of the microgrid, investment cost <inline-formula id="inf937">
<mml:math id="m977">
<mml:mi>I</mml:mi>
<mml:mi>C</mml:mi>
</mml:math>
</inline-formula>, residual value <inline-formula id="inf938">
<mml:math id="m978">
<mml:mi>R</mml:mi>
<mml:mi>V</mml:mi>
</mml:math>
</inline-formula>, operation and maintenance cost <inline-formula id="inf939">
<mml:math id="m979">
<mml:mi>O</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>C</mml:mi>
</mml:math>
</inline-formula> and useful life <inline-formula id="inf940">
<mml:math id="m980">
<mml:mi>U</mml:mi>
<mml:mi>L</mml:mi>
</mml:math>
</inline-formula> are used. In addition, the price at which the microgrid sells electricity <inline-formula id="inf941">
<mml:math id="m981">
<mml:mi>E</mml:mi>
<mml:mi>P</mml:mi>
</mml:math>
</inline-formula>,and the discount rate <inline-formula id="inf942">
<mml:math id="m982">
<mml:mi>r</mml:mi>
</mml:math>
</inline-formula> are included in the model. Flexibility income <inline-formula id="inf943">
<mml:math id="m983">
<mml:mi>F</mml:mi>
<mml:mi>I</mml:mi>
</mml:math>
</inline-formula> is considered in the flexibility scenario of the techno-economic analysis.</p>
</sec>
</sec>
</app>
</app-group>
<sec id="s13">
<title>Nomenclature</title>
<table-wrap id="udT1" position="float">
<table>
<tbody valign="top">
<tr>
<td align="left">
<inline-formula id="inf176">
<mml:math id="m209">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b4;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus voltage phase (rad)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf177">
<mml:math id="m210">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b7;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Converter performance</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf178">
<mml:math id="m211">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">a</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left" style="color:#FF0000">Simulated value</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf179">
<mml:math id="m212">
<mml:mi mathvariant="bold-script">B</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Set of buses</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf180">
<mml:math id="m213">
<mml:mi mathvariant="bold-script">G</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid topology network graph</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf181">
<mml:math id="m214">
<mml:mi mathvariant="bold-script">L</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Set of lines</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf105">
<mml:math id="m138">
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid angular frequency (rad/s)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf106">
<mml:math id="m139">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">a</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left" style="color:#FF0000">Measured value</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf107">
<mml:math id="m140">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line susceptance to ground <inline-formula id="inf108">
<mml:math id="m141">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf109">
<mml:math id="m142">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line capacitance (F)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf110">
<mml:math id="m143">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line conductance <inline-formula id="inf111">
<mml:math id="m144">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf112">
<mml:math id="m145">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">C</mml:mi>
<mml:mi mathvariant="bold-italic">F</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator capacity factor (%)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf113">
<mml:math id="m146">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Real part of bus voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf114">
<mml:math id="m147">
<mml:mi mathvariant="bold-italic">E</mml:mi>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Electricity price (currency/kWh)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf115">
<mml:math id="m148">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Imaginary part of bus voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf116">
<mml:math id="m149">
<mml:mi mathvariant="bold-italic">F</mml:mi>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Flexibility income (currency)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf117">
<mml:math id="m150">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">G</mml:mi>
<mml:mi mathvariant="bold-italic">H</mml:mi>
<mml:mi mathvariant="bold-italic">G</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator CO<sub>2</sub> equivalent (kgCO<sub>2</sub>/kWh)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf118">
<mml:math id="m151">
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="bold">a</mml:mi>
<mml:mi mathvariant="bold">n</mml:mi>
<mml:mi mathvariant="bold">d</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Subindices denoting buses</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf119">
<mml:math id="m152">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus injected current (A)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf120">
<mml:math id="m153">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
<mml:mn mathvariant="bold-italic">0</mml:mn>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Current flowing to the ground between i and k (A)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf121">
<mml:math id="m154">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Current flowing from i to k or <italic>vice versa</italic> (A)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf122">
<mml:math id="m155">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line current limit (A)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf123">
<mml:math id="m156">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Maximum current flowing from i to k or <italic>vice versa</italic> (A)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf124">
<mml:math id="m157">
<mml:mi mathvariant="bold-italic">I</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid investment cost (currency)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf125">
<mml:math id="m158">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">I</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator investment cost (currency)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf126">
<mml:math id="m159">
<mml:mi mathvariant="bold-italic">j</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Imaginary unit</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf127">
<mml:math id="m160">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">M</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator maintenance cost (currency/year)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf128">
<mml:math id="m161">
<mml:mi mathvariant="bold-italic">N</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left" style="color:#FF0000">Number of measurements</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf129">
<mml:math id="m162">
<mml:mi mathvariant="bold-italic">n</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Subindex denoting years</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf130">
<mml:math id="m163">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">O</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator operational cost (currency/kWh)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf131">
<mml:math id="m164">
<mml:mi mathvariant="bold-italic">O</mml:mi>
<mml:mi mathvariant="bold-italic">M</mml:mi>
<mml:mi mathvariant="bold-italic">C</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid operation and maintenance cost (currency/year)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf132">
<mml:math id="m165">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus total active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf133">
<mml:math id="m166">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mi mathvariant="bold-italic">v</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Converter injected or transferred active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf134">
<mml:math id="m167">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf135">
<mml:math id="m168">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator minimum active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf136">
<mml:math id="m169">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator nominal active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf137">
<mml:math id="m170">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">l</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">d</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Load active power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf138">
<mml:math id="m171">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mi mathvariant="bold-italic">t</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">r</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Storage nominal power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf139">
<mml:math id="m172">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus total reactive power (VAr)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf140">
<mml:math id="m173">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator reactive power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf141">
<mml:math id="m174">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator minimum active power (VAr)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf142">
<mml:math id="m175">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">g</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator nominal active power (VAr)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf143">
<mml:math id="m176">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">l</mml:mi>
<mml:mi mathvariant="bold-italic">o</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">d</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Load reactive power (W)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf144">
<mml:math id="m177">
<mml:mi mathvariant="bold-italic">r</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Discount rate (%)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf145">
<mml:math id="m178">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">r</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line resistance <inline-formula id="inf146">
<mml:math id="m179">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf147">
<mml:math id="m180">
<mml:mi mathvariant="bold-italic">R</mml:mi>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid residual value (currency)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf148">
<mml:math id="m181">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Generator residual value (currency)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf149">
<mml:math id="m182">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus apparent power (VA)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf150">
<mml:math id="m183">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Base power (VA)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf151">
<mml:math id="m184">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line susceptance <inline-formula id="inf152">
<mml:math id="m185">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf153">
<mml:math id="m186">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Transformer or converter nominal power (VA)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf154">
<mml:math id="m187">
<mml:mi mathvariant="bold-italic">U</mml:mi>
<mml:mi mathvariant="bold-italic">L</mml:mi>
</mml:math>
</inline-formula>
</td>
<td align="left">Microgrid useful life (years)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf155">
<mml:math id="m188">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf156">
<mml:math id="m189">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Base voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf157">
<mml:math id="m190">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">c</mml:mi>
<mml:mi mathvariant="bold-italic">c</mml:mi>
<mml:mi mathvariant="bold-italic">L</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Transformer zero-sequence relative short-circuit voltage percentage (%)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf158">
<mml:math id="m191">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">L</mml:mi>
<mml:mi mathvariant="bold-italic">N</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Transformer nominal voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf159">
<mml:math id="m192">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus maximum voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf160">
<mml:math id="m193">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">m</mml:mi>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus minimum voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf161">
<mml:math id="m194">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">n</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Bus nominal voltage (V)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf162">
<mml:math id="m195">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">R</mml:mi>
<mml:mi mathvariant="bold-italic">c</mml:mi>
<mml:mi mathvariant="bold-italic">c</mml:mi>
<mml:mi mathvariant="bold-italic">L</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Transformer-resistive part of the zero-sequence relative to short-circuit voltage percentage (%)</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf163">
<mml:math id="m196">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line reactance <inline-formula id="inf164">
<mml:math id="m197">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf165">
<mml:math id="m198">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line admittance <inline-formula id="inf166">
<mml:math id="m199">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf167">
<mml:math id="m200">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="bold-italic">a</mml:mi>
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mi mathvariant="bold-italic">e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Base impedance <inline-formula id="inf168">
<mml:math id="m201">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">
<inline-formula id="inf169">
<mml:math id="m202">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">i</mml:mi>
<mml:mi mathvariant="bold-italic">k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>
</td>
<td align="left">Line impedance <inline-formula id="inf170">
<mml:math id="m203">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</back>
</article>