1. Introduction
Technology advances in power generation, control, computer hardware, and software have led to the spread of microgrids (MGs). Industrial customers aiming to reduce the cost and increase their reliability and resilience have driven the MGs’ evolution. As a result, the MGs are currently the primary power source for many commercial and residential applications [
1].
Locality, independence, and intelligence are the key characteristics of the MG. The MG’s locality provides an optimal solution to the power losses issue of a typical power system structure, reaching up to 40% of the generated power. In many cases, the MG is the only solution to the power supply of remote areas where the public grid is inaccessible or does not exist [
2].
MGs’ independence is attributed to their ability to supply the total load demand in the outage of the utility services or the existence of severe disturbances. The MG can operate synchronously with the utility grid or in isolated mode. When isolated, it can completely control its voltage and frequency, thanks to the dedicated power converters and their advanced control schemes [
3].
Embedded sensors, communications channels, innovative software, and powerful controllers have instigated MG’s intelligence. Intelligence in this context implies the capability of self-monitoring, evaluation, and decision-making to optimally utilize and operate the available energy resources in addition to the energy-management system [
4].
MG’s installation and commissioning are soaring. For instance, in 2019 (second half only), there were 4475 projects adding up to 27 GW of installed capacity [
5]. California State, USA, has demonstrated great impetus to obtain 50% of its electricity via MGs and renewable sources by 2030 [
6]. MGs’ development in the European Union Nations, Japan, Korea, Australia, and North America is reported in [
7], showing explicitly that the implementations are growing rapidly.
Based on the integration level into the primary grid, the MGs are classified into a remote-, facility- and utility-MG, ordered by their impact on the power system from low to high. The MG can be a direct current (DC), alternating current (AC), or hybrid system.
Figure 1a displays a layout example of an AC MG, and
Figure 1b depicts an outline of a DC MG. Statistically, the AC-MG system configuration is still dominant due to mainly two factors: AC-load availability and ease of protection [
8]. However, some factors push the DC MG to compete with the AC MG, such as the DC-based renewable system’s spread and ease of control. A hybrid MG aims to merge the merits of both systems [
9,
10].
Figure 2 displays one possible layout of a hybrid MG.
The hybrid MG provides a comprehensive solution to common issues like the suitability of sources and loads. It can integrate both DC and AC types of energy source and customer loads with the minimal (or zero) conversion stages. As shown in
Figure 2, the interlinking inverter facilitates the power flow between the DC and AC MG and the main utility via the appropriate controllers. Thus, a hybrid MG’s autonomous operational capability is significantly higher than only DC- or AC-MG.
The MG’s control is either centralized or decentralized. Centralized control systems have the following advantages: (1) the main objectives are identified and realized; (2) they can offer global optimal decisions/solutions; (3) their synchronization to the main utility is relatively easy, and they can efficiently be operated online. On the other hand, decentralized control systems have the advantages: (1) they are appropriate for quickly changing infrastructures; (2) they can be easily expanded due to high capabilities of plug and play operation; (3) their reliability is high; (4) their communication and computational cost are relatively low [
11,
12]. Both centralized and decentralized controllers have been realized by many control algorithms such as
H∞ [
13], LQR [
14], sliding mode [
15], model-predictive control [
16] and artificial intelligence techniques including fuzzy logic [
5,
17], neural networks [
6], and genetic algorithms [
18].
Remark 1. It should be emphasized that [
14]
solves the problem of severe transients that occur during the transition between the connected and islanded modes of microgrids (which affect the voltage and frequency responses). The seamless transition is achieved by the linear quadratic regulators LQR with a simple pole placement method to select the weighting matrices Q and R. The bumpless transition is not considered in the present manuscript. The adaptive sliding control given in [
15]
achieves fast bus voltage tracking without additional sensors in addition to system scalability and maintaining the plug-and-play operation of the Distribution Generation units (DGs). By using the proposed method [
15]
to estimate the uncertainty and external disturbance, the system parameters and switching function can be adjusted in time to weaken the chattering. However, the control of [
15]
is non-linear, has some chattering, and is applied to only DC microgrids. The model-predictive control [
16]
is a time-varying tracker and requires significant computational time. The methods [
5,
6,
18]
also require extensive training and computational burdens. Furthermore, decentralized control techniques manage, organize, and control an efficient short alteration from grid-connected mode to islanded mode [
19]. It introduces and allows recent interlinking converter circuits to be used as quasi-Z-source converters [
19]. The interlinking converter could be connected in series or parallel to enhance the hybrid MGs’ power quality. The series interlinking converter is used to improve the hybrid MGs, and the parallel voltage quality interlinking converter compensates for the harmonic voltage generated by the non-linear loads. In [
20], a new circuit combination is anticipated for the interlinking converter to improve power quality indices. The interlinking converter is divided into two parts: parallel and series interlinking converter.
This paper introduces a control algorithm using invariant ellipsoids. The presented control technique avoids the complexity of selecting the weights of H∞ and the chattering issues of the sliding mode control. Moreover, it handles the parameter’s uncertainties and loads variations effectively. The contribution of the paper is:
- (1)
A novel theorem, based on the linear matrix inequalities, is introduced to guarantee the optimal trackers’ solvability, in which the outputs follow the desired inputs and achieve external disturbance rejection.
- (2)
A new simple controller is designed based on the invariant sets (approximated and bounded by invariant ellipsoids) is introduced. The proposed controller is fast, with a very low overshoot, and there is no chattering, unlike the sliding mode approach. It is also robust against load changes and system parameters uncertainties.
- (3)
The need to add a feedforward path (to enhance the DGs’ controllers’ performance) is eliminated [
21].
The paper is structured as follows.
Section 2 presents the model of the investigated hybrid MG and the statement of the research problem. In
Section 3, the control design is presented and described in detail. The results are displayed in
Section 4. Finally, the conclusions are presented in
Section 5.
Facts |
Fact1: |
|
The time-varying uncertainty ∆(t) can be removed using this fact |
Fact 2 (Schur complements) |
For a matrix M composed of |
|
where implies that M > 0 if and only if |
|
The last nonlinear matrix inequality can be linearized using this fact. |
2. Model of the Hybrid Microgrid (MG) and Problem Statement
The model used in this paper is adapted from reference [
19]. The studied hybrid MG consists of two DC sources, DC-DG1 and DC-DG2, as displayed in
Figure 3. There are two AC sources, AC-DG1 and AC-DG2, and an inter-linking inverter. Details of the sources and inverters are depicted in
Figure 4. DC-DG1 is a Photovoltaic (PV) system driven by a boost converter, as illustrated in
Figure 4a. DC-DG2 is a Lithium-ion battery operated by a two-quadrant buck-boost converter. The AC-DG1 and AC-DG2 are PV and wind-turbine systems, respectively. They are controlled by three-phase voltage source converters, as shown in
Figure 4b. Also, the inter-linking inverter is realized by a voltage source converter (
Figure 4c). AC sources and the inter-linking converter are linked via Resistor-Inductor (RL) series filters. Referring to
Figure 5, the AC side can be described by Equation (1).
where
ua,
ub, and
uc are the modulation indices for three-phase a, b, and c, respectively. Transforming (1) to the dq-reference frame yields Equations (2) and (3).
ud and
uq, are d and the q-components of the modulation index of the inter-linking inverter, respectively. For the DC-DG1 and DC-DG2 sources, the following equations apply.
u1 and
u2, are the switching functions of DC-DG1 and DC-DG2, defined as follows.
The DC-link voltage changes according to the difference between the ac-side powers (currents) and the dc-side powers (currents). Looking from DC-DG1, the
vdc state is expressed in Equation (7).
Looking from the DC-DG2 side, the
vdc state is given in Equation (8).
Looking from the AC side, the
vdc state is represented as in Equation (9).
Choosing
Cd1 and
Cd2 to be equal to
Cdc and adding Equations (7)–(9) yields:
Equations (2)–(6) and (10) provide the hybrid MG’s model, with the states.
The model is nonlinear due to the product of the switching signals and their associated variables. To design the controller, this model should be linearized around an operating point. Here, the operating point is assumed as the voltages and currents’ nominal values. Then a perturbation is allowed around such an operating point. For instance, id is considered as: . Id is the id’s value at the operating point (a quiescent value), and Δid is the perturbation.
Linearized Model
Substituting each state by its sum of a quiescent value and a perturbation in the Equations from (2) to (6), and (10), and neglecting the 2nd order terms, we get:
where
denotes the first derivative of x, and capital letters designate quiescent values. Thus, in state-space form, the model in Equation (11) is represented as in Equation (12).
where
, , , and
are the state, control, output for feedback, and external disturbance vectors, respectively. Also,
To find the operating point, all the derivatives in equations from Equations (2)–(6) and (10) are set to zero. Then, by substituting all the variables by their values, a function of nine unknowns is formed as in Equation (13). Here is an example to illustrate the steps of obtaining Equation (13). Going back to Equation (2).
Setting the derivative term to zero gives.
Then
id →
Id,
iq →
Iq,
vd →
Vd,
ud →
Ud, and
vdc →
Vdc, yield: −
Rac Id + ω
LIq −
Vd +
UdVdc = 0. This is the first row in Equation (13).
The knowns are
Iq,
Idc,
Ud,
Uq,
U1,
U2,
IL1,
IL2, and
Vdc. The parameters in (13) are listed in
Table 1 and
Table 2, with their used values.
In Equation (13), it is noticed that the number of equations is less than the number of unknowns. Thus, the damped least square (Levenberg–Marquardt algorithm, via the function fsolve in Matlab) is used to solve it with an initial guess:
Table 3 shows the solution results for the nine unknowns in (13), noting that the values of
U1,
U2,
Ud,
Uq are dimensionless.
After getting the operation point, these values are substituted in Equation (12) to obtain the linearized hybrid MG model.
The problem can be stated as follows. It is required to design a controller based on the linearized model for the studied hybrid MG. The controller has to be robust against parameter variations modelled as norm-bounded uncertainty. The proposed controller is to be tested on the original non-linear model of the hybrid MG.
3. Controller Design
3.1. The Invariant (or Attractive) Ellipsoid Set
The attractive (or invariant) ellipsoid design has recently been developed in robust control of linear and non-linear systems [
22]. Moreover, the ellipsoidal design is successfully applied in many applications, e.g., automatic generation control [
23], piezoelectric actuators [
24], car active suspension [
25], islanded AC microgrids [
26,
27].
The basic idea of the ellipsoidal design is as follows. For an initial state vector outside the ellipsoid, the state trajectory must be attracted to a small ellipsoidal region, including the origin (attracting ellipsoid). When the trajectory reaches the ellipsoid, it will not leave it (invariant ellipsoid) [
28]. The linear time-invariant (LTI) system (12) is rewritten, removing the ∆ for simplicity, as follows:
The vector is the output to be optimized (the effect of disturbance w on z must be minimized). The term is added to z to avoid obtaining controller with large gains, challenging to implement in practice. It is assumed that
3.2. Design Procedure
There are two control problems: (1) regulator (for constant reference), (2) tracking (for time-varying reference). The output must track the desired time-varying reference with zero steady-state error in the hybrid microgrid control. Therefore, an integrator must be inserted, as will be seen later.
3.3. Regulator Ellipsoidal Design
The LTI system (14) assumes that the pair (A, B) is controllable, and the pair (A, C) is observable under a bounded external disturbance
. The disturbance is subject to the following constraint:
Note that the constraint in Equation (15) can be realized by scaling the matrix D.
Consider an ellipsoid
E with origin as the centre given by the following equation:
The ellipsoid also represents a Lyapunov function , if the initial state vector lies outside the ellipsoid, V does not increase outside this ellipsoid. In other words, i.e., the state trajectory is attracted to the ellipsoid. When the trajectory of reaches the ellipsoid, it will not leave it for the future time (time-invariant). The ellipsoid is thus attractive and invariant.
Remark 2. For an initial state vector x(0) starting outside the ellipsoid , the proposed design is based on attracting the state trajectories to the ellipsoid by requiring . Once the trajectories x(t) arrive at the ellipsoid, it will not leave it for the future time. This constraint and the disturbance norm constraint Equation (15) are cast in one matrix inequality Equation (17) using Schur complements, Fact 2.
It is shown in [
28] that
E is invariant (and attracting) for the system (14) if and only if there exists a scalar
solutions to the following non-linear matrix equation:
where
The source of non-linearity is the product term
The disturbance effect on the trajectory x can be rejected by minimizing the ellipsoid volume as follows:
where
tr(P) is the trace function (the sum of the diagonal elements of P), selected due to its linearity, which provides a semidefinite program (SDP) that can be easily solved by Matlab convex optimization, as will be seen later.
To find the effect of the disturbance on the output to optimize
, the ellipsoid in Equation (16) is replaced by:
The effect of the disturbance on z is minimized by:
The proposed controller, which reduces (or rejects) the disturbance effect on the output z, is obtained by the following theorem.
Theorem 1 [
28]
. Consider the LTI system (14), subject to the disturbance described in (15). Then, a state feedback regulator can stabilize the system:is equivalent to:subject to the constraints:where and the minimization is carried out to the variables α, and .
Let . Then the regulator is given by the Equation (24).Fixing in the nonlinear matrix Equation (23) results in an LMI. The objective function is iteratively minimized by fixing for every iteration. Therefore SDP in one-dimensional convex optimization is obtained and easy to solve by the LMI toolbox.
3.4. Tracker Ellipsoidal Design
The above theorem can be generalized to the tracking problem by inserting an integral part between the plant’s error signal and the plant, as shown in
Figure 5.
State feedback plus integral control is proposed in the form:
Therefore, the augmented system is:
or
where the augmented matrices are:
The design of regulators via the ellipsoidal sets, Theorem 1, can be generalized to the problem of the tracker’s design. The suggested controller must be robust against the parameters uncertainties and load variations of the hybrid MG. Thus, Equation (28) is adapted to:
where the following norm-bounded model represents the uncertainties:
The norm-bounded form can be obtained using the singular value decomposition (decomposing a matrix into the multiplication of three matrices). Finally, Theorem 2 is developed to determine the controller without any trial and error.
Theorem 2. Assume that the system (29) is controllable , and observable , under L∞-bounded exogenous disturbances. Then, the robust disturbance-rejection state feedback plus integral controller is obtained by solving: , subject to the following constraints:where. The minimization is carried out to the variables , . Note that this theorem does not impose the matching condition .
Proof. For the tracking problem, the matrices in (14) are replaced by the augmented system matrices. Thus, Equation (17) becomes:
To tackle the load variations in the hybrid MG,
in Equation (32), resulting in:
Substituting for the norm-bounded uncertainty Equation (30), one obtains:
Separating the uncertainty terms, we obtain:
Using Fact 1 to eliminate
, (33) is fulfilled if the following matrix equation is satisfied:
Using Fact 2, Theorem 2 is proved. □
3.5. Gain Matrices
Solving the above LMI (31) yields the following gain matrices of the proposed controller.
K = | [−905.75, | −0.0031213 | 0.45549 | 0.74613 | −0.35706 | 1623.9 |
−0.22601 | −906.7 | −0.21299 | −0.22843 | 0.1109 | −504.42 |
116.63 | 1.3025 | 2819.2 | 97.073 | −59.051 | 2.6869 × 105 |
1096.1 | 2.2905 | 879.07 | 1178.7 | −559.74 | 2.5753 × 106] |
Ki = | [−116.8 | 127.98 | 121.12 | 37.791 |
67.158 | −306.96 | −277.58 | −188.36 |
−242.35 | 985.24 | 341.2 | −341.89 |
35,952 | 15,082 | −7324.5 | 15,313] |
4. Simulation Results
The hybrid MG system shown in
Figure 3 and
Figure 4 was studied, tested, and implemented using Matlab/Simulink Power Library. The ellipsoid tracking control algorithm was assessed with two different sets of the MG parameters provided in
Table 4.
Table 2 provides further specifications of the proposed MG.
The DGs on the AC MG provide their local load demands. When the CB1 is closed, the load connected to the AC-DG1 (wind turbine system) is changed at
t = 0.8 s, increased by 1.25 kW and 1.0 kVAR. Moreover, when the CB2 is closed, the load connected to AC-DG2 (PV inverter 2) is changed at
t = 1.2 s, increased by 2.2 kW and 1.5 kVAR. Both cases will happen under two different sets of the MG parameters, as illustrated in
Table 4. The proposed control technique was compared with the sliding mode controller used in [
19]. The comparison between both techniques is shown in all figures from
Figure 6,
Figure 7,
Figure 8,
Figure 9 and
Figure 10 and Figures 12–17.
The changes of power (active and reactive) in the AC MG are given in
Figure 6 and
Figure 7. At
t = 0.8 s, changes in active power (Delta P) are shown in
Figure 6a and
Figure 7a for the first and second parameters sets, respectively. The changes in reactive power (Delta Q) are displayed in
Figure 6b and
Figure 7b for the first and second parameter sets, respectively. Furthermore,
Figure 6c and
Figure 7c show the sliding mode technique [
19] results for this case. The proposed technique is fast, with low spikes, and has no chattering compared to the sliding mode technique used in [
19].
The transient and steady-state responses of the DC, AC-MG state variables, and power-sharing of the hybrid MG using the proposed technique is tested, verified, and compared to the sliding mode technique used in [
19] in the following subsections.
4.1. Direct Current (DC) Side State Variables
The DC-link voltage of the inter-linking converter is illustrated in
Figure 8. In
Figure 8a,b, the DC-link as a dc state variable is assessed with the two different sets of the MG parameters (
Table 4). The DC-link voltage responses with these two sets of parameters and added loads in the AC side during
t = 0.8 s and
t = 1.2 s respond perfectly with a difference between the spikes rates that is too small. Therefore,
vdc with a stable steady-state and dynamic response is accomplished.
Figure 8c shows the DC-link voltage response for the sliding mode control technique [
19]. The comparison between both techniques shows that the DC-link voltage response’s proposed technique is a bit slower. Nonetheless, it rejects the load disturbance efficiently without the high chattering in the sliding-mode control technique [
19].
The output power of the DC/DC converter of the DC-DG2 and the bidirectional buck-boost DC/DC converter of the DC-DG2 (LB) are shown in
Figure 9 and
Figure 10, respectively. Both figures prove that the proposed technique effectively forces both converters to partially generate the power demanded during AC-side load changes.
In
Figure 9a,b, the performance of the proposed controller with the two sets of the hybrid MG is depicted, while, in
Figure 9c, the performance of the sliding-mode technique used in [
19] is illustrated with small fluctuations detected in the output power of DCDG1 when the second set of parameters is applied. In
Figure 10a,b, the proposed controller in the DCDG1 (LB) within the two sets of the hybrid MG is operated successfully with a dead-beat response. In
Figure 10c, the sliding-mode technique used in [
19] run with more significant overshoot and sluggish transient response with the second parameter’s set.
Remark 3. The significant reduction of chattering (high-frequency signal resulting from the inverters switching) using the proposed design compared with [
19]
is due to utilizing the integral control in the outer loop. The swiftness and external disturbance attenuation of the proposed control is due to minimizing the ellipsoid’s volume. 4.2. Utility Grid State Variables
To test the proposed controller’s robustness, we have to evaluate all utility grid state variables’ responses. It is recommended to attain a unity-power factor in the utility grid.
Figure 11 shows that the a-phase voltage and current are in phase. Both waveforms are sinusoidal, specifying that the power factor between the voltage and current in phase a is approximately unity. In
Figure 12 and
Figure 13, the utility grid frequency and magnitude of a-phase voltage under two sets of the hybrid MG system are obtained. The proposed control technique is shown in
Figure 12a,b and
Figure 13a,b can accurately enforce the inter-linking DC/AC power converter to preserve both grid voltage magnitude and frequency stability with an acceptable transient response. In
Figure 13c and
Figure 14c, the sliding-mode technique is used in [
19]. The grid voltages in
Figure 13c approach their desired values with more steady and dynamic errors, but they are within an acceptable range for the second set of parameters.
4.3. Power-Sharing between Converters
The inter-linking DC/AC converter must deliver a share of load power and the AC side’s uncompensated power, as demonstrated in
Figure 14 and
Figure 15. Based on these figures, the inter-linking DC/AC converter’s power can successfully track its desired value with less steady-state error and a swift dynamic for both sets of hybrid MGs parameters given in
Table 4.
Figure 14c and
Figure 15c show the inter-linking DC/AC converter power-sharing of grid-connected load power for the sliding-mode technique used in [
19]. The proposed technique is faster, with a dead-beat response and less chattering.
In the AC MG, the PV-inverter 1 is endorsed to provide the active and reactive power necessary for its associated local loads increased at
t = 1.2 s. In
Figure 16a,b and
Figure 17a,b, the proposed control technique can afford stable responses for both the active and reactive power of PV-inverter 2 under both load and parameter changes. While in
Figure 16c and
Figure 17c, the active and reactive power of PV-inverter 2 with the sliding-mode control used in [
19] are shown. The proposed technique is faster, with a dead-beat response and less chattering.
Note that the proposed controller based on the linearized model is tested on the original non-linear system in the above simulation. The proposed design is based on satisfying a set of LMIs. It guarantees the stability and disturbance rejection of the linearized model. The stability of the original non-linear system is also guaranteed according to the Lyapunov theorem. This states that the performance of both the linearized and the original non-linear system is the same (both stable or unstable) provided that the linearized model has no eigenvalues on the imaginary axis.