Feedback Linearization-Based Control Strategy for Interlinking Inverters of Hybrid AC/DC Microgrids with Seamless Operation Mode Transition

: This study proposes an advanced control scheme for the interlinking inverters of the hybrid AC/DC microgrids, which facilitates a seamless transition between grid-connected and stand-alone/islanding modes for the microgrid. Due to a nonlinear relationship between the terminal voltages of the voltage-source inverter (VSI) interfacing through inductor–capacitor (LC) ﬁlters with the grid voltages and currents, a feedback linearization technique (FLT) is employed to control the interlinking VSI under both grid-connected and islanding operations. The FLT-based current controllers are applied in the grid-connected mode, in which they adjust the power exchange between the DC and AC subgrids and mitigate the distortion of the grid currents produced by nonlinear loads. Under the stand-alone operation, the AC bus voltages are directly regulated by the FLT-voltage controllers of the interlinking VSI. In order to reduce the inrush currents and voltage overshot at the instant of mode switching, the FLT-based controllers are performed all the time regardless of the operating modes, where the voltage references for the VSI are not changed abruptly. The control performance of the VSI is highly satisfactory with low-transient overshoot values of the voltages and currents and low total harmonic distortion (THD) values of the grid currents and AC bus voltages are about 3.5% and 2.7%, respectively, under the nonlinear load condition. The validity of the new control strategy is veriﬁed by the simulation work, which investigates the operation of a hybrid AC/DC microgrid.


Introduction
Today, with the requirement and utilization of both AC and DC electrical powers from the load and generation sides, a type of microgrid based on both DC and AC busbars called hybrid microgrid is an efficient solution, which has been paid remarkable attention in the past few years [1][2][3][4][5][6]. The hybrid microgrid contains both DC and AC common subgrids, which are interfaced through the interlinking voltage-source inverters [6,7]. Each subgrid is composed of renewable energy sources and loads, where the energy storage systems (ESSs) and the photovoltaic (PV) system are normally connected to the DC subgrid [8,9]. The amount of energy produced by the microgrid from the renewable energy systems is variable, which may cause an imbalance between the internal supply and demand of the microgrid. For this scenario, the microgrid is required to connect to the AC grid to transmit/receive the power to/from the AC grid, which ensures the power balance inside the microgrid. In cases of grid fault occurrence, the microgrid needs to be isolated from the faults by disconnecting it with the AC utility to prevent from damaging the microgrid devices and components. Even with the disconnection from the AC grid, the microgrid should stay remained in operation to supply the power to highly critical loads such as medical equipment, the semiconductor industry, and broadcasting facilities from the internal generating sources. Generally, in order to comply with a high requirement of consumers and a highly reliable power system for the higher quality of the supplied power distribution, the microgrid is essentially required to be able to operate under off-grid and on-grid modes. Physically connecting or disconnecting the microgrid to the AC network is usually carried out through a semiconductor device-based static transfer switch (STS), which is simply controlled [10]. In terms of control and operation, the interlinking inverter of the microgrid is required to obtain fast, stable, and seamless transition modes between on-grid and off-grid operations, which deliver the powers to the grid under normal grid conditions and protect the microgrid and loads under the grid fault conditions [11][12][13].
The interlinking inverter is normally interfacing with the utility grid through inductorcapacitor (LC) filters, where the capacitor filter is essential for forming the AC voltages when the microgrid is operated under off-grid mode. In the grid-connected (GC) mode, the currents flowing between the microgrid and the grid through the interlinking inverter are adjusted to be sinusoidal, through which the real and reactive powers of the microgrid are controlled to supply to the local loads and the AC utility. Therefore, the interlinking inverter is working as a current-controlled VSI, where well-known proportional-integral (PI) controllers based on synchronous reference frame (SRF) have been widely employed to regulate the converter currents. This method is very simple and gives a satisfactory performance. Another control scheme based on the proportional-resonant (PR) regulators is employed for the control variables being AC signals, where the dq-axis components of converter currents will contain the AC components under the grid voltage distortion and/or the nonlinear loads [14,15]. When the microgrid is isolated from the utility under a grid fault such as voltage sag, swell, or interruption, the interlinking inverter plays a role to establish the AC load voltages at the nominal one for the operation of the AC loads [16,17]. This is the stand-alone (SA) operation mode of the hybrid microgrid. Similar to the current-controlled VSI, the PI regulators are employed for both the outer voltage control loop and inner current control loop [18,19]. The performance of the interlinking inverter employing the aforementioned linear control methods is normally deteriorated due to the nonlinear characteristic of the inverter. Furthermore, the cascaded control structure based on PI and PR requires considerable tuning, which is a time-consuming process to achieve a satisfactory control performance [20,21].
Another issue for the interlinking inverter of the microgrid is that the mode changing between the on-grid and off-grid operations may lead to the voltage surge across the critical loads or inrush current flowing to the grid. Few research studies have presented seamless transition between grid-connected and islanded operations to mitigate negative impacts from the current and voltage surges on the equipment and microgrid [19,22,23]. Authors in [19] have introduced a cascaded control scheme for the current and voltage, where a feedforward term is applied in the voltage controller. This provides a better response of the inverter when the operation mode changes. However, this method is basically a linearbased control method even with the feedforward voltage controller, which could not work well if nonlinear loads are connected to the microgrid. Another approach has been reported in [22], where the direct voltage controllers are employed for the interlinking inverter in both grid-connected and islanding modes. However, it has not been properly proved that the voltage controllers applying to the grid-tied inverter can be used to produce the current references or power delivered to the grid since that voltage is fixed and established by the grid. In addition, PI controllers are also employed in this method, which has the same shortcomings as that of the approach reported in [19] under the nonlinear load condition. Recently, the advanced control method based on model predictive control has been employed in the microgrid, which overcomes the drawbacks of the PI-resonant regulators [12]. However, the procedure and transient response of the inverter for the mode transition have not been taken into account properly.
In this research, an advanced control algorithm for the interlinking inverters of the hybrid AC/DC microgrids is proposed, where the feedback linearization technique is utilized to control the nonlinear-characterized voltage-source inverter. The interlinking inverter is allocated for the power exchange between the DC subgrid and the AC subgrids or the utility grid. Under the grid-connected operation, the inverter plays an essential role to maintain the DC-bus voltage, which leads to power balance exchanging among the DC subgrid, AC subgrid, and the main grid. Additionally, the interlinking inverter is utilized to provide an active filter operation mode, which eliminates the distorted currents generated from nonlinear loads before injecting them into the grid. For this mode, the FLT-based controllers for the phase currents of the inverter expressed in the SRF are applied. Meanwhile, under the off-grid mode, the AC bus voltages are established and maintained at the nominal one by the interlinking inverter only, where the FLT-voltage controllers are employed. In the off-grid operation mode, the DC-bus voltage is kept and regulated by the converter of the ESS, which assists in balancing the power between two subgrids. A seamless transition between on-grid and off-grid modes for the interlinking inverter is achieved through performing the FLT-based controllers continuously regardless of the operating modes by which the outputs of the controllers in deactivated mode are maintained closely with those in the activated mode. This prevents high inrush currents and voltage spikes while the operation mode of the interlinking inverter is changing. The PSIM simulation tests on the hybrid AC/DC microgrid with two-level VSI were carried out to verify the feasibility of the proposed algorithm.

System Description
An overall diagram of a hybrid microgrid containing the AC and DC subgrids is shown in Figure 1, where each subgrid consists of the generated power sources and its own loads. The AC subgrid may contain wind turbine systems, AC loads, and nonlinear loads, whose frequency is equal to the utility-rated frequency. The AC subgrid connects to the main grid through the point of common coupling (PCC). The PV system and the ESS are normally connected to the DC subgrid, which also contains the local DC loads. The interlinking inverter (ILI) is a three-phase two-level voltage-source inverter, which assists to deliver the power between two subgrids as well as injects the power from the DC subgrid into the utility grid. The LC filters are used to interface the inverter with the AC subgrid, as shown in Figure 1. There are usually two STS switches, S 1 and S 2 , to perform connecting/disconnecting the microgrid to the utility grid, as seen in Figure 1. It is noted in Figure 1 that the switch S 1 is controlled by the main grid operator, while the microgrid monitors the AC voltage and line frequency, then using the S 2 to isolate the microgrid if any fault occurs. Such fault conditions considered in this paper are voltage sag, swell, and line frequency variation out of allowable range. In general, the hybrid microgrid is able to operate in the on-grid and off-grid modes.
In the on-grid operation, the DC-link voltage is maintained by the ILI, which guarantees a power balance exchanged among the DC, AC subgrids, and the utility. In this mode, the PV and wind turbine renewable energy systems in the microgrid are operating in the maximum power point tracking (MPPT) control. Furthermore, the ILI can be working as an active filter to filter out the distorted currents caused by the nonlinear loads, which helps improve the THD of the grid currents. In the stand-alone mode, the ILI is allocated to form the AC-bus voltages at their nominal value, while the DC-bus voltage is controlled by the DC/DC converter of the ESS. If the capacity of the ESS is sufficient, the power balance between two subgrids will be obtained. Otherwise, some of the loads in the microgrid have to be shed.

Proposed Control Scheme of Hybrid Microgrid
FLT is a well-known control method, which has been applied in many different applications such as in power electronics and power systems [24,25]. The basic idea of feedback linearization is to transform a nonlinear system into a linear one by canceling its nonlinearities [26]. This work mainly focuses on the control of the single ILI under both ongrid and off-grid operation modes, which employs an advanced control method based on FLT. Therefore, the droop control to determine the power-sharing among the interlinking inverters in the microgrid is not considered in this paper. From Figure 1, the modeling of the ILI is expressed through dq-axis components of the voltages and currents as [27][28][29] . . . .
where i rdq is the dq-axis components of the ILI output currents flowing into the AC bus, i cdq is the dq-axis components of the ILI, e ldq is the load voltages expressed in dq frame, which is the same as the grid voltages, e gdq , in the grid-connected mode, and v cdq is the dq-axis inverter terminal voltages. L f and C f are the filter inductance and capacitance, respectively, and ω e is the fundamental angular frequency of the utility grid.

Control of the ILI in Grid-Tied Mode
As mentioned previously, the ILI is allocated to regulate the DC-bus voltage and deliver the active/reactive powers among DC, AC subgrids, and the grid by controlling the inverter currents. FLT is employed for the inverter current controllers, which is derived as follows: By differentiating the inverter output currents once and substituting Equations (3) and (4) into Equations (1) and (2), one can obtain From Equations (7) and (8), the ILI can be expressed through the state equations as [27] .
where x is the state variables, u is the inputs, and y is the outputs, which are chosen as and It can be rewritten from Equations (9) and (10) as The nonlinear terms between the inputs and outputs of the ILI modelling can be decoupled by defining another variable matrix, which is new control inputs, v, expressed as follows: The new control inputs can be expressed in the Laplace domain by adding the tracking controllers as where are the gains of tracking controllers, and y * i (i = 1 ∼ 2) refer to the controlled variables, which are i * rd and i * rq . It is noted that the fifth-and seventh-order harmonic components of the load currents and voltages in a three-phase frame appear due to the nonlinear loads of the microgrid. Then, through transforming the three-phase variables to two-phase variables expressed in the SRF, the dq-axis components of the currents and voltages contain DC and the sixth-order components. Therefore, the tracking controllers consist of the integral and resonant regulators, which are used to suppress the errors in steady-state for the state variables being in both the DC and AC signals, as shown in (13).

Control of the ILI in Stand-Alone Mode
In the islanding mode, the AC-bus voltages are formed by the ILI and are directly controlled by FLT. Similar to the previous subsection, the FLT-based voltage controllers of the ILI are developed as follows: From Equations (5) and (6), the load voltages expressed in the dq-axis components can be rewritten by differentiating twice as .. ..
The state equations of the ILI for controlling the AC-bus voltages are expressed in the form as where the state variables, inputs, and outputs for the FLT-based voltage controllers are chosen as and (15) and (16), the nonlinear relationship of the outputs and inputs can be expressed as ..
Then, the new inputs are defined to decoupling the nonlinear term and are expressed as and where e 1 = e ld − e * ld , e 2 = e lq − e * lq , k ij (i = 3 ∼ 4, j = 1 ∼ 3) are the gains of tracking controllers for the control variables y * i (i = 1 ∼ 2), which are e * ld and e * lq . In this operation mode, the e ld is regulated to zero, and e lq is maintained at the nominal amplitude of the grid voltage being constant. Therefore, the new control inputs contain the tracking controllers with an integral part only to eliminate the steady-state error.
It is worth noting that the gains of tracking controllers for both the FBT-based current and voltage controllers can be easily obtained through the pole-placement technique, where the desired poles are located on the left-half plane to obtain the closed-loop control stability [26,29].

Control of the DC/DC Converters for the ESS and PV
As mentioned above, the PV is operated in the MPPT control regardless of the operating modes of the microgrid, while the ESS operation depends on the microgrid status. When the microgrid is operating in the grid-tied mode, the ESS can be floating or charging/discharging the power from/to the microgrid depending on the battery state-of-charge (SOC) and powers generated from the PV and load demand. Inversely, in the stand-alone mode of the microgrid, the ESS is allocated to regulate the DC-link voltage, which is assumed that the ESS is capable of balancing the power between the demand and supply in the microgrid.
For the control targets of the aforementioned ESS and PV, the cascaded control of voltage and current is generally employed for the DC/DC choppers of the ESS and PV, which can be slightly modified to accomplish the requirements of the microgrid [30]. The DC voltage outer control loop is outputting the current reference for the filter inductor, i * dc , where the PI regulators are applied as where V dc and V * dc are the voltage and its reference in the DC subgrid, respectively. k 51 and k 52 are the PI controller gains, respectively.
The inner controller regulates the current of the filter inductor, where its output is the voltage reference drop on the inductor, v L * dc , expressed as where i dc is the filter inductor current, k 61 and k 62 are the PI controller gains, respectively. Then, the duty cycle of the DC/DC converter, d dc , is calculated as where v dci is the DC input voltage of the ESS or PV array. A control block diagram of the ILI and the DC/DC converter for both the operation modes of the microgrid is shown in Figure 2, which is explained in detail with the transition mode scheme in the next section.  Figure 2 shows the detailed control block diagram for the ILI and DC/DC converters in the microgrid under both on-grid and off-grid operations, where the controllers are introduced in the previous section.

Grid-Connected Operation Mode
Under the grid-tied operation, the ILI is employed to maintain the common voltage of the DC subgrid, regulate the reactive power to the grid and compensate the distorted currents from the nonlinear loads. The current references of the dq-axis components for the FLT-current controllers are obtained as where i * rd and i * rq are dq-axis current component references being the outputs of reactive power and DC-bus voltage controllers, respectively. i ld and i lq are the AC components of dq-axis load currents, which are obtained through band-pass filters (BPFs). The three-phase nonlinear loads are considered, which produce fifth-and seventh-order harmonics in abc frame and become sixth-order harmonic in the dq-frame. Then, FLT-based current controllers are performed to regulate the ILI output currents including the linear and nonlinear terms, which produce the inverter terminal voltage references as v gc * cd and v gc * cq , respectively.
Under this operation mode, the DC/DC converters of the PV system and the ESS control their powers, P * dc , determined by the MPPT or demand from the microgrid, respectively, which generates the current references of the filter inductor, i * dc , for the inner current control loop, as seen in the top diagram in Figure 2.

Stand-Alone Operation Mode
The common voltage of the DC subgrid is controlled by the DC/DC converter of the ESS under the islanding operation mode, where the control block diagram is shown in the top diagram in Figure 2. The detailed controllers are derived in Section 3.3. This controller action helps in balancing the power between the AC and DC subgrids and provides a stable input DC voltage for the ILI to work as a voltage source to control the AC-bus voltage. FLT-based controllers are employed to control the AC-bus voltages directly, where the references for the dq-axis components, e * ldq , are set as e * ld = 0 and e * lq = E g (25) where E g is the nominal magnitude of the grid voltage. The outputs of FLT-based voltage controllers are the dq-axis components of the inverter terminal voltage references, v sa * cd and v sa * cq , which are illustrated in the bottom diagram in Figure 2.

Transition from Grid-Tied to Islanding Modes
The grid is considered faulty when its voltage amplitude is lower than 90% (voltage sag) or higher than 110% (voltage swell), compared to the rating, or the grid-frequency variation is higher than 1% with respect to the fundamental frequency. In this work, the grid voltage expressed through e gd and e gq was monitored and compared to the nominal values, where the grid voltage vector is aligned with the q-axis. Therefore, e gd is mostly zero, and e qg is the magnitude of the grid voltage.
When a grid fault condition is detected, the DC/DC chopper of the ESS is immediately switching to control the DC-bus voltage, while the grid currents are controlled to be reduced intentionally close to zero by the ILI. For achieving this, the current references for the FLT-based current controller of the ILI are set as i * rd = i ld and i * rq = i lq (26) where i ld and i lq are the load currents of dq-axis components, respectively. When the grid currents approach zero, the STS is switched off to isolate the microgrid from the fault. Then, the stand-alone mode is activated and FLT-based voltage controllers are performed to regulate the AC-bus voltages following its reference, as in Equation (25). In order to achieve a seamless transition, the load voltage phase angle is set to be continuous with the grid voltage phase angle at the mode switching moment. In addition, the frequency of the AC-bus voltages is set the same as that of the grid. Therefore, the phase angle of the load AC voltage, θ l , is expressed as where θ l0 = θ e is the initial phase angle of the load AC voltage, and θ e is the phase angle of the grid voltage at the mode transition moment.
The output voltage references of the inverter, v * cd and v * cq , are selected as the outputs of the FLT-based voltage controllers expressed as v * cd = v sa * cd and v * cq = v sa * cq (28) Even though the outputs of FLT-based current controllers are not used in the standalone mode, FLT-based current controllers continue running with the current references as in Equation (26) to generate the controller outputs, v gc * cd and v gc * cq , being close to the effective voltage references of the inverter. This helps the voltage references not to change abruptly, and the smooth transition can be easily obtained.

Transition from Islanding to Grid-Connected Modes
Even when the microgrid is operated under islanding mode, the microgrid still monitors the grid AC voltage. When the grid voltages are recovered from the sag/swell, then the microgrid is reconnected to the main grid for the on-grid operation mode. Prior to closing the STS for the grid-connected operation, the synchronization of the voltages of the AC subgrid with the main grid voltages in terms of phase, frequency, and amplitude is required to avoid causing the current spikes. If the differences of the phase angle and amplitude of the two voltages are higher than the thresholds, selected as 0.01 pu in this work, the ILI is still operated under voltage-controlled mode to regulate the AC-bus voltages matching with the grid voltages in terms of the phase and magnitude. It is noted that if the phase angles of the two voltages are fully matched, the frequencies of the voltages are naturally the same. When the phase and amplitude of the grid and AC-bus voltages are matched, the switches STS are closed and the microgrid starts operating in grid-tied mode. At this instant, the DC/DC chopper of the ESS is switching to the power control, and the ILI performs FLT-current controllers to adjust the DC-bus voltage, reactive power, and harmonic current compensation, where the current references are determined, as in Equation (24).
It is worth noting that before switching to grid-connected mode, FLT-based current controllers are still running. Therefore, when the operation mode is switched with the current reference change, the ILI responds to the variation of the references. This helps reduce the transient overshoot values of the currents and voltages at the mode transition. In this operation mode, the outputs of the FLT-based current controllers are used for the inverter voltage references to be modulated as v * cd = v gc * cd and v * cq = v gc * cq (29) In addition, for obtaining the smooth transition from the grid-tied mode to the islanding mode, FLT-based voltage controllers are still performed during the grid-tied mode, where the voltage references are selected as e * ld = e gd and e * lq = e gq (30)

Results and Discussion
In order to prove the effectiveness of the suggested control method, simulation tests for a 15-kW microgrid presented in Figure 1 by PSIM software were performed. The DC-bus voltage is maintained at 400 V. A three-phase two-level VSI was utilized for the ILI between the AC and DC subgrids. The PV array and the ESS are represented by a constant DC voltage source of 200 V integrating into the DC subgrid through a DC/DC converter. In the AC subgrid, the local loads contain a three-phase RL load of 12 + j9.4(Ω) and a DC resistor load of 10 Ω connecting at the DC side of a three-phase diode rectifier. The STS is represented by the bidirectional switches, which were utilized to connect/disconnect the microgrid to/from the grid. The parameters of the studied microgrid are listed in Table 1. The gains of the controllers introduced in Figure 2 were determined according to the design criteria of the pole-placement technique, which were then tuned further by a trial-and-error method [26,30]. These gains are listed in Table 2.  An additional RL load of 12 + j5.7(Ω) is added to the AC subgrid during the standalone operation.

Converters Controllers Gains
Waveforms of three-phase currents of the loads, the ILI output, and the grid are shown in Figure 3a-c, respectively, and Figure 3d shows the dq-axis components of the ILI currents, which are magnified in Figures 4 and 5. It is seen in Figure 3c that no current flows into the grid during the stand-alone mode from 1.2 s to 1.8 s, where the currents of the load in the AC subgrid are the same as those of the ILI output, as seen in Figure 3a,b. Figure 3e shows the dq-axis components of the grid and AC-bus voltages, which demonstrates that the AC-bus voltages are well maintained at the nominal value of 180 V when a grid sag occurs. Figure 3f shows the outputs of FLT-based controllers for the current and voltage. It is seen in Figure 3g that the DC-bus voltage is well kept at 400 V under both the GC and SA modes and the transient conditions of the load changes. Figure 3h shows the DC-inductor currents of the DC/DC converter, which shows the highly satisfactory performance of the DC-inductor current controller.     Figure 3. Due to the presence of the nonlinear load, the phase currents of the load are distorted, as shown in Figure 4a, where its THD is about 8.2%. By compensating the current distortion from the ILT, where the inverter currents are also distorted, as shown in Figure 4b, the grid phase currents are improved and become more sinusoidal with a low THD value of about 3.5%. The dq-axis components of the inverter currents are shown in Figure 4d, which shows that the actual currents track their references closely. This demonstrates that FLT-based current controllers work well.
The performance of the FLT-based voltage controllers for the microgrid operating in the stand-alone mode is illustrated in Figure 5. Figure 5a shows the dq-axis components of the AC-bus voltage when the grid voltages drop to 0.75 pu. It is seen that the q-axis component of the AC-bus voltage is controlled well at 180 V, and the d-axis component is regulated at 0. Figure 5b shows the three-phase AC-bus voltages, which are well balanced and sinusoidal with a low THD value of 2.7%. These results indicate that the proposed control scheme gives a better performance, compared to the conventional method, which is the traditional PI controller with the load current feedforward report in [15]. For this method, the THD of the load voltages is 3.2%. By maintaining the AC-bus voltages, the loads in the AC subgrid are continuously supplied. Figure 5c shows the load three-phase currents, which are the same as those of the inverter, as shown in Figure 5d.
The response of the mode transition from the GC to SA operation is demonstrated in Figure 6. To achieve a smooth transition, the FLT-based voltage controllers are still performed, as presented in Section 4.3. Therefore, it is seen in Figure 6a that the outputs of the FLT-based voltage controllers and the FLT-based current controllers expressed in the dq frame are similar during the grid-connected operation before the fault occurrence at 1.2 s. Figure 6b shows the three-phase AC-bus voltages, which are the same as the grid voltages and smoothly regulate the nominal value when the STS is open. When the mode transition is occurring, the initial phase angle of the AC-bus voltage is set as the phase angle of the grid voltage, which is shown in Figure 6c.  Figure 7 shows the performance of the microgrid while switching from the SA mode to the GC operation. It is seen in Figure 7a that during the SA operation before 1.8 s, the outputs of FLT-based current controllers are similar to those of the FLT-based voltage controllers. When the grid fault is recovered, the AC-bus voltages are adjusted to follow the grid voltages in terms of magnitude and phase angle. After about 13 ms from the fault clearance, the microgrid is smoothly switching to the GC mode, where the phase voltages and its phase angle are well in agreement with those of the grid voltages without a transient, as shown in Figure 7b,c, respectively.  Figure 8 shows the performance of the interlinking inverter under the condition of parameter variation for the islanding mode, where the filter inductance value, L f , is changed from 3 mH to 2 mH at 1.6 s. Figure 8a shows the dq-axis load voltages, which are well regulated before and after the inductance change. At the moment of the inductance change, the overshoot of the dq-axis voltage components occurs, which is low and less than 1%, compared to the nominal voltage. Therefore, the three-phase voltages of the load are not affected, which are sinusoidal and balanced, as shown in Figure 8b.

Conclusions
This study proposed an advanced control algorithm for the interlinking inverters of the hybrid AC/DC microgrids, which utilizes the feedback linearization technique to deal with the nonlinear characteristics of the inverter. In addition, a seamless transition between grid-tied and islanding modes for the microgrid was also obtained by performing FLTbased current and voltage controllers of the ILI continuously regardless of the operation modes. In the steady-state condition, the FLT-based controllers work well to regulate the grid currents in the on-grid mode or maintain the AC-bus voltages in the off-grid mode under the nonlinear load and load change conditions. Furthermore, a procedure of control switching between the current controllers in the on-grid mode and the voltage controllers in the off-grid mode was presented in detail. The effectiveness of the suggested control scheme is proven by the simulation results for a hybrid AC/DC microgrid, which demonstrate that the THD values of the grid currents and AC-bus voltages under 8.2% THD-distorted load current condition are 3.5% and 2.7% for the grid-tied and islanding operations, respectively.