ABSTRACT
This paper introduces a virtual plant method as the main contribution, applied independently to two discrete-time adaptive control strategies for a synchronous buck converter used in battery charging: an Adaptive PI Controller (API) and a Model Reference Adaptive Controller (MRAC). The system employs an LCL filter that interfaces the power converter with the batteries. The proposed virtual plant method enhances the transient performance of adaptive systems by pre-tuning the controller gains before the physical connection, enabling automatic gain initialization and mitigating the poor start-up dynamics typical of adaptive control. The API controller performs real-time adaptation of the parameters Kp and Ki, while the MRAC is based on a reduced-order reference model to simplify its design, updating three parameters: θr, θy and θvb. A simplified methodology for designing adaptive controllers is proposed, involving plant simplification and the use of a virtual plant to automate the controller design process. Controller Hardware-in-the-Loop (C-HIL) and experimental results are presented to validate the control approaches. A fixed PI controller is used as a benchmark for comparison with the adaptive control techniques. Quantitative and qualitative analyses are provided using performance indices such as ISE, IAE, ITSE and ITAE.
KEYWORDS
Adaptive Control; LCL Filter; Virtual Plant; C-HIL
I. INTRODUCTION
The global energy transition is transforming the way we generate, store, and consume energy, driven by the urgent need to reduce carbon emissions and integrate renewable energy sources [1]. At the center of this transformation lies the critical role of energy storage technologies [2], such as lithium-ion batteries and battery energy storage systems (BESS). Lithium-ion technology offers high energy density, efficiency, and a long cycle life, which makes it essential for electric vehicles (EVs), portable electronics, and large-scale energy storage applications [3]. BESS, in particular, helps stabilize power grids by balancing supply and demand, storing excess renewable energy, and providing backup power during peak demand or outages [4].
Renewable energy generation is increasingly adopted as a sustainable alternative to conventional sources; however, its output is inherently intermittent due to environmental variability, leading to power and voltage fluctuations that compromise stability and power quality [5]. To ensure reliable operation, power electronic converters are used to regulate the generated voltage, interface with the electrical network, and coordinate the operation of energy storage systems. These storage units absorb surplus energy during periods of high generation and release it when production declines, but this process requires precise control of charging and discharging stages to maintain safe voltage levels and extend system lifespan. Consequently, the effective integration of renewable sources, energy storage technologies, and converter control strategies is essential to mitigate generation variability, improve energy efficiency, and enhance the resilience of both grid-connected and hybrid power systems [6].
Adaptive control is an advanced control strategy that dynamically adjusts the gains in real-time to optimize system performance under varying conditions. Unlike traditional fixed-gain controllers, adaptive controllers such as MRAC and API continuously monitor system behavior and modify their parameters to account for changes in system dynamics, disturbances, or uncertainties [7]–[9]. This adaptability enhances stability, responsiveness, and robustness, making it particularly useful in applications where system characteristics change over time, such as power electronics in microgrid applications [10], and renewable energies [11]. Techniques for adaptation can include model-based approaches, machine learning, or rule-based tuning methods, ensuring the controller maintains optimal performance without requiring manual retuning.
Considering the vital role that DC-DC converters play in these various applications, especially in renewable energy systems [12], robust control strategies are important to guarantee the effective and reliable functioning of these converters. To maximize energy conversion, maintain the durability and safety of components, and manage the dynamic and variable characteristics of renewable energy sources, effective control techniques are required [13], [14]. This work investigates a virtual plant–based initialization method for adaptive controllers applied to a DC battery charger with an LCL filter. The API and MRAC controllers are used only as representative adaptive strategies to demonstrate the applicability of the proposed method, which focuses on principles independent of the specific control law.
Furthermore, one of the classic problems of adaptive controllers is the gain start-up in transients. Although the gains are adapting, the start-up transient response is poor. In order to mitigate this classic problem, the virtual plant method is proposed to improve the start-up transient response, adapting the gains before the physical connection with the real plant. In [15], the virtual plant approach was evaluated only in offline PSIM simulations and exclusively with an MRAC controller. In contrast, the present work extends the methodology to real-time validation using both C-HIL and a physical prototype implemented on a low-cost STM32 microcontroller. In addition, an API controller is included to demonstrate the applicability of the virtual plant method to different adaptive strategies, and a fixed-gain PI controller is incorporated as a benchmark.
This paper proposes a virtual plant method for two independent discrete-time adaptive control techniques applied to a synchronous buck converter for charging batteries: API and MRAC controllers. The system uses an LCL filter that interfaces the power converter and the batteries. A passive damping method with a series resistor is used to attenuate the filter resonance peak. The virtual plant method is motivated by the need for a better start-up transient response of adaptive controllers; the virtual plant emulates the real plant and runs on a microcontroller, similarly to an embedded Hardware-in-the-Loop (HIL) device. The API controller uses a Gradient Descent method to adapt the controller gains Kp and Ki. The plant model reference utilizes a reduced order, with a first-order transfer function to simplify the MRAC controller project. Simple design procedures will be presented to guide the reader.
The experimental results based on C-HIL and physical prototype are presented to validate the control project and the effectiveness of the virtual plant. A fixed-gain PI controller is used as a benchmark for comparison with the adaptive control techniques. To evaluate the controllers, analyses are provided using performance indices such as ISE and IAE, which evaluate the overall tracking performance of the system, as well as ITSE and ITAE, which evaluate the controller with more weight in steady state [16]. The converter system was tested in two separate simulations: one using the Adaptive PI controller and another using the MRAC. Each controller was tested independently under the same reference and load conditions, allowing a fair comparison of performance. The virtual plant method was applied similarly in both adaptive control strategies.
The structure of this paper is as follows: Section II introduces the power converter and plant modeling, Section III presents the control methodology, with API and MRAC, Section IV presents the results with C-HIL, Section V presents the experimental results, and Section VI provides an overview and analysis of the results.
II. POWER CONVERTER AND PLANT
The topology used in this work is a half-bridge converter, which functions like a synchronous Buck converter. As shown in Figure 1, the power converter is fed by an external DC voltage Bus, and an LCL filter is used to make the connection between the converter and the batteries.
The LCL filter is commonly applied for grid-connected inverters, for attenuation of current harmonic components. This is a third-order filter, in comparison with a first-order filter, such as the L filter, that presents better attenuation of the harmonics provided by the switching frequency [17], [18]. The LCL filter has an attenuation of 60 dB/dec., while the L filter has 20 dB/dec., despite the more complex topology, the LCL filter can be constructed with less volume of reactive components [19], [20]. In battery charging applications, substituting an L-type filter with an LCL filter results in a charger with a compact size and lower ripple charging current. By achieving low ripple current charging is vital for battery health, as it reduces heat generated by the ripple current, thereby helping to lengthen the battery’s lifetime [21], [22].
However, the LCL filter has a peak of resonance that can make the closed-loop control difficult [23]. There are two main ways to mitigate the resonance problem: passive damping and active damping. The passive damping methods use a passive damping resistor or a combination of more passive components [24], this is a good straightforward solution, but the project of the damping resistor is crucial for minimizing losses and providing the resonance peak attenuation [25]. The active damping methods include single or multi-loops methods, which use digital filters and feedback loops [26] [27], that require complex control techniques and can elevate the computational cost.
In this application, the LCL filter interfaces the power converter with the battery bank. Passive damping is adopted by inserting a resistor Rd in series with the capacitor C, as it provides a simple and reliable solution for mitigating the resonance peak in a SISO system without requiring additional sensors or control loops. Given the low-power level of the converter, the losses associated with the damping resistor are limited and acceptable for the application (≈ 150 mW). This design choice does not constrain the adaptive control design, as the proposed strategies can be applied to converters employing other filter configurations. Figure 2 presents the equivalent circuit, considering the converter applies a mean voltage based on the action of control u, and the battery model is based on a zero-order internal resistance and a voltage source. The nominal voltage of a lithium-ion battery cell is 3.7 V, and the battery bank is composed of 4 battery cells in series.
For battery charging current control, the L2 current (battery current) was chosen as the control variable. The transfer function G1(s) relates the L2 current with the voltage control action u, which is given by (1), the coefficients of numerator β and denominator α are obtained by applying the theory of electrical circuits in the equivalent circuit presented in Figure 2, the contribution of the battery resistance Rb is considered, and the battery voltage Vb is zero.
where the coefficients β and α are:
-
β1 = RdC;
-
β0 = 1;
-
α3 = L1L2C;
-
α2 = L1RdC+L1RbC+L2RdC;
-
α1 = L1+CRdRb+L2;
-
α0 = Rb.
The project of the converter and damping resistor is proposed in [28], which the key equations are included in Appendix A, the Table 1 presents the values of the plant.
A. The Virtual Plant Method
The use of a virtual plant method is motivated by a better starting condition for the adaptive controller [15], [29]. It is considered that the parameters of the plant are known. For the modeling of the plant considering the disturbance of the battery voltage, the transfer function is very similar to (1), though the coefficient β2 is included, the transfer function G2(s) that relates the L2 current and the battery voltage Vb (2). The contribution of the power converter through the control action u is considered zero. This contribution is important for the virtual plant method because it models an external force, which is the battery voltage.
where the coefficients β and α are identical as shown in (1), except by β2 = L1C.
With the zero-order battery model, the transfer function remains third order, and the virtual plant has a good correspondence with the physical system, as can be confirmed with the simulations and experimental results. More complex battery models can be used, and the virtual plant method would remain valid as it would increase the correspondence with the physical plant, however, it would increase the order of the transfer function.
The combined contribution of the transfer functions (1) and (2), as expressed in (3), results in the current model iL2(s) through the principle of superposition.
After discretization, this model is implemented in the microcontroller as a virtual plant, which is executed before connecting the controller to the physical system. That allows the adaptive controller to operate in a simulated environment during the initialization phase, similarly to a HIL device, enabling its gains to be automatically tuned before the real converter is energized. As a result, the well-known poor start-up transient of adaptive controllers is avoided, since the control action applied to the real converter begins with adequately tuned parameters rather than zero or arbitrary initial values.
1) Discretization Method with the Z-transform
For the discrete-time model of the plant, the Z-transform is applied, considering that the average voltage of the converter is kept constant between sampling events. This is modeled as a ZOH (Zero Order Hold), as shown in (4).
The transfer function G1(z), shown in (5), represents the discrete nominal plant using symbolic coefficients. It relates the current iL2, denoted as y1, to the control input u, and corresponds to the continuous-time model given in (1). The numerical values and the derivation of the discrete models are presented in Appendix B.
The discrete model G2(z) with symbolic coefficients is shown in (6). This transfer function relates the inductor current iL2, denoted as y2, to the battery voltage Vb, and corresponds to the continuous-time model in (2). The denominator coefficients of G1(z) and G2(z) are identical and represented by the symbols a0, a1, a2 and a3. The battery voltage Vb is applied to the plant continuously; despite this, the ZOH method was used for discretization without incurring performance penalties.
Applying the cross product in (5) and (6) makes it possible to obtain the computable recurrence equation (7), that corresponds with the continuous model (3).
The virtual plant in (7) reproduces the behavior of the physical plant; however, the DC bus voltage Vcc and battery voltage Vb are real measured signals that are injected into the virtual model.
III. ADAPTIVE CONTROL METHODOLOGY
Two adaptive control schemes are presented in this section in order to regulate the battery current. The main advantage of these approaches is their adaptive behavior. Thus, the controller gains are designed and updated automatically. Additionally, a benchmark based on a fixed-gain PI controller is presented for comparison purposes.
A. MRAC Control
The MRAC strategy aims to design an adaptive control system capable of making the plant output track the response of a predefined reference model. In this work, the plant G0(s) is considered as a first-order approximation that represents the relation between the control input U(s) and the output Y (s).
1) Reduction of the Plant Order
To reduce computational effort and facilitate the MRAC design, the plant was modeled as (8), where G0(s) is the reduced model of the plant and µ∆α(s) is an additive dynamic [30].
The part of the order reduction G0(s) is modeled as a first-order transfer function, and was obtained considering that the capacitance C is sufficiently small, the result is the transfer function present in (9), which corresponds to the real pole of the plant. The pair of conjugate complex poles is present in the non-modeled additive dynamic µ∆α(s). The discrete model of G0(s), using ZOH method, is present in (10).
As shown in Figure 3, the nominal plant G1(z) and the reduced order plant G0(z) are similar at low frequencies, G is the same as G1(z) but with Rd = 1 mΩ, and G1(z) have passive damping by the resistor Rd as noted in Table 1, which mitigates the resonance peak of the filter.
Bode diagram of nominal plant G1(z) with Rd = 0.5 Ω, G with Rd = 1 mΩ, and reduced plant G0(z).
2) Design of MRAC
To ensure that the plant exhibits the desired behavior, we define a first-order reference model, as presented in (11) [31], in this application the reference model was chosen with a real pole in 1000 rad/s. This frequency was chosen taking into consideration that the reference signal is filtered by the reference model, therefore, as the reference for battery charging is constant and with slow dynamics, the poles and zeros of the reference model may have slower dynamics as well.
where Ym(s) is the desired output of the reference model in response to the input R(s), bm and am are respectively the numerator and denominator coefficients of the reference model.
By applying the inverse Laplace transform to the reference model, the corresponding time-domain differential equation is obtained, as shown in (12).
The control equation is provided in (13):
where θr(t), θy(t), and θVb(t) are adaptive parameters that are dynamically adjusted to minimize the tracking error. The error equation is presented in (14).
The control action is expressed as:
where ω = [y r VbT]includes plant output, reference, and battery voltage disturbance. The gain vector θ is given by θ = [θy θr θVbT]. The components Vb and θVb are related to the battery voltage disturbance component.
3) Discrete-time Adaptive Law
The discrete-time adaptive law, descendant gradient type, for the actualization of control gains θ, can be expressed by (16), variables in the time domain (t) are presented in discrete time (k).
where γ is the adaptation gain that defines the convergence speed of MRAC parameters. The signal m2, shown in (17), is a normalization term to limit excessive parameter variations and improve robustness in the presence of large signals or disturbances.
where ζ is a vector that contains relevant input and output signals. The vector ζ is obtained by filtering the vector ω through the reference model Wm(s), as shown in (18). This filtering operation ensures that the adaptation law is driven by signals consistent with the desired closed-loop dynamics, improving stability and convergence properties.
Figure 4 presents a simplified block diagram of the MRAC structure, considering the virtual plant.
B. API Controller
In the API controller, the control action is composed of proportional and integral terms with adaptive gains Kp and Ki (19).
The API controller employs a descendant gradient algorithm that adjusts the gains proportional (Kp) and integral (Ki) (see Appendix C). The adaptation law of these gains is calculated as follows in (20) and (21).
where γp and γi are the adaptation gains that set the convergence rate. The error (e) equation is given in (22).
where ym is the reference signal r filtered by the reference model Wm, used as a reference in the API controller for comparison, and y is the plant output variable.
Considering Γ as the adaptation gain matrix, chosen positive definite, with γp and γi as shown in (23), and ϕ is the error vector (24). The vector K˙ can be expressed as (25).
where m2p is the normalizer signal, expressed by (26), used to increase the robustness in large variations and stabilize adaptive gains in the presence of steady-state errors.
The discrete-time adaptive law for the API controller can be expressed by (27). Time-domain variables (t) are represented in discrete-time form using the index k.
Figure 5 presents a simplified block diagram of the API structure, considering the virtual plant.
C. Benchmark Control Strategy
The proportional integral controller (PI) was used to perform a benchmark between control techniques, comparing adaptive control with classical control techniques. The PI controller design uses the discrete domain strategy proposed in [32]. In this strategy, the desired openloop system crossover frequency ωc∗ and the desired phase margin PM∗ are provided, and the strategy provides the proportional gain value kp and the discrete controller zero frequency ϖ.
The method for determining the discrete controller zero frequency of the PI controller is present in (28).
where Ts is the sampling period of the control law, and ϕ∗ corresponds to the desired phase delay inserted by the controller determined by the difference between the desired phase margin (PM∗) and the phase margin measured at the desired crossover frequency, according to (29).
To calculate the proportional gain, an auxiliary transfer function is defined (30). Then the proportional gain is obtained considering that the gain of the openloop transfer function must have a unitary gain at the crossover frequency, according to (31).
With LCL filter parameters, a crossover frequency of 500 Hz, a phase margin of 60o, and for a switching and sampling frequency of 50 kHz, kp = 0.236 and ϖ = 0.978 were obtained. The structure of the PI controller is presented in Figure 6. The fixed gain PI control action is present in (32).
IV. C-HIL RESULTS
Two independent C-HIL experiments were conducted to evaluate the adaptive control systems: one employing the Adaptive PI controller and the other using the MRAC strategy. Both controllers were separately assessed under identical reference and load conditions to ensure a fair performance comparison. The virtual plant method was applied consistently across both control approaches. To perform a benchmark between adaptive control systems and classic control strategies, results were obtained using a fixed-gain PI Controller under the same conditions employed for the adaptive controllers, allowing the generation of quantitative metrics such as ISE, ITSE, IAE, and ITAE.
Figure 7 presents the hardware setup with Typhoon HIL 402, interface board with instrumentation and signal conditioning for the microcontroller STM32H7A3ZITXQ, oscilloscope Tektronix MDO3034, and notebook. With this setup, real-time simulations were performed, and the controllers were programmed in the microcontroller.
Experimental HIL setup: 1- Typhoon HIL 402; 2- Instrumentation and signal conditioning board; 3- Interface board; 4- STM32H7A3ZITXQ; 5- Oscilloscope; 6- Notebook.
Result from microcontroller buffer: a) Initial transient response with the virtual plant (yv) running, following the reference ym; b) Adaptive gains θ settling time.
A. MRAC Controller
For the first result, the initial transient of the MRAC controller is presented with the adaptive parameters θr, θy, and θvb starting with null values, and the results were obtained through data saved in a microcontroller buffer. Figure 8 presents the transient where the virtual plant (yv) is running, and the control gains θ are adapted for the reference (ym), the adaptation gain γ utilized was 4000, which is a hyper-parameter empirically chosen. The results show the importance of initializing the adaptive gains θ in the system with the favored initial conditions, since the current of the virtual plant exhibits a start-up transient with a high peak of current. This peak of current during the transient will activate a protection system, making the start of the system very difficult. Figure 9 shows the C-HIL result for a start-up transient of the system without the auto-tuning gains provided by the virtual plant initialization.
Result from microcontroller buffer: Transient response without running the virtual plant before t = 0.05 s and the connection with the real plant.
The results shown in Figure 10 present a sequence of steps in the current reference. Before 0.05 s, the system runs with the virtual plant (yv) and the gain vector θ is tuned, in 0.05 s, the connection with the real plant is realized, the reference of current (ym) was set to 1 A for both instances. It is noted that the current has a soft overshoot when the real plant (iL2) is connected, because adaptive gains settle to minimize the effect for this condition of commutation. Over the reference changes, the MRAC controller performs well in tracking, and the adaptive gain θVb explicitly changes under the steps in reference.
Result from microcontroller buffer: a) Real plant connection and sequence of steps in current reference; b) Adaptive gains θ.
Result from microcontroller buffer: a) API controller initial transient response with the virtual plant (yv) running, b) Adaptive gains K settling time.
The results shown in Figure 12 present a sequence of steps in the current reference. The system operates with the virtual plant (yv), and at 0.05 s, the connection with the real plant is established, the same time utilized for the MRAC controller. The reference of current (ym) was 1 A for both instances, the system starts with soft overshoot when the real plant (iL2) is connected.
Result from microcontroller buffer: a) API controller, real plant connection and sequence of steps in the current reference; b) Adaptive gains K.
C. PI Controller
The same set of tests applied to the adaptive controllers was also carried out for the PI controller, for comparison purposes. However, the virtual plant method is not used in this case, since the PI has fixed gains that were previously calculated. Figure 13 presents a sequence of steps in the current iL2 reference, is the same result performed in adaptive controllers, the figure was generated with the data stored in the microcontroller buffer.
Result from microcontroller buffer: PI controller, real plant connection iL2 and sequence of steps in the current reference ym.
D. Comparative Analyses
In Table 2, a comparison is made on the computational effort, design effort and modeling effort between the controllers. Where H corresponds to high effort, M to medium, and L to low effort. The PI controller, which was used as a benchmark, is considered M in design effort, whereas the point of the adaptive controllers is L, because they can perform the automatic tuning of the gains. In computational and programming efforts, the MRAC is considered H, due to the complexity, and the algorithm of adaptation is calculated in real time, which can make the implementation difficult in a microcontroller with low computational capacity. The API controller is positioned in the middle ground between the fixed-gain PI and the MRAC, it has the benefit of automatic gain design, and the computational and programming effort is lower than MRAC.
Quantitative metrics are presented in Table 3, to generate this index, the data stored in the microcontroller were used, as presented in Figures 10, 12 and 13, counting from the start at 50 ms to 400 ms, where the sequence of disturbances in the current reference is carried out. The results demonstrate that all controllers were able to perform reference tracking with low error. The MRAC controller performed best across all indices, followed by the API, and the fixed-gain PI controller came last. This comparison demonstrates that adaptive controllers using the virtual plant method for automatic gain design perform well, and even better than the fixedgain PI controller.
V. Experimental Results
In order to validate the control strategies in a physical prototype, the same testing procedures were performed for the experimental results. Figure 14 shows the experimental setup, in which a low-cost STM32 microcontroller was used, employing 4 lithium-ion batteries of the 18650 type in series, as specified in Table 1. The model of components utilized for assemble the experimental setup is presented in Table 4. The power converter, LCL filter, and instrumentation was assembled in a single board. The results are presented with oscilloscope captures and demonstrate good correspondence with the C-HIL results.
Experimental setup: 1- External power source CA-CC; 2Current probe amplifier; 3- Oscilloscope; 4- Lithium-ion battery pack; 5Current probe; 6- Power converter and instrumentation board; 7STM32F407VET; 8- Notebook.
A. MRAC Controller
Figure 15 presents the experimental result in a physical prototype with the MRAC controller. The virtual plant method is applied for pre-tuning the adaptive gains. This result confirms that the virtual plant initialization is effective in a physical prototype even with a low-cost microcontroller.
Experimental result from prototype: MRAC controller, sequence of steps in current reference.
B. API Controller
Figure 16 shows the experimental prototype results for the sequence of step changes in the current reference using the API controller. The virtual plant method is also applied, and when the physical plant (iL2) is connected, the system exhibits a soft overshoot.
Experimental result from prototype: API controller, sequence of steps in current reference.
C. PI Controller
For comparison, the PI controller was evaluated on the physical prototype using the same test sequence applied to the adaptive controllers. In this case, the virtual plant method is not used because the PI relies on fixed, pre-computed gains. Figure 17 shows the step-response measurements of the iL2 current.
Experimental result from prototype: PI controller, sequence of steps in current reference.
VI. CONCLUSION
This paper has presented a discrete-time MRAC and API controller with a virtual plant method applied to a synchronous buck converter with LCL filter for charging batteries. The main contribution of this paper is to propose the virtual plant method to pre-tune the gains of adaptive controllers for tracking DC references with a self-tuning algorithm. This method provides a better transient response since the adaptive gains are automatically tuned before the connection with the real plant in battery-charge applications. The method is general and can be ported to other topologies of DC-DC converters and plants that use adaptive control for better starting conditions.
The adaptive controllers have a design effort advantage compared to fixed-gain controllers, since they have an automatic project independently of the plant, exhibit good stability, track the reference with low error in both transient and steady states, and are easy to implement in industry. The results show that the MRAC controller adapts its parameters significantly faster than the API controller, with a settling time below 1 ms compared to approximately 30 ms for the API. This settling time depends on the hyper-parameters γ. Choosing more aggressive values for γp and γi can accelerate the convergence of the adaptive gains Kp and Ki, but may also increase overshoot during the transient response. C-HIL and experimental results were presented for the validation of the method. These results indicate that virtual plant–based initialization is a practical and efficient approach for adaptive control in Li-Ion battery charging systems, with potential applications in renewable integration and electric mobility.
Nomenclature
- α i ,β i Continuous plant coefficients
- Γ Diagonal adaptation gain matrix of the API controller
- ω MRAC input signal vector: ω = [y,r,Vb]T
- θ Adaptive gain vector of the MRAC controller
- φ Error vector of the API controller: φ = [e,Pe]T
- ζ Filtered input vector used for MRAC adaptation
- K Adaptive gain vector of the API controller
- γ Adaptation gain of the MRAC
- γp, γi Adaptation gain of the API
- µ∆α(s) Additive neglected dynamics in reduced-order model
- ω c ∗ Desired crossover frequency (PI design)
- ϕ ∗ Desired phase compensation in PI design
- ϖ Discrete zero of the PI controller
- a i ,δ i Discrete plant G1(z) coefficients
- a i ,ϵ i Discrete plant G2(z) coefficients
- am,bm Coefficients of the reference model e Tracking error for API and PI controller: e = ym − y
- e 1 Tracking error in MRAC: e1 = y − ym
- G 0 Reduced-order plant model
- G 1 Nominal plant model
- G 2 Transfer function from battery voltage to inductor current
- i L2 Battery-side inductor current
- k p Discrete proportional gain in PI design
- m 2 Normalizer signal used in MRAC controller
- m 2 p Normalizer signal used in API controller
- PM ∗ Desired phase margin (PI design)
- r Reference signal
- s Laplace variable
- T s Sampling period
- u Control signal applied to the converter
- u M MRAC control signal
- u API Control signal from the adaptive PI controller
- u PI Control signal from the PI controller
- V b Battery voltage
- Kp, Ki Adaptive proportional and integral gains
- Wm(s) Reference model transfer function
- y System output
- y m Model reference output
- y v Virtual plant output
- z Discrete-time complex variable
- ZOH Zero-order hold operator
- API Adaptive Proporcional Integral controller
- C-HIL Controller Hardware-in-the-Loop
- HIL Hardware-in-the-Loop
- IAE Integral of Absolute Error
- ISE Integral of Squared Error
- ITAE Integral of Time-weighted Absolute Error
- ITSE Integral of Time-weighted Squared Error
- MRAC Model Reference Adaptive Controller
- SISO Single Input Single Output
ACKNOWLEDGMENT
This work was financially supported in part by the funding agencies CNPq grant 308082/2025-7 and CAPES/PROEX Financing code 001.
-
PLAGIARISM POLICY
This article was submitted to the similarity system provided by Crossref and powered by iThenticate – Similarity Check.
DATA AVAILABILITY
The data used in this research is available in the body of the document.
REFERENCES
-
1 J. Qiu, J. Zhao, F. Wen, J. Zhao, C. Gao, Y. Zhou, Y. Tao, S. Lai, “Challenges and Pathways of Low-Carbon Oriented Energy Transition and Power System Planning Strategy: A Review”, IEEE Transactions on Network Science and Engineering, vol. 11, no. 6, pp. 5396–5416, Nov. 2024, doi:10.1109/TNSE.2023.3344729.
» https://doi.org/10.1109/TNSE.2023.3344729 -
2 V. Sihvonen, S. Honkapuro, “The Role of Energy Storage in Promoting Sustainable Energy Transition in an Island Community”, in 2024 20th International Conference on the European Energy Market (EEM), pp. 1–7, Jun. 2024, doi:10.1109/EEM60825.2024.10608853.
» https://doi.org/10.1109/EEM60825.2024.10608853 -
3 S. Bampi, G. Waltrich, A. Vaccari, “Electronic Load for Parameter Characterization in Equivalent Circuit Models of Lithium-Ion Batteries”, Eletrônica de Potência, vol. 30, p. e202521, Feb. 2025, doi:10.18618/REP.e202521.
» https://doi.org/10.18618/REP.e202521 -
4 R. C. de Barros, W. C. S. Amorim, W. d. C. Boaventura, A. F. Cupertino, V. F. Mendes, H. A. Pereira, “Methodology for BESS Design Assisted by Choice Matrix Approach”, Eletrônica de Potência, vol. 29, p. e202412, Jun. 2024, doi:10.18618/REP.2005.1.019027.
» https://doi.org/10.18618/REP.2005.1.019027 -
5 S. Ahmed, A. Ali, J. Ahmed Ansari, S. Abdul Qadir, L. Kumar, “A Comprehensive Review of Solar Photovoltaic Systems: Scope, Technologies, Applications, Progress, Challenges, and Recommendations”, IEEE Access, vol. 13, pp. 69723– 69750, Apr. 2025, doi: 10.1109/ACCESS.2025.3558539.
» https://doi.org/10.1109/ACCESS.2025.3558539 -
6 C. Sun, S. Wang, J. Pou, C. J. Gajanayake, A. K. Gupta, “Asymmetrical-Bidirectional Input-Series–OutputParallel Modular DC–DC Converter in DC Distribution Grids With Renewables”, IEEE Transactions on Power Electronics, vol. 39, no. 4, pp. 3943–3949, Apr. 2024, doi:10.1109/TPEL.2023.3329775.
» https://doi.org/10.1109/TPEL.2023.3329775 -
7 P. J. D. O. Evald, G. V. Hollweg, R. V. Tambara, H. A. Gründling, “A Discrete-Time Robust Adaptive PI Controller for Grid-Connected Voltage Source Converter with LCL Filter”, Eletrônica de Potência, vol. 26, no. 1, p. 19–30, Mar. 2021, doi:10.18618/REP.2021.1.0053.
» https://doi.org/10.18618/REP.2021.1.0053 -
8 N. Karchi, D. B. Kulkarni, “Development and analysis of adaptive PID controller using LMS algorithm for Distribution Generation-Inverter”, in 2021 Fourth International Conference on Electrical, Computer and Communication Technologies (ICECCT), pp. 1–7, Sep. 2021, doi:10.1109/ICECCT52121.2021.9616702.
» https://doi.org/10.1109/ICECCT52121.2021.9616702 -
9 J. R. Massing, M. Stefanello, H. A. Gründling, H. Pinheiro, “Adaptive Voltage Control of Grid-Forming Inverters”, in 2023 IEEE 24th Workshop on Control and Modeling for Power Electronics (COMPEL), pp. 1–7, Jun. 2023, doi:10.1109/COMPEL52896.2023.10221056.
» https://doi.org/10.1109/COMPEL52896.2023.10221056 -
10 B. C. Moura, P. J. dos Santos Neto, D. B. Rodrigues, C. Guimarães, L. C. G. Freitas, J. P. C. Silveira, G. B. de Lima, “Evaluating Adaptive Droop Control for Steady-State Power Balancing in DC Microgrids Using Controller Hardware-inthe-Loop”, Eletrônica de Potência, vol. 29, p. e202451, Dec. 2024, doi:10.18618/REP.e202451.
» https://doi.org/10.18618/REP.e202451 -
11 S. Swathi, B. S. Kumar, J. Upendar, “Adaptive Fuzzy-PID Droop Control VF Stabilization For Robust Renewable Micro Grid System During Grid Islanding Condition”, in 2024 IEEE 4th International Conference on Sustainable Energy and Future Electric Transportation (SEFET), pp. 1–6, Aug. 2024, doi:10.1109/SEFET61574.2024.10717979.
» https://doi.org/10.1109/SEFET61574.2024.10717979 -
12 F. G. Nimitti, A. M. S. S. Andrade, “Study and Design of a Non-Isolated Bidirectional DC-DC Converter Based on a Switched Inductor and Voltage Multiplier Cell for Renewable Energy Applications”, Eletrônica de Potência, vol. 30, p. e202558, Nov. 2025, doi:10.18618/REP.e202558.
» https://doi.org/10.18618/REP.e202558 -
13 M. Triggianese, H. Carbonnier, F. Tonicello, M. R. Rogina, “Two-Domains Control of a Buck Converter”, in E3S Web of Conferences, vol. 16, p. 14005, EDP Sciences, May 2017, doi:10.1051/e3sconf/20171614005.
» https://doi.org/10.1051/e3sconf/20171614005 -
14 H.-H. Chou, J.-Y. Chen, T.-H. Tseng, J.-Y. Yang, X. Yang, S.-F. Wang, “A New Control Scheme for the Buck Converter”, Applied Sciences, vol. 13, no. 3, Feb. 2023, doi:10.3390/app13031991.
» https://doi.org/10.3390/app13031991 -
15 V. D. Rodrigues, J. V. Merlo, J. R. Tibola, R. V. Tambara, “Adaptive Control Applied to Half-Bridge Synchronous Buck Converter using LCL Filter for Charging Batteries”, in 2024 16th Seminar on Power Electronics and Control (SEPOC), pp. 1–6, Oct. 2024, doi:10.1109/SEPOC63090.2024.10747481.
» https://doi.org/10.1109/SEPOC63090.2024.10747481 -
16 I. S. Chaitanya, K. V. Raj, J. Ramprabhakar, R. Anand, V. P. Meena, A. Kumar, “Performance Evaluation of EHO and GWO Optimization Techniques for PI Controller Tuning of Boost Converter in Photovoltaic based Microgrid”, in 2024 2nd International Conference on Self Sustainable Artificial Intelligence Systems (ICSSAS), pp. 1529–1534, Oct. 2024, doi:10.1109/ICSSAS64001.2024.10760530.
» https://doi.org/10.1109/ICSSAS64001.2024.10760530 -
17 M. Liserre, F. Blaabjerg, S. Hansen, “Design and control of an LCL-filter-based three-phase active rectifier”, IEEE Transactions on Industry Applications, vol. 41, no. 5, pp. 1281–1291, Oct. 2005, doi:10.1109/TIA.2005.853373.
» https://doi.org/10.1109/TIA.2005.853373 -
18 D. M. Lima, B. M. Lima, L. A. Maccari, J. E. NormeyRico, “Kalman Filter Observers with Harmonic Disturbance Estimation Applied to a Grid-Connected LCL Filter”, in 2018 13th IEEE International Conference on Industry Applications (INDUSCON), pp. 730–737, Nov. 2018, doi:10.1109/INDUSCON.2018.8627294.
» https://doi.org/10.1109/INDUSCON.2018.8627294 -
19 M. Liserre, F. Blaabjerg, R. Teodorescu, “Grid Impedance Estimation via Excitation of LCL -Filter Resonance”, IEEE Transactions on Industry Applications, vol. 43, no. 5, pp. 1401–1407, Oct. 2007, doi:10.1109/TIA.2007.904439.
» https://doi.org/10.1109/TIA.2007.904439 -
20 M. Su, B. Cheng, Y. Sun, Z. Tang, B. Guo, Y. Yang, F. Blaabjerg, H. Wang, “Single-Sensor Control of LCL-Filtered GridConnected Inverters”, IEEE Access, vol. 7, pp. 38481–38494, Mar. 2019, doi:10.1109/ACCESS.2019.2906239.
» https://doi.org/10.1109/ACCESS.2019.2906239 -
21 X. Zhou, X. Yu, S. Lukic, A. Huang, “LCL filter utilized in battery charging applications to achieve compact size and low ripple charging”, in 2012 IEEE Energy Conversion Congress and Exposition (ECCE), pp. 660–665, Sep. 2012, doi:10.1109/ECCE.2012.6342758.
» https://doi.org/10.1109/ECCE.2012.6342758 -
22 E. Şanal, P. Dost, C. Sourkounis, “LCL-Filter design for a battery charger based on buck converter (DCDC converter)”, in 2016 IEEE International Conference on Renewable Energy Research and Applications (ICRERA), pp. 617–621, Nov. 2016, doi:10.1109/ICRERA.2016.7884408.
» https://doi.org/10.1109/ICRERA.2016.7884408 -
23 Y. Han, Z. Li, P. Yang, C. Wang, L. Xu, J. M. Guerrero, “Analysis and Design of Improved Weighted Average Current Control Strategy for LCL-Type Grid-Connected Inverters”, IEEE Transactions on Energy Conversion, vol. 32, no. 3, pp. 941–952, Feb. 2017, doi:10.1109/TEC.2017.2669031.
» https://doi.org/10.1109/TEC.2017.2669031 -
24 J.-Y. Lee, Y.-P. Cho, H.-S. Kim, J.-H. Jung, “Design methodology of passive damped LCL filter using current controller for grid-connected three-phase voltage-source inverters”, Journal of Power Electronics, vol. 18, pp. 1178–1189, Jul. 2018, doi:10.6113/JPE.2018.18.4.1178.
» https://doi.org/10.6113/JPE.2018.18.4.1178 -
25 R. Peña-Alzola, M. Liserre, F. Blaabjerg, R. Sebastián, J. Dannehl, F. W. Fuchs, “Analysis of the Passive Damping Losses in LCL-Filter-Based Grid Converters”, IEEE Transactions on Power Electronics, vol. 28, no. 6, pp. 2642–2646, Jun. 2013, doi:10.1109/TPEL.2012.2222931.
» https://doi.org/10.1109/TPEL.2012.2222931 -
26 L. A. Serpa, S. Ponnaluri, P. M. Barbosa, J. W. Kolar, “A Modified Direct Power Control Strategy Allowing the Connection of Three-Phase Inverters to the Grid Through LCL Filters”, IEEE Transactions on Industry Applications, vol. 43, no. 5, pp. 1388–1400, Oct. 2007, doi:10.1109/TIA.2007.904438.
» https://doi.org/10.1109/TIA.2007.904438 -
27 W.-Y. Sung, H. M. Ahn, J.-H. Ahn, C.-Y. Oh, B. K. Lee, “Sensorless active damping method of LCL-filter in grid-connected parallel inverters for battery energy storage systems”, in 2017 IEEE 3rd International Future Energy Electronics Conference and ECCE Asia (IFEEC 2017 - ECCE Asia), pp. 1425–1429, Jun. 2017, doi:10.1109/IFEEC.2017.7992253.
» https://doi.org/10.1109/IFEEC.2017.7992253 -
28 V. D. Rodrigues, A. O. Damasceno, J. R. Tibola, “Modelagem e Controle de Conversor com Filtro LCL Para Carga e Descarga de Baterias de Íons de Lítio”, in Proceedings of the 15th Seminar on Power Electronics and Control SEPOC, Universidade Federal de Santa Maria, UFSM, Santa Maria, Oct. 2023, doi:10.53316/sepoc2023.020.
» https://doi.org/10.53316/sepoc2023.020 -
29 W. B. da Silveira, P. J. D. d. O. Evald, A. S. Lucena, R. V. Tambara, H. A. Grundling, “Auto-Tuning of Adaptive Control Initial Gains Using Virtual System-Based Approach in GridTied Converters”, Eletrônica de Potência, vol. 30, p. e202556, Oct. 2025, doi:10.18618/REP.e202556.
» https://doi.org/10.18618/REP.e202556 -
30 P. J. D. O. Evald, R. V. Tambara, H. A. Gründling, “A Direct Discrete-Time Reduced Order Robust Model Reference Adaptive Control for Grid-Tied Power Converters with Lcl Filter”, Eletrônica de Potência, vol. 25, no. 3, p. 361–372, Sep. 2020, doi:10.18618/rep.2020.3.0039.
» https://doi.org/10.18618/rep.2020.3.0039 -
31 R. Tambara, Controle Adaptativo: Teoria e Aplicação, Editora UFSM, 2024, URL: https://books.google.com.br/books?id= mkcAEQAAQBAJ
» https://books.google.com.br/books?id= mkcAEQAAQBAJ -
32 J. R. Tibola, R. L. Sari, T. D. M. Lanzanova, M. E. S. Martins, H. Pinheiro, “Modeling and Control of a Low-Cost Driver For an Eddy Current Dynamometer”, Journal of Control, Automation and Electrical Systems, vol. 27, no. 4, pp. 368– 378, Apr. 2016, doi:10.1007/s40313-016-0244-4.
» https://doi.org/10.1007/s40313-016-0244-4
APPENDIX
A. LCL filter designFor the LCL filter project, first the inductor L1 is calculated, which is based on a buck converter equation design, as shown in (33).
where Dmin is the minimum duty cycle considering the minimum battery voltage Vb,min, ∆iL1 is the maximum current variation admitted in the L1 inductor, here is defined ∆iL1 = 25 %. In sequence, the maximum ripple in iL2 is defined, ∆iL2 = 2 %.
The ratio between iL2 and iL1 is present in (34), and with the absolute value of this transfer function in the switching frequency fsw is defined a attenuation reference gain Ka∗ = 0.08, as shown in (35).
Next, the damping reference coefficient (ζ∗) is defined, for sufficient attenuation of the resonance peak ζ∗ > 0.5. In this project, ζ∗ is defined to be 0.6. The damping resistor Rd is calculated based on ζ∗ and the filter parameters, as shown in (36).
The value of the inductor L2, according to [17], can be obtained by the quotient of the inductance L1 and a factor k > 0 to be determined, L2 = L1/k.
Given the parameters above, (35) and (36) must be solved simultaneously to find C and Rd from the previously defined values of L, and ζ∗. Since this system of equations is nonlinear and complex, the fsolve() function from Matlab was used. This function solves a system of equations in the form F(x) = 0, as shown in (37).
where x = [C,Rd] are the unknowns to be calculated. The value of the inductance L2 = L1/k must be evaluated taking into account the losses in the damping resistor.
B. Numerical Models and Discretization DetailsThis appendix provides numerical details complementing the plant modeling presented in Section II. For convenience, the continuous-time coefficients α and β of the transfer functions defined in (1) and (2) are presented here in numerical form using the parameters of Table 1:
-
β2 = 5.16 × 10−9;
-
β1 = 4.3 × 10−5;
-
β0 = 1;
-
α3 = 1.032 × 10−13;
-
α2 = 3.956 × 10−9; • α1 = 8.43 × 10−5;
-
α0 = 0.1.
The numerical coefficients in (38) and (39), corresponding to the discrete-time transfer functions (5) and (6), were obtained using the c2dm () command in MATLAB with the zero-order hold (ZOH) method, consistent with the digital implementation in the microcontroller, using a sampling period Ts = 20 µs.
C. Deduction of the API gainsIn the approach used in this work, to calculate the gains Kp and Ki, the adaptive PI gains are calculated directly, without the need to explicitly estimate the plant parameters.
Thus, consider that the plant is represented by the following transfer function:
where kp ≠ 0 is the static gain, and B(s) and A(s) are monic polynomials. The following assumptions are made:
-
The plant is minimum-phase, meaning that B(s) is a Hurwitz polynomial;
-
The system is causal and asymptotically stable;
-
The sign of kp is known.
A PI controller is considered, defined by the following control law:
where sign(·) represents the sign function, and up and ui are the proportional and integral components, respectively:
where Kp(t) and Ki(t) are the proportional and integral gains, which are adjusted online. The tracking error e is computed based on a constant reference ym and the measured output y:
To update the PI gains online, a cost function is defined as:
To minimize J, we will use a gradient descent-type adaptation law applied to the parameters Kp and Ki.
First, we compute the gradient of J with respect to the parameters Kp and Ki:
Since ym is independent of the PI gains, the derivatives of the error are:
In order to simplify the mathematical analysis and derive implementation equations that do not depend on the detailed mathematical model of the plant, assume that the dynamics of y and u are similar, that the plant G(s) has unit DC gain, and that the control gains Kp and Ki vary slowly. Thus:
Additionally, assume that the proportional and integral control actions are independent. Then, we can write:
Hence, the gradients become:
This yields the following adaptation laws (based on MIT Rules) for the gains:
where γp and γi are the learning rates for the proportional and integral actions, respectively.
Edited by
-
Associate Editor
Jéssika M. de Andrade https://orcid.org/0000-0003-2974-5711
-
Editor-in-Chief
Allan F. Cupertino https://orcid.org/0000-0001-8418-1985


































