Decentralized control of islanding/grid-connected hybrid DC/AC microgrid using interlinking converters

. This paper presents decentralized control of an islanding/grid-connected DC/AC hybrid microgrid ( l G) using battery energy storage system (BESS) and distributed energy resource (DER). In DC/AC l G uni ﬁ ed with different DERs and BESS, the intermittent output nature of DERs due to ﬂ uctuating input characteristics and strong interaction of sources, loads, and primary grid, causes variations in frequency and bus voltage. To solve these issues, the paper proposes a decentralized control method which incorporates active/reactive power ( P / Q ) control, DC virtual droop control, voltage control, frequency droop control, current control, maximum power point tracking, and a phase-locked loop (PLL). The coordination and integration of various control parameters will ensure a smooth transition as well as the overall stability of the system. The BESS and DER ’ s interfacing converters are autonomously controlled in this control scheme without communication using the frequency droop and bus voltage control. Correspondingly, the control techniques comprehend different operating modes depending on the state of charge of BESS, distributed generation, and grid. During switching the two interlinking converters (IC), high-frequency harmonics are created, which are eventually mitigated by the inductor-capacitor-inductor (LCL) ﬁ lters employed in the AC bus. Virtual droop control will ensure active damping of the harmonics in the LCL network. The maximum power transfer in interlinking converters (ICs) is improved using the proposed approach for input-source variations. Simulations were performed using MATLAB/Simulink and veri ﬁ ed using the hardware in the loop (HIL) to prove the effectiveness of the control scheme proposed.

Filter capacitor voltage

Introduction
The antithetical relationship between continuously increasing demand for energy and consequent degradation of the environment has triggered electric power experts to search for a feasible asset to mitigate the issues in power generation.Distributed energy resources, like wind and solar power with advanced power electronics technologies and control techniques, are believed to bring out a practical solution to scale down dependence on the conventional electric power procreation and increase the reliability feature of a power system [1,2].Emerging solar photovoltaic technology, wind technology growth, and declining tariff also motivate rapid solar photovoltaic (PV) and wind deployment in a power system.Nevertheless, considering the character of wind energy and solar energy, the momentary output power of wind and solar systems highly depends on the operating atmospheric elements, such as wind speed, the surrounding temperature, and solar irradiance resulting in variable output power [3].Therefore, the BESS incorporated in the proposed DC/AC microgrid addresses the issue of irregularity and increases the microgrid stability, power quality, and reliability [4,5].When distributed energy resources operate autonomously with the central ac grid, they may cause voltage and frequency variation [6].To overcome these variations in the autonomous or grid-connected mode, an efficient voltage controller, a power controller, a frequency droop controller, a current controller, and a P/Q controller design were proposed to ensure the microgrid's satisfactory operation.Interlinking converters are used for renewable energy source changeover from DC to AC output, either connected in utility grid or autonomous modes [7].The optimally designed inductor-capacitor-inductor (LCL) filter is deployed to reduce the harmonic output current between interlinking converters and the utility, and it also imposes a performance current for feedback control [8].This filter allows using a lower switching frequency to accommodate harmonic restraint mentioned in IEEE-1547 and IEEE-519 standards [9].A hybrid DC/AC microgrid (lG) is a vital technology for the assimilation of DERs, and energy storage (BESS) to provide reliable power to a bundle of local loads correlated to pure DC or AC microgrids [10].A hybrid DC/AC lG can serve either in an islanding or a grid-interactive mode [11].In grid interactive applications, the lG actively controls reactive power with voltage regulation, power quality improvement, and active power dispatch to improve further efficient utilization of BESSs and DERs [12].
In the grid-connected operation, parallel ICs are used for DC voltage control; the DERs output can decide the interlinking converter power, discharge/charging power of BESSs, and manage the demand in the DC lG.In the autonomous mode, frequency, voltage at the DC-bus, and three-phase AC voltage can be controlled through synchronous control of the BESSs, ICs, and DERs in the hybrid DC/AC microgrid [11,13].
In [14], to coordinate parallel ICs operation, centralized control is implemented in a DC lG.The control scheme, a predictive-model strategy, is used for load allocation and voltage control.The prevailing lack of the centralized method is the scarcity of reliability, vulnerability to a single point breakdown, and flexibility.In [15] proposed, a master slave-based load sharing control with wireless analog communication.It has an identical drawback to a central method in the fact that master-slave failure results in a deficit of voltage regulation.In the hybrid, DC/AC microgrid, different power electronic converters interface DERs and regulate the electrical parameters among sources and loads [16].Communication-based coordination control and supervisory control are studied in a networked hybrid microgrid in [17][18][19].However, costly communication lines among modules reduce microgrid reliability limits and DER's flexibility and expansion.In [20], an autonomous hybrid microgrid with coordination control operations were studied.However, there is a crucial challenge in administering the power flow between all distributed sources.Nowadays, well-established droop control, including different alternatives suggested in the literature, is primarily for ac microgrids [21,22].The droop method expansion to hybrid DC/AC lG has not been widely explored.It could be roughly complex since it extends across at least two subgrids having DC and AC forms.In [23], low switching frequency harmonic current rejection in DC/AC microgrid topology was studied in islanding and grid-connected mode.However, the power quality and correct power-sharing approaches between DERs need more improvements.In [24], adaptive power-sharing and sliding mode control are used.However, the microgrid DC-link voltage stability is not addressed.Amirkhan et al. [25] proposed a sliding mode surface control and two-dimensional impedance shaping technique.These control techniques work with nonlinear systems.But, there is an uncertainty effect due to parameter variations and chattering problems.
The proposed microgrid architecture consists of both DC subgrid and AC grid, avoiding communication lines, accurate power-sharing, and significant improvement of the power quality is achieved.
An essential DC/AC hybrid lG architecture is demonstrated in Figure 1.The renewable sources are interconnected with permanent magnet synchronous generator (PMSG) wind turbines and PV arrays with a series-parallel combination of solar panels.The hybrid microgrid topology also comprises of solar DC-DC unidirectional converter, LCL filter, energy storage battery bank, interlinking converter, DC-DC bi-directional converter, uncontrolled rectifier, wind DC-DC converter, AC primary grid, controller, DC load, and constant power loads.A DC to DC unidirectional converter controls the power generated from wind and solar photovoltaic systems.Hence, under such a system, different local control parameters should be assured for the reliable and effective operation of a DC/AC microgrid.The DC to DC converter output voltage is automatically varied by wind MPPT and solar photovoltaic MPPT controller to the photovoltaic arrays and wind maximumpower-point-voltage (MPPV).The reference DC voltage setting to MPPV of wind, solar array, and reference current of a current-controlled inverter are analogous to the maximum extractable current from the source resulting in peak-power extraction from the renewable sources.A grid-connected hybrid DC-AC lG is primarily developed using the interlinking converters (ICs) as the crucial element for the bidirectional power transfer.The grid interlinking converter interfaces the DC-bus in DC lG to the AC bus in the AC primary grid; it aims to regulate constant DC voltage by inspecting the active power exchange among DC and AC systems.Two parallel ICs provide a modular function, plug-and-play features, fast dynamic response, and high reliability by incorporating frequency droop methods for appropriate load sharing among DERs in islanding mode.Hence, different local control parameters for a DC/AC microgrid are considered.The battery system operates on a standby, discharging, or charging mode.The photovoltaic (PV) and wind energy conversion (WEC) associated DC to DC converters employ MPPT.A DC to DC bidirectional converter is used with the battery to stabilize the grid power fluctuation and load variation.The grid voltage is tied to the current-controlled inverter output voltage, phase and frequency requirements are automatically met for synchronization.
The focal areas of this work are mentioned as follows: 1. Power quality is enhanced in both grid-interactive and islanding operations by a properly designed LCL filter with active damping by virtual droop control.2. The virtual droop and MPPT control methods are used for parallel integration of renewable sources (solar, wind) connected to the DC-bus for current sharing involving multiple converters.3. Dynamic power frequency droop control of parallel interlinking converters will share power in AC microgrid under load variation in islanded mode.4. Adopting a decentralized control technique that eliminates dominance on faster communication in DC/AC microgrid control.
5. The hybrid system performance has been investigated under utility grid faults and input source fluctuations by the time domain simulation.The system recovers its steady state performance after fault clearing and it proves the rigidity of the decentralized control.6.The realization of the islanding or grid-connected solar and wind generators associated with battery energy storage system ensure peak power management and flexibility of operation in islanding mode.
The paper is structured as follows.Section 2 introduces the operation of a hybrid DC/AC microgrid.Section 3 presents the control scheme of the DC/AC microgrid proposed.Section 4 shows the simulation results and discussion.Section 5 includes the experimental and HIL discussion.Finally, conclusions are indicated in Section 6.

Operation of hybrid DC/AC microgrid
The effective operation of multiple sources in DC/AC lG shall be accomplished with a decentralized control method considering both DC bus and AC bus signaling schemes.Such a control strategy catches an adaptive transition mode between the distinct operating modes.Hence, a bus voltage and frequency-based decentralized control is achieved to maintain the DC/AC lG system's applicable purpose for timely fluctuating input conditions.
Table 1 shows the system's different modes of operation, such as injection in to the grid, distributed generation, and battery bank.The grid power flow (P grid ) and the battery power (P batt ) with the associated hybrid DC/AC lG types (grid-connected, autonomous) are mentioned.
The hybrid system of Figure 1 and its various modes of operation are explained as follows:

Distributed generation mode
The DERs operation mode is shown in Figure 2a.The power at the grid is outaged; the system is shifted to autonomous mode.Because load demand is high, the DC-bus voltage decreases to the minimum limit in the operating range of 1.025 V dc < V bus ref < 1.05 V dc .The increased demand of load power is fulfilled by the wind-PV subsystem and batteries.

Grid-injection mode
The excess power generation from DERs is exported to the grid.In this operation, the storage is charging, the ICs are considered current sources, and the generation mode is indicated in Figure 2b. Figure 3a shows that the interlinking converter's control is performed by measuring the DC subgrid voltage and applying the PLL to catch the frequency and AC voltage amplitude.

Battery energy storage mode
As depicted in Figure 2c, distributed generation (DG) is under short maintenance in this operating mode.The primary grid is turned off, and the battery bank provides emergency loads.
Figure 2d shows the bi-directional DC-DC buck/boost power circuit diagram at the DC link.For buck mode of operations, the DC bus voltage (V bus ) is greater than the typical battery voltage (E).Two proportional integral controllers regulate the DC voltage at the buck-boost converter's desired value.Figure 2e indicates a battery-suggested control strategy, the reference bus voltage (V dc-ref ) compared to the operating voltage (V dc ), and the PI controller executes the error signal.The controller output signal is fed to the SW1, and SW2 switches duty cycle according to a state of discharging or charging.The discharging process (SW1 on) only occurs when load power (P L ) is higher than the generation (P G ); charging occurs only when P G is greater than P L (SW2 on).When P G = P L , both switches are turned off so that battery is neither charging nor discharging.
The buck operation is correlated with charging, and the boost function is in discharging mode.The reference battery voltage (V bat-ref ) is compared with the operating voltage (V bat ), and then the error is processed through the PI controller.The controller provides a reference battery charging current (I ch-ref ) compared to the actual battery charging current (I ch ).The error current after the saturation block is again compared with a triangular pulse; this provides a necessary gate pulse for buck mode.Similarly, the discharging current (I d ch-ref ) is measured against the actual (I d ch ) battery discharging current, and then the error is passed through the saturation block, compared to a triangular wave to produce gate pulses in the boost mode.3 Control of proposed DC/AC microgrid

Grid-connected converter (GCC) control
Figure 3a shows DGs and battery control with the grid through the voltage source inverter under a dynamic reactive and active power control scheme.In this architecture, the subsequent controller used for desirable dynamic performance, such as phase detector, inverter output voltage sensor, current detector, instantaneous power (P/Q) computation, power PI controller, Park-transformation (dqo to abc, and vice-versa), current PI controller, and sine pulse width modulation (SPWM).The synchronously rotating control strategy can be implemented in the d-q frame reference [26].A feedback control parameter of the inverter and grid side current and voltage estimates the instantaneous power (P/Q) and ensures a tight inner current control loop.
In the d-q frame, the instantaneous reactive and real power can be calculated by: where q is reactive power, and p is active power.Frequency and voltage output references are estimated as: where n q and m p are the droop coefficients.

Control of PV array using MPP tracking
The input irradiance of solar photovoltaic is changing; to gather maximum solar array power, MPPT is engaged in the proposed topology.The variable module output DCvoltage provided to the solar converter is demonstrated in Figure 3b.The solar boost converter achieves maximum power tracking and facilitates the full power capture of DERs during a change in ambient conditions.In this paper, using perturbation and observation (P&O) application for tracking, MPPT is implemented [27].The proposed constant voltage and MPPT control of the solar energy is shown in Figure 3b.

PMSG wind system MPP tracking
The input wind velocity of the PMSG wind turbine varies.Due to changing speed of the wind, the maximum power obtained from PMSG with MPPT accommodates the demand.This power is shared in the common DC-bus and among parallel ICs interfacing with the DGs.The wind system produces AC three-phase voltage.The uncontrolled rectifier changes variable AC voltage to DC voltage; the voltage outputs feed the DC-DC boost converter to track the MPPT.The proposed constant voltage and MPPT control of the wind is demonstrated in Figure 3c.
The mechanical power obtained from the wind system (P m ), torque coefficient (C q ), tip-speed (k), and the turbine torque (T m ) is determined by ( 5)- (8).

Islanding microgrid control
The circuit breaker (CB) is indicated in Figure 1.If the CB is kept open, the microgrid is intended for islanded or autonomous operation.The microgrid should maintain its frequency and voltage as the primary grid in this situation.
Figure 4 shows the proposed controllers such as voltage control, power with droop control, and current control during a smooth changeover from grid-tied to standalone mode.In islanding mode, the voltage controller depicted in Figure 4b produces current reference values for the current controller.Figure 4a shows power control incorporated droop characteristics for load sharing, used to generate reference voltage values and the angle required for park transformation (abc to dqo conversion) and vice-versa.
The current controller shown in Figure 4c generates reference voltages used in SPWM and makes the desired current system meet the load.The power controller schematic is described in Figure 4a.The synchronous generators in traditional power systems share the load increment according to governor droop characteristics by decreasing frequency.This concept is implemented in the inverter by reducing the frequency reference while increasing load.Correspondingly, the reactive power can be shared by announcing droop characteristics in voltage amplitude.Figure 4a shows the instantaneous reactive-power (q) and real power (p) components that are computed using the measured output currents and voltages by ( 1) and (2).The instantaneous power is processed through the low pass filter (LPF) shown in (9) to get real (P) and reactive (Q) power at the fundamental frequency.x C is the LPF cutoff frequency.
The power distribution among parallel ICs is done by incorporating a droop in the IC shown in (10a)-(10c).The IC voltage angle a varies in feedback to power (P) flow in the suitable gloomy sight, and gain addressed by droop is given in (10d) and (10e).
The voltage controller block diagram is shown in Figure 4b, consisting of all feed-forward (F) and feedback terms.The corresponding equations are written in (11) and (12).
where i Ld refdirect-axis filter inductor reference current component, and i Lq refquadrature-axis filter inductor reference current.
Figure 4c shows the current controller structure.The standard PI controllers provide the control of the filters inductor current; the corresponding algebraic equations are given in ( 13) and (14).
where V d mod , V q modare the components referring to direct-axis and quadrature-axis inverter voltages reference, respectively.

Source converter droop analysis
A droop method will enable distributed renewable sources to operate in parallel to share loads in line with generation capacities [28].The circulating current problem among parallel-connected converters has been mitigated by the active damping of the most dominating power source.For example, the active rectifier introduces active damping in a grid-connected mode.Furthermore, droop with MPPT control is engaged in attaining the current sharing between parallel converters.Droop control adds feedback current to a voltage-current inner loop of wind and solar PV units, which is synthetically developing output impedance for individual converters, as depicted in Figures 3b and 3c.
The equivalent voltage of DGs (V n ) associated with a series droop (R d ) making the reference voltage (V bus ref ) can be determined by [29], as shown in (15) below: The droop value (R d ) connected at each source is calculated using (16).
Dv bus , i max are maximum voltage deviation and maximum current for interface converter, respectively.The terminal current (i s ) at each converter shown in Figure 1 is where i 1 , i 2 , and i 3 are the solar, wind, and battery currents, respectively.Considering the same source voltage under consistent voltage control, the bus reference voltage is computed in (18).Each DG in the AC subgrid has a converter empowered from renewable DC sources [30].The DGs can supply the load according to the droop gain [31].The summation of all active injected power of DGs should equal the AC loads shown in (19a).
where P ac loadtotal AC load power, m ac (i)generation droop gain, P ac (i)each DG supplied power, and n gives the number of generation.The DC-bus voltage is managed using droop control in the DC subgrid.All injected power to the DC grid equals all DC loads seen in (19b).
where P dc (i) -DG injected power and m dc (i)a gain of each generation.

LCL filter modeling
The single-phase circuit schematic of the LCL filter is described in Figure 5a.Where i s , i c , L f , L c represent the grid side current, converter current, filter inductance, and converter side inductance, respectively.Accordingly, the state-space equation is written in ( 20)- (22).
Representing in state-space form as expressed in (23) The filter transfer function is expressed in (24).
where V DC -DC-link voltage, f swswitching frequency, kdesired attenuation, and C bthe base capacitance.

Maximum power point tracking
The power generation from DERs varies as input wind speed and solar irradiance vary.Figure 3b shows the MPPT employed in solar PV systems.Figure 3c shows the MPPT configured for the wind system.MPPT aims to use a control algorithm to assure PV arrays and wind generators to operate at maximum power point under input variations.Selman and Mahmood [32] describe the different power tracking algorithms like incremental-conductance, perturb & observe (P&O), neural networks, pilot cell, and fuzzy logic (FL).The classification of MPPT techniques rely on features: control variables required, cost, number of sensors, and speed of implementation.In this paper, the P&O technique used due to low computational demand requires solar voltage, solar current, wind voltage, and wind current for better performance.

Phase-locked loop (PLL)
The grid synchronization performs essential functions for grid-interactive systems.Figure 5b shows the PLL operating in synchronous reference frame (SRF).The three-phase SRF PLL subsisting of three components are the loop filter (LF), a phase detector (PD), and a phase/frequency generator, also known as a voltage-controlled oscillator.The synchronously rotating control strategy can be carried out within the d-q frame references in grid synchronization.The direct-quadrature (dq) PLL is developed according to the Park's and Clarke's transformation indicated in (30), which converts the abc stationary frame into dq synchronous frame.
The SRF phase-locked-loop uses abc-dq transformation block; the phase-detector converts the positive sequence utility phase voltage (31) to the quadrature (q) channel signal.

Stability analysis
The microgrid's entire system dynamics depend on the associated components; the frequency domain method has been employed to examine the system stability analysis.In a physical system, the load interface converters can inject pulsating currents into a power network.The injected current comprises of high order harmonics, which affect the current spike coming from the switching transition.To overcome such problems, an input filter is engaged at the converter's terminal.This filter with optimum damping can stabilize the system, as illustrated in Figure 6a.The optimum resistance (R d1 ) for damping can be estimated considering the peak output impedance of the filter (Z o ), as written in (32). where . The damping resistor (R d1 ) can be determined in (33).
The buck DC-DC converter with dc load side input filter and its voltage control is indicated in Figures 6a and 6b, respectively.The load converter open-loop control transfer function (G vd (s)) with damped filter is expressed as in (34).
where denominator and numerator are given as,

Controller transfer function
The controller block diagram of solar and wind in controlled voltage mode and MPPT control mode is depicted in Figures 6c-6e.The average state-space equation of boost converter is expressed as ( 35) and (36).
where V o is the boost converter output voltage.
In the case of MPPT control, the converter loop gain is achieved by multiplying the plant transfer function and controller in the frequency domain, as shown in (40).
where G c (s) is the PI controller transfer function.
Similarly, the open-loop voltage and the current transfer function are given in ( 41) and ( 42).
PI controller gain is selected from the bode plot.The gain and phase margin are chosen so that the system is stable and a fast dynamic response is ensured.It is demonstrated in Figure 8e for dynamic change in load and fault conditions simulated are shown in Figures 11a-11c.
Figures 7a-7d show the frequency response and root locus of the wind and solar voltage loop.The solar operates at a gain margin of 2.1539e+04 and a phase margin of 86.5736.The wind system operates at a phase margin of 87.3661 and a gain margin of 8.1979e+03.

Results of simulation and discussion
The proposed topology with the decentralized control has been simulated in the MATLAB/Simulink environment to validate the simulation outcomes.
Case 1: Solar irradiation and wind speed variations.The DERs input source variations (solar irradiation, wind speed) are revealed in Figures 8a and 8b. Figure 8a shows the solar irradiance from 0 to 2 s, 2 to 5 sec, and 5 to 7 sec is 700 W/m 2 , 1000 W/m 2 , and 700 W/m 2 , respectively.The peak power generated is 3 kW during this solar variation, as indicated in Figure 9a.As shown in Figure 8b, the wind speed from 0 to 2 s, 2 to 5 s, and 5 to 7 s is 10.8 m/s, 12 m/s, and 10.8 m/s, respectively.In this wind speed fluctuation, peak power generation is 6.5 kW, as shown in Figure 9c.Thus, the controller tracks the optimum power according to the source variations of solar irradiation, and wind speed confirms the proposed controller's effectiveness.
Figure 8c displays the three-phase voltage outputs waveform of the inverter during the islanding operating mode.Figure 8d depicts the inverter pole voltages.Figure 8e indicates the output waveform change of the three-phase load current due to a change in load.Figure 8f shows the droop angle (h) of the parallel ICs controller operating in the autonomous mode.The angle obtained from power droop control is required for three-phase voltages and currents transformation (abc-dqo-abc) in islanding operation.Figure 9a shows 3 kW peak power generation from solar PV, and Figure 9c shows the generation of 6.5 kW of the wind system.Figure 9d shows grid line voltage and islanding line voltage at PCC, having the same voltage amplitude, phase sequence, and angle.Thus, it demonstrates the efficacy of the proposed control system.
Case 2: Variation of the loads.Distributed generations and BESS are activated at a time (t) = 0 s permitted to achieve steady-state, and all DGs are connected at PCC.At t = 0 s, a load of 2 kW near DG-1 and load-3 of 2 kW near DG-2 is turned on.At t = 5 s, a load of 3.5 kW near DG-1 is turned on.Another load-4 of 3.5 kW near DG-2 is switched on, and the corresponding demand is shown in Figures 9e and 9f. Figure 8c shows that the simulation output of three-phase voltages for both ICs is synchronous with the essential value even through load changes instantaneously.The simulation result of three-phase currents, which depends on output voltages and load adjustment at five seconds, is illustrated in Figure 8e.A step change of load is initiated at five seconds, and the controller ensures that the transient is mitigated within one cycle.Both loads shared depend on the droop coefficients in the steady-state condition, and the current shared also depends on droop coefficients.The power of the load demand is indicated in Figures 9e and 9f.
Figures 9g and 9h show the fast Fourier transform of inverter current and voltage, respectively.The inverter voltages after the LCL filter, the total harmonic distortion (THD) obtained is 0.78%, and the current output THD is 0.67% compared to [26] of current THD 3.68% and [23] voltage THD 4.12%.The lower current and voltage THD value demonstrate that controllers work efficiently, and the overall structure of the designed DC/AC microgrid is at optimum.Furthermore, the system's efficacy may be observed in the transient system stability by the droop control methods proposed.However, it was reported to be a drawback [33].
Case 3: Charging and discharging of BESSs.The BESS bank power shown in Figure 9j is necessary to fulfill the load demands in Figures 9e and 9f.During 0-2 s, 2 kW power is produced by PV, and 3 kW wind power is generated, as demonstrated in Figures 9a and 9c, respectively.The sum of load-1 and load-3 is 4 kW, which is lower than all DERs' power, as indicated in Figures 9e  and 9f.At this time, DC/AC lG is in islanding, and all DERs generation can provide load demand.As shown in Figure 9a, from 2 to 5 s, solar PV generation is 3 kW, and wind power is 6.5 kW shown in Figure 9c; at this time, the total demand is 4 kW.There is 5.5 kW of extra power produced during this period; the BESSs are charging, as shown in Figure 9j.From 5.01 to 7 s, solar PV generation is reduced to 2 kW, and wind generation is 3 kW.However, load-2 has a 3.5 kW power demand, and load-4 requires 3.5 kW power.In such circumstances, total DERs power comes out to be 5 kW and thus cannot supply a whole load of 7 kW.Therefore, the extra 2 kW load demand can be provided from BESSs in discharging mode, as shown in Figure 9j.
Case 4: Fault conditions and input source disturbance.The 3-phase line to line (LLL) fault is introduced at the PCC in the system at t = 5.05 to 5.1 s.During this period, the three-phase currents increase, and three-phase voltages are zero.After clearing the fault, at t = 5.1 s, the controller quickly keeps the system moving towards steady-state operation and maintains the system voltage control and power balance.During fault conditions, Figures 11a-11c show the output inverter voltages (before filter), inverter voltages (after the filter), and load currents, respectively.
The variable wind velocity and solar irradiation are the input disturbances provided to the system, as indicated in Figures 10a and 10b.The controller tracks the optimum power according to the source variations of solar irradiation, and wind speed confirms the adequate performance of the proposed controllers.Figures 10a and 10c show the variation of solar irradiance (W/m 2 ) and the associated output power, respectively.At 0-1 s, the irradiance is 800 W/m 2 , and the power output is 2000 W. From 1 to 6 s, the irradiance rises to 1000 W/m 2 , and the corresponding power output is 3000 W. In 6-7 s, irradiance decreases to 800 W/m 2 ; its output power is also reduced to 2000 W. Figures 10b and 10c indicate the wind velocity variation and the power output, respectively.At a low wind speed of 11.28 m/s and the highest wind speed of 12.24 m/s, Table 2 indicates the design variables used for the model proposed.Table 3 provides the controller parameters of the studied system.

Experimental results and HIL
The experimental prototype is made using a battery bank, LCL filter, Semikron IGBT switches, CPL and controlled by dSPACE-1104 (Figure 12).
The real-time simulation is essential to justify the controller's accuracy and performance; hence the developed model in OPAL-RT is executed in the same manner as a   physical system.The Matlab/Simulink system interacts with the OPAL-RT simulator using the RT-Lab software.
The simulator implements hardware-in-loop (HIL), control-in-loop (CIL), and real-time simulation.In this paper, the DC/AClG developed in Simulink is performed in real-time using ARTEMiS-SSN-solver on a 3.2 GHz processor, 2.8 cores, 16 GB RAM simulator, and at a step time of 20 ls.The solver can decouple the state space of the broad power network into lower groups; its solution can be determined simultaneously through the nodal-admittance method.
The HIL results of 3-phase voltages are displayed in Figure 13b, which perfectly matches the simulation outcome of three-phase voltages in Figure 8c. Figure 8d illustrates inverter simulation output voltage which is the same as OPAL-RT results in Figure 13a.Figure 9d shows   the same grid line and inverter voltage results, equivalent to those obtained in OPAL-RT results in Figure 13d.Threephase OPAL-RT currents shown in Figure 13e are symmetrical as simulation results in Figure 10g.
The performance of the proposed AC/DC microgrid has been verified experimentally, and Figure 14 demonstrates the same.Figure 14a indicates the inverter voltage of phase A and the three-phase inverter currents in the top to bottom order.Figure 14b depicts the inverter voltage after the filter and the source voltage.These waveforms are shown in green and blue, respectively.Figure 14c captures the dynamic performance of VSI-1 by initiating CPL-2.Thus, the load current increases; however, the source current remains constant, and the DC-bus provides the step power.The experimental results show the capability of the DC-DC converter in peak load management.Figure 14d shows the pole voltage of VSI-1 before the LCL filter.Figure 14e shows the proposed microgrid operation in islanding mode.The inverter voltage, load current of CPL, source current, and the inverter current are shown subsequently top first.Figure 14f shows inverter voltage and load current at the top, whereas the bottom shows source voltage and source current.These results manifest that the VSI-1 can mitigate power quality problems.Figure 14g shows a dynamic performance of VSI-2 when CPL-2 is switched on, and thus load current is increased.However, the source current from the grid side remains constant.Thus it demonstrates the plug-and-play features of the microgrid.

Conclusion
In this work report, a decentralized-control system of AC/DC microgrid operating both in grid-interactive and islanding mode is simulated in MATLAB/Simulink and tested using the OPAL-RT digital simulator, followed by experimental verification.The hybrid DC/AC lG is interfaced with distributed generation (PMSG wind turbine, solar PV), AC loads, DC loads, ICs, battery energy storage system, and AC grid.The fast-tracking efficient energy MPPT with droop control is deployed for solar PV and PMSG-based wind turbines with BESS systems.The distinct features such as power control, frequency droop control, current control, and P/Q control are illustrated.The BESS smoothens the DC-link voltage and keeps the power invariant under variations in load, solar irradiance, and wind speed.The DC-link voltage is maintained within the acceptable range with the help of BESS in islanding mode and bidirectional AC/DC converter in grid connected mode.The control strategies proposed in the system function outside of online communication between different DGs.The real-time waveforms and simulation results show the proposed DC/AC lG controller that efficiently performs power-sharing among two interlinking converters and supplies/receives quality power to/from the grid.In addition, the power exchange between the microgrid and utility is achieved with good power quality as mentioned in IEEE 519-2014 standards.Droop control is added in the feedback current to a voltage and current inner loops of wind and solar PV units, developing a synthetical output impedance in the individual converter.Experimental results demonstrate that the power quality at the PCC is sustained within the grid standard.LCL filter is optimally designed to enhance the system's power quality with damping.Stability analysis also reported in Section 3 validates the stability and efficacy of the proposed microgrid.Hence, this work reports the recommended DC/AC lG architecture's versatility and usefulness of the decentralized control methods.

Table 1 .Fig. 2 . 3 .
Fig. 2. DG operating modes and proposed control of energy storage: (a) DG mode, (b) grid-injection, (c) BESS mode, (d) bidirectional battery converter (BDC) and (e) proposed BDC control.Fig. 3. Proposed control scheme: (a) proposed grid-connected P/Q control, (b) proposed control of solar PV system using constant voltage control and MPPT control method and (c) proposed PMSG constant voltage control and MPPT control method.

Fig. 6 .
Fig. 6.Buck converter and controller transfer function block diagram: (a) buck converter topology, (b) control block diagram of buck converter, (c) solar and wind boost converter controller block diagram, (d) wind control in MPPT mode and (e) solar control in MPPT mode.

Fig. 7 .
Fig. 7. Frequency response and root locus (a) frequency response of wind converter (voltage open-loop gain), (b) frequency response of solar converter (voltage open-loop gain), (c) root locus of wind converter (voltage closed-loop) and (d) root locus of solar converter (voltage closed-loop).

Fig. 11 .
Fig. 11.Fault condition: (a) the inverter voltage (before the filter), (b) the inverter voltage (after the filter) and (c) load current.

Table 2 .
System design parameters.

Table 3 .
Proposed system controller parameters.