1. Introduction
In recent years, with the growing problem of global environmental pollution and energy shortages, renewable energy sources (RESs) represented by wind and solar energy have developed rapidly [
1]. The continuous access of distributed RESs has led to the low-voltage network and microgrid developing toward a green and sustainable design [
2,
3]. However, the inherent intermittence and uncertainty of RESs make it difficult to accurately predict power generation [
4], which increases the difficulty for utility companies to maintain the instantaneous power balance between supply and demand and exacerbates problems such as voltage fluctuations and voltage out-of-limit in the distribution network or microgrid. Moreover, the increasing permeability of RESs makes the problem of voltage fluctuation more and more prominent [
5,
6].
To deal with voltage fluctuations within distribution networks or microgrids, the demand side management method [
7,
8,
9,
10] is adopted to directly manage the load on the user side, allowing the load demand to be matched with the power generation and thereby alleviating voltage fluctuations. Although these methods have their own advantages for suppressing voltage fluctuation, they also come with inherent limitations. For example, real-time pricing [
7] and day-ahead power-demand scheduling [
8] cannot respond instantaneously to demand, direct load on/off control [
9] sacrifices the comfort of power users, and energy storage systems [
10] suffer from short lifespan, limited capacity, and large cost. Therefore, fast, convenient, and cost-effective demand response technology must be developed.
Inspired by mechanical springs, the Hui research group of the University of Hong Kong proposed the electric spring (ES) technology in 2012 [
11], forming a new demand-side management method. ESs divide loads into critical loads (CLs) and noncritical loads (NCLs) according to the range of voltage fluctuations that they can withstand. CLs must be continuously supplied with a stable voltage. NCLs can withstand a wider range of voltage fluctuations, and their consumption can be modulated. For example, medical equipment that requires high-quality power should be considered a CL, whereas residential or shopping-mall heating and cooling loads can be considered an NCL. An ES and a NCL in series form a smart load. ESs adjust their own voltage output in real-time as a function of supply-side voltage fluctuations to control voltage variations in the NCL, so supply-side voltage fluctuations are transferred to the NCL, and the CL voltage remains stable.
Compared with traditional demand-side management methods, ESs have the advantages of smaller energy-storage requirements, lower cost (compared with energy-storage systems) [
12], and better higher-quality power (compared with direct-load on-off control). After years of research, ESs are now available in several versions and are suitable for power-factor correction, harmonic suppression, frequency stabilization, and other tasks [
13,
14].
Several control schemes for ESs have been reported. Ref. [
15] proposes radial chordal decomposition control to endow ESs with simultaneous power-factor correction and voltage regulation. The “δ control scheme” based on a proportional resonant (PR) controller was proposed in Ref. [
16] and serves to simultaneously regulate voltage and suppress harmonics. This scheme is more accurate than radial chordal decomposition but requires a communication network to transmit supply-side voltage information. Ref. [
17] proposed three interior angle control principles for the ES, which were then analyzed and compared until, finally, presenting a generalized control structure suitable for implementing all these three angle control methods. Ref. [
18] proposed a new control strategy based on a direct current control mode to improve the performances of ESs based on current–source inverters. In the present work, the active power and reactive power of ESs are decoupled by dq0 transformation to simultaneously implement the functions of harmonic suppression, voltage regulation, and power-factor correction.
Although these controls have different structures because they were designed to deal with different problems, they all use linear controllers (proportional integral (PI) controllers or PR controllers). Linear controllers are easy to implement, but it has the disadvantages of narrow stability range, poor robustness, and control effects that are easily affected by parameter perturbation and external disturbances. In addition, the parameter debugging of linear controllers is time-consuming and laborious. Given the increasing number of nonlinear loads and uncertain disturbances, linear controllers of ES systems no longer satisfy the control requirements [
19]. To improve the control effect, many researchers have optimized the parameters of traditional linear controllers or have combined linear control with other methods. Ref. [
20] proposed a control method that combines quasi-proportional resonance control and repetitive control. Compared with the traditional PR control, this method improves the steady-state accuracy and reduces the system harmonic. Ref. [
21] first applies an improved particle swarm algorithm to calculate the initial parameters of the PI controller, and then adjusts the parameters of the PI controller in real time by using a fuzzy algorithm. The results show that this strategy improves the control accuracy of ES. To minimizing the CL voltage error, Ref. [
22] uses a genetic algorithm to optimize the PI controller parameters. The simulation shows that optimizing the parameters improves the adaptability and robustness of the PI controller. However, Refs. [
20,
21,
22] did not study the influence of parameter perturbation and external disturbance. Considering the switching of NCL during operation, Refs. [
23,
24] proposed a self-adaptive voltage control strategy. Ref. [
23] adjusts the gain of the PI controller in real time according to the output current of ES, and Ref. [
24] adjusts the fuzzy universe according to the input errors, to improve the PI controller parameters. These two strategies ensure the stability of CL voltage when NCL changes, but the variations of other parameters such as filter inductance and DC side voltage are not considered. These researchers have made linear controllers that are more robust and adaptable, and the control effect has been improved. However, these control methods still do not suffice to deal with the multivariable and strongly coupled nonlinear characteristics of ESs and do not overcome the influence of uncertain disturbances such as variations in system parameters and external disturbances. In contrast with PI or PR control, sliding-mode control (SMC) is a special type of nonlinear control whose main characteristic is the discontinuity of the control structure. The control system switches between different structures as a function of the current state of the controlled object, forcing the controlled object to follow a predetermined state trajectory. The SMC responds rapidly and is not affected by system parameter perturbations, external disturbances, etc. [
25,
26,
27]. Given that the variable structure characteristics of sliding-mode control are similar to the switching characteristics of ES converters, we apply it to the control of ESs.
This paper introduces adaptive sliding-mode control (ASMC) as an ES control system to make ESs more robust against interference and optimize their dynamic and static performance. We start by analyzing the working principle of ESs and derive an inexact state equation that considers parameter perturbation and external disturbances. Next, we use an adaptive prediction to estimate the total uncertainty of the system and obtain the minimum switching gain that satisfies the system-stability requirements. On this basis, the ASMC method is designed by combining adaptive control and sliding-mode control, following which the stability of the method is demonstrated. Finally, the advantages of the proposed control strategy are revealed by MATLAB simulations.
2. Electric-Spring Structure and Model Analysis
Figure 1 shows a simplified diagram of a microgrid with distributed generation, ESs, and renewable energy generators (RGs). Renewable sources can be wind energy, solar energy, tidal energy, etc. An electrical generator (EG) is a micro gas turbine or a diesel generator that offers adjustable power generation. EGs implement the power-generation plan made by microgrid operators based on the predictions of the power that can be generated by renewable sources. Accurate forecasting helps operators reduce the impact of the variability of renewable-source power on the microgrid, thereby improving the reliability of the microgrid. However, such power predictions are easily influenced by factors such as weather, temperature, and dust. Therefore, the intermittent uncertainty of renewable power sources inevitably leads to discrepancies between the predicted power and actual power, resulting in branch–voltage deviation from the target value. Therefore, ESs are required to allow active control and keep the CL voltage stable.
Figure 2 shows a typical circuit with a single ES, where
is the supply-side voltage,
is the CL voltage, Z
1 is the transmission-line impedance, and Z
cl and Z
ncl are the impedances of the CL and NCL, respectively. The ES is contained within the green dashed rectangle and is composed of a voltage–source inverter, a filter inductor, a filter capacitor, and an access switch S
W. When S
W is open, the ES has no effect and acts only as a capacitor. Smart loads and Z
cl are connected in parallel, and the assembly is connected to a point of common coupling. When
fluctuates, the ES adjusts its own output voltage, thereby adjusting the voltage across Z
ncl to make the NCL consume power adaptively. In addition, it also acts as a reactive power generator to regulate the reactive power of the system. These two aspects allow ESs to stabilize
.
The blue dotted frame contains the ES control system, in which the module for calculating the reference voltage calculates the CL reference voltage uS_ref from and the system parameters. According to and , the voltage control module generates a pulse–width modulation wave to control the on-off inverter switch tube, thereby adjusting the output voltage of the ES to stabilize the root-mean-square (RMS) voltage of at a preset value. According to , the ES works in one of three modes: inductive, resistive, and capacitive. When , ES works in resistive mode and does not exchange reactive power with the grid. The RMS of at this point is denoted . When the RMS of exceeds , the ES absorbs reactive power and works in inductive mode. If the RMS of is less than , the ES releases reactive power and works in capacitive mode.
By applying Kirchhoff’s law in
Figure 2, we obtain
Taking
and its derivative as the state variables,
allows the system state equations to be derived from
Figure 2:
Considering the perturbation of a system parameter and an external disturbance, Equation (3) can be rewritten as
where
and
are the perturbations of
and
, respectively, and
is an external disturbance such as the DC side voltage
of the inverter fluctuations.
The total uncertainty of the system can be expressed as
Equation (4) can be simplified as
where
is the inverter gain,
is the amplitude of the triangular carrier wave, and
is the PWM modulation signal. Since the total uncertainty of the system is bounded, we assume
is the (constant) upper bound, so
.
3. Electric Spring Adaptive Sliding-Mode Control
3.1. Design Principles of Adaptive Sliding-Mode Controller
Taking the deviation of
from
and its time derivative as the new state variables,
gives a new state equation for the ES of
Figure 2 when combined with Equation (6):
If
and
are not perturbed and the external disturbance is also zero, we have
, and the control law takes the form
The kinetic equation for the ES is then
where
and
are control parameters. According to Equation (10), the use of appropriate
and
can ensure the stability of the system and lead to satisfactory dynamic performance.
In actual operation, the inverter system is susceptible to the perturbation of filter parameters and to sudden changes in DC side voltage. If Equation (9) is applied at this time, it will be difficult to eliminate the influence of disturbances and achieve satisfactory control. Therefore, we combine adaptive control with sliding-mode control to design an adaptive sliding-mode controller, so that the ES can still stabilize the CL voltage and produce good dynamic and static performance even for cases of parameter perturbation or external disturbance.
Figure 3 shows the ASMC strategy proposed herein. The red dotted frame shows the voltage controller, which is composed of the calculation module for the sliding surface, the prediction module for uncertainty, the control–voltage tracking item, and the control–voltage switching item. The voltage
can be obtained from the calculation of the previous-level reference voltage,
is the voltage tracking error, and the pulse–width modulation wave
is the sum of the control-voltage tracking item
and the control–voltage switching item
.
is the sliding surface function designed in this work, and
is the variable part of the switching gain, which is related to the upper bound of the uncertainty of ES system. The sliding-surface calculation module computes in real-time
according to the voltage error
. Provided the prediction module obtains the value of
, it can predict
. By using to
,
,
,
,
, and
, the
can be computed by Equation (14) in real time. The
can be computed in real-time by Equation (19) according to
.
3.2. Design of the Adaptive Sliding-Mode Controller
The sliding-surface function is
where
is a coefficient. Combining Equations (8) and (11) gives
Assume that the reaching law of sliding-mode control is
where
and
are positive constants.
determines the rate at which the system state approaches the sliding surface (the smaller
is, the lower the rate is).
is the fixed part of the switching gain and correlates positively with the system-chattering amplitude.
Combining Equations (12) and (13), the controller can be designed as
where
is a constant. Substituting Equation (14) into Equation (12) gives
Take the Lyapunov function as
and take the derivative of
to obtain
According to the Lyapunov stability theory, stabilizing the system requires . In other words, if the controller of Equation (14) is adopted, should be greater than the upper bound of the total uncertainty when considering the most severe disturbance of the ES system (i.e., ). However, in practice, the upper bound is difficult to determine in real-time, so only if is sufficiently large is it possible to ensure system stability. However, since the variable structure of sliding-mode control is mainly reflected in the chattering caused by the switching items, excessive switching gain () will lead to serious system chattering, which makes the motion of the system deviate significantly from the sliding surface and reduces the controller’s robustness.
In terms of system stability, the switching gain must be greater than the upper bound of the total uncertainty of the ES system to satisfy the condition for sliding-mode movement. In terms of control, the switching gain must be reduced to weaken chattering. The adaptive algorithm used herein can track disturbances in real-time and estimate the upper bound of the total uncertainty of the ES system. Taking this estimation as the variable part of the switching gain (replacing ) minimizes the switching gain, reduces chattering, and satisfies the condition for sliding-mode motion.
The adaptive law for estimating the upper bound of the total uncertainty is
where
is the estimated value of
, and
is an adjustable coefficient. The rate of change of the estimated value can be changed by adjusting the value of
. Since
is related to the switching gain of the sliding-mode controller and directly affects the chattering of the system, an increasing
is not better but should be considered comprehensively. Replacing
in Equation (14) with
allows the controller to be expressed as
3.3. Stability Analysis
To prove the stability of the proposed control strategy, we use the following Lyapunov function:
where
is the estimation error of the upper bound and is expressed as
Differentiating Equation (21) gives
Differentiating the function
gives
Substituting Equations (21) and (22) into Equation (23) gives
Equations (20) and (24) show that is positive definite and is negative semi-definite. When , and , the ES system is thus asymptotically stable.
When the system state reaches the sliding mode area and remains on the sliding surface, we have
, and the equivalent control of ES can be computed by applying Equation (12):
Substituting Equation (25) into Equation (8) gives
Equation (26) shows that, provided the coefficient is properly designed, the system is in a sliding-mode state and the CL voltage can be adjusted. In summary, the adaptive sliding-mode controller designed herein ensures the asymptotic stability of the ES system.
4. Simulations
To verify the effectiveness and anti-interference ability of the proposed ASMC strategy, we use a simulation model (see
Figure 2) parametrized as shown in
Table 1.
When the RMS of is set to 220 V, the given model parameters produce . Therefore, the supply-side voltage is chosen as 214.5 V () and 240.4 V () to simulate the situation for lower or higher .
4.1. Verification of Performance of Voltage Stabilization
The first simulation verifies the voltage stabilizing performance of the ASMC strategy and compares the results with the linear controller (PR and PI). In this part, the switch SW is disconnected before 0.3 s, and the ES is only connected in series into the system in the form of capacitor . At 0.3 s, SW is connected and is controlled.
Figure 4 shows the voltage stabilization due to the two control strategies when the ES operates in capacitive mode. Since the ES does not control
before 0.3 s,
follows
and is not stabilized at 220 V. The RMS of
is 214.5 V after 0.1 s, lower than
, so the ES works in capacitive mode after being connected.
Figure 4 shows that both control strategies effectively control
after the ES is connected. The instantaneous value waveform remains sinusoidal, and the RMS is stable at about 220 V. Comparatively, the ASMC strategy (the red line) makes
more rapidly reach the steady state; the transition time is only about 0.02 s, and the RMS overshoot for
is almost zero. However, the transient period of the system under PR control (see blue line) is longer by about 0.1 s, and the overshoot is significantly larger. These results indicate that the ASMC strategy produces better dynamic performance. Expanding the steady-state part of
Figure 4b shows that, under the ASMC strategy, the RMS of
is a straight line very close to 220 V, and the steady-state error is smaller. Under PR control, the RMS waveform oscillates in the range of 0.3 V, which shows that the ASMC strategy produces a better static performance than PR control.
Figure 5 shows the voltage stabilization due to the two control strategies when the ES operates in resistive mode. During the time interval 0–0.3 s,
changes with
. When the ES is connected at 0.3 s, the RMS of
is 235.7 V, so the ES works in resistive mode. During the time interval 0.1–0.3 s, although the RMS of
equals
, the ES is not connected and is only embedded in the system as a capacitor, so
uS is not 220 but 236.2 V.
Figure 5 shows that, in resistive mode, the ES under PR control and the proposed ASMC strategy still stabilizes the CL voltage, and the instantaneous waveform remains sinusoidal. At the same time, compared with PR control, the ASMC strategy also greatly shortens the transition period (PR control takes 0.18 s, whereas ASMC control takes 0.02 s), and the overshoot is also significantly reduced. This situation is like the ES working in capacitive mode.
Expanding the relevant part of
Figure 5 shows that, under the proposed ASMC strategy, the instantaneous waveform remains sinusoidal during the transition period, and the RMS of
stabilizes at 220 V after the system is stabilized. However, under PR control, the instantaneous waveform is significantly distorted during the transition period, and the RMS of
oscillates within the range of 220 ± 0.2 V in the steady state. This analysis shows that, when the ES works in resistive mode, the ASMC strategy can effectively stabilize the CL voltage and the dynamic and static performances are better than PR control.
Figure 6 shows that the RMS of
is 236.2 V in the time interval 0–0.1 s. After 0.1 s, the RMS of
is set to 240.4 V, so the RMS of
rises to 241 V, and the ES works in inductive mode after being connected at 0.3 s. As shown in
Figure 6, both control strategies stabilize the CL voltage when the ES works in inductive mode, just like the capacitive and resistive modes. Comparatively, the ASMC strategy in this mode still produces better dynamic and static performance. For example, the transition period of
uS takes 0.25 s under PR control. During this period, not only is the voltage waveform severely distorted, but the RMS drops to 185 V. However, under the ASMC strategy, the voltage waveform is always sinusoidal, the transition period only takes 0.02 s, and the minimum RMS is 219.2 V. Expanding the steady-state part in
Figure 6 shows that, under the ASMC strategy, the RMS of
is stable at 220 V. However, under PR control, the situation is like the case when the ES works in capacitive mode, and the RMS oscillates in a range of ±0.2 V around 220 V.
Figure 7 shows the voltage stabilization of ES when using a saturation function for
. As shown in
Figure 7, when operating in any of the three modes, ES quickly stabilizes the RMS of
at about 220 V. The smooth curves and tiny chattering reflect the superior performance. The steady-state error in capacitive mode is slightly larger than in the other two modes.
Figure 8a–c show the
waveform and its RMS curve when the ES uses the PI controller to work in the capacitive mode, resistive mode, and inductive mode, respectively. Consistent with PR control and ASMC, S
W is also closed at 0.3 s.
Figure 8 shows that the ES uses the PI controller to keep the waveform of
sinusoidal and the RMS stable at 220 V in the different modes. However, the adjustment time in all three modes exceeds 1.5 s, and the maximum deviation of the RMS is 17 V. These two pieces of data are much greater than the corresponding values for the ASMC.
The analysis of
Figure 4,
Figure 5,
Figure 6,
Figure 7 and
Figure 8 shows that the proposed ASMC strategy stabilizes the CL voltage and produces a faster response speed and smaller steady-state error than PR or PI control.
4.2. Verification of Anti-Interference Performance
This section verifies the anti-interference ability of the ASMC strategy and then compares the results with PR and PI control. In this part, the ES is always connected. When the ES adopts PR control or ASMC, during the time interval 0–0.1 s, the supply-side voltage is set to , which is 235.7 V. After 0.1 s, the RMS of drops to 214.5 V, and the disturbance is added to the system at 0.3 s. Since the PI control has a longer adjustment time, when the ES adopts the PI control, the above two action times are set at 2 and 4.5 s, respectively, with the other parameters remain unchanged.
Figure 9 shows that both the ASMC and PR control can keep the RMS of CL voltage at about 220 V before 0.3 s, but the waveform amplitude of the latter more clearly exceeds 311 V. At 0.3 s, the inductor
changes from 3 to 6 mH. Under the ASMC strategy,
is hardly affected, its waveform is a smooth sine wave, and its RMS can be stabilized quickly. Comparatively, the ability of PR control to resist parameter perturbation is weaker. The RMS waveform has been oscillating, and the time to reach the steady state is slightly longer. The overshoot of the RMS is larger, and the steady-state error is also larger.
In
Figure 10, the DC side voltage suddenly drops from 350 to 320 V at 0.3 s. Like
Figure 9, before 0.3 s, the CL voltage is maintained at about 220 V under the two control strategies. After
changes suddenly, both control strategies maintain the
waveform sinusoidal. Expanding this figure further shows that, under the ASMC strategy,
is almost unaffected by variations in
; it stabilizes within 20 ms, and the RMS of
is only 0.03 V lower than before
drops. However, under PR control, the transition period is slightly longer, and the RMS of
uS oscillates between 219.7 and 220 V.
Figure 11 shows the anti-interference ability of the ASMC strategy when the control–voltage switching item uses a saturation function. As shown in this figure,
L or
suddenly changes at 0.3 s, and the CL voltage stabilizes at about 220 V within a very short time. When ES reaches the steady state, almost no chattering occurs. This result indicates that the ASMC strategy also performs well when
uses a saturation function.
Figure 12 shows the anti-interference ability of the ES using the PI controller. Like ASMC or PR control, PI control stabilizes
at 220 V before interference is added to the system.
Figure 12a shows that it takes about 2 s to stabilize
after
changes, whereas this time interval is only 2 ms under the ASMC strategy. Enlarging the relevant part of
Figure 12a reveals that a steady-state error oscillates in the range of 0.5 V.
Figure 12b shows that the RMS of
drops to 217.2 V when
suddenly decreases, and stabilizes at about 220 V after 1 s. Like when
changes, the steady-state error oscillates in the range of 0.2 V.
The analyses of
Figure 9,
Figure 10,
Figure 11 and
Figure 12 show that the proposed ASMC strategy is more resistant to parameter perturbation and external disturbance, and its robustness is better than linear control.