원시데이터 수집 시스템
선정목록으로

Genetic algorithm for parameter optimization of supercapacitor model

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Filipe M. do Rosário Menezes — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  2. Sérgio Cunha — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  3. William Santos de Assis — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  4. Allan Rodrigo Arrifano Manito — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  5. Reinaldo Corrêa Leite — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  6. Thiago Mota Soares — Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil.
  7. Hugo Lott — Norte Energia, Pará, Brazil.
DOI
10.1371/journal.pone.0325645
저널
PLoS ONE
발행년도
2025
발행기관
Public Library of Science
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0325645
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4412490341

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Electric energy storage systems have advanced significantly in recent years, driven by the growing expansion of renewable energy sources, the rise of electromobility, and other emerging configurations within the current electrical energy system. Among the various energy storage technologies, supercapacitors have gained considerable attention. Due to their ability to deliver large amounts of power over short periods, supercapacitors can be highly effective in hybrid storage systems, for example, enhancing overall system performance. Therefore, detailed studies on supercapacitors and their electrical circuit models have been developed with the aim of representing them as close as possible to actual physical behavior for numerous applications, such as in the context of Digital Twin (DT), an application that will support the monitoring of the operation and health of the supercapacitor throughout its useful life. The present work aims to estimate optimally some parameters of an electrical circuit model of a supercapacitor, in such a way as to obtain responses with very low errors and, thus, be able to use this computational electrical modeling for the development of a Digital Twin system. For the optimal adjustment of the electrical circuit model parameters, a Genetic Algorithm (GA) is used. The response of the electrical circuit, adjusted by the Genetic Algorithm (GA), is then compared to the response obtained through computer simulation of a supercapacitor using PSIM software, which is a software well validated in such studies. The results demonstrated strong alignment between the response using GA and the response using PSIM. Specifically, the charge and discharge curves of the supercapacitor, obtained through GA adjustment and PSIM simulation, were very similar, showing an error of just 2.2%. Thus, the supercapacitor model adjusted via GA demonstrates a good response to the physical phenomenon in question and can be used to develop a Digital Twin (DT) system, aiding in the operational and health monitoring of the supercapacitor.

본문 52,317자

본문 펼치기
OPEN ACCESS Citation: Menezes F, Cunha S, Assis W, Manito A, Leite R, Soares T, et al. (2025) Genetic algorithm for parameter optimization of supercapacitor model. PLoS One 20(7): e0325645. <u>[https://doi.org/10.1371/journal.](https://doi.org/10.1371/journal.pone.0325645)</u> <u>[pone.0325645](https://doi.org/10.1371/journal.pone.0325645)</u> Editor: Sandeep Arya, University of Jammu, INDIA Received: December 19, 2024 Accepted: May 18, 2025 Published: July 17, 2025 Copyright: © 2025 Menezes et al. This is an open access article distributed under the terms of the <u>[Creative Commons Attribution License,](http://creativecommons.org/licenses/by/4.0/)</u> which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data availability statement: All data are in the manuscript and/or <u>supporting information files.</u> Funding: This research was funded by Norte Energia for the execution of this study, within the scope of the project titled “Sistema de Geracao de Energia para Atendimento de Demandas de Pequeno Porte Utilizando RESEARCH ARTICLE # Genetic algorithm for parameter optimization of supercapacitor model Filipe Menezes 1 ☯ , Sérgio Cunha1 ☯ , William Assis1 ☯ , Allan Manito 1 ☯ - , Reinaldo Leite 1 ☯ , Thiago Soares <sup>1</sup> <sup>☯</sup> , Hugo Lott <sup>2</sup> <sup>☯</sup> 1 Electrical and Biomedical Engineering Faculty, Institute of Thecnology, Federal University of Pará, Belém Pennsylvania, Brazil, 2 Norte Energia, Pará, Brazil ☯ These authors contributed equally to this work. - <u>[allanmanito@ufpa.br](mailto:allanmanito@ufpa.br)</u> ## Abstract Electric energy storage systems have advanced significantly in recent years, driven by the growing expansion of renewable energy sources, the rise of electromobility, and other emerging configurations within the current electrical energy system. Among the various energy storage technologies, supercapacitors have gained considerable attention. Due to their ability to deliver large amounts of power over short periods, supercapacitors can be highly effective in hybrid storage systems, for example, enhancing overall system performance. Therefore, detailed studies on ­supercapacitors and their electrical circuit models have been developed with the aim of representing them as close as possible to actual physical behavior for numerous applications, such as in the context of Digital Twin (DT), an application that will support the monitoring of the operation and health of the supercapacitor throughout its useful life. The present work aims to estimate optimally some parameters of an electrical circuit model of a supercapacitor, in such a way as to obtain responses with very low errors and, thus, be able to use this computational electrical modeling for the development of a Digital Twin system. For the optimal adjustment of the electrical circuit model parameters, a Genetic Algorithm (GA) is used. The response of the electrical circuit, adjusted by the Genetic Algorithm (GA), is then compared to the response obtained through computer simulation of a supercapacitor using PSIM software, which is a software well validated in such studies. The results demonstrated strong alignment between the response using GA and the response using PSIM. Specifically, the charge and discharge curves of the supercapacitor, obtained through GA adjustment and PSIM simulation, were very similar, showing an error of just 2.2%. Thus, the supercapacitor model adjusted via GA demonstrates a good response to the physical phenomenon in question and can be used to develop a Digital Twin (DT) system, aiding in the operational and health monitoring of the supercapacitor. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 1 / 19 Banco de Supercapacitores Integrados com Geracao Fotovoltaica” (PD- 07427-0522/2022), sponsored by Norte Energia S. A. throughout the Research, Development, and Innovation (PDI) of the Program of the National Electric Energy Agency (ANEEL), as part of Public Call No. 001/2022. Funding was awarded to FM, SC, WA, AM, RL, and TS. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Competing interests: The authors have declared that no competing interests exist. 1. Introduction Supercapacitors are devices that operate based on the amount of energy stored as ions between the electrolyte and electrode. We can divide supercapacitors in three types based on its energy storage mechanism, namely: electrochemical double-layer capacitor, pseudo-capacitor and hybrid supercapacitor [1].The supercapacitor that accumulates electric charges at the interface between electrode pores and the electrolyte is the electrochemical double-layer supercapacitor or electric double layer supercapacitor (EDLC). This phenomenon occurs at the interface between the pores of the electrodes and the electrolyte, which provides a larger specific area to the electrodes. As a result, supercapacitors achieve high capacitance compared to their electrolytic counterparts [2]. They are composed of: (i) a pair of active material electrodes adhered to a current collector with terminal connections for the electronic circuit, (ii) a membrane that physically and electrically isolates both electrodes, (iii) electrolytes containing charged ions generally soaking the separator membrane, and (iv) the encapsulation [3]. Supercapacitors respond more quickly to charge variations compared to lithium-ion batteries due to their high power density characteristics, and have attracted much attention in SC technology [4–9]. In recent years, energy storage systems have experienced significant growth, both in quantity and technological advancements, playing an increasingly prominent role in electrical energy systems. One particularly promising technology is the use of supercapacitors for electrical energy storage, offering advantages such as high power delivery in extremely short periods, excellent reversibility, fast charge and discharge capabilities, and long lifespan [9]. Consequently, supercapacitors have been widely applied in power systems, including wind farms for output power stabilization, dynamic voltage regulators, distributed generation systems, and large-scale storage solutions [10,11]. Recent studies have focused on developing more accurate and efficient models for supercapacitors, aiming to optimize their performance across various applications. In the work developed by [12], two supercapacitor models were implemented, one model using Simulink 7.5 software and the other one using Orcad 9.2 software. The parameters of the models were obtained through two measurement tests on a real supercapacitor. Comparing the models, the authors concluded that both models presented good results, and that the parameter extraction method was accurate. In [13], two different charge/discharge sequences were proposed to extract parameters from a supercapacitor model, considering a faster and a slower process of charge/discharge. With this, the authors were able to estimate different values of tuning capacitance (Cfit), for fast charge/discharge and slow charge/discharge. Another parameter estimated in this work is the tuning resistance (Rfit), which is estimated empirically in the PSpice software, comparing the curve obtained via simulation and via experimental testing. This work was an advance compared to the work developed by [14], in which the parameters of the supercapacitor model are identified considering only one charge and discharge sequence. The work presented in [15] introduces an innovative algorithm for extracting optimal parameters, emphasizing the role of optimization techniques in enhancing the PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 2 / 19 accuracy of supercapacitor models. Additionally, [15] explores experimental methods for parameter estimation, reinforcing the necessity of experimental validation to ensure the effectiveness of theoretical models. The development of robust models for real-world applications requires a seamless integration of both experimental and theoretical approaches. Another significant advancement is presented in [16], which leverages machine learning algorithms such as Support Vector Machine (SVM) and Particle Swarm Optimization (PSO) to model supercapacitor behavior. This hybrid approach combines artificial intelligence techniques with traditional modeling methods, resulting in more precise models that adapt to varying operational conditions. In [17], a genetic algorithm (GA) was used to optimize some physical parameters of a supercapacitor, including the selection of electrode materials, the design of electrode structure, the composition and concentration of electrolyte, and the control of operating temperature. The main goal is to maximize the energy density and cycle life of the supercapacitor by using genetic algorithm to optimize the supercapacitor parameters design. These studies illustrate the continuous evolution of supercapacitor modeling and characterization, underscoring the importance of advanced optimization techniques and experimental validation. The application of these methodologies can lead to substantial improvements in the performance and efficiency of energy storage systems, reinforcing the viability of supercapacitors for industrial applications and renewable energy generation. The implementation of Digital Twins [18] in energy storage systems involving supercapacitors holds tremendous potential for enhancing accuracy and efficiency. Digital Twins are virtual representations of physical systems that enable real-time simulation, monitoring, and optimization. In the context of supercapacitors, Digital Twins facilitate modeling and predicting device behavior under diverse operating conditions, allowing for parameter identification and optimization. The use of advanced optimization algorithms, as discussed in [15–17], is crucial for the development of accurate and effective Digital Twins. These algorithms enable precise parameter identification for supercapacitor models, which is fundamental for simulating and predicting device performance. The integration of machine learning techniques such as SVM and PSO further enhances the adaptability of Digital Twins to operational variations, improving prediction accuracy. Moreover, the experimental approach detailed in [12–14] plays a key role in validating theoretical models, ensuring that Digital Twins accurately represent real-world supercapacitor behavior. The combination of experimental and theoretical methodologies fosters the development of robust and reliable models, which are essential for the successful deployment of Digital Twins. However, despite the advancements achieved with SVM and PSO, certain limitations persist. While these methods are promising, they may struggle with flexibility and adaptability to new operating conditions. In contrast, Genetic Algorithms (GAs) <u>[17] present significant advantages in this context. GAs are particularly effective in exploring complex and nonlinear solution</u> spaces—intrinsic characteristics of supercapacitor models. Furthermore, GAs promote greater solution diversity through genetic mutations and crossovers, helping to prevent premature convergence to local optima and enhancing model robustness. Thus, research on parameter optimization for supercapacitor models using Genetic Algorithms and other advanced optimization techniques is of great importance for the effective implementation of Digital Twins. Addressing the gaps identified in the literature and developing more precise and efficient parameter identification methods will contribute significantly to the advancement of this technology, ultimately improving the performance and efficiency of energy storage systems. 2. Methods 2.1. The proposed methodology This manuscript presents a methodology for estimating the parameters of a supercapacitor’s electrical model using a genetic algorithm (GA). The proposed approach consists of the following steps: 1. Supercapacitor Circuit Modeling: The equivalent circuit of the supercapacitor is modeled using PSIM software. It is important to note that PSIM is a validated software and will serve as the reference for this study, ensuring the reliability PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 3 / 19 of the results obtained through the proposed GA method. Due to technical constraints preventing the construction of an experimental setup, a computer simulation in PSIM is conducted to validate the GA-based estimation of the Rfit and Cfit parameters, as shown in <u>Fig. 2.</u> 2. Simulation of the Operating Cycle: Once the SC equivalent circuit is modeled, a simulation is performed to capture its complete operating cycle, including charging, self-discharge, and discharging phases. 3. Parameter Calculation from Simulation Data: After obtaining the supercapacitor’s charging and discharging curves, two key parameters of the electrical model—capacitance ( Csc ) and equivalent series resistance ( Resr )—are calculated. Up to this stage, the results derived from the simulation could also be obtained experimentally, as they would in a real-world scenario. 4. Optimization Using Genetic Algorithm: In this step, the GA is employed to determine optimal values for Rfit and Cfit . The results obtained via GA are compared with the reference curve generated in PSIM, which acts as a substitute for actual experimental measurements. 5. Fine-Tuning of Self-Discharge Resistance: A fine adjustment is then performed to determine an appropriate value for Rsd . This involves modifying the resistance value and comparing it with the reference self-discharge curve obtained from the PSIM simulation. 6. Final Validation and Comparison: Lastly, a comparison is made between the reference operating cycle obtained in PSIM and the cycle generated using the parameters ( Rfit and Cfit ) optimized by the GA. This optimized model is also simulated in PSIM. A small error margin indicates that the computational model of the supercapacitor is suitable for future applications, such as digital twin implementations. <u>Fig 1</u> presents a flowchart illustrating the proposed methodology. 2.2. Equivalent circuit in PSIM software A supercapacitor (SC) can be modeled based on the equivalent circuit proposed in [13], as illustrated in <u>Fig 2.</u> The equivalent series resistance ( Resr ) and capacitance ( Csc ) are determined from the supercapacitor’s operating cycle, which includes charging, self-discharge, and discharging phases. These parameters are estimated under the assumption of a constant current during the charging and discharging stages. Once the voltage curve is obtained from the SC’s operating cycle, these two parameters can be computed using specific equations, which will be presented later. The resistance ( Rfit ) and capacitance ( Cfit ) can be determined using different methods, such as the least squares method. In this study, a genetic algorithm (GA) was adopted to estimate these parameters, iteratively adjusting them until an optimal solution is found. The application of GA is detailed in Section 2.4. After determining the aforementioned parameters, the resistance ( Rsd ) is fine-tuned by making small adjustments and comparing the resulting self-discharge curve with the reference curve obtained from the simulated SC operating cycle. The parameters are defined as follows: - Resr : Equivalent series resistance. - Csc : Capacitance associated with stored energy. - Cfit and Rfit : Parameters used to adjust the SC’s dynamic response during charging and discharging. - Rsd : Resistance associated with the SC’s self-discharge process. The literature presents various electrical models for supercapacitors, each tailored to specific applications, reflecting the complexity of simulating their nonlinear behavior. In this work, we adopt Ciocan’s model [13], as depicted in <u>Fig 2.</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 4 / 19 The parameter values for the computational model shown in <u>Fig 2</u> were obtained from [15] and are listed in <u>Table 1.</u> Where: - Resr represents the equivalent series resistance. - Csc denotes the capacitance associated with stored energy. - Cfit and Rfit are linked to adjusting the dynamic response of the SC during charging and discharging. Rsd is related to the SC’ self-discharge process <u>Fig 1. Flowchart of the proposed methodology.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g001](https://doi.org/10.1371/journal.pone.0325645.g001)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 5 / 19 <u>Fig 2. Equivalent electrical model of SC.</u> <u>Source: adapted from [13].</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g002](https://doi.org/10.1371/journal.pone.0325645.g002)</u> Table 1. Key parameters of the supercapacitor from [19]. <u>CSC</u> <u>RESR</u> <u>Cfit</u> <u>Rfit</u> <u>Rsd</u> <u>32 F</u> <u>0.02 Ω</u> <u>121.56 F</u> <u>0.3184 Ω</u> <u>400 Ω</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t001](https://doi.org/10.1371/journal.pone.0325645.t001)</u> The values of the computational model parameters presented in <u>Fig 2</u> were taken from [19] and are presented in <u>Table 1.</u> The supercapacitor used in the simulations consist in a series association of two 62 F/125 V modules, manufactured by Nesscap, with electrical parameters summarized in <u>Table 2. This is the same model and configuration used by [19]. Each</u> module consists of 48 cylindrical SCs of 2.7 V and 3000 F. The estimated useful life of these cells is 1,000,000 cycles at room temperature. Their construction is based on activated carbon electrodes and uses an organic electrolyte. With the supercapacitor modeled in PSIM, a simulation was performed to obtain its complete operating cycle, including the charging, self-discharge, and discharging phases. It is important to note that both the charging and discharging processes were conducted under constant current conditions to accurately determine the equivalent series resistance ( Resr ) and capacitance ( Csc ). 2.3. Simultion of the operating cycle The simulation of the operating cycle was conducted under constant current charge-discharge (CCCD) conditions, where the supercapacitor was charged with a 10 A constant current until its voltage reached 200 V. Following the charging phase, the supercapacitor remained in self-discharge mode for 10 minutes before being discharged at a constant current. This process allows for the evaluation of the device’s performance, charge storage capacity ( Csc ) over time, and equivalent series resistance ( Resr ) [3]. <u>Fig 3</u> illustrates the three stages of the test: charging, self-discharge, and discharging. During the charging phase, the supercapacitor’s voltage gradually increases, as shown in <u>Fig 3. At this stage, two voltage points (</u> V1 and V2 ) are Table 2. Specifications of the used supercapacitor (EDLC). <u>Specifications</u> <u>Module</u> <u>Capacitor Bank</u> <u>Capacitance</u> <u>62 F</u> <u>31 F</u> <u>Operating Voltage</u> <u>125 V</u> <u>250 V</u> <u>Surge Voltage</u> <u>136,8 V</u> <u>273,6 V</u> <u>Equivalent Series Resistance (ESR)</u> <u>< 15 mΩ</u> <u>< 30 mΩ</u> <u>Energy Density</u> <u>2,36 Wh/kg</u> <u>4,72 Wh/kg</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t002](https://doi.org/10.1371/journal.pone.0325645.t002)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 6 / 19 <u>Fig 3. Typical CCCD graph for SCs with steady-state voltage drop: Complete cycle of charge, self-discharge, and discharge.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g003](https://doi.org/10.1371/journal.pone.0325645.g003)</u> recorded at 20% and 90% of the full charge, respectively, which will be used for the subsequent determination of the Csc parameter. During the self-discharge phase, a gradual loss of charge occurs over time, even without an external load. This phenomenon, influenced by material quality and internal resistance, directly affects efficiency. Excessive self-discharge can significantly limit the application of supercapacitors in energy storage systems. In the discharge phase, the voltage decreases as stored energy is released, and the discharge curve provides valuable insights into charge storage capacity and internal resistance ( Resr ). <u>Fig 4</u> highlights the slight voltage drop caused by internal resistance immediately after the charging phase. The difference between VC2 and VC1 will be used to calculate Resr . _Csc_ = <sup>_<u>I</u>_</sup> ∆ <sup>_<u>c</u>_</sup> <sup><u>∆</u></sup> _<u>V</u>_ <sup>_<u>t</u>_</sup> ∆ <sup>_<u>c</u>_</sup> <sup><u>∆</u></sup> _<u>V</u>_ <sup>_<u>t</u>_</sup> <sup>=</sup> ( <sup>_<u>Ic</u>_</sup> _<u>V</u>_ <sup><u>(</u></sup> 2 <sup>_<u>t</u>_</sup> <sup><u>2</u></sup> - <sup><u>–</u></sup> _<u>V</u>_ <sup>_<u>t</u>_</sup> <sup><u>1</u></sup> 1 <sup><u>)</u></sup> ) ( _<u>V</u>_ 2 – _<u>V</u>_ 1) (1) Fig 4. Typical CCCD graph for SCs with steady-state voltage drop: slight voltage drop immediately after charging ended. The data obtained from the charge and discharge curve are crucial for determining the capacitance (Csc) and equivalent series resistance (Resr). The data extracted from <u>Figs 3 and 4 are applied to the following Eqs (1) and (2).</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g004](https://doi.org/10.1371/journal.pone.0325645.g004)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 7 / 19 _Resr_ = <sup><u>∆</u></sup> ∆ <sup>_<u>V</u>_</sup> _I_ <sup><u>∆</u></sup> ∆ <sup>_<u>V</u>_</sup> _I_ <sup>=</sup> <sup>_<u>Vc</u>_</sup> <sup><u>2 –</u></sup> _Ic_ <sup>_<u>Vc</u>_</sup> <sup><u>1</u></sup> _Ic_ (2) Which Ic is the charging current. It is important to mention that in a real practical approach, the supercapacitor voltage curve shown in <u>Fig 3</u> is obtained experimentally. In the present work, due to the lack of an experimental bench, this voltage curve was obtained by computer simulation in PSIM software. Furthermore, the data from the charging phase will serve as the foundation for calculating the genetic algorithm’s fitness. This calculation will aid in determining the most suitable dynamic parameters (Cfit and Rfit) for the supercapacitor model. 2.4. Genetic algorithm optimization The use of a genetic algorithm (GA) was used to adjust the Rfit and Cfit values with the objective of obtaining a minimum error between the response through PSIM simulation (reference voltage curve with pre-defined Rfit and Cfit) and the response with Rfit and Cfit values obtained via GA, which this last one will be determined using the supercapacitor charging equation, shown later in this work. Based on [20], a genetic algorithm was developed, and its flowchart is presented in <u>Fig 5, in which each step is</u> described in the following subtopics. 2.4.1. AG criteria definition. In the first stage of GA, the fundamental parameters are defined and the calculations necessary for the correct execution of the program are carried out. Initially, the number of individuals per generation is specified, representing the number of possible solutions analyzed in each generation of the GA. To guarantee genetic variability, a total of 1000 individuals per generation was adopted, while the total number of generations was defined as 100 thousand, implying that if the stopping criterion, to be discussed later, is not reached, the program is terminated at limit generation. Furthermore, the variables (chromosomes) that the GA will optimize are established: Rfit and Cfit, totaling two variables. Furthermore, a range of search values is defined for these parameters, delimiting the search space between 0 and 100 thousand. This approach contributes to algorithm efficiency by avoiding the creation of physically improbable solutions for resistance and capacitance, which reduces computational effort. Another relevant parameter is the precision adopted for the binary coding of values, allowing continuous intervals to be represented with a specificity of 5 decimal places. Additionally, the previously calculated parameters (Resr and Csc) are declared to compose the GA fitness function. Therefore, the code converts the defined values range size to binary base, considering the desired precision. This results in approximately 34 bits to represent each variable, totaling 68 bits for the two variables to be optimized. <u>Table 3</u> summarizes the initial parameters used in the proposed GA. 2.4.2. Initial population. In this algorithm stage, the GA creates the first generation of individuals that will be analyzed and evolved throughout the process. Each individual represents a possible problem solution, and its characteristics are encoded in a 68-bit binary array, as defined in the previous step. The total number of individuals in this initial population is defined in the initial criteria, which is 1,000. To generate each individual, each bit (gene) is determined by the algorithm based on a random value uniformly distributed between 0 and 1. If the value is less than 0.5, the corresponding bit is set to 0, otherwise it is set as 1. This process ensures that the initial population is generated randomly, distributing individuals in the search space. In Fig 6, the proposed GA initial population is presented. 2.4.3. Fitness function. In this step, the algorithm analyzes each individual in the initial population to determine its fitness based on minimizing the error between the simulation with the parameters estimated via GA and the simulation PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 8 / 19 <u>Fig 5. Genetic Algorithm Flowchart.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g005](https://doi.org/10.1371/journal.pone.0325645.g005)</u> Table 3. Initial GA Criteria. <u>Criterion</u> <u>Value</u> <u>Maximum generations number</u> <u>100,000</u> <u>Chromosomes</u> <u>2</u> <u>Solution values ranger</u> <u>[0, 100,000]</u> <u>Decimal precision</u> <u>5</u> <u>Bits (Genes)</u> <u>68</u> <u>Csc</u> <u>Defined by Eq (1)</u> <u>Resr</u> <u>Defined by Eq (2)</u> <u>Charging current</u> <u>Obtained in the CCCD test</u> <u>Charging voltage curve</u> <u>Obtained in the CCCD test</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t003](https://doi.org/10.1371/journal.pone.0325645.t003)</u> with the reference data. To do this, the binary values of each individual are converted to their real equivalents, representing the resistance (Rfit) and capacitance (Cfit) values. Then, the fitness of each individual is calculated, which indicates the quality of each solution to the problem. This fitness is determined by the inverse of the average error between the voltage data collected during the charging stage in the PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 9 / 19 <u>Fig 6. Initial population example.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g006](https://doi.org/10.1371/journal.pone.0325645.g006)</u> CCCD test (reference simulation via PSIM – Vsc target) and the charging voltage calculated in GA (Eq (3) - Vsc modeled), the latter being calculated for each individual. ) ] (3) _VSC_ ( _t_ ) = _u_ _b_ 1 [ _<u>t</u>_ - <sup>_<u>b</u>_</sup> <sup><u>2 –</u></sup> <sup>_<u>a</u>_</sup> <sup><u>1</u></sup> <sup>_<u>b</u>_</sup> <sup><u>1</u></sup> _b_ <sup>2</sup> 1 <sup><u>1</u></sup> <sup>_<u>b</u>_</sup> <sup><u>1</u></sup> + <sup>2</sup> 1 <u>2</u> ( _<u>b</u>_ 2 <u>2</u> <sup><u>–</u></sup> <sup>_<u>a</u>_</sup> <sup><u>1</u></sup> <sup>_<u>b</u>_</sup> <sup><u>2</u></sup> <sup>_<u>b</u>_</sup> <sup><u>1</u></sup> <sup><u>+</u></sup> <sup>_<u>a</u>_</sup> <sup><u>2</u></sup> <sup>_<u>b</u>_</sup> <u>1</u> <sup>2</sup> _b_ 2 _b_ <sup>2</sup> 1 2 1 _e_ <sup>–</sup> _<u>b</u>_ <sup>_<u>b</u>_</sup> 2 <sup><u>1</u></sup> <sup>_t_</sup> Where: _u_ = _amplitude of the applied current step sc during the charging stage_ _a_ 1 = _RESRCSC_ + _RfitCfit_ + _RfitCSC_ PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 10 / 19 _a_ 2 = _RESRCSCRfitCfit_ _b_ 1 = _CSC_ _b_ 2 = _CSC_ _RfitCfit_ The fitness equation for of an individual α is defined by <u>Eq (4):</u> <u>1</u> _Z_ ( _α_ ) = _Avarage Error_ ( _α_ ) + _ε_ (4) Where ε is a very small number (2 ⁻ ⁵ ²) included to prevent division by zero in case the mean error is extremely close to zero. The average error is given by <u>Eq (5):</u> ��Vsc_target – Vsc_modeled�� Avarage Error = <sup><u>1</u></sup> t t i=1 (5) Based on average error, the GA analyzes the stopping criterion. At each generation, the best individual average error is compared with a previously defined target error, which represents an acceptable limit for the difference between the estimated data and the reference data. If the best average error is less than or equal to the target error, the algorithm terminates the main loop and displays the optimized values. This approach optimizes the algorithm execution, avoiding unnecessary processing of additional generations when the desired solution is found. However, if the stopping criterion is not achieved, the algorithm saves the individual with the lowest error for the next generation and only exchanges it if a better individual emerges in the next generations. Regarding the target error, used as a stopping criterion, the value of 0.5% was adopted. This value was chosen based on numerous and extensive algorithm executions, in which it was observed to be an adequate value to extract a very small error from the routine, ensuring that the SC model comes as close as possible to the target behavior. 2.4.4. Selection. The algorithm selects the fittest individuals from the population and forms pairs for crossing, using a criterion proportional to fitness, that is, the greater the fitness, the greater the chance of the individual being selected. First, the fitness of each individual, Z(α), is normalized in relation to the total sum of fitness population, converting it into a percentage, Z%(α), as shown in <u>Eq (6).</u> _<u>Z</u>_ <u>(</u> _<u>α</u>_ <u>)</u> _Z_ %( _α_ ) = _α_ =1 <sup>_Z_</sup> ~~∑~~ _<u>ind</u>_ (6) _α_ =1 <sup>_Z_</sup> <sup>(</sup> <sup>_α_</sup> <sup>)</sup> _×_ 100 Where _ind_ is the number of individuals in the population. This process ensures that each individual receives a relative probability of being selected, proportional to their fitness. The next step consists of constructing a cumulative vector, which stores the accumulated probabilities. For each individual, the accumulated value is obtained by adding its normalized fitness with the accumulated sum of previous individuals. To form a pair, two random numbers are used to select individuals from the population. These numbers are compared to the accumulated vector of probabilities and the corresponding individual is the one whose accumulated range contains the generated number. For example, if the accumulated vector is [5,14, 35, 60, 100] and the generated number is 25, the third individual will be chosen, as the number 25 is in the range between 15 and 35. Fig 7 illustrates the distribution of these intervals and their weight for the selection. This process is known as the roulette method and ensures that individuals with greater fitness are more likely to be selected, but without completely excluding those who are less apt. This procedure is repeated twice, once for each individual in the pair, ensuring that both members are chosen proportionally to their fitness. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 11 / 19 <u>Fig 7. Example of accumulated skills distribution per individual and individual selection probability.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g007](https://doi.org/10.1371/journal.pone.0325645.g007)</u> 2.4.5. Crossing. For crossing, the pairs of individuals selected in the previous phase are combined to generate new individuals, promoting the combination of genetic characteristics between them. The crossing is carried out using a cutoff point, which determines the position in the binary code where information from the two individuals will be exchanged. For each pair formed, the cutoff point is defined randomly and divides the genetic code into two parts: the genes located before the cutoff point are kept from the first individual, while the genes located after the cutoff point are exchanged with those of the second individual. <u>Fig 8</u> illustrates the process, which works as follows: For genes located after the cutoff, the father’s binary data (genes) are transferred to the daughter, while the mother’s data is transferred to the son. For genes located before the cutoff point, the opposite occurs: the mother’s binary data is transferred to the daughter, and the father’s data is transferred to the son. <u>Fig 8. Crossing mechanism.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g008](https://doi.org/10.1371/journal.pone.0325645.g008)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 12 / 19 This exchange of genetic information results in two new individuals (descendants), who inherit characteristics from both parents. The crossover process leads to a problem solution convergence, however, the solution may get stuck in a local optimal solution. To overcome this situation, mutation is performed on individuals, with the aim of achieving a global optimal solution. The crossover rate used in the present work was 0.8, that is, once the pair is selected in the selection stage, the probability of crossover is 80%. At the end of the crossing stage, the population is made up of the descendants generated, which proceed to the next steps of the algorithm, such as mutation and fitness evaluation. 2.4.6. Mutation. At this stage, small changes are introduced in the descendants generated by the crossing, with the aim of maintaining the population genetic variability. Each genetic code bit of sons and daughters has a 5% probability of being modified. To do this, random numbers are generated for each bit, and if the value is less than the mutation rate of 5%, the bit is changed. The mutated descendants, sons and daughters, are then combined into a new matrix, which represents the updated population. This population is taken again to the fitness evaluate stage, closing a cycle that will be repeated until the stopping criterion based on the target error is reached or the generation limit is simulated. At the end of the routine, the genetic algorithm returns the fittest individual, with the smallest error found over the generations. This individual is then decoded to obtain the Rfit and Cfit values. As a GA performance indicator, a graph is constructed that superimposes the simulated voltage curve (Eq (3)), obtained with Rfit and Cfit values of the best individual, on the curve collected from the CCCD test. To evaluate the accuracy of the definitive model, the average percentage error between the simulated voltage values of the fittest individual and the reference values (CCCD test) is calculated, as described in <u>Eq (7), where N represents the total number of points</u> of the analyzed data. (7) ���� _×_ 100 _<u>VSCBestindividual</u>_ <u>(</u> _<u>i</u>_ <u>) –</u> _<u>VSC</u>_ <u>_</u> _<u>target</u>_ <u>(</u> _<u>i</u>_ <u>)</u> _<u>VSC</u>_ _ _target_ ( _<u>i</u>_ ) ���� Erro% = <sup><u>1</u></sup> _<u>N</u>_ _N_ _i_ =1 2.5. Determination of Resistence (Rsd) and Supercapacitor Model Evaluation Once Rfit and Cfit values are obtained via GA, a simulation is then carried out in PSIM to obtain the voltage curve for a complete cycle (charging, self-discharge and discharging), considering at this point the parameters obtained by GA and, then, this curve is compared with the reference curve, obtained by the CCCD test. With this, an adjustment is made for the resistance Rsd, comparing the self-discharge phase of the two curves. In addition, a definitive error of the SC model is determined, comparing the complete cycle of the two curves. 3. Results Using PSIM, the CCCD test was simulated using the circuit shown in <u>Fig 9, considering the parameters of the superca-</u> pacitor to be modeled (Fig 2 and table 1). The resulting behavior is presented in the graph in <u>Figs 10</u> and 11, together with the key points detailed in <u>table 4. The two points in</u> <u>Fig 10</u> will be used for Resr calculations (Eq (1)), while the voltage values in <u>Fig 11</u> (Vc1 and Vc2) and the charging current, will be used to determine Csc (Eq (2)). For the results obtained in <u>Figs 10</u> and 11, the following values of series equivalent resistance and capacitance were calculated: Resr equal to 0.023 Ω and Csc equal to 32.85 F. These values are inserted into <u>Eq (3)</u> and then GA is used to determine the resistance (Rfit) and capacitance (Cfit) values. <u>Table 5 shows the results regarding the GA performance, where the number of generations and individuals created until</u> the stop can be seen, with the final error around 0.74%. Although the target error of 0.5% has not been achieved, the error obtained is small enough for supercapacitor modeling purposes. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 13 / 19 <u>Fig 9. Circuit for a complete SC cycle (SC reference).</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g009](https://doi.org/10.1371/journal.pone.0325645.g009)</u> <u>Fig 10. Charging curve of the target SC: Complete charging cycle, with key points for calculating Csc.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g010](https://doi.org/10.1371/journal.pone.0325645.g010)</u> In Fig 12, a comparison is presented between the charging voltage of the supercapacitor to be modeled (taken from the CCCD test) and the charging voltage of the fittest individual (best solution found) found by GA (obtained by <u>Eq (3)). As</u> can be seen in <u>Fig 12, the two curves are very close, showing the GA efficiency in determining Rfit and Cfit.</u> To complement and confirm the supercapacitor model, a circuit is assembled with the determined values, where Rsd is adjusted until the best approximation to the self-discharge observed in the initial curve is obtained (CCCD test). PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 14 / 19 Fig 11. Charging curve of the target SC: Immediate voltage drop at the transition from charging to self-discharge, with key points for calculat- <u>ing Resr.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g011](https://doi.org/10.1371/journal.pone.0325645.g011)</u> Table 4. Points of interest for extracting the initial parameters, located in <u>Fig 9.</u> _<u>V1</u>_ _<u>t1</u>_ _<u>V2</u>_ _<u>t2</u>_ _<u>Vc1</u>_ _<u>Vc2</u>_ _<u>Ic</u>_ <u>40.25 V</u> <u>120 s</u> <u>180.29 V</u> <u>580 s</u> <u>200.016 V</u> <u>200.25 V</u> <u>10 A</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t004](https://doi.org/10.1371/journal.pone.0325645.t004)</u> Table 5. Genetic Algorithm Performance. <u>%Error_Target</u> <u>%Error obtained</u> <u>Generations</u> <u>Generated solutions (individuals)</u> <u>0.5%</u> <u>0.74%</u> <u>100,000</u> <u>100,000,000</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t005](https://doi.org/10.1371/journal.pone.0325645.t005)</u> All parameters obtained, both by the CCCD test analysis and those optimized by GA, are presented in <u>table 6. The</u> charge and discharge circuit for such values is shown in <u>Fig 13.</u> The comparison between the target voltage curve (CCCD test – Circuit in <u>Fig 9) and the modeled voltage curve with</u> GA (Circuit in <u>Fig 13), for a complete charge and discharge cycle, is shown in</u> <u>Fig 14. As can be seen in</u> <u>Fig 14, the</u> method using GA obtained a good result, since the behaviors of the two curves are very similar in all stages, highlighting a greater difference during discharging. The percentage errors at each step are shown in <u>table 7.</u> 4. Discussion Charge and discharge tests performed at PSIM demonstrated the effectiveness of the genetic algorithm in optimizing the dynamic parameters Rfit and Cfit of the supercapacitor, with a strong correlation between the voltage curves of the target supercapacitor and the digital model. The average percentage error between the reference and model data indicated high accuracy of the model, despite small discrepancies during discharge. Compared to previous studies, this work stands out for its fine-tuning and detailed analysis of the percentage error. The proposed methodology can be applied to other energy PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 15 / 19 <u>Fig 12. Charging curve modeled by the settings determined by the GA compared with the target charging curve.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g012](https://doi.org/10.1371/journal.pone.0325645.g012)</u> Table 6. Key parameters of the modeled supercapacitor. <u>CSC</u> <u>RESR</u> <u>Cfit</u> <u>Rfit</u> <u>Rsd</u> <u>32.85 F</u> <u>0.023 Ω</u> <u>187.7474 F</u> <u>0.39878 Ω</u> <u>400 Ω</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t006](https://doi.org/10.1371/journal.pone.0325645.t006)</u> <u>Fig 13. Circuit for a complete SC cycle (SC modeled).</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g013](https://doi.org/10.1371/journal.pone.0325645.g013)</u> PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 16 / 19 <u>Fig 14. Comparison between the target voltage curve and the modeled voltage curve with GA.</u> <u>[https://doi.org/10.1371/journal.pone.0325645.g014](https://doi.org/10.1371/journal.pone.0325645.g014)</u> Table 7. Accuracy of the supercapacitor modelling. <u>General_%Error</u> <u>% Error during charge</u> <u>%Error during self-discharge</u> <u>%Error during discharge</u> <u>3.93%</u> <u>2.20%</u> <u>0.23%</u> <u>10.07%</u> <u>[https://doi.org/10.1371/journal.pone.0325645.t007](https://doi.org/10.1371/journal.pone.0325645.t007)</u> storage devices, with future research focusing on the integration of advanced sensors and multi-objective optimization algorithms for modeling a physical SC. The electrical supercapacitor model proposed in this article cannot be applied to the other types of supercapacitors, namely: pseudocapacitors and hybrid supercapacitors is inadequate to these types of supercapacitors because of: i. Differences on energy storage mechanisms, redox reactions (faradaic processes) on pseudocapacitors and electro chemical volumetric processes on hybrid supercapacitor. ii. Complexity on dynamical behaviour of pseudocapacitor and hybrid supercapacitors that exhibit nonlinear responses (e.g., capacitance dependence on voltage or charge/discharge rate). The proposed model does not capture such nuances. iii. Failure to represent multiple time scales, hybrid supercapacitors and pseudocapacitors a have multiple time constants due the coexistence of fast processes (electrostatic) and slow process (electrochemical). The proposed model uses a single RC branch for the dynamics. Despite all these limitations, the model is effective to represent EDLCs due to the following reasons: i. Alignment with the electrostatic storage mechanism: EDLCs operate by purely electrostatic storage (electrical double layer), without chemical reactions. The simplified model, composed of resistances (series and self-discharge) and fixed capacitances, directly reflects this physical behaviour, ignoring unnecessary complexity such as the dependency on voltage or Faradaic processes. ii. Simplicity and practicality: The circuit has only five parameters (RESR, RSD, CSC), identified by simple experimental tests (charge/discharge with constant current and self-discharge) and adjusted by the Genetic Algorithm application (RFIT and CFIT). Such simplicity allows easy implementation in tools such as PSpice, keeping the accuracy for typical applications of EDLCs. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 17 / 19 iii. Computational efficiency: This application is part of a larger project involving the use of Digital Twin technology for a hybrid stand-alone PV system in which the supercapacitors are of electrical double layer type. The simplified architecture minimizes the computational overhead in simulations, making it particularly suitable for digital twin applications. 5. Conclusions In this study, an equivalent electrical model of a supercapacitor using a genetic algorithm (GA) to optimize dynamic parameters was developed and validated. The adopted approach integrated theoretical and experimental methods, resulting in a precise and robust digital model capable of replicating the supercapacitor’s physical behavior with high fidelity. Analysis of the results demonstrated that the GA-optimized model exhibited an overall percentage error of only 3.93%, with particular precision in charging (2.20%) and self-discharge (0.23%). These values indicate an excellent correlation between experimental and simulated data, validating the effectiveness of the proposed model. However, a larger error was observed in discharging (10.07%), suggesting that future research should focus on improving modeling for this specific stage. Additionally, the detailed experimental validation reinforces the need to combine theoretical and practical approaches to develop models that are not only accurate but also applicable in real-world scenarios. The integration of such methodologies is crucial for the effective implementation of Digital Twins, which can revolutionize the management and optimization of energy storage systems. Therefore, this work not only contributes to advancing supercapacitor modeling techniques but also paves the way for the application of Digital Twins in energy storage systems. The precision and efficiency achieved by the developed model highlight the importance of continuing to explore and improve these technologies, aiming for significant improvements in the performance and energy efficiency of industrial applications and renewable energy generation. Supporting information [S1 File. Input Data to GA.](http://journals.plos.org/plosone/article/asset?unique&id=info:doi/10.1371/journal.pone.0325645.s001) (XLSX) [S2 File. Comparison of Target SC and Optimized SC.](http://journals.plos.org/plosone/article/asset?unique&id=info:doi/10.1371/journal.pone.0325645.s002) (XLSX) Author contributions Conceptualization: Allan Rodrigo Arrifano Manito, Filipe Menezes, Allan Manito, Reinaldo Leite, Thiago Soares. Data curation: Filipe Menezes, Sérgio Cunha, William Assis. Formal analysis: Allan Rodrigo Arrifano Manito, Filipe Menezes, William Assis, Allan Manito. Investigation: Allan Manito, Thiago Soares. Methodology: Allan Rodrigo Arrifano Manito, Filipe Menezes, William Assis, Allan Manito, Reinaldo Leite. Project administration: Reinaldo Leite, Thiago Soares, Hugo Lott. Software: Filipe Menezes, Sérgio Cunha, William Assis. Supervision: Allan Rodrigo Arrifano Manito, Allan Manito, Reinaldo Leite, Thiago Soares. Validation: Allan Rodrigo Arrifano Manito, Allan Manito, Reinaldo Leite, Thiago Soares. Visualization: Allan Rodrigo Arrifano Manito, Allan Manito. Writing – original draft: Allan Rodrigo Arrifano Manito, Filipe Menezes, William Assis, Allan Manito, Reinaldo Leite. Writing – review & editing: Allan Rodrigo Arrifano Manito, Allan Manito. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 18 / 19 References 1. Poonam, Pareek K, Jangid DK. Analysis of the effect of different factors on the degradation of supercapacitors. Ionics. 2022;28(10):4527–45. <u>[https://doi.org/10.1007/s11581-022-04650-z](https://doi.org/10.1007/s11581-022-04650-z)</u> 2. Zhang L, Hu X, Wang Z, Sun F, Dorrell DG. A review of supercapacitor modeling, estimation, and applications: A control/management perspective. Renewable and Sustainable Energy Reviews. 2018;81:1868–78. <u>[https://doi.org/10.1016/j.rser.2017.05.283](https://doi.org/10.1016/j.rser.2017.05.283)</u> 3. Ratha S, Samantara AK. Supercapacitor: instrumentation, measurement and performance evaluation techniques. Springer; 2018. 4. Ayob A, Ansari S, Lipu MSH, Hussain A, Saad MHM. SOC, SOH and RUL Estimation for Supercapacitor Management System: Methods, Implementation Factors, Limitations and Future Research Improvements. Batteries. 2022;8(10):189. <u>[https://doi.org/10.3390/batteries8100189](https://doi.org/10.3390/batteries8100189)</u> 5. Naseri F, Karimi S, Farjah E, Schaltz E. Supercapacitor management system: A comprehensive review of modeling, estimation, balancing, and [protection techniques. Renewable and Sustainable Energy Reviews. 2022;155:111913. https://doi.org/10.1016/j.rser.2021.111913](https://doi.org/10.1016/j.rser.2021.111913) 6. Kouchachvili L, Yaïci W, Entchev E. Hybrid battery/supercapacitor energy storage system for the electric vehicles. Journal of Power Sources. [2018;374:237–48. https://doi.org/10.1016/j.jpowsour.2017.11.040](https://doi.org/10.1016/j.jpowsour.2017.11.040) 7. Shi X, Chen S, Zhang H, Jiang J, Ma Z, Gong S. Portable Self-Charging Power System via Integration of a Flexible Paper-Based Triboelectric Nanogenerator and Supercapacitor. ACS Sustainable Chem Eng. 2019;7(22):18657–66. <u>[https://doi.org/10.1021/acssuschemeng.9b05129](https://doi.org/10.1021/acssuschemeng.9b05129)</u> 8. Rahman AU, Ahmad I, Malik AS. Variable structure-based control of fuel cell-supercapacitor-battery based hybrid electric vehicle. Journal of Energy Storage. 2020;29:101365. <u>[https://doi.org/10.1016/j.est.2020.101365](https://doi.org/10.1016/j.est.2020.101365)</u> 9. Yang Y, Han Y, Jiang W, Zhang Y, Xu Y, Ahmed AM. Application of the Supercapacitor for Energy Storage in China: Role and Strategy. Applied Sciences. 2021;12(1):354. <u>[https://doi.org/10.3390/app12010354](https://doi.org/10.3390/app12010354)</u> 10. Dougal RA, Liu S, White RE. Power and life extension of battery-ultracapacitor hybrids. IEEE Trans Compon Packaging Technol. 2002;1:120–31. 11. Gao L, Dougal R o g e r A, Liu S. Power enhancement of an actively controlled battery/ultracapacitor hybrid. IEEE Trans Power Electron. 2005;1:236–43. 12. Farcas D, Petreus I, Ciocan N, Palaghita N. Modeling and Simulation of Supercapacitors. In: SIITME2009 – 15th International Symposium for Design and Technology of Electronics Packages. 13. Ciocan I, et al. An improved method for the electrical parameters identification of a simplified PSpice supercapacitor model. In: 2016 IEEE 22nd International Symposium for Design and Technology in Electronic Packaging (SIITME). 2016. p. 171–4. 14. Zubieta L, Bonert R. Characterization of double-layer capacitors for power electronics applications. IEEE Trans on Ind Applicat. 2000;36(1):199– [205. https://doi.org/10.1109/28.821816](https://doi.org/10.1109/28.821816) 15. Sayed, et al. 2018. 16. Ding S, Hang J, Wei B, Wang Q. Modelling of supercapacitors based on SVM and PSO algorithms. IET Electric Power Applications. 2018. 17. Xu M. Optimized Design of Supercapacitor Parameters Based on Genetic Algorithm. 2024 International Conference on Telecommunications and Power Electronics (TELEPE). 18. Yang I, Zhao Q, Gao D, Rong J, Fan Y, Li H. Supercapacitor Digital Twin Management System Based on Cloud Environment. 2021 IEEE 23rd Int Conf on High Performance Computing & Communications. 19. Moraes CGS, et al. Análise e concepção de um sistema híbrido de armazenamento de energia para aplicação em locomotivas diesel-elétricas. 2020. 20. Albuquerque M. Desenvolvimento de um sistema computacional inteligente para o ajuste ótimo da forma de onda de impulso de tensão. 2022. PLOS One | <u>https://doi org/10 1371/journal pone 0325645</u> July 17 2025 19 / 19

섹션 본문 108문단 · 35,531자

(제목 없음)

1Electric energy storage systems have advanced significantly in recent years, driven by the growing expansion of renewable energy sources, the rise of electromobility, and other emerging configurations within the current electrical energy system.Among the various energy storage technologies, supercapacitors have gained considerable attention.Due to their ability to deliver large amounts of power over short periods, supercapacitors can be highly effective in hybrid storage systems, for example, enhancing overall system performance.Therefore, detailed studies on supercapacitors and their electrical circuit models have been developed with the aim of representing them as close as possible to actual physical behavior for numerous applications, such as in the context of Digital Twin (DT), an application that will support the monitoring of the operation and health of the supercapacitor throughout its useful life.The present work aims to estimate optimally some parameters of an electrical circuit model of a supercapacitor, in such a way as to obtain responses with very low errors and, thus, be able to use this computational electrical modeling for the development of a Digital Twin system.For the optimal adjustment of the electrical circuit model parameters, a Genetic Algorithm (GA) is used.The response of the electrical circuit, adjusted by the Genetic Algorithm (GA), is then compared to the response obtained through computer simulation of a supercapacitor using PSIM software, which is a software well validated in such studies.The results demonstrated strong alignment between the response using GA and the response using PSIM.Specifically, the charge and discharge curves of the supercapacitor, obtained through GA adjustment and PSIM simulation, were very similar, showing an error of just 2.2%.Thus, the supercapacitor model adjusted via GA demonstrates a good response to the physical phenomenon in question and can be used to develop a Digital Twin (DT) system, aiding in the operational and health monitoring of the supercapacitor.

Introduction

2Supercapacitors are devices that operate based on the amount of energy stored as ions between the electrolyte and electrode.We can divide supercapacitors in three types based on its energy storage mechanism, namely: electrochemical double-layer capacitor, pseudo-capacitor and hybrid supercapacitor [1].The supercapacitor that accumulates electric charges at the interface between electrode pores and the electrolyte is the electrochemical double-layer supercapacitor or electric double layer supercapacitor (EDLC).This phenomenon occurs at the interface between the pores of the electrodes and the electrolyte, which provides a larger specific area to the electrodes.As a result, supercapacitors achieve high capacitance compared to their electrolytic counterparts [2].They are composed of: (i) a pair of active material electrodes adhered to a current collector with terminal connections for the electronic circuit, (ii) a membrane that physically and electrically isolates both electrodes, (iii) electrolytes containing charged ions generally soaking the separator membrane, and (iv) the encapsulation [3].Supercapacitors respond more quickly to charge variations compared to lithium-ion batteries due to their high power density characteristics, and have attracted much attention in SC technology [4][5][6][7][8][9].

3In recent years, energy storage systems have experienced significant growth, both in quantity and technological advancements, playing an increasingly prominent role in electrical energy systems.One particularly promising technology is the use of supercapacitors for electrical energy storage, offering advantages such as high power delivery in extremely short periods, excellent reversibility, fast charge and discharge capabilities, and long lifespan [9].Consequently, supercapacitors have been widely applied in power systems, including wind farms for output power stabilization, dynamic voltage regulators, distributed generation systems, and large-scale storage solutions [10,11].

4Recent studies have focused on developing more accurate and efficient models for supercapacitors, aiming to optimize their performance across various applications.

5In the work developed by [12], two supercapacitor models were implemented, one model using Simulink 7.5 software and the other one using Orcad 9.2 software.The parameters of the models were obtained through two measurement tests on a real supercapacitor.Comparing the models, the authors concluded that both models presented good results, and that the parameter extraction method was accurate.

6In [13], two different charge/discharge sequences were proposed to extract parameters from a supercapacitor model, considering a faster and a slower process of charge/discharge.With this, the authors were able to estimate different values of tuning capacitance (Cfit), for fast charge/discharge and slow charge/discharge.Another parameter estimated in this work is the tuning resistance (Rfit), which is estimated empirically in the PSpice software, comparing the curve obtained via simulation and via experimental testing.This work was an advance compared to the work developed by [14], in which the parameters of the supercapacitor model are identified considering only one charge and discharge sequence.

7The work presented in [15] introduces an innovative algorithm for extracting optimal parameters, emphasizing the role of optimization techniques in enhancing the

Competing interests:

8The authors have declared that no competing interests exist.

9accuracy of supercapacitor models.Additionally, [15] explores experimental methods for parameter estimation, reinforcing the necessity of experimental validation to ensure the effectiveness of theoretical models.The development of robust models for real-world applications requires a seamless integration of both experimental and theoretical approaches.

10Another significant advancement is presented in [16], which leverages machine learning algorithms such as Support Vector Machine (SVM) and Particle Swarm Optimization (PSO) to model supercapacitor behavior.This hybrid approach combines artificial intelligence techniques with traditional modeling methods, resulting in more precise models that adapt to varying operational conditions.

11In [17], a genetic algorithm (GA) was used to optimize some physical parameters of a supercapacitor, including the selection of electrode materials, the design of electrode structure, the composition and concentration of electrolyte, and the control of operating temperature.The main goal is to maximize the energy density and cycle life of the supercapacitor by using genetic algorithm to optimize the supercapacitor parameters design.

12These studies illustrate the continuous evolution of supercapacitor modeling and characterization, underscoring the importance of advanced optimization techniques and experimental validation.The application of these methodologies can lead to substantial improvements in the performance and efficiency of energy storage systems, reinforcing the viability of supercapacitors for industrial applications and renewable energy generation.

13The implementation of Digital Twins [18] in energy storage systems involving supercapacitors holds tremendous potential for enhancing accuracy and efficiency.Digital Twins are virtual representations of physical systems that enable real-time simulation, monitoring, and optimization.In the context of supercapacitors, Digital Twins facilitate modeling and predicting device behavior under diverse operating conditions, allowing for parameter identification and optimization.

14The use of advanced optimization algorithms, as discussed in [15][16][17], is crucial for the development of accurate and effective Digital Twins.These algorithms enable precise parameter identification for supercapacitor models, which is fundamental for simulating and predicting device performance.The integration of machine learning techniques such as SVM and PSO further enhances the adaptability of Digital Twins to operational variations, improving prediction accuracy.

15Moreover, the experimental approach detailed in [12][13][14] plays a key role in validating theoretical models, ensuring that Digital Twins accurately represent real-world supercapacitor behavior.The combination of experimental and theoretical methodologies fosters the development of robust and reliable models, which are essential for the successful deployment of Digital Twins.

16However, despite the advancements achieved with SVM and PSO, certain limitations persist.While these methods are promising, they may struggle with flexibility and adaptability to new operating conditions.In contrast, Genetic Algorithms (GAs) [17] present significant advantages in this context.GAs are particularly effective in exploring complex and nonlinear solution spaces-intrinsic characteristics of supercapacitor models.Furthermore, GAs promote greater solution diversity through genetic mutations and crossovers, helping to prevent premature convergence to local optima and enhancing model robustness.

17Thus, research on parameter optimization for supercapacitor models using Genetic Algorithms and other advanced optimization techniques is of great importance for the effective implementation of Digital Twins.Addressing the gaps identified in the literature and developing more precise and efficient parameter identification methods will contribute significantly to the advancement of this technology, ultimately improving the performance and efficiency of energy storage systems.

The proposed methodology

18This manuscript presents a methodology for estimating the parameters of a supercapacitor's electrical model using a genetic algorithm (GA).The proposed approach consists of the following steps:

191. Supercapacitor Circuit Modeling: The equivalent circuit of the supercapacitor is modeled using PSIM software.It is important to note that PSIM is a validated software and will serve as the reference for this study, ensuring the reliability of the results obtained through the proposed GA method.Due to technical constraints preventing the construction of an experimental setup, a computer simulation in PSIM is conducted to validate the GA-based estimation of the Rfit and Cfit parameters, as shown in Fig. 2.

Simulation of the Operating Cycle:

20Once the SC equivalent circuit is modeled, a simulation is performed to capture its complete operating cycle, including charging, self-discharge, and discharging phases.

Parameter Calculation from Simulation Data:

21After obtaining the supercapacitor's charging and discharging curves, two key parameters of the electrical model-capacitance (Csc) and equivalent series resistance (Resr)-are calculated.Up to this stage, the results derived from the simulation could also be obtained experimentally, as they would in a real-world scenario.

Optimization Using Genetic Algorithm:

22In this step, the GA is employed to determine optimal values for Rfit and Cfit.

23The results obtained via GA are compared with the reference curve generated in PSIM, which acts as a substitute for actual experimental measurements.

Fine-Tuning of Self-Discharge Resistance:

24A fine adjustment is then performed to determine an appropriate value for Rsd.This involves modifying the resistance value and comparing it with the reference self-discharge curve obtained from the PSIM simulation.

Final Validation and Comparison:

25Lastly, a comparison is made between the reference operating cycle obtained in PSIM and the cycle generated using the parameters (Rfit and Cfit) optimized by the GA.This optimized model is also simulated in PSIM.A small error margin indicates that the computational model of the supercapacitor is suitable for future applications, such as digital twin implementations.

Equivalent circuit in PSIM software

26A supercapacitor (SC) can be modeled based on the equivalent circuit proposed in [13], as illustrated in Fig 2.

27The equivalent series resistance (Resr) and capacitance (Csc) are determined from the supercapacitor's operating cycle, which includes charging, self-discharge, and discharging phases.These parameters are estimated under the assumption of a constant current during the charging and discharging stages.Once the voltage curve is obtained from the SC's operating cycle, these two parameters can be computed using specific equations, which will be presented later.

28The resistance (Rfit) and capacitance (Cfit) can be determined using different methods, such as the least squares method.In this study, a genetic algorithm (GA) was adopted to estimate these parameters, iteratively adjusting them until an optimal solution is found.The application of GA is detailed in Section 2.4.

29After determining the aforementioned parameters, the resistance (Rsd) is fine-tuned by making small adjustments and comparing the resulting self-discharge curve with the reference curve obtained from the simulated SC operating cycle.

30The parameters are defined as follows:

31• Resr: Equivalent series resistance.

32• Csc: Capacitance associated with stored energy.

33• Cfit and Rfit: Parameters used to adjust the SC's dynamic response during charging and discharging.

34• Rsd: Resistance associated with the SC's self-discharge process.

35The literature presents various electrical models for supercapacitors, each tailored to specific applications, reflecting the complexity of simulating their nonlinear behavior.In this work, we adopt Ciocan's model [13], as depicted in Fig 2 .The parameter values for the computational model shown in Fig 2 were obtained from [15] and are listed in Table 1.Where:

36• Resr represents the equivalent series resistance.

37• Csc denotes the capacitance associated with stored energy.

38• Cfit and Rfit are linked to adjusting the dynamic response of the SC during charging and discharging.

39Rsd is related to the SC' self-discharge process The values of the computational model parameters presented in Fig 2 were taken from [19] and are presented in Table 1.The supercapacitor used in the simulations consist in a series association of two 62 F/125 V modules, manufactured by Nesscap, with electrical parameters summarized in Table 2.This is the same model and configuration used by [19].Each module consists of 48 cylindrical SCs of 2.7 V and 3000 F. The estimated useful life of these cells is 1,000,000 cycles at room temperature.Their construction is based on activated carbon electrodes and uses an organic electrolyte.

40With the supercapacitor modeled in PSIM, a simulation was performed to obtain its complete operating cycle, including the charging, self-discharge, and discharging phases.It is important to note that both the charging and discharging processes were conducted under constant current conditions to accurately determine the equivalent series resistance (Resr) and capacitance (Csc).

Simultion of the operating cycle

41The simulation of the operating cycle was conducted under constant current charge-discharge (CCCD) conditions, where the supercapacitor was charged with a 10 A constant current until its voltage reached 200 V.Following the charging phase, the supercapacitor remained in self-discharge mode for 10 minutes before being discharged at a constant current.This process allows for the evaluation of the device's performance, charge storage capacity (Csc) over time, and equivalent series resistance (Resr) [3].recorded at 20% and 90% of the full charge, respectively, which will be used for the subsequent determination of the Csc parameter.

42During the self-discharge phase, a gradual loss of charge occurs over time, even without an external load.This phenomenon, influenced by material quality and internal resistance, directly affects efficiency.Excessive self-discharge can significantly limit the application of supercapacitors in energy storage systems.

43In the discharge phase, the voltage decreases as stored energy is released, and the discharge curve provides valuable insights into charge storage capacity and internal resistance (Resr).

44Which Ic is the charging current.

45It is important to mention that in a real practical approach, the supercapacitor voltage curve shown in Fig 3 is obtained experimentally.In the present work, due to the lack of an experimental bench, this voltage curve was obtained by computer simulation in PSIM software.

46Furthermore, the data from the charging phase will serve as the foundation for calculating the genetic algorithm's fitness.This calculation will aid in determining the most suitable dynamic parameters (Cfit and Rfit) for the supercapacitor model.

Genetic algorithm optimization

47The use of a genetic algorithm (GA) was used to adjust the Rfit and Cfit values with the objective of obtaining a minimum error between the response through PSIM simulation (reference voltage curve with pre-defined Rfit and Cfit) and the response with Rfit and Cfit values obtained via GA, which this last one will be determined using the supercapacitor charging equation, shown later in this work.

48Based on [20], a genetic algorithm was developed, and its flowchart is presented in Fig 5, in which each step is described in the following subtopics.

AG criteria definition.

49In the first stage of GA, the fundamental parameters are defined and the calculations necessary for the correct execution of the program are carried out.Initially, the number of individuals per generation is specified, representing the number of possible solutions analyzed in each generation of the GA.To guarantee genetic variability, a total of 1000 individuals per generation was adopted, while the total number of generations was defined as 100 thousand, implying that if the stopping criterion, to be discussed later, is not reached, the program is terminated at limit generation.Furthermore, the variables (chromosomes) that the GA will optimize are established: Rfit and Cfit, totaling two variables.

50Furthermore, a range of search values is defined for these parameters, delimiting the search space between 0 and 100 thousand.This approach contributes to algorithm efficiency by avoiding the creation of physically improbable solutions for resistance and capacitance, which reduces computational effort.

51Another relevant parameter is the precision adopted for the binary coding of values, allowing continuous intervals to be represented with a specificity of 5 decimal places.

52Additionally, the previously calculated parameters (Resr and Csc) are declared to compose the GA fitness function.Therefore, the code converts the defined values range size to binary base, considering the desired precision.This results in approximately 34 bits to represent each variable, totaling 68 bits for the two variables to be optimized.Table 3 summarizes the initial parameters used in the proposed GA.

Initial population.

53In this algorithm stage, the GA creates the first generation of individuals that will be analyzed and evolved throughout the process.Each individual represents a possible problem solution, and its characteristics are encoded in a 68-bit binary array, as defined in the previous step.The total number of individuals in this initial population is defined in the initial criteria, which is 1,000.

54To generate each individual, each bit (gene) is determined by the algorithm based on a random value uniformly distributed between 0 and 1.If the value is less than 0.5, the corresponding bit is set to 0, otherwise it is set as 1.This process ensures that the initial population is generated randomly, distributing individuals in the search space.

55In Fig 6, the proposed GA initial population is presented.

Fitness function.

56In this step, the algorithm analyzes each individual in the initial population to determine its fitness based on minimizing the error between the simulation with the parameters estimated via GA and the simulation with the reference data.To do this, the binary values of each individual are converted to their real equivalents, representing the resistance (Rfit) and capacitance (Cfit) values.

57Then, the fitness of each individual is calculated, which indicates the quality of each solution to the problem.This fitness is determined by the inverse of the average error between the voltage data collected during the charging stage in the CCCD test (reference simulation via PSIM -Vsc target) and the charging voltage calculated in GA (Eq (3) -Vsc modeled), the latter being calculated for each individual.

58Where: u = amplitude of the applied current step sc during the charging stage

59The fitness equation for of an individual α is defined by Eq (4):

60Where ε is a very small number (2 ⁻ ⁵²) included to prevent division by zero in case the mean error is extremely close to zero.The average error is given by Eq (5):

61Based on average error, the GA analyzes the stopping criterion.At each generation, the best individual average error is compared with a previously defined target error, which represents an acceptable limit for the difference between the estimated data and the reference data.If the best average error is less than or equal to the target error, the algorithm terminates the main loop and displays the optimized values.This approach optimizes the algorithm execution, avoiding unnecessary processing of additional generations when the desired solution is found.However, if the stopping criterion is not achieved, the algorithm saves the individual with the lowest error for the next generation and only exchanges it if a better individual emerges in the next generations.

62Regarding the target error, used as a stopping criterion, the value of 0.5% was adopted.This value was chosen based on numerous and extensive algorithm executions, in which it was observed to be an adequate value to extract a very small error from the routine, ensuring that the SC model comes as close as possible to the target behavior.

Selection.

63The algorithm selects the fittest individuals from the population and forms pairs for crossing, using a criterion proportional to fitness, that is, the greater the fitness, the greater the chance of the individual being selected.

64First, the fitness of each individual, Z(α), is normalized in relation to the total sum of fitness population, converting it into a percentage, Z%(α), as shown in Eq (6).

65Where ind is the number of individuals in the population.This process ensures that each individual receives a relative probability of being selected, proportional to their fitness.The next step consists of constructing a cumulative vector, which stores the accumulated probabilities.For each individual, the accumulated value is obtained by adding its normalized fitness with the accumulated sum of previous individuals.

66To form a pair, two random numbers are used to select individuals from the population.These numbers are compared to the accumulated vector of probabilities and the corresponding individual is the one whose accumulated range contains the generated number.For example, if the accumulated vector is [5,14,35,60, 100] and the generated number is 25, the third individual will be chosen, as the number 25 is in the range between 15 and 35.Fig 7 illustrates the distribution of these intervals and their weight for the selection.This process is known as the roulette method and ensures that individuals with greater fitness are more likely to be selected, but without completely excluding those who are less apt.

67This procedure is repeated twice, once for each individual in the pair, ensuring that both members are chosen proportionally to their fitness.

Crossing.

68For crossing, the pairs of individuals selected in the previous phase are combined to generate new individuals, promoting the combination of genetic characteristics between them.The crossing is carried out using a cutoff point, which determines the position in the binary code where information from the two individuals will be exchanged.For each pair formed, the cutoff point is defined randomly and divides the genetic code into two parts: the genes located before the cutoff point are kept from the first individual, while the genes located after the cutoff point are exchanged with those of the second individual.

69Fig 8 illustrates the process, which works as follows:

70For genes located after the cutoff, the father's binary data (genes) are transferred to the daughter, while the mother's data is transferred to the son.

71For genes located before the cutoff point, the opposite occurs: the mother's binary data is transferred to the daughter, and the father's data is transferred to the son.This exchange of genetic information results in two new individuals (descendants), who inherit characteristics from both parents.The crossover process leads to a problem solution convergence, however, the solution may get stuck in a local optimal solution.To overcome this situation, mutation is performed on individuals, with the aim of achieving a global optimal solution.

72The crossover rate used in the present work was 0.8, that is, once the pair is selected in the selection stage, the probability of crossover is 80%.

73At the end of the crossing stage, the population is made up of the descendants generated, which proceed to the next steps of the algorithm, such as mutation and fitness evaluation.

742.4.6.Mutation.At this stage, small changes are introduced in the descendants generated by the crossing, with the aim of maintaining the population genetic variability.Each genetic code bit of sons and daughters has a 5% probability of being modified.To do this, random numbers are generated for each bit, and if the value is less than the mutation rate of 5%, the bit is changed.The mutated descendants, sons and daughters, are then combined into a new matrix, which represents the updated population.This population is taken again to the fitness evaluate stage, closing a cycle that will be repeated until the stopping criterion based on the target error is reached or the generation limit is simulated.

75At the end of the routine, the genetic algorithm returns the fittest individual, with the smallest error found over the generations.This individual is then decoded to obtain the Rfit and Cfit values.

76As a GA performance indicator, a graph is constructed that superimposes the simulated voltage curve (Eq (3)), obtained with Rfit and Cfit values of the best individual, on the curve collected from the CCCD test.To evaluate the accuracy of the definitive model, the average percentage error between the simulated voltage values of the fittest individual and the reference values (CCCD test) is calculated, as described in Eq (7), where N represents the total number of points of the analyzed data.

Determination of Resistence (Rsd) and Supercapacitor Model Evaluation

77Once Rfit and Cfit values are obtained via GA, a simulation is then carried out in PSIM to obtain the voltage curve for a complete cycle (charging, self-discharge and discharging), considering at this point the parameters obtained by GA and, then, this curve is compared with the reference curve, obtained by the CCCD test.With this, an adjustment is made for the resistance Rsd, comparing the self-discharge phase of the two curves.In addition, a definitive error of the SC model is determined, comparing the complete cycle of the two curves.

Results

78Using PSIM, the CCCD test was simulated using the circuit shown in Fig ) and the charging current, will be used to determine Csc (Eq (2)).

79For the results obtained in Figs 10 and 11, the following values of series equivalent resistance and capacitance were calculated: Resr equal to 0.023 Ω and Csc equal to 32.85 F. These values are inserted into Eq (3) and then GA is used to determine the resistance (Rfit) and capacitance (Cfit) values.

80Table 5 shows the results regarding the GA performance, where the number of generations and individuals created until the stop can be seen, with the final error around 0.74%.Although the target error of 0.5% has not been achieved, the error obtained is small enough for supercapacitor modeling purposes.

81In Fig 12,comparison is presented between the charging voltage of the supercapacitor to be modeled (taken from the CCCD test) and the charging voltage of the fittest individual (best solution found) found by GA (obtained by Eq (3)).As can be seen in Fig 12, the two curves are very close, showing the GA efficiency in determining Rfit and Cfit.

82To complement and confirm the supercapacitor model, a circuit is assembled with the determined values, where Rsd is adjusted until the best approximation to the self-discharge observed in the initial curve is obtained (CCCD test).All parameters obtained, both by the CCCD test analysis and those optimized by GA, are presented in table 6.The charge and discharge circuit such values is shown in Fig 13.The comparison between the target voltage curve (CCCD test -Circuit in Fig 9) and the modeled voltage curve with GA (Circuit in Fig 13), for a complete charge and discharge cycle, is shown in Fig 14 .As can be seen in Fig 14, the method using GA obtained a good result, since the behaviors of the two curves are very similar in all stages, highlighting a greater difference during discharging.The percentage errors at each step are shown in table 7.

Discussion

83Charge and discharge tests performed at PSIM demonstrated the effectiveness of the genetic algorithm in optimizing the dynamic parameters Rfit and Cfit of the supercapacitor, with a strong correlation between the voltage curves of the target supercapacitor and the digital model.The average percentage error between the reference and model data indicated high accuracy of the model, despite small discrepancies during discharge.Compared to previous studies, this work stands out for its fine-tuning and detailed analysis of the percentage error.The proposed methodology can be applied to other energy storage devices, with future research focusing on the integration of advanced sensors and multi-objective optimization algorithms for modeling a physical SC.The electrical supercapacitor model proposed in this article be applied to the other types of supercapacitors, namely: pseudocapacitors and hybrid supercapacitors is inadequate to these types of supercapacitors because of: i. Differences on energy storage mechanisms, redox reactions (faradaic processes) on pseudocapacitors and electrochemical volumetric processes on hybrid supercapacitor.

84ii. Complexity on dynamical behaviour of pseudocapacitor and hybrid supercapacitors that exhibit nonlinear responses (e.g., capacitance dependence on voltage or charge/discharge rate).The proposed model does not capture such nuances.

85iii.Failure to represent multiple time scales, hybrid supercapacitors and pseudocapacitors a have multiple time constants due the coexistence of fast processes (electrostatic) and slow process (electrochemical).The proposed model uses a single RC branch for the dynamics.

86Despite all these limitations, the model is effective to represent EDLCs due to the following reasons:

87i. Alignment with the electrostatic storage mechanism: EDLCs operate by purely electrostatic storage (electrical double layer), without chemical reactions.The simplified model, composed of resistances (series and self-discharge) and fixed capacitances, directly reflects this physical behaviour, ignoring unnecessary complexity such as the dependency on voltage or Faradaic processes.

88ii. Simplicity and practicality: The circuit has only five parameters (RESR, RSD, CSC), identified by simple experimental tests (charge/discharge with constant current and self-discharge) and adjusted by the Genetic Algorithm application (RFIT and CFIT).Such simplicity allows easy implementation in tools such as PSpice, keeping the accuracy for typical applications of EDLCs.iii.Computational efficiency: This application is part of a larger project involving the use of Digital Twin technology for a hybrid stand-alone PV system in which the supercapacitors are of electrical double layer type.The architecture minimizes the computational overhead in simulations, making it particularly suitable for digital twin applications.

Conclusions

89In this study, an equivalent electrical model of a supercapacitor using a genetic algorithm (GA) to optimize dynamic parameters was developed and validated.The adopted approach integrated theoretical and experimental methods, resulting in a precise and robust digital model capable of replicating the supercapacitor's physical behavior with high fidelity.Analysis of the results demonstrated that the GA-optimized model exhibited an overall percentage error of only 3.93%, with particular precision in charging (2.20%) and self-discharge (0.23%).These values indicate an excellent correlation between experimental and simulated data, validating the effectiveness of the proposed model.However, a larger error was observed in discharging (10.07%), suggesting that future research should focus on improving modeling for this specific stage.Additionally, the detailed experimental validation reinforces the need to combine theoretical and practical approaches to develop models that are not only accurate but also applicable in real-world scenarios.The integration of such methodologies is crucial for the effective implementation of Digital Twins, which can revolutionize the management and optimization of energy storage systems.Therefore, this work not only contributes to advancing supercapacitor modeling techniques but also paves the way for the application of Digital Twins in energy storage systems.The precision and efficiency achieved by the developed model highlight the importance of continuing to explore and improve these technologies, aiming for significant improvements in the performance and energy efficiency of industrial applications and renewable energy generation.

Fig 1

90Fig 1 presents a flowchart illustrating the proposed methodology.

Fig 1 .

91Fig 1. Flowchart of the proposed methodology.https://doi.org/10.1371/journal.pone.0325645.g001

Fig 3

92illustrates the three stages of the test: charging, self-discharge, and discharging.During the charging phase, the supercapacitor's voltage gradually increases, as shown in Fig 3.At this stage, two voltage points (V1 and V2) are

Fig 2 .

93Fig 2. Equivalent electrical model of SC.Source: adapted from [13].https://doi.org/10.1371/journal.pone.0325645.g002

94Fig 4 highlights the slight voltage drop caused by internal resistance immediately after the charging phase.The difference between VC2 and VC1 will be used to calculate Resr.

Fig 3 .Fig 4 .

95Fig 3. Typical CCCD graph for SCs with steady-state voltage drop: Complete cycle of charge, self-discharge, and discharge.https://doi.org/10.1371/journal.pone.0325645.g003

Fig 5 .

96Fig 5. Genetic Algorithm Flowchart.https://doi.org/10.1371/journal.pone.0325645.g005

Fig 6 .

97Fig 6.Initial population example.https://doi.org/10.1371/journal.pone.0325645.g006

Fig 7 .Fig 8 .

98Fig 7. Example of accumulated skills distribution per individual and individual selection probability.https://doi.org/10.1371/journal.pone.0325645.g007

Fig 9 .Fig 10 .

99Fig 9. Circuit for a complete SC cycle (SC reference).https://doi.org/10.1371/journal.pone.0325645.g009

Fig 11 .

100Fig 11.Charging curve of the target SC: Immediate voltage drop at the transition from charging to self-discharge, with key points for calculating Resr.https://doi.org/10.1371/journal.pone.0325645.g011

Fig 14 .

101Fig 14.Comparison between the target voltage curve and the modeled voltage curve with GA. https://doi.org/10.1371/journal.pone.0325645.g014

Table 1 . Key parameters of the supercapacitor from [19].

102https://doi.org/10.1371/journal.pone.0325645.t001

Table 2 . Specifications of the used supercapacitor (EDLC).

103https://doi.org/10.1371/journal.pone.0325645.t002

Table 3 . Initial GA Criteria. Criterion Value

1049, considering the parameters of the supercapacitor to be modeled (Fig 2 and table 1).The resulting behavior is presented in the graph in Figs 10 and 11, together with the key points detailed in table 4. The two points in Fig 10 will be used for Resr calculations (Eq (1)), while the voltage values in Fig 11 (Vc1 and Vc2

Table 5 . Genetic Algorithm Performance. %Error_Target %Error obtained Generations Generated solutions (individuals)

105https://doi.org/10.1371/journal.pone.0325645.t00512.

Charging curve modeled by the settings determined by the GA compared with the target charging curve.

106https://doi.org/10.1371/journal.pone.0325645.g012

Table 6 . Key parameters of the modeled supercapacitor.

107https://doi.org/10.1371/journal.pone.0325645.t006Fig 13. Circuit for a complete SC cycle (SC modeled).https://doi.org/10.1371/journal.pone.0325645.g013

Table 7 . Accuracy of the supercapacitor modelling. General_%Error % Error during charge %Error during self-discharge %Error during discharge

108https://doi.org/10.1371/journal.pone.0325645.t007

참고문헌 17건

  1. Power and life extension of battery-ultracapacitor hybrids IEEE Transactions on Components and Packaging Technologies · Institute of Electrical and Electronics Engineers · 2002 10.1109/6144.991184
  2. Power Enhancement of an Actively Controlled Battery/Ultracapacitor Hybrid IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2005 10.1109/tpel.2004.839784
  3. Characterization of double-layer capacitors for power electronics applications IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2000 10.1109/28.821816
  4. Modeling and simulation of supercapacitors 2009 10.1109/siitme.2009.5407373
  5. An improved method for the electrical parameters identification of a simplified PSpice supercapacitor model 2016 10.1109/siitme.2016.7777270
  6. A review of supercapacitor modeling, estimation, and applications: A control/management perspective Renewable and Sustainable Energy Reviews · Elsevier BV · 2017 10.1016/j.rser.2017.05.283
  7. Hybrid battery/supercapacitor energy storage system for the electric vehicles Journal of Power Sources · Elsevier BV · 2017 10.1016/j.jpowsour.2017.11.040
  8. Modelling of supercapacitors based on SVM and PSO algorithms IET Electric Power Applications · Institution of Engineering and Technology · 2018 10.1049/iet-epa.2017.0367
  9. Supercapacitor: Instrumentation, Measurement and Performance Evaluation Techniques SpringerBriefs in materials · Springer Nature · 2018 10.1007/978-981-13-3086-5
  10. Portable Self-Charging Power System via Integration of a Flexible Paper-Based Triboelectric Nanogenerator and Supercapacitor ACS Sustainable Chemistry & Engineering · American Chemical Society · 2019 10.1021/acssuschemeng.9b05129
  11. Variable structure-based control of fuel cell-supercapacitor-battery based hybrid electric vehicle Journal of Energy Storage · Elsevier BV · 2020 10.1016/j.est.2020.101365
  12. Supercapacitor management system: A comprehensive review of modeling, estimation, balancing, and protection techniques Renewable and Sustainable Energy Reviews · Elsevier BV · 2021 10.1016/j.rser.2021.111913
  13. Application of the Supercapacitor for Energy Storage in China: Role and Strategy Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app12010354
  14. Analysis of the effect of different factors on the degradation of supercapacitors Ionics · Springer Science+Business Media · 2022 10.1007/s11581-022-04650-z
  15. Supercapacitor Digital Twin Management System Based on Cloud Environment 2021 10.1109/hpcc-dss-smartcity-dependsys53884.2021.00160
  16. SOC, SOH and RUL Estimation for Supercapacitor Management System: Methods, Implementation Factors, Limitations and Future Research Improvements Batteries · Multidisciplinary Digital Publishing Institute · 2022 10.3390/batteries8100189
  17. Optimized Design of Supercapacitor Parameters Based on Genetic Algorithm 2024 10.1109/telepe64216.2024.00065