<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article article-type="methods-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">1060215</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2023.1060215</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Energy Research</subject>
<subj-group>
<subject>Methods</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Genetic algorithm optimization for parametrization, digital twinning, and now-casting of unknown small- and medium-scale PV systems based only on on-site measured data</article-title>
<alt-title alt-title-type="left-running-head">Guzman Razo 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.2023.1060215">10.3389/fenrg.2023.1060215</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Guzman Razo</surname>
<given-names>Dorian Esteban</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/1777897/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Madsen</surname>
<given-names>Henrik</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Wittwer</surname>
<given-names>Christof</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Fraunhofer ISE</institution>, <institution>Fraunhofer Institute for Solar Energy Systems</institution>, <addr-line>Freiburg</addr-line>, <country>Germany</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>Department of Applied Mathematics and Computer Science (DTU Compute)</institution>, <institution>Technical University of Denmark</institution>, <addr-line>Kongens Lyngby</addr-line>, <country>Denmark</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/1624482/overview">Mohammadreza Aghaei</ext-link>, Norwegian University of Science and Technology, Norway</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/995568/overview">Atse Louwen</ext-link>, Eurac Research, Italy</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1684355/overview">Aref Eskandari</ext-link>, Amirkabir University of Technology, Iran</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Dorian Esteban Guzman Razo, <email>dorianeguzman@gmail.com</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>01</day>
<month>06</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>11</volume>
<elocation-id>1060215</elocation-id>
<history>
<date date-type="received">
<day>03</day>
<month>10</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>15</day>
<month>05</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2023 Guzman Razo, Madsen and Wittwer.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Guzman Razo, Madsen and Wittwer</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>Accurately predicting and balancing energy generation and consumption are crucial for grid operators and asset managers in a market where renewable energy is increasing. To speed up the process, these predictions should ideally be performed based only on on-site measured data and data available within the monitoring platforms, data which are scarce for small- and medium-scale PV systems. In this study, we propose an algorithm that can now-cast the power output of a photovoltaic (PV) system with high accuracy. Additionally, it offers physical information related to the configuration of such a PV system. We adapted a genetic algorithm-based optimization approach to parametrize a digital twin of unknown PV systems, using only on-site measured PV power and irradiance in the plane of array. We compared several training datasets under various sky conditions. A mean deviation of &#x2212;1.14&#xa0;W/kW<sub>p</sub> and a mean absolute percentage deviation of 1.81% were obtained when we analyzed the accuracy of the PV power now-casting for the year 2020 of the 16 unknown PV systems used for this analysis. This level of accuracy is significant for ensuring the efficient now-casting and operation of PV assets.</p>
</abstract>
<kwd-group>
<kwd>machine learning</kwd>
<kwd>genetic algorithms</kwd>
<kwd>auto-calibrated algorithms</kwd>
<kwd>photovoltaic systems</kwd>
<kwd>parameter estimation</kwd>
<kwd>digital twin</kwd>
<kwd>PV power forecasting</kwd>
<kwd>PV system modeling</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Solar Energy</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Photovoltaic (PV) system installed capacity has doubled globally in the past 3&#xa0;years, hitting a terawatt in April 2022, and is projected to reach 2.3&#xa0;TW by 2025 (<xref ref-type="bibr" rid="B25">SolarPower Europe, 2022</xref>). The surge in PV capacity is being driven by a variety of factors, including favorable laws and growing public knowledge of solar energy&#x2019;s advantages, which are causing this remarkable increase. According to predictions by the International Energy Agency (IEA) in 2022, PV electricity will generate an extra 180&#xa0;TW-hours by 2030, making up 60% of all renewable energy production (<xref ref-type="bibr" rid="B11">International Energy Agency, 2022</xref>). An additional important factor contributing to the success of PV systems is their rapidly declining cost. The average global weighted levelized cost of electricity (LCOE) for the utility-scale PV has dropped by 13% per year since 2010, reaching around 4.8 cents per kilowatt-hour in 2021 (<xref ref-type="bibr" rid="B12">IRENA, 2021</xref>). This trend is expected to continue as technology improves and economies of scale are reached, making solar energy an increasingly attractive and cost-effective option for energy generation.</p>
<p>Simulating and forecasting the PV power output of a utility-scale PV plant is very important for both plant managers and electricity network operators. Indeed, an accurate PV yield study is one of the most crucial elements for a successful bankability and feasible study of a PV power plant (<xref ref-type="bibr" rid="B19">M&#xfc;ller et al, 2016</xref>). Reliable irradiance data and an effective PV power simulation tool are crucial for correctly forecasting the power output of a PV system. Although the irradiance data should be approximated with high accuracy and temporal resolution, the simulation tool should mimic the behavior of a PV system under various weather and operating conditions. These two elements can be used to produce an accurate and reliable PV yield study (<xref ref-type="bibr" rid="B20">M&#xfc;ller et al, 2007</xref>). Achieving an accurate PV power simulation often requires specific physical and technical data for the PV system or subsystem being modeled, according to <xref ref-type="bibr" rid="B20">M&#xfc;ller et al (2007</xref>. Yet, these data are not always available or may be incomplete for certain PV systems or subsystems in a larger PV portfolio. As a result, accurate power prediction for such systems may be challenging. Moreover, irradiance data used for PV power simulation can be derived from satellite observations or measured on-site. However, inconsistencies between the on-site and satellite-derived irradiance data can propagate proportionally up to the simulated PV power output. Furthermore, inaccuracies in the different models used within the PV power modeling process can amplify these errors (<xref ref-type="bibr" rid="B27">Urraca et al, 2018a</xref>).</p>
<p>As suggested in IEC 61850-7-420 (<xref ref-type="bibr" rid="B10">IEC, 2009</xref>), PV systems are expected to have basic meteorological measurement devices for ambient temperature and solar irradiation. Considering this, our work focuses on developing an optimization algorithm that learns the basic parameters of an unknown small- or medium-scale PV system or subsystem. Thereby, an accurate PV power simulation is implemented based on only the on-site measured PV power and on-site measured meteorological data.</p>
<p>This work is a continuation of a previous publication (<xref ref-type="bibr" rid="B5">Guzman Razo et al, 2020</xref>), in which we used a genetic algorithm (GA) approach to parametrize and create a digital twin of an unknown PV system based on the measured PV power and data provided by SolarGIS s.r.o., including air temperature and satellite-derived irradiation. Next, we created a digital twin and accurately simulated the behavior of that specific PV power plant under different outdoor conditions. This publication will be referred to as <italic>Guzman1</italic> in the following sections of this work.</p>
<p>GA optimization offers a deterministic and time-efficient alternative for curve fitting. Additionally, GA optimization characteristically offers an alternative (crossover and mutation) to avoid solving for local minima. In contrast with <italic>Guzman1</italic>, in this work, we created a digital twin of an unknown small- or medium-scale PV system without exogenous information. In other words, the current GA optimization approach is based on only the on-site measured PV power and on-site measured meteorological data, specifically, module temperature (<inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>) and irradiance in the plane of array (<inline-formula id="inf2">
<mml:math id="m2">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>) data (considered to be the most accurate source of irradiance data for PV power simulations (<xref ref-type="bibr" rid="B28">Urraca et al, 2018b</xref>)).</p>
<p>This work aims to<list list-type="simple">
<list-item>
<p>&#x2022; Show an accurate method to create a digital twin of a PV system based on the GA optimization;</p>
</list-item>
<list-item>
<p>&#x2022; Learn and optimize basic parameters of an unknown PV system or subsystem without the need for external data, including the PV module temperature coefficient, Heydenreich <italic>a</italic>, <italic>b</italic>, and <italic>c</italic>, DC-to-AC ratio, and nominal power;</p>
</list-item>
<list-item>
<p>&#x2022; Evaluate the accuracy of the digital twin created with different lengths of training data;</p>
</list-item>
<list-item>
<p>&#x2022; Evaluate the now-cast precision of a digital twin trained with either all-sky or clear-sky conditions;</p>
</list-item>
<list-item>
<p>&#x2022; Propose potential accuracy improvement for the GA optimization approach proposed in this study.</p>
</list-item>
</list>
</p>
<p>This article is structured as follows: We present a summary of previous publications for PV simulation and forecasting using exclusively monitoring data and metrics to evaluate the results (<xref ref-type="sec" rid="s2">Section 2</xref>). In <xref ref-type="sec" rid="s3">Section 3</xref>, we show how we adapted the methodology from <italic>Guzman1</italic> and present a description of the data to be used within this study. In <xref ref-type="sec" rid="s4">Section 4</xref>, we offer a discussion regarding the results of the GA optimization, namely, digital twin parameters and the now-casting results using these parameters. In addition, we validate the methodology proposed in the current study and propose an example to improve the now-casting accuracy considering additional weather information. Finally, in <xref ref-type="sec" rid="s5">Section 5</xref>, we present the main conclusion of this work and future improvements.</p>
</sec>
<sec id="s2">
<title>2 Literature overview and evaluation metrics</title>
<p>Short-term PV power forecasting is key for achieving a balance between energy consumption and production in a grid with high PV penetration, applications for storage management, and reliability of the bidding markets. This work focuses on creating an accurate tool that can be applied for PV parameter extraction and short-term PV power forecasting.</p>
<p>In this section, we present methods suggested in the literature to create a model of a PV system and the use of that model for short-term forecasting with no additional data to those collected on-site by the data acquisition systems. Moreover, in this section, we show the accuracy metrics used to evaluate the method proposed in this publication.</p>
<sec id="s2-1">
<title>2.1 PV system modeling methods for short-term power forecasting without external inputs</title>
<p>At present, several machine-learning approaches have been studied to develop models for PV power forecasting. These models use on-site power-measured data in combination with numerical weather prediction or satellite-derived data. These methods commonly minimize data used while increasing the overall accuracy of the solution. However, these approaches rarely provide a physical description of the PV system&#x2019;s components and configuration. In this study, we focus on methods without exogenous data, in other words, methods that include exclusively on-site PV power-measured data and on-site measured weather data.</p>
<p>
<xref ref-type="bibr" rid="B16">Mandal et al (2012</xref>) offered a solution with a mix of wavelet transform (WT) and different machine learning techniques. A PV system model is created by dividing the PV power time-series data between the ill-mode and non-linear fluctuations (spikes in power). After that, four components are extracted by downsampling and then filtered using low-pass filters. Finally, the PV system model is obtained after a wavelet reconstruction, including some upsampling after feeding each one of the individual components from the TW into different neural networks. A mean absolute percentage deviation (MAPD) of 2.38% can be achieved for clear-sky periods of PV power forecasting. This method has a horizon of 12&#xa0;h, and its performance decreases considerably when cloudy or rainy days are forecasted (<xref ref-type="bibr" rid="B16">Mandal et al, 2012</xref>).</p>
<p>
<xref ref-type="bibr" rid="B1">Almeida et al (2015)</xref> proposed an alternative model for PV power output forecasting that includes on-site weather data. They applied a random forest (RF) model to create a PV model and then used numerical weather prediction data to forecast the PV power output. The results suggested an MAPD of 9.5% between the forecasted and the on-site measured data (<xref ref-type="bibr" rid="B1">Almeida et al, 2015</xref>).</p>
<p>This contribution proposed a data-driven approach based on the use of artificial neural networks (ANNs) trained with measured PV power to create day-ahead forecasts of PV power. Unlike other methods, this solution does not require any weather data and offers an MAPD of 6.64% for the best-case scenario.</p>
<p>The suggestions from <xref ref-type="bibr" rid="B4">Gonz&#xe1;lez Ordiano et al (2017</xref>) on using weather-free approaches based on machine learning techniques are particularly relevant. This contribution proposed a data-driven approach based on the use of ANNs trained with measured PV power to create day-ahead forecasts of PV power. Unlike other methods, this solution does not require any weather data and offers an MAPD of 6.64%, for the best-case scenario (<xref ref-type="bibr" rid="B4">Gonz&#xe1;lez Ordiano et al, 2017</xref>).</p>
<p>In contrast to the various machine learning solutions, there are only a few physics-based or hybrid methods in the literature that provide a description of a specific PV system or subsystem&#x2019;s configuration.</p>
<p>The article by <xref ref-type="bibr" rid="B21">Ogliari et al (2017</xref>) presents a model for next-day PV power forecasting based on the well-known single-diode model, which can consider either three or five parameters. In addition, the authors propose two other approaches, an ANN model and a hybrid model combining both physical and ANN models, for next-day forecasting. The ANN and hybrid models use historical weather data for training, with two different training approaches. However, it is important to note that the physical parameters required for the single-diode model need to be determined from the PV module&#x2019;s datasheet or from previous experiments (<xref ref-type="bibr" rid="B21">Ogliari et al, 2017</xref>).</p>
<p>It is important to mention that the physical model used in Ogliari et al can only describe the behavior of a PV module under outdoor conditions without considering the losses from the rest of the components of a PV system or subsystem, i.e., cabling losses and inverter efficiency (DC-to-AC ratio). Ogliari et al reported achieving mean absolute deviations (MADs) of 19.1 W and 20.2&#xa0;W for the three- and five-parameter physical models, respectively. In the case of the hybrid method, the MAD is 12.46&#xa0;W for the best case of the first training approach and 12.5&#xa0;W for the best case of the second training approach.</p>
<sec id="s2-1-1">
<title>2.1.1 Evaluation metrics</title>
<p>Similar to <italic>Guzman1</italic>, we used four values to evaluate the accuracy of the digital twin created by the GA optimization method offered here, i.e., root mean square deviation (RMSD), MAPD, mean bias deviation (MBD), and MAD. Eqs. <xref ref-type="disp-formula" rid="e1">1</xref>&#x2013;<xref ref-type="disp-formula" rid="e4">4</xref>, respectively, show how we calculate the values.<disp-formula id="e1">
<mml:math id="m3">
<mml:mrow>
<mml:mi>R</mml:mi>
<mml:mi>M</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>n</mml:mi>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:msqrt>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>
<disp-formula id="e2">
<mml:math id="m4">
<mml:mrow>
<mml:mi>M</mml:mi>
<mml:mi>A</mml:mi>
<mml:mi>P</mml:mi>
<mml:mi>D</mml:mi>
<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:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>n</mml:mi>
</mml:msubsup>
<mml:mfrac>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>
<disp-formula id="e3">
<mml:math id="m5">
<mml:mrow>
<mml:mi>M</mml:mi>
<mml:mi>B</mml:mi>
<mml:mi>D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>n</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>
<disp-formula id="e4">
<mml:math id="m6">
<mml:mrow>
<mml:mi>M</mml:mi>
<mml:mi>A</mml:mi>
<mml:mi>D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>n</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>where <inline-formula id="inf3">
<mml:math id="m7">
<mml:mrow>
<mml:msub>
<mml:mi>y</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the actual value, <inline-formula id="inf4">
<mml:math id="m8">
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the estimated value, and the number of observations is <inline-formula id="inf5">
<mml:math id="m9">
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Estimated values and actual values exclude nighttime.</p>
</sec>
</sec>
</sec>
<sec id="s3">
<title>3 Methodology and data</title>
<p>In this work, we adapted some steps of a PV power simulation tool developed in-house by Fraunhofer ISE and suggested by <xref ref-type="bibr" rid="B3">Dirnberger et al (2015</xref>) and <xref ref-type="bibr" rid="B19">M&#xfc;ller et al (2016</xref>). We optimized the parameters required by the PV system simulation tool using the GA and created a digital twin of an unknown PV system or subsystem.</p>
<p>
<xref ref-type="fig" rid="F1">Figure 1</xref> shows the overall methodology used to parameterize an unknown PV system or subsystem, with the GA optimization process, the PV system simulation tool (and its main models), the inputs (i.e., initial parameters, and on-site measured meteorological and PV power), and the optimized parameters as an output, which are later used as a digital twin. The green dotted rectangle represents the GA optimization process, while the orange dotted rectangle represents the PV system simulation process and its corresponding steps.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Interaction between inputs and outputs of the overall GA optimization methodology.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g001.tif"/>
</fig>
<sec id="s3-1">
<title>3.1 PV system simulation</title>
<p>As shown in the orange rectangle in <xref ref-type="fig" rid="F1">Figure 1</xref>, the adapted PV system simulation tool can simulate AC PV power with only on-site measured <inline-formula id="inf6">
<mml:math id="m10">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf7">
<mml:math id="m11">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> as inputs. Comparable to <italic>Guzman1</italic>, the simulation tool proposed here neglects some PV power performance losses, such as soiling, degradation, snow, and inter-row shading. However, surrounding shading loss effects (horizon line) can be included in the <inline-formula id="inf8">
<mml:math id="m12">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> on-site measurements, in addition to specific objects projecting shadow to a particular part of the PV system or subsystem. The PV system simulation model proposed here comprises two main steps, DC PV power and AC PV power:</p>
<p>Using equations suggested by <xref ref-type="bibr" rid="B6">Heydenreich et al (2008</xref>)(Eqs. <xref ref-type="disp-formula" rid="e5">5</xref>, <xref ref-type="disp-formula" rid="e6">6</xref>), we simulated DC PV power (<xref ref-type="bibr" rid="B6">Heydenreich et al, 2008</xref>)<italic>.</italic> First, the DC PV power at a temperature of 25&#xb0;C, or standard test conditions (STCs) Eq. <xref ref-type="disp-formula" rid="e5">5</xref>, was simulated, and later, we translated that simulated DC PV power to the on-site measured temperature and irradiance conditions Eq. <xref ref-type="disp-formula" rid="e6">6</xref>.<disp-formula id="e5">
<mml:math id="m13">
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>T</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>G</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mi mathvariant="italic">ln</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="italic">ln</mml:mi>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>where <inline-formula id="inf9">
<mml:math id="m14">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>T</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is 25&#xb0;C, and <inline-formula id="inf10">
<mml:math id="m15">
<mml:mrow>
<mml:mi>a</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf11">
<mml:math id="m16">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, and <inline-formula id="inf12">
<mml:math id="m17">
<mml:mrow>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> are constants defining the PV module efficiency curve at a specified <inline-formula id="inf13">
<mml:math id="m18">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
<disp-formula id="e6">
<mml:math id="m19">
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3b7;</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>T</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3b3;</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="|">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>T</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>where <inline-formula id="inf14">
<mml:math id="m20">
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> represents the PV module temperature coefficient, <inline-formula id="inf15">
<mml:math id="m21">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> represents the PV module temperature measured on-site, and in both equations, and <inline-formula id="inf16">
<mml:math id="m22">
<mml:mrow>
<mml:mi>&#x3b7;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> represents the PV module efficiency at specific conditions.</p>
<p>To simulate AC PV power output, we used the inverter model proposed by <xref ref-type="bibr" rid="B24">Schmidt and Sauer (1994</xref>), accounting for 1% of cabling losses (<xref ref-type="bibr" rid="B24">Schmidt and Sauer, 1994</xref>).</p>
</sec>
<sec id="s3-2">
<title>3.2 Detection of clear-sky moments and GA optimization</title>
<p>To define the best climatic conditions for the parameter extraction, in the GA optimization training phase, we created two different training sets:<list list-type="simple">
<list-item>
<p>&#x2022; The first set includes all possible conditions measured on-site i.e., overcast and clear-sky-like moments. This training dataset will be referred to in this work as <italic>all-sky.</italic>
</p>
</list-item>
<list-item>
<p>&#x2022; The second set filters out the overcast moments and only includes clear-sky-like moments. This training dataset will be referred to in this work as <italic>clear-sky.</italic>
</p>
</list-item>
</list>
</p>
<p>We detected and filtered clear-sky-like moments based on the two-step process described in detail in <italic>Guzman1</italic>. First, based on the on-site measured PV power data, a statistical clear-sky curve was created following the method implemented and proposed by <xref ref-type="bibr" rid="B26">Stein et al (2012</xref>) and <xref ref-type="bibr" rid="B22">Reno and Hansen (2016</xref>). Next, with the &#x201c;detect_clearsky&#x201d; function from the PVLib library (<xref ref-type="bibr" rid="B8">Holmgren et al, 2020</xref>), we detected clear-sky-like moments. Training datasets of both clear-sky and all-sky moments comprised only on-site measured PV power data and their correspondent on-site measured <inline-formula id="inf17">
<mml:math id="m23">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf18">
<mml:math id="m24">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> being used in this study.</p>
<p>In general terms, we based our GA algorithm on the technique proposed by <xref ref-type="bibr" rid="B7">Holland (1975</xref>). Although GA optimization is considered a traditional optimization algorithm, it has been rarely implemented in the solar industry. Moreover, inherently, the GA optimization offers an accurate and time-efficient deterministic approximation of the real parameters of unknown PV systems and subsystems. Additionally, the GA performs effectively for problems relating to dynamic environments where an optimal answer can evolve over time. In these situations, the solution space might be too big to thoroughly explore, and the ideal answer can change as the situation changes (<xref ref-type="bibr" rid="B18">Mori and Kita, 2000</xref>).</p>
<p>The novelty of this work relies on the fact that we can extract the main characteristics of an unknown PV system or subsystem by implementing a similar GA optimization to the one proposed by <xref ref-type="bibr" rid="B7">Holland (1975)</xref> within a stepwise process. In this work, we opted for a stepwise optimization process to reduce the compensation between parameters.</p>
<p>To extract the most accurate PV system parameters, we minimized the MAD (see Eq. <xref ref-type="disp-formula" rid="e4">4</xref>) between simulated AC PV power and on-site measured AC PV power. The MAD of the best member of the population and population mean MAD are two key performance indexes to monitor throughout the GA optimization. The optimization process is interrupted if neither of the two performance indexes improves any more. A detailed description of this process can be found in <italic>Guzman1</italic>.</p>
<p>In the GA optimization, to create the initial population of PV system parameters to be evaluated and optimized, we began by defining the initial parameters for this work as 1-kilowatt peak (kW<sub>p</sub>) for nominal power, &#x2212;0.43 %/&#xb0;C for the power temperature coefficient, and a ratio of 1 for the DC to AC power.</p>
<p>Next, we normalized the on-site measured AC PV power by the maximum measured value. By normalizing on-site measured AC PV power, we compared it with the simulated AC PV power of a 1-kWp installed capacity system. It is important to mention that the measured <inline-formula id="inf19">
<mml:math id="m25">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> must be in the same plane of array of the PV system or subsystem. After the AC PV power is normalized, the subsequent steps are followed to complete the optimization process for the assumed 1-kWp PV system:<list list-type="simple">
<list-item>
<p>&#x2022; With cross-validation optimization, we selected the best set of <italic>a</italic>, <italic>b</italic>, and <italic>c</italic> parameters for (Eq. <xref ref-type="disp-formula" rid="e5">5</xref>). The cross-validation optimization process was based on a database comprising 107 sets of three parameters, described in <italic>Guzman1</italic>, including the results from Fraunhofer ISE CalLab efficiency measurements of 107 PV modules at different irradiance levels. We simulated DC PV power, using each one of the 107 sets of parameters, and compared it with the normalized AC power. We considered the lower MAD as the optimum set of parameters for the simulated PV system.</p>
</list-item>
<list-item>
<p>&#x2022; We used GA optimization to learn the PV module temperature coefficient by minimizing the MAD between simulated DC PV power resulting from Eq. <xref ref-type="disp-formula" rid="e6">6)</xref> and normalized-measured AC PV power.</p>
</list-item>
<list-item>
<p>&#x2022; To optimize the DC-to-AC ratio, we used GA optimization to minimize the MAD between simulated AC PV power (based only on the efficiency section of the Schmidt and Sauer model) and normalized-measured AC PV power.</p>
</list-item>
<list-item>
<p>&#x2022; Finally, we used GA optimization to minimize the MAD between simulated AC PV power and measured AC PV power (non-normalized) to extract the PV system nominal power.</p>
</list-item>
</list>
</p>
<p>The results obtained from applying the PV models with the optimized parameters in this study accurately reflect the real behavior of the tested PV system. As a result, by using these optimized parameters, we can create a digital twin of the PV system or subsystem and simulate its performance by changing the irradiance and temperature conditions to current (now-cast) or future (forecast) values.</p>
<p>
<xref ref-type="fig" rid="F2">Figure 2</xref> shows two digital twins created from on-site measurements of a system located in southwest Germany with a training dataset of 30 days length (before the day to be tested), in which all-sky conditions are considered. On the left-hand side, subplot (a) shows a PV power simulation for a clear-sky-like day: measured PV power, the measured <inline-formula id="inf20">
<mml:math id="m26">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Subplot (c) shows the deviation between the simulated and measured PV power in W/kW<sub>p</sub>. On the right-hand side, subplot (b) shows overcast-like day results: simulated PV power, measured PV power, and measured <inline-formula id="inf21">
<mml:math id="m27">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Subplot (d) shows the deviation between the simulated and measured PV power in W/kW<sub>p</sub>. On-site data for the optimization have been measured during the year 2020, and the results presented in this example considered only daytime measurements.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Two-day results of a digital twin from a system located in southwest Germany. In subfigure <bold>(A, B)</bold>, the red dotted line shows the irradiance G measured on-site, the orange dotted line shows the AC PV powermeasured on-site, and the solid green line shows the AC PV power forecasted by the digital twin parametrized with a 30-days long data set considering all-sky conditions. Subfigures <bold>(C, D)</bold> show the deviation betweenthe AC PV power measured on-site and the AC PV power forecasted. The left side of FIGURE 2 shows a clear-sky like day and the right side shows an overcast-like day.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g002.tif"/>
</fig>
</sec>
<sec id="s3-3">
<title>3.3 Data used in this publication</title>
<p>In this work, we used a database comprising 16 real on-site measured PV systems installed in Germany, which are part of the Fraunhofer ISE monitoring portfolio. The geographical location of those systems can be observed in <xref ref-type="fig" rid="F3">Figure 3</xref>.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Location of the 16 real on-site measured PV systems.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g003.tif"/>
</fig>
<p>The database used here, collected between 2018 and 2020, consists of a time series of approximately 567,500 points of 5-min resolution including three main features: measured PV power, measured <inline-formula id="inf22">
<mml:math id="m28">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">mod</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and measured <inline-formula id="inf23">
<mml:math id="m29">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. <xref ref-type="table" rid="T1">Table 1</xref> shows the nominal power and the <inline-formula id="inf24">
<mml:math id="m30">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> sensor installed at each location of the 16&#xa0;PV systems. PV systems from 36&#xa0;kWp up to 1,202&#xa0;kWp were considered in this publication.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Nominal power and <inline-formula id="inf25">
<mml:math id="m31">
<mml:mrow>
<mml:mi mathvariant="bold-italic">G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> sensor description for each of the 16&#xa0;PV systems.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">System</th>
<th align="center">Nominal power (kW<sub>p</sub>)</th>
<th align="center">Sensor<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref>
</th>
<th align="center">System</th>
<th align="center">Nominal power (kW<sub>p</sub>)</th>
<th align="center">Sensor<xref ref-type="table-fn" rid="Tfn1">
<sup>a</sup>
</xref>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">ID 1</td>
<td align="center">36</td>
<td align="center">1</td>
<td align="center">ID 9</td>
<td align="center">555</td>
<td align="center">2</td>
</tr>
<tr>
<td align="center">ID 2</td>
<td align="center">899</td>
<td align="center">2</td>
<td align="center">ID 10</td>
<td align="center">1,000</td>
<td align="center">2</td>
</tr>
<tr>
<td align="center">ID 3</td>
<td align="center">999</td>
<td align="center">2</td>
<td align="center">ID 11</td>
<td align="center">497</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">ID 4</td>
<td align="center">910</td>
<td align="center">1</td>
<td align="center">ID 12</td>
<td align="center">1,202</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">ID 5</td>
<td align="center">553</td>
<td align="center">2</td>
<td align="center">ID 13</td>
<td align="center">293</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">ID 6</td>
<td align="center">713</td>
<td align="center">2</td>
<td align="center">ID 14</td>
<td align="center">829</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">ID 7</td>
<td align="center">595</td>
<td align="center">2</td>
<td align="center">ID 15</td>
<td align="center">1,012</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">ID 8</td>
<td align="center">678</td>
<td align="center">2</td>
<td align="center">ID 16</td>
<td align="center">1,045</td>
<td align="center">1</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn id="Tfn1">
<label>a</label>
<p>1 &#x3d; Mencke and Tegtmeyer Si reference cell; 2 &#x3d; Kipp and Zonen CMP11 pyranometer.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Additionally in <xref ref-type="sec" rid="s4-3-1">Section 4.3.1</xref>, we used daily observations of snow depth data from the Deutscher Wetterdienst (German Weather Service) climate data center (CDC) (<xref ref-type="bibr" rid="B14">Kaspar et al, 2013</xref>) for the year 2020, for all 16 locations.</p>
</sec>
</sec>
<sec sec-type="results|discussion" id="s4">
<title>4 Results and discussion</title>
<p>In the first part of this section, our goal was to demonstrate the impact of different lengths of training datasets on the parametrization and now-casting performance of the digital twin. We analyzed data from a PV system located in southwest Germany (ID 5) to investigate this effect. The selection of PV system ID 5 was arbitrary and was chosen out of the 16 real PV systems in our database to randomize the process and prioritize our research on the effect of different training dataset lengths on PV system parametrization.</p>
<p>The reported design parameters from the PV system ID 5 are the following:<list list-type="simple">
<list-item>
<p>&#x2022; Temperature coefficient (%/&#xb0;C): <bold>-0.43</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Heydenreich a: <bold>0.001084</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Heydenreich b: <bold>-7.247061</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Heydenreich c: <bold>-156.5457</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; DC-to-AC ratio: <bold>1.04</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Nominal power (kW<sub>p</sub>): <bold>553</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Year of construction: <bold>2010</bold>
</p>
</list-item>
</list>
</p>
<p>Next, we evaluated the rest of the PV systems within the database using the best-performing length for training the digital twin. Additionally, we investigated the potential for improving now-casting accuracy by considering locally measured snow deposition information. Finally, we discuss limitations and possible future improvements at the end of this section.</p>
<sec id="s4-1">
<title>4.1 Digital twin parametrization</title>
<p>To evaluate the effect of seasonality and the length of training data on the parametrization of the digital twin and the accuracy of now-casting, we randomly selected 1&#xa0;day per week of the year 2020 (a total of 52 days). For each selected day, we used six different training dataset lengths, including 30, 60, 90, 120, 150, and 182 days prior to the selected day. We also identified clear-sky conditions within all the training datasets and trained the GA using both all-sky and clear-sky moments. Each combination of training dataset length, selected day, and all/clear-sky moments resulted in a different set of parameters (digital twin) for the PV system under consideration.</p>
<p>
<xref ref-type="fig" rid="F4">Figure 4</xref> shows plots of optimization results for nominal power and the DC-to-AC ratio, considering 52 randomly chosen days and different training set lengths: 30, 60, 90, 120, 150, and 182&#xb0;days. Optimization results for the temperature coefficient have been reported constantly throughout the 52&#xb0;days (&#x2212;0.4%/&#xb0;C) and, therefore, are not shown in the figure. In general, while considering all-sky moments, the DC-to-AC ratio (see subplot c)) remains more constant than while considering only clear-sky moments. In contrast to that, optimization for nominal power remains more stable while considering only clear-sky moments (see subplot b)).</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>GA optimization results for nominal power and the DC-to-AC ratio. A total of 52 days were chosen, of the year 2020 considering six different training datasets for each day; all-sky and clear-sky conditions with 30, 60, 90, 120, 150, and 182&#xb0;days of training datasets. The 30-day dataset is represented by the solid blue line, 60-day dataset is represented by the orange dashed-line, 90-day dataset is represented by a green dotted line, 120-day dataset is represented by the dotted&#x2013;dashed red line, 150-day dataset is represented by the dotted&#x2013;dashed blue line, 182-day dataset is represented by the dotted&#x2013;dashed brown line, and the reported parameter is represented by a horizontal red dashed-line. <xref ref-type="fig" rid="F4">Figure 4</xref> is divided into left-hand <bold>(A, C)</bold> and right-hand <bold>(B, D)</bold> sections. The left-hand subplots <bold>(A, C)</bold> show optimized parameters for all-sky condition optimization, whereas the right-hand side subplots <bold>(B, D)</bold> show optimized parameters considering only clear-sky conditions.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g004.tif"/>
</fig>
<p>The results of a quantitative analysis are included in <xref ref-type="table" rid="T2">Table 2</xref>. The analysis includes results from the GA optimization considering clear-sky and all-sky conditions for all the different training length datasets.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Parametrization results of the GA optimization for PV system ID5 including all-sky and clear-sky conditions.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="3" align="center">Sky</th>
<th rowspan="3" align="center">Training length (days)</th>
<th colspan="8" align="center">Parameter</th>
</tr>
<tr>
<th colspan="4" align="center">Nominal power (<italic>Reported: 553 kW</italic>
<sub>
<italic>p</italic>
</sub>)</th>
<th colspan="4" align="center">DC-to-AC ratio (<italic>Reported: 1.04</italic>)</th>
</tr>
<tr>
<th align="center">
<italic>Mean</italic> (<italic>kW</italic>
<sub>
<italic>p</italic>
</sub>)</th>
<th align="center">
<italic>MAPD (%)</italic>
</th>
<th align="center">
<italic>MBD</italic> (<italic>kW</italic>
<sub>
<italic>p</italic>
</sub>)</th>
<th align="center">
<italic>RMSD</italic> (<italic>kW</italic>
<sub>
<italic>p</italic>
</sub>)</th>
<th align="center">
<italic>Mean</italic>
</th>
<th align="center">
<italic>MAPD (%)</italic>
</th>
<th align="center">
<italic>MBD</italic>
</th>
<th align="center">
<italic>RMSD</italic>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td rowspan="6" align="center">All</td>
<td align="center">30</td>
<td align="center">497.71</td>
<td align="center">10.70</td>
<td align="center">&#x2212;55.29</td>
<td align="center">61.97</td>
<td align="center">0.99</td>
<td align="center">21.78</td>
<td align="center">&#x2212;0.05</td>
<td align="center">0.32</td>
</tr>
<tr>
<td align="center">60</td>
<td align="center">504.94</td>
<td align="center">9.94</td>
<td align="center">&#x2212;48.06</td>
<td align="center">56.66</td>
<td align="center">0.88</td>
<td align="center">21.65</td>
<td align="center">&#x2212;0.16</td>
<td align="center">0.36</td>
</tr>
<tr>
<td align="center">90</td>
<td align="center">502.84</td>
<td align="center">9.07</td>
<td align="center">&#x2212;50.16</td>
<td align="center">52.89</td>
<td align="center">0.79</td>
<td align="center">24.94</td>
<td align="center">&#x2212;0.25</td>
<td align="center">0.41</td>
</tr>
<tr>
<td align="center">120</td>
<td align="center">
<bold>510.55</bold>
</td>
<td align="center">
<bold>7.93</bold>
</td>
<td align="center">
<bold>&#x2212;42.45</bold>
</td>
<td align="center">
<bold>46.85</bold>
</td>
<td align="center">0.72</td>
<td align="center">30.81</td>
<td align="center">&#x2212;0.32</td>
<td align="center">0.51</td>
</tr>
<tr>
<td align="center">150</td>
<td align="center">507.50</td>
<td align="center">8.23</td>
<td align="center">&#x2212;45.50</td>
<td align="center">47.52</td>
<td align="center">0.91</td>
<td align="center">12.30</td>
<td align="center">&#x2212;0.13</td>
<td align="center">0.16</td>
</tr>
<tr>
<td align="center">182</td>
<td align="center">501.22</td>
<td align="center">9.36</td>
<td align="center">&#x2212;51.78</td>
<td align="center">52.26</td>
<td align="center">
<bold>0.96</bold>
</td>
<td align="center">
<bold>7.78</bold>
</td>
<td align="center">
<bold>&#x2212;0.08</bold>
</td>
<td align="center">
<bold>0.08</bold>
</td>
</tr>
<tr>
<td rowspan="6" align="center">Clear</td>
<td align="center">30</td>
<td align="center">503.71</td>
<td align="center">8.91</td>
<td align="center">&#x2212;49.29</td>
<td align="center">50.47</td>
<td align="center">0.87</td>
<td align="center">40.16</td>
<td align="center">&#x2212;0.17</td>
<td align="center">0.47</td>
</tr>
<tr>
<td align="center">60</td>
<td align="center">504.64</td>
<td align="center">8.75</td>
<td align="center">&#x2212;48.36</td>
<td align="center">49.36</td>
<td align="center">0.86</td>
<td align="center">34.87</td>
<td align="center">&#x2212;0.18</td>
<td align="center">0.43</td>
</tr>
<tr>
<td align="center">90</td>
<td align="center">504.44</td>
<td align="center">8.78</td>
<td align="center">&#x2212;48.56</td>
<td align="center">49.51</td>
<td align="center">0.78</td>
<td align="center">32.47</td>
<td align="center">&#x2212;0.26</td>
<td align="center">0.39</td>
</tr>
<tr>
<td align="center">120</td>
<td align="center">
<bold>508.02</bold>
</td>
<td align="center">
<bold>8.13</bold>
</td>
<td align="center">
<bold>&#x2212;44.98</bold>
</td>
<td align="center">
<bold>45.89</bold>
</td>
<td align="center">0.81</td>
<td align="center">29.36</td>
<td align="center">&#x2212;0.23</td>
<td align="center">0.49</td>
</tr>
<tr>
<td align="center">150</td>
<td align="center">504.83</td>
<td align="center">8.71</td>
<td align="center">&#x2212;48.17</td>
<td align="center">48.70</td>
<td align="center">1.00</td>
<td align="center">10.21</td>
<td align="center">&#x2212;0.04</td>
<td align="center">0.15</td>
</tr>
<tr>
<td align="center">182</td>
<td align="center">502.17</td>
<td align="center">8.71</td>
<td align="center">&#x2212;50.83</td>
<td align="center">51.43</td>
<td align="center">
<bold>1.06</bold>
</td>
<td align="center">
<bold>5.70</bold>
</td>
<td align="center">
<bold>0.02</bold>
</td>
<td align="center">
<bold>0.08</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values represent the best parametrization results for both different sky conditions and different lenght data set.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>One of the advantages of parametrizing a PV system or subsystem based on only on-site measured data (including <inline-formula id="inf26">
<mml:math id="m32">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>) is the low variability of optimized parameters over time. As shown in <xref ref-type="table" rid="T2">Table 2</xref>, a training length of a minimum of 120 days is a common agreement between the best results, considering both clear-sky and all-sky moments.</p>
<p>The parametrization results for nominal power shown in <xref ref-type="fig" rid="F4">Figure 4</xref> are on the side of an underestimation. As mentioned previously, using only clear-sky moments seems to be more stable. As shown in <xref ref-type="table" rid="T2">Table 2</xref>, the best conditions for an accurate nominal power parametrization are as follows: all-sky conditions in combination with a 120-day training length. This combination shows a mean value of 510.55&#xa0;kW<sub>p</sub> with an MAPD of only 7.93% and an MBD of only &#x2212;42.45&#xa0;kW<sub>p</sub>. In contrast to our previous publication (<xref ref-type="bibr" rid="B5">Guzman Razo et al, 2020</xref>), these values have reduced considerably from 10.69% and &#x2212;84.24&#xa0;kW<sub>p</sub>, respectively. This is most likely due to the increase in accuracy of <inline-formula id="inf27">
<mml:math id="m33">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> which was measured on-site instead of using satellite-based irradiance information.</p>
<p>Given that the reported nominal power value is 553&#xa0;kW<sub>p</sub>, there is still a deviation between it and the value extracted using the GA model. One possible explanation for this deviation could be attributed to a degradation rate, which according to <xref ref-type="bibr" rid="B13">Jordan et al (2016)</xref>, is expected to be between 0.8% and 0.9% per year since the installation year (<xref ref-type="bibr" rid="B13">Jordan et al, 2016</xref>). For system ID5, which has been installed for 10 years to the date of the experimental data, a degradation rate of between 8% and 9% can be expected, resulting in a nominal power between 508.76&#xa0;kW<sub>p</sub> and 503.23&#xa0;kW<sub>p</sub>. The value calculated using the proposed GA model shows good agreement with the expected value. However, this should not be taken lightly as additional power losses can exist and require further investigation.</p>
<p>It seems that there is a trade-off between using all-sky conditions and clear-sky moments for parametrization of the AC-to-DC ratio; see <xref ref-type="fig" rid="F4">Figure 4</xref>. Although all-sky conditions provide more stable results in a particular period, clear-sky moments tend to result in spreader results on the side of overestimation. However, regardless of the condition used, a training length of 182 days seems to be the most suitable for accurate parametrization; see <xref ref-type="table" rid="T2">Table 2</xref>. The best-case scenario shows a mean value of 1.06 with a 5.7% MAPD and an MBD of 0.02, which is an improvement from the MBD of &#x2212;0.14 achieved in <italic>Guzman1</italic>.</p>
<p>As mentioned previously, a constant parameter has been estimated for the 52 test days for the power temperature coefficient. Therefore, the parametrization results of the Heydenreich et al model for PV system ID5, considering both scenario clear-sky and all-sky moments, are the following:<list list-type="simple">
<list-item>
<p>&#x2022; Heydenreich a: <bold>0.004326</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Heydenreich b: <bold>-11.275966</bold>
</p>
</list-item>
<list-item>
<p>&#x2022; Heydenreich c: <bold>-182.272483</bold>
</p>
</list-item>
</list>
</p>
<p>Although the optimal conditions for parametrizing the presented model are defined based on clear-sky or all-sky conditions and the length of the training dataset, the accuracy of the now-casting must also be evaluated. For instance, if the nominal power is close to the reported value, it would receive a higher score. However, these values do not account for additional losses that are commonly present in PV systems under outdoor conditions, such as soiling and degradation.</p>
<p>Therefore, in the following subsection, we evaluated the accuracy of now-casting using the parameters calculated with different training dataset lengths.</p>
</sec>
<sec id="s4-2">
<title>4.2 Digital twin now-casting</title>
<p>To select the optimal training length for the GA algorithm presented here, in this section, we evaluate simulated PV power with parameters from the digital twin considering only daytime values. We randomly selected 52&#xb0;days from the year 2020 of System ID 5 and generated a set of parameters for each of the 52&#xb0;days in combination with different training lengths (30&#xb0;days, 60&#xb0;days, 90&#xb0;days, 120&#xb0;days, 150&#xb0;days, and 182&#xb0;days). Finally, we compared the simulated PV power with the on-site measured PV power.</p>
<p>To generalize and correlate the results offered here with any other PV system or subsystem, we measured the deviation in W/kW<sub>p</sub> installed. <xref ref-type="table" rid="T3">Table 3</xref> shows the results of now-casting for all the training datasets (30, 60, 90, 120, 150, and 182&#xb0;days) and all the conditions (all-sky and clear-sky).</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Accuracy results of the digital twins created for 52 randomly chosen days in the year 2020. A total of 12 different training datasets including all-sky and clear-sky conditions with lengths of 30, 60, 90, 120, 150, and 182&#xb0;days.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="center">Error metric</th>
<th colspan="6" align="center">Training dataset length (days)</th>
</tr>
<tr>
<th align="center">30</th>
<th align="center">60</th>
<th align="center">90</th>
<th align="center">120</th>
<th align="center">150</th>
<th align="center">182</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td colspan="7" align="center">All-sky conditions</td>
</tr>
<tr>
<td align="center">&#x2003;MBD (W/kW<sub>p</sub>)</td>
<td align="center">3.91</td>
<td align="center">4.14</td>
<td align="center">4.03</td>
<td align="center">2.09</td>
<td align="center">3.12</td>
<td align="center">
<bold>3.27</bold>
</td>
</tr>
<tr>
<td align="center">&#x2003;MAPD (%)</td>
<td align="center">1.13</td>
<td align="center">1.17</td>
<td align="center">1.29</td>
<td align="center">1.05</td>
<td align="center">0.96</td>
<td align="center">
<bold>0.91</bold>
</td>
</tr>
<tr>
<td align="center">&#x2003;RMSD (W/kW<sub>p</sub>)</td>
<td align="center">11.83</td>
<td align="center">12.10</td>
<td align="center">11.90</td>
<td align="center">11.96</td>
<td align="center">11.44</td>
<td align="center">
<bold>11.04</bold>
</td>
</tr>
<tr>
<td colspan="7" align="center">Clear-sky conditions</td>
</tr>
<tr>
<td align="center">&#x2003;MBD (W/kW<sub>p</sub>)</td>
<td align="center">3.93</td>
<td align="center">4.26</td>
<td align="center">4.72</td>
<td align="center">3.61</td>
<td align="center">4.66</td>
<td align="center">4.81</td>
</tr>
<tr>
<td align="center">&#x2003;MAPD (%)</td>
<td align="center">0.98</td>
<td align="center">1.05</td>
<td align="center">1.08</td>
<td align="center">1.01</td>
<td align="center">0.94</td>
<td align="center">0.92</td>
</tr>
<tr>
<td align="center">&#x2003;RMSD (W/kW<sub>p</sub>)</td>
<td align="center">10.77</td>
<td align="center">11.11</td>
<td align="center">11.49</td>
<td align="center">11.57</td>
<td align="center">11.48</td>
<td align="center">11.27</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values represent the best parametrization results for both different sky conditions and different lenght data set.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>We evaluated the now-casting results based on the MAPD parameter. As shown in <xref ref-type="table" rid="T3">Table 3</xref>, the best combination of conditions and training length is achieved with all-sky conditions and a 182-day training dataset, resulting in an MAPD of 0.91%.</p>
<p>
<xref ref-type="fig" rid="F5">Figure 5</xref> shows that the high variation in the parameterization, particularly in the DC-to-AC ratio, is not necessarily reflected in the now-casting results. The now-casting deviation using all-sky conditions (subfigure (a)) is consistently underestimated compared to the deviation using only clear-sky conditions (subfigure (b)), particularly for short training datasets (30&#x2013;90&#xb0;days). However, the absolute deviation of the now-casting is similar for both all-sky and clear-sky conditions, particularly for longer training data sets (120&#x2013;182&#xb0;days).</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Digital twin now-casting results based on GA optimization. A total of 52 days chosen in the year 2020. Six different training datasets for each day were considered: All-sky and clear-sky conditions with 30, 60, and 90 days of training datasets. 95% confidence interval. The 30-day dataset is represented by the solid blue line, the 60-day dataset is represented by the orange dashed line, the 90-day dataset is represented by a green dotted line, the 120-day dataset is represented by the dotted&#x2013;dashed red line, the 150-day dataset is represented by the dotted&#x2013;dashed blue line, the 182-day dataset is represented by the dotted&#x2013;dashed brown line, and the reported parameter is represented by a horizontal red dashed line. <xref ref-type="fig" rid="F5">Figure 5</xref> is divided into two vertical sections; on the left-hand side, we can see the results of the now-casting considering all-sky conditions <bold>(A, C)</bold>, and the right-hand side, shows the results from the now-casting considering only clear-sky conditions <bold>(B, D)</bold>.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g005.tif"/>
</fig>
<p>Based on the results presented here, we considered that 182 days (or 6 months) based on all-sky conditions is the minimum required length to train GA optimization. With these condition-training lengths, it is possible to achieve an MBD of 3.27&#xa0;kW<sub>p</sub> and an MAPE of only 0.91%. Previous publications, including <italic>Guzman1</italic>, reported an MAPE from 6% to 10% for now-casting tests (<xref ref-type="bibr" rid="B2">Ding et al, 2011</xref>; <xref ref-type="bibr" rid="B16">Mandal et al, 2012</xref>; <xref ref-type="bibr" rid="B14">Kaspar et al, 2013</xref>; <xref ref-type="bibr" rid="B17">Monteiro et al, 2013</xref>; <xref ref-type="bibr" rid="B9">Ibrahim et al, 2015</xref>; <xref ref-type="bibr" rid="B15">Landelius et al, 2019</xref>; <xref ref-type="bibr" rid="B5">Guzman Razo et al, 2020</xref>).</p>
</sec>
<sec id="s4-3">
<title>4.3 Digital twin validation</title>
<p>According to the results presented in the previous subsections, a training dataset length of 182&#xb0;days is suggested to achieve high accuracy for both the digital twin parametrization and now-casting. To validate this suggestion, a 182-day training dataset was selected for each of the 16 monitored PV systems for the year 2020. Similar to the experiment described in the previous subsections, a random day from each week of the year 2020 was selected (52&#xb0;days in total) to create a digital twin for each PV system on each selected day.</p>
<p>
<xref ref-type="fig" rid="F6">Figure 6</xref> shows the PV power now-casting results for all 16 real PV systems. As observed, the mean deviation of all 16 real PV systems, in W/kW<sub>p</sub> installed, indicates an under-casting, &#x2212;1.14, which is influenced by high-deviation peaks in winter, particularly for System ID15. Additionally, the figure shows that the MAD for all 16 real PV systems is merely 1.81%, indicating a good benchmark for short-term PV power forecasting.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Deviation and absolute deviation of 52 days for now-casting for all the 16 real PV systems. In the upper section of the plot, subplots <bold>(A)</bold> and <bold>(B)</bold> show the deviation in W/kW<sub>p</sub> installed between the power now-casting and the power measured on-site. In the lower section of the plot, subplots <bold>(C)</bold> and <bold>(D)</bold> show the absolute deviation in percentage between the power now-casting and the power measured on-site. Subplots <bold>(A)</bold> and <bold>(C)</bold> show the distribution of the deviation per day and the mean value over all 16&#xa0;PV systems. Subplots <bold>(B)</bold> and <bold>(D)</bold> show boxplots representing the distribution of the deviation per PV system, and high deviations are considered outliers and therefore ignored (see System ID 15, week 4).</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g006.tif"/>
</fig>
<p>In general terms, the now-casting accuracy of all the digital twins created throughout the year 2020 for all 16 real PV suggests that their performance is time-independent, indicating that they can be implemented at any time of the year. However, there are some exceptions in winter which will be clarified in the following subsection.</p>
<sec id="s4-3-1">
<title>4.3.1 Additional losses&#x2019; information and further improvement</title>
<p>In the interest of accurately parametrizing PV systems based solely on on-site measured data, this publication aimed to achieve its overall goal without relying on external data sources. However, to explore the potential for improving accuracy, additional information from local weather stations was utilized. <xref ref-type="fig" rid="F6">Figure 6</xref> shows higher deviations between the digital twin-simulated PV power and the measured PV power for most of the 16 real PV systems during the first 5&#xb0;weeks and the last 5&#xb0;weeks of the year 2020. Considering this, in this subsection, we took into account the locally measured snow depth information from the CDC Deutscher Wetterdienst for all 16 real PV systems&#x2019; locations during the year 2020.</p>
<p>High peaks in the winter of subplot a) from <xref ref-type="fig" rid="F7">Figure 7</xref> show a good agreement with the high-deviation peaks of the digital twin now-casting presented in <xref ref-type="fig" rid="F6">Figure 6</xref>. To get a correlation between the now-casting high deviation in winter and the snow depth information, we calculated a simple linear regression between snow deposition and deviation in W/kW<sub>p</sub> of each one of the 16 real PV systems.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Snow deposition information for all 16 real PV systems. Deviation and absolute deviation of 52&#xa0;days for now-casting for all 16 real PV systems, considering snow deposition. Subplot <bold>(A)</bold> shows the snow depth in centimeters (cm) for all the locations of the real PV systems. Subplots <bold>(B)</bold> and <bold>(C)</bold> show the now-casting deviation (in W/kWp) after the snow information has been considered, and the correction has been performed for each of the 16 real PV systems. Subplots <bold>(D)</bold> and <bold>(E)</bold> show the absolute deviation (in %) of now-casting for all 16&#xa0;PV systems after the correction for snow deposition has been implemented.</p>
</caption>
<graphic xlink:href="fenrg-11-1060215-g007.tif"/>
</fig>
<p>Next, we use that linear regression to correct the power forecasted based on the snow information available by location. In <xref ref-type="fig" rid="F7">Figure 7</xref>, it can be observed that the high deviations in winter have been reduced by approximately 75% for some specific cases (see System ID 15). In general, the now-casting mean deviation of all 16&#xa0;PV systems is &#x2212;3.22&#xa0;W/kW<sub>p</sub> installed, underperforming constantly more evident for some specific PV systems such as PV system ID 6, ID7, and ID8. An absolute deviation of 1.02% can be observed, improving the overall accuracy by 0.79% or 44% relative to the previous calculation by only including snow deposition information for all 16 locations.</p>
<p>The results presented in this work suggested that PV systems with pyranometers as irradiance sensors presented lower deviation than those with reference cells installed as irradiance sensors. As suggested by Rivera and Reise, to further improve the now-casting accuracy and to reduce deviations, corrections can be applied to the values measured by reference cell sensors (<xref ref-type="bibr" rid="B23">Rivera Aguilar and Reise, 2020</xref>).</p>
<p>Moreover, additional loss factors that directly impact the power production of a PV system, such as degradation, power clipping, and soiling, could be possibly captured by some of the parameters of the GA optimization, i.e., nominal power and the DC-to-AC ratio. Further investigation is required to confirm these assumptions and improve the model accordingly.</p>
</sec>
</sec>
<sec id="s4-4">
<title>4.4 Limitations</title>
<p>We acknowledge that the GA optimization method presented here has some limitations. In addition to the loss factors mentioned in the aforementioned subsections (degradation, power clipping, and soiling), it is also important to mention that some shading effects, such as inter-row, can directly impact the optimization results. Furthermore, measuring <inline-formula id="inf28">
<mml:math id="m34">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> in a different POA will lead to biased PV power simulation, which ultimately will lead to incorrect parametrization. Additional filters and flags have to be implemented within the database to ensure that the on-site measured data are valid. Additionally, special PV system configurations, such as single- and double-axis tracked systems and bi-facial systems, require modifications to the PV power simulation model and optimization logic.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s5">
<title>5 Conclusion</title>
<p>Although solutions such as GA optimization have been available over an extended period, this work proposes a novel and accurate implementation method for extracting parameters of PV systems or subsystems without prior technical information. The parameters extracted describe the main characteristics of a PV system or subsystem, which later can be translated to a digital twin. The basic parameters of a PV system or subsystem digital twin are defined based on only the on-site measured data in this work.</p>
<p>Based on the experiments presented here, the best condition&#x2013;training length combination for the GA optimization is defined as all-sky conditions and 182&#xa0;days long, with only on-site measured data. With the method proposed in this work, a digital twin is created to now-cast with an accuracy of only 0.91% MAPE and 3.27&#xa0;W/kW<sub>p</sub> MBE for PV power now-casting.</p>
<p>Furthermore, a validation process is presented, demonstrating the potential of parameterizing a digital twin for each PV plant within a portfolio. A season-independent digital twin is parameterized, and each of the 16 real PV plants distributed in Germany is now-casted with a mean deviation value of &#x2212;1.14&#xa0;W/kWp and an MAD of only 1.81%. The model presented here can be further improved to achieve an MAD of only 1.02%, if external locally measured information is considered, i.e., snow precipitation.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<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="s7">
<title>Author contributions</title>
<p>DG and HM contributed to conceptualization, data processing, simulations, and analyses; CW discussed the results and improved the overall results of this publication. All authors contributed to the article and approved the submitted version.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>The authors acknowledge the financial support from the Federal Ministry for Economic Affairs and Energy of Germany (BMWi) in the project ALPRO (project number 0324054A).</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<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="s10">
<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>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Almeida</surname>
<given-names>M. P.</given-names>
</name>
<name>
<surname>Perpi&#xf1;&#xe1;n</surname>
<given-names>O.</given-names>
</name>
<name>
<surname>Narvarte</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2015</year>). <article-title>PV power forecast using a nonparametric PV model</article-title>. <source>Sol. Energy</source> <volume>115</volume>, <fpage>354</fpage>&#x2013;<lpage>368</lpage>. <pub-id pub-id-type="doi">10.1016/j.solener.2015.03.006</pub-id>
</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ding</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Bi</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2011</year>). <article-title>An ANN-based approach for forecasting the power output of photovoltaic system</article-title>. <source>Procedia Environ. Sci.</source> <volume>11</volume>, <fpage>1308</fpage>&#x2013;<lpage>1315</lpage>. <pub-id pub-id-type="doi">10.1016/j.proenv.2011.12.196</pub-id>
</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Dirnberger</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>M&#xfc;ller</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Reise</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2015</year>). <article-title>PV module energy rating: Opportunities and limitations</article-title>. <source>Prog. Photovolt. Res. Appl.</source> <volume>23</volume>, <fpage>1754</fpage>&#x2013;<lpage>1770</lpage>. <pub-id pub-id-type="doi">10.1002/pip.2618</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gonz&#xe1;lez Ordiano</surname>
<given-names>J. &#xc1;.</given-names>
</name>
<name>
<surname>Waczowicz</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Reischl</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Mikut</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Hagenmeyer</surname>
<given-names>V.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Photovoltaic power forecasting using simple data-driven models without weather data</article-title>. <source>Comput. Sci. Res. Dev.</source> <volume>32</volume>, <fpage>237</fpage>&#x2013;<lpage>246</lpage>. <pub-id pub-id-type="doi">10.1007/s00450-016-0316-5</pub-id>
</citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guzman Razo</surname>
<given-names>D. E.</given-names>
</name>
<name>
<surname>M&#xfc;ller</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Madsen</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Wittwer</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>A genetic algorithm approach as a self-learning and optimization tool for PV power simulation and digital twinning</article-title>. <source>Energies</source> <volume>13</volume>, <fpage>6712</fpage>. <pub-id pub-id-type="doi">10.3390/en13246712</pub-id>
</citation>
</ref>
<ref id="B6">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Heydenreich</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>M&#xfc;ller</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Reise</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2008</year>). &#x201c;<article-title>Describing the world with three parameters: A new approach to PV module power modelling</article-title>,&#x201d; in <conf-name>23rd European Photovoltaic Solar Energy Conference and Exhibition</conf-name>, <conf-loc>Valencia, Spain</conf-loc>, <conf-date>1-5 September 2008</conf-date>, <fpage>2786</fpage>&#x2013;<lpage>2789</lpage>.</citation>
</ref>
<ref id="B7">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Holland</surname>
<given-names>J. H.</given-names>
</name>
</person-group> (<year>1975</year>). <source>Adaptation in natural and artificial systems: An introductory analysis with applications to biology, control, and artificial intelligence/</source>. <publisher-loc>Ann Arbor, Michigan</publisher-loc>: <publisher-name>Mich. University of Michigan Press</publisher-name>.</citation>
</ref>
<ref id="B8">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Holmgren</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Calama-Consulting</surname>
</name>
<name>
<surname>Lorenzo</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Hansen</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Mikofski</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Krien</surname>
<given-names>U.</given-names>
</name>
<etal/>
</person-group> (<year>2020</year>). <source>pvlib/pvlib-python: v0.7.1</source>. <publisher-name>Zenodo</publisher-name>.</citation>
</ref>
<ref id="B9">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Ibrahim</surname>
<given-names>I. A.</given-names>
</name>
<name>
<surname>Mohamed</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Khatib</surname>
<given-names>T.</given-names>
</name>
</person-group> (<year>2015</year>). &#x201c;<article-title>Modeling of photovoltaic array using random forests technique</article-title>,&#x201d; in <conf-name>IEEE Conference on Energy Conversion</conf-name>, <conf-loc>Johor Bahru, Malaysia</conf-loc>, <conf-date>19-20 October 2015</conf-date>, <fpage>390</fpage>&#x2013;<lpage>393</lpage>. <comment>ed. I. C. o. E. Conversion ([Piscataway, NJ]: IEEE)</comment>.</citation>
</ref>
<ref id="B10">
<citation citation-type="book">
<collab>IEC</collab> (<year>2009</year>). <source>International Standard 61850 - communication networks and systems for power utility automation &#x2013; Part 7-420: Basic communication structure &#x2013; distributed energy resources logical nodes</source>. <publisher-loc>Geneva, Switzerland</publisher-loc>: <publisher-name>Gen&#xe8;ve: Commission &#xe9;lectrotechnique internationale</publisher-name>. <comment>IEC IEC 61850-7-420 Accessed 2022</comment>.</citation>
</ref>
<ref id="B11">
<citation citation-type="book">
<collab>International Energy Agency</collab> (<year>2022</year>). <source>Renewables 2022: Analysis and forecast to 2025</source>. <publisher-loc>Paris, France</publisher-loc>: <publisher-name>IEA</publisher-name>.</citation>
</ref>
<ref id="B12">
<citation citation-type="book">
<collab>IRENA</collab> (<year>2021</year>). <source>Renewable power generation costs in 2021</source>. <publisher-loc>Abu Dhabi</publisher-loc>: <publisher-name>IRENA</publisher-name>.</citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jordan</surname>
<given-names>D. C.</given-names>
</name>
<name>
<surname>Kurtz</surname>
<given-names>S. R.</given-names>
</name>
<name>
<surname>VanSant</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Newmiller</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Compendium of photovoltaic degradation rates</article-title>. <source>Prog. Photovolt. Res. Appl.</source> <volume>24</volume>, <fpage>978</fpage>&#x2013;<lpage>989</lpage>. <pub-id pub-id-type="doi">10.1002/pip.2744</pub-id>
</citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kaspar</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>M&#xfc;ller-Westermeier</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Penda</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>M&#xe4;chel</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Zimmermann</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Kaiser-Weiss</surname>
<given-names>A.</given-names>
</name>
<etal/>
</person-group> (<year>2013</year>). <article-title>Monitoring of climate change in Germany &#x2013; data, products and services of Germany&#x27;s National Climate Data Centre</article-title>. <source>Adv. Sci. Res.</source> <volume>10</volume>, <fpage>99</fpage>&#x2013;<lpage>106</lpage>. <pub-id pub-id-type="doi">10.5194/asr-10-99-2013</pub-id>
</citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Landelius</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Andersson</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Abrahamsson</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Modelling and forecasting PV production in the absence of behind&#x2010;the&#x2010;meter measurements</article-title>. <source>Prog. Photovolt. Res. Appl.</source> <volume>27</volume>, <fpage>990</fpage>&#x2013;<lpage>998</lpage>. <pub-id pub-id-type="doi">10.1002/pip.3117</pub-id>
</citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mandal</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Madhira</surname>
<given-names>S. T. S.</given-names>
</name>
<name>
<surname>haque</surname>
<given-names>A. U.</given-names>
</name>
<name>
<surname>Meng</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Pineda</surname>
<given-names>R. L.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>Forecasting power output of solar photovoltaic system using wavelet transform and artificial intelligence techniques</article-title>. <source>Procedia Comput. Sci.</source> <volume>12</volume>, <fpage>332</fpage>&#x2013;<lpage>337</lpage>. <pub-id pub-id-type="doi">10.1016/j.procs.2012.09.080</pub-id>
</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Monteiro</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Fernandez-Jimenez</surname>
<given-names>L. A.</given-names>
</name>
<name>
<surname>Ramirez-Rosado</surname>
<given-names>I. J.</given-names>
</name>
<name>
<surname>Mu&#xf1;oz-Jimenez</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Lara-Santillan</surname>
<given-names>P. M.</given-names>
</name>
</person-group> (<year>2013</year>). <article-title>Short-term forecasting models for photovoltaic plants: Analytical versus soft-computing techniques</article-title>. <source>Math. Problems Eng.</source> <volume>2013</volume>, <fpage>1</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.1155/2013/767284</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Mori</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Kita</surname>
<given-names>H.</given-names>
</name>
</person-group> (<year>2000</year>). &#x201c;<article-title>Genetic algorithms for adaptation to dynamic environments - a survey</article-title>,&#x201d; in <conf-name>IECON 2000: 26th annual conference of the IEEE Industrial Electronics Society (IEEE)</conf-name>, <conf-loc>Nagoya, Japan</conf-loc>, <conf-date>22-28 October 2000</conf-date>, <fpage>2947</fpage>&#x2013;<lpage>2952</lpage>.</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>M&#xfc;ller</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Hardt</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Armbruster</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Kiefer</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Reise</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Yield predictions for photovoltaic power plants: Empirical validation, recent advances and remaining uncertainties</article-title>. <source>Prog. Photovolt. Res. Appl.</source> <volume>24</volume>, <fpage>570</fpage>&#x2013;<lpage>583</lpage>. <pub-id pub-id-type="doi">10.1002/pip.2616</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>M&#xfc;ller</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Reise</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Heydenreich</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Kiefer</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2007</year>). <source>Are yield certificates reliable? A comparison to monitored real world results</source>. <publisher-loc>Washington, United States</publisher-loc>: <publisher-name>Health IT</publisher-name>. <comment>Unpublished</comment>.</citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ogliari</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Dolara</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Manzolini</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Leva</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Physical and hybrid methods comparison for the day ahead PV output power forecast</article-title>. <source>Renew. Energy</source> <volume>113</volume>, <fpage>11</fpage>&#x2013;<lpage>21</lpage>. <pub-id pub-id-type="doi">10.1016/j.renene.2017.05.063</pub-id>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Reno</surname>
<given-names>M. J.</given-names>
</name>
<name>
<surname>Hansen</surname>
<given-names>C. W.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Identification of periods of clear sky irradiance in time series of GHI measurements</article-title>. <source>Renew. Energy</source> <volume>90</volume>, <fpage>520</fpage>&#x2013;<lpage>531</lpage>. <pub-id pub-id-type="doi">10.1016/j.renene.2015.12.031</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Rivera Aguilar</surname>
<given-names>M. J.</given-names>
</name>
<name>
<surname>Reise</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2020</year>). &#x201c;<article-title>Silicon sensors vs. Pyranometers &#x2013; review of deviations and conversion of measured values</article-title>,&#x201d; in <conf-name>37th European Photovoltaic Solar Energy Conference and Exhibition</conf-name>, <conf-loc>Marseille, France</conf-loc>, <conf-date>September 2020</conf-date>, <fpage>1449</fpage>&#x2013;<lpage>1454</lpage>.</citation>
</ref>
<ref id="B24">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Schmidt</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Sauer</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>1994</year>). <article-title>Wechselrichter-Wirkungsgrade - praxisgerechte Modellierung und Absch&#xe4;tzung</article-title>. <source>Sonnenenerg 1996</source>.</citation>
</ref>
<ref id="B25">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>SolarPower Europe</surname>
</name>
</person-group> (<year>2022</year>). <source>Global market outlook for solar power 2022-2026</source>. <publisher-loc>Bruxelles, Belgium</publisher-loc>: <publisher-name>SolarPower Europe</publisher-name>.</citation>
</ref>
<ref id="B26">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Stein</surname>
<given-names>J. S.</given-names>
</name>
<name>
<surname>Hansen</surname>
<given-names>C. W.</given-names>
</name>
<name>
<surname>Reno</surname>
<given-names>M. J.</given-names>
</name>
</person-group> (<year>2012</year>). <source>Global horizontal irradiance clear sky models: Implementation and analysis</source>. <publisher-name>OSTI</publisher-name>.</citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Urraca</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Huld</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Lindfors</surname>
<given-names>A. V.</given-names>
</name>
<name>
<surname>Riihel&#xe4;</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Martinez-de-Pison</surname>
<given-names>F. J.</given-names>
</name>
<name>
<surname>Sanz-Garcia</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2018a</year>). <article-title>Quantifying the amplified bias of PV system simulations due to uncertainties in solar radiation estimates</article-title>. <source>Sol. Energy</source> <volume>176</volume>, <fpage>663</fpage>&#x2013;<lpage>677</lpage>. <pub-id pub-id-type="doi">10.1016/j.solener.2018.10.065</pub-id>
</citation>
</ref>
<ref id="B28">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Urraca</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Huld</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Martinez-de-Pison</surname>
<given-names>F. J.</given-names>
</name>
<name>
<surname>Sanz-Garcia</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2018b</year>). <article-title>Sources of uncertainty in annual global horizontal irradiance data</article-title>. <source>Sol. Energy</source> <volume>170</volume>, <fpage>873</fpage>&#x2013;<lpage>884</lpage>. <pub-id pub-id-type="doi">10.1016/j.solener.2018.06.005</pub-id>
</citation>
</ref>
</ref-list>
</back>
</article>