Abstract

This paper shows the operation of the microgrid using a new adaptive PI controller based operational (control) scheme. The core of the proposed control scheme is the suggested adaptive PI controller. The parameters of the PI controller are adaptively tuned using a variable step-size least mean fourth algorithm with no need for any system model to operate this adaptive controller. The main merit of the proposed scheme is that it stabilizes the magnitude and frequency of the voltage at any loading condition such as variable balanced loads, variable unbalanced loads, and nonlinear loads. The proposed scheme has a simple structure and accurate performance. In addition, the structure of proposed scheme provides a seamless transition toward any loss or reconnection of any inverter in the microgrid. Furthermore, the suggested operational scheme is flexible enough to enable the microgrid to be operative in a grid-connected mode and to transfer from the voltage control mode to power control mode with a smooth transitional procedure. To validate the meritorious performance of the suggested scheme, its performance is compared to similar schemes based on a linear controller (regular PI controller), single-neuron PI controller (adaptive PI controller), recursive least square-support vector machine based PI controller (another adaptive PI controller), and nonlinear controller (sliding mode controller) for different operations of the microgrid.

1. Introduction

The microgrid is a new effective trend in the power system. It gains much popularity nowadays because it solves many problems in the power system [13]. The microgrid can accommodate diverse renewable energy resources with power electronics interface. In the microgrid, the carbon emission is minimum compared to the central grid. The microgrid is a perfect solution for the isolated or far-sited loads. The microgrid has a capability to work in an autonomous mode (microgrid mode) and in a grid-connected mode [4]. The microgrid can be considered as backup generation in case a small portion of the central grid experiences some outages.

The operation of the microgrid is mainly dictated by its operational (control) scheme, which is adopted to operate this microgrid. The control scheme of the microgrid is mainly divided into two main categories. The first category is the droop control schemes (communication-less based schemes) and the second category is the distributed control schemes (communication based schemes). Each category has its own merits and demerits [510]. The droop control scheme has the advantage of its independence since it is not required to have any communication among the generation units. Yet, it suffers from some drawbacks, which can be briefly summarized as follows:(1)Accurate sharing for power necessitates a steep slope of its droop characteristics, which makes a considerable variation in voltage and frequency.(2)The variable impedance of the feeders greatly influences the operation of the droop control and it creates a circulating current.(3)The X/R ratio impacts the performance of the droop. If this ratio is high, the performance is good and vice versa. In the distribution system, this X/R ratio is low, which inflicts the performance of the droop control.(4)The low X/R ratio of the distribution feeder increases the coupling between active power and reactive power, which entails substantial modifications to the conventional droop control.(5)Existence of the injected harmonics deteriorates the droop performance because the droop is mainly designated for the fundamental voltage and current.

All aforementioned problems motivate the researchers to utilize the second category. The main problem of the distributed control is its essential communication among its generation units (inverters). The main focus of this paper is directed toward the second category. Therefore, the literature survey of this paper focuses on the distributed current control schemes.

The distributed current control scheme has a typical structure of two cascaded control loops [6, 8, 11], which are named in the literature as the primary current control loop (inner loop) and secondary voltage control loop (outer loop). The primary control loop is accountable for adjusting the injected current of the inverter. The secondary control loop is responsible for controlling the voltage at the loads’ side. The publications related to the distributed current control give more attention to the different schemes used in this category along with the utilized controller of the primary control loop.

Several schemes are used in the distributed current control. The average and instantaneous current sharing scheme is employed to equalize the current injected by inverters [12], which requires a sort of communication among these inverters to get the power and current share of each inverter. Another scheme is called the master-slave scheme [13], where one inverter is responsible for adjusting the voltage and the other inverters share the load current and power. This scheme suffers from robustness due to the loss of the master inverter. Some modifications have been suggested to this scheme to increase its robustness and modularity. The circular chain control (3C) is another scheme, which is introduced to operate the distributed generation system [14]. This scheme has a typical structure of two cascaded control loops (inner for current and outer for voltage). This scheme requires communications among the inverters such that the inner current loop tracks the current of the previous inverter. A current limiting control is introduced in [15], where its control scheme consists of two loops: one for voltage and the other one for current. The current command of each module (inverter) is generated by the previous module based on the module capacity. By limiting the output current command of these modules in [15], each module has to share the load current with a different factor not similar to the factors provided by all previous modules.

The core of the primary control loop (current control) is the controller that is adopted to govern the primary control loop in terms of adjusting the injected current of the inverter. The most widely used controllers in the current control are the PI or PID controller in the rotating frame and the proportional-resonant (PR) or proportional-complex-integral (PCI) controllers in the stationary frame [16]. The main shortcoming of the PI and PR controllers is that they do not give their optimum performance at all operating conditions. The predictive current control is proposed in [17], where the current error is corrected by an adaptive strategy. It has the disadvantage of susceptibility to the system uncertainty. The deadbeat controller is commonly used for current control [18], in which the current error is predicted and corrected from an adaptive self-tuning load model. The sliding mode control is also utilized for the current control in the distributed generation system [19]; it proves that it is a robust controller for any uncertainty in the system, but its main problem is the chattering that appears due to the existence of the discrete input in its control law. The order sliding mode current control [20] is also utilized in the distributed generation system so as to precisely govern the injected current with the minimum chattering level. The H∞ current controller allows maintaining balanced currents for the three-phase four-wire inverter [21].

This paper presents an innovative operational (control) scheme to stabilize the voltage along with its frequency in the microgrid under different loading conditions such as variable balanced loads, variable unbalanced loads, and nonlinear loads. This operational scheme is based on the self-adaptive PI controller, which has not been used before for microgrid operations. The suggested controller innovatively adapts its own parameters such that the error cost function is minimized at any operating condition; therefore, the proposed controller gives its best performance at any operation condition. This paper is composed of seven sections. The second section shows the microgrid under study. The third section explains the mathematical formulation of the proposed controller along with other controllers used to validate the performance of the proposed controller. The proposed control scheme is compared to other common controllers in the fourth section. The simulation results of the microgrid operation are illustrated in the fifth section. The results of the microgrid in a grid-connected mode are displayed in the sixth section. The findings are concluded in the last section.

2. Microgrid Under Study

This section shows the configuration of the microgrid with its simple mathematical model. To ease understanding this section, the microgrid under study with several inverters is already depicted in Figure 1

The load voltage of Figure 1 is expressed as follows.Equation (1) is transformed from the natural frame to the rotating frame, which yields a state space form written aswhere ; the microgrid is a group of generation units with groups of different loads. The microgrid parameters are listed in Table 1. The utilized inverter is the 5-level diode-clamped inverter, which gives small total harmonic distortion compared to the traditional 2-level and 3-level inverter. The operation and control of the 5-level diode-clamped inverter are well documented in [22]. The switching modulation of the 5-level diode-clamped inverter is the multicarrier pulse width modulation (PWM). The phase-disposition pulse width modulation (PD-PWM) [22] is the modulation technique considered to operate the three-phase 5-level diode-clamped inverters. All given load impedances in this paper are referred to the primary side of the transformer tr2.

3. Proposed Operational Scheme

This section explains the proposed operational scheme, and how it works to stabilize the magnitude and frequency of the voltage at load side (point of common coupling). The subsequent sections clarify the formulation of the other controllers for comparison with the proposed controller.

3.1. Structure of Proposed Control Scheme for Microgrid Mode

This section explains the proposed control scheme used to operate the microgrid in an autonomous mode (microgrid mode). The control scheme for positive-sequence components is illustrated in Figure 2. The control scheme of Figure 2 shows that the primary and secondary control loops stabilize the voltage at the load side. The primary current control loop (inner loop) is the main loop in the proposed scheme of Figure 2. The input of this primary control loop is the current reference (current command), which is received from the secondary control loop (voltage control), while the output of this primary current control (inner loop) is the required injected voltage by inverters. This required voltage is used to generate a control signal utilized to operate the switching modulation (PD-PWM). The secondary control loop (voltage control) receives the voltage reference in the frame and generates the current references for the primary control loop. Its function is to stabilize the magnitude of the voltage at the load bus.

In the voltage control, its loop commonly employs a linear controller like a regular PI controller because the relation between the load voltage and fundamental load current is almost linear. Thus, a regular PI controller in this loop is enough to get a fast and suitable dynamic performance, whereas the current control governs another part of the microgrid along with the inverter circuits. Therefore, it is strongly recommended that this loop encompasses an efficient (self-adaptive) controller like what is proposed in this paper. The frequency of the generated voltage is always stable and constant because it is driven by an internal crystal clock with a constant frequency as shown in Figure 2. This frequency loop is operated as an open loop control because the switching modulation (PD-PWM) does not change the frequency of the injected voltage and it is always constant regardless of any variation in loading conditions.

The effectiveness of this control scheme is exemplified in the operation of the inverters’ module. This inverters’ module contains three three-phase inverters. Each three-phase inverter receives the same switching signals generated by the PD-PWM, meaning that each inverter independently injects a certain voltage to stabilize the voltage along with its frequency at the load side. Another advantage of this proposed structure for the operational scheme is that the total load current/power is equally divided among all working inverters. In case one inverter is disconnected/reconnected, the total load current is seamlessly redistributed among all working inverters with the minimum voltage transition (similar to plug-and-play capability) as will be illustrated in later sections. More importantly, this proposed scheme does not need any sort of communication among the inverters because each inverter is working independently of the others.

3.1.1. Mathematical Formulation of Proposed Scheme/Controller for Balanced Loads

The proposed adaptive PI controller is based on adaptation of the controller parameters () using an improved version of the least mean fourth algorithm. In the primary control loop (current control), the error is defined as where , . The recursive form of the adaptive PI controller is expressed using the Dahlin formula as in [23]where , are the parameters that should be recursively changed such that the error of (3) is minimized using the least mean fourth algorithm whose cost function is defined as follows.The controller is redefined in terms of some weights aswhere , , , . The optimization of the cost function in (5) is obtained from its gradient descent with respect to the variables () [24], and the result of the differentiation of the cost function is given as follows. The term is calculated based on the model of the system of Figure 2. The output of each control loop is equal to the injected voltage in each loop as shown in Figure 2. From the formula of (2) and the block diagram of Figure 2, it can be deduced that is equal to 1 in both loops. Some modifications have been introduced to improve the overall adaptation mechanism for the controller parameters. These modifications are listed as follows.(1)In order to improve the stability of the adaptation mechanism. The normalized LMF is considered for adapting the controller parameters [25]. Its stability is improved because the input power does not depend on the adaptation mechanism as proved in [25]. The formula of (7) is modified such that the normalized least mean fourth algorithm is defined as where the subscript shown in (8) indicates either 1 or 2 as shown in (7).(2)The adaptation mechanism is again modified to fasten its convergence. The suggested modification is to make the step-size variable not fixed. A large step-size makes faster convergence and more fluctuation and vice versa. The effective variable step-size algorithm is defined in [26]where is a factor selected by trial and error to balance between the convergence rate and stability of adaptation mechanism, is a forgetting factor used in the calculation of correlation process, and is an estimate of the correlation between the input and the error.

The final adaptation mechanism, including all proposed modifications, is defined aswhere is defined in (9). The final equations of the normalized least mean fourth algorithm (NLMF) are combined to form the self-adaptive PI controller of (6) along with (9), (10), and (11). The parameters of the suggested adaptation algorithm are tabulated in Table 2.

3.1.2. Mathematical Formulation of Proposed Scheme for Unbalanced Loads

The objective of the proposed scheme to deal with the unbalanced loads is to stabilize the positive-sequence voltages at 1 pu (100 %) and mitigate all negative-sequence voltages to the smallest possible level. The control diagram of Figure 2 is used for the positive-sequence voltages with the voltages references for the system under study of Figure 1 as follows.To deal with the negative-sequence components, another scheme similar to the control scheme of Figure 2 (current and voltage control loops) is paralleled with the original one to mitigate the negative-sequence voltages with the voltage references given as follows.Even the mathematical formulation for the negative-sequence component is similar to (2) with changing the sign of . The whole control block diagram for operating the microgrid at any load is clarified in Figure 3. Eventually, the output control signals of the positive-sequence and negative-sequence components are aggregated to operate the PD-PWM. The parameters of both adaptive and regular PI controllers of the negative-sequence components are tabulated in Table 3.

3.1.3. Mathematical Formulation of Single-Neuron Adaptive PI Controller

To prove the advantageous performance of the suggested controller, the proposed adaptive controller is compared to another commonly used adaptive PI controller, which is the single-neuron (single-perceptron) based PI controller. The single-neuron is the smallest unit in the neural network; it is operated based on the Hebbian rule [27] where the updated weights are given aswhere is a positive fixed step less than one. The formulation of (14) is employed to adapt the parameters of the PI controller. The single-neuron PI controller replaces the proposed controller (normalized LMF based PI controller) in the control scheme of Figure 2 and operational bock diagram of Figure 3. The parameters of the single-neuron adaptive PI controller for positive control loops that give the best performance are written in Table 4.

3.1.4. Mathematical Formulation of Recursive Least Square Adaptive PI Controller

For the sake of tough comparison, the proposed adaptive controller is compared to the recursive least square based PI controller (RLS-PI) presented in [27]. This PI controller parameters are recursively adapted using the same algorithm given in [27], which is newly formulated here as follows.The adaptation mechanism of (15) is similar to those described before as , , and is a fixed learning rate. However, the adaptation of (15) differs in how to calculate the derivative term () with no need for the system model of Figure 2 or system equation of (2). The derivative term is calculated from the estimated function with respect to the input (), which is estimated using the least square-support vector machine (LS-SVM) defined in [28] aswhere (defined in (17)) is a Kernel function of the support vector machine (SVM), and it is a function of batch of output data and input data, represented in as . and are related to the system order. On the other hand, is a constant and it represents the item in , which is defined aswhere is a batch of the output data points in the sliding window of length sorted as , is the batch of the Kernel functions in the sliding window and it is defined in (19), and is the average constant of in the sliding window and it is defined in (20).where is a constant. The derivative of (16) yields the following.The derivative formula in (21) is then plugged in (15). The RL-SVM based PI controller replaces the proposed controller (normalized LMF based PI controller) in the control scheme of Figure 2 and its operational bock diagram of Figure 3. The parameters of the RL-SVM based PI controller for the positive control loop that give the best performance are written in Table 5.

3.1.5. Mathematical Formulation of Sliding Mode Controller

Another robust controller is added in this paper to compare its performance to the proposed controller of Figure 2. This candidate is very efficient since it is a robust nonlinear controller, which is the sliding mode controller. The adopted sliding mode controller is formulated for the current control loop. The mathematical formulation of this sliding mode control is already detailed in [19]. The utilized control law in this paper is an aggregated form of two terms, which are written aswhere is the corrective input, which pushes the system trajectory from its initial location to the sliding manifold, while is the equivalent input that keeps the system trajectory on the sliding manifold. The definition of the sliding manifold follows the integral sliding mode control and it is given as The corrective input is associated with a boundary layer to minimize the chattering and it is defined aswhere are positive constants.

The is designed such that the system with the sliding mode controller becomes stable; the system stability is derived by Lyapunov stability criterion such that the adopted Lyapunov function is selected to express the distance between the system’s state and sliding manifold, and its definition is written as The derivative of this function should be less than or equal to zero as For tracking problem like the case of this paper, , which leads to the following.The state space form of the system model is given as Substitution of (28) in (27) leads to the following.The Lyapunov function requires that its derivative is equal to zero for the stable system. This condition yields the following.Eventually, the equivalent input is given as The control law of (22) and (23) with its two terms in (24) and (31) is used to control the injected current of the primary control loop. Eventually, this current controller replaces the proposed adaptive PI controller in the control scheme of Figure 2 and its operational block diagram of Figure 3. The parameters of the sliding mode controllers for positive control loops are written in Table 6.

3.2. Structure of Proposed Control Scheme for Grid-Connected Mode

Sometimes the microgrid is required to be connected to the main power grid (distribution system) in order to acquire some benefits [4, 5]. The main challenge that faces the suggested control scheme in the grid-connected mode is how to transfer the control concept from the constant voltage/frequency operation to constant current/power operation because both the grid voltage and its frequency are governed by the power grid in a grid-connected mode. Therefore, an additional power control loop is integrated with the utilized operational scheme as depicted in Figure 2. In this additional control loop, any power reference is converted into a current reference, which is consequently applied (as input) to the primary current control loop of the scheme illustrated in Figure 2. The power formula in the frame is expressed as Then, the current reference of power control can be deduced using the inverse of (32) as

4. Comparing Proposed Adaptive PI to Other Controllers

The objective of this section is to validate the meritorious characteristics of the proposed controller along with the suggested scheme for the microgrid operation. This section includes comparisons between the proposed controller and the regular PI controller, single-neuron adaptive PI controller, recursive least square adaptive PI controller, and sliding mode controller for the same control scheme including its block diagram given in Figures 2 and 3. For all subsequent sections, the comparison encompasses the performance of each controller during the starting of the microgrid whose loads are the parallel combination of two balanced loads of and (all impedances in this section are referred to the primary side of transformer tr2 in Figure 1). At time t = 2.5 s, the second load is disconnected and the first load remains connected to the microgrid.

4.1. Comparing Regular PI Controller to Proposed Controller

In order to justify the praiseworthy performance of the proposed scheme, its performance is compared to the regular PI controller. This regular PI controller replaces the proposed controller in the control scheme of Figure 2 and in the whole operational diagram in Figure 3. The parameters of PI controllers that give the optimized performance are listed in Table 7. The rms voltage profile in percent of the load side at the point of common coupling (PCC) is given in Figure 4(a) with the voltage profile of the proposed controller to compare both profiles, and the zoom-in view for both voltages is given in Figure 4(b). It is worth mentioning that the proposed controller has a better performance than the regular PI controller for all operating conditions. Figure 4(a) affirms that the transient performance of the regular PI is not guaranteed at all operating conditions. The oscillation around 100% does not exceed . The adaptation of the proposed controller weights () in the d-axis current control loop is illustrated in Figure 4(c). Also, the current performance (current reference vs feedback current) of the d-axis current control is elucidated in Figure 4(d), which shows good transient and steady-state performance. In addition, the formula shown in (9) is used to change the step-size () such that at the beginning of the adaptation process it becomes very small to stabilize the adaptation mechanism; afterward it gets bigger when the adaptation reaches its steady state to fasten its convergence. This variable step-size is shown in Figure 4(e).

4.2. Comparing Single-Neuron Adaptive PI Controller to Proposed Controller

The single-neuron adaptive PI controller is another strong candidate for comparison. This controller is already explained before, where the parameters of the controller, , are recursively tuned such that the mean square error becomes minimum as explained earlier. The parameters of the controllers are already written in Table 4. The rms voltage in percent is portrayed in Figure 5(a) with the performance of the proposed controller, and its zoom-in view is also depicted in Figure 5(b). Figure 5 reveals that the proposed controller is faster than the single-neuron PI controller at the starting of the microgrid operation and at the load change after time t > 2.5 s.

4.3. Comparing Recursive Least Square Adaptive PI Controller to Proposed Controller

This section shows the performance of the recursive least square-support vector machine based adaptive PI controller. The mathematical formulation is already explained in a previous section. The recursive least square PI controller replaces the proposed controller in Figure 2 and in its overall operational block diagram of Figure 3. Its performance is depicted in Figure 6(a) with the performance of the proposed controller, and its zoom-in view is displayed in Figure 6(b). From Figure 6, it is clear that the proposed controller is faster with more oscillation at the start of the microgrid operation and at the load change.

4.4. Comparing Sliding Mode Controller to Proposed Controller

The sliding mode is a robust nonlinear controller used for nonlinear and linear systems. This controller, explained in a previous section, is adopted in the control scheme of Figure 2 instead of the proposed controller. The controller parameters, which give the best performance for this microgrid, are written in Table 6. The performance of the SMC is displayed in Figure 7(a) compared to the proposed controller, and its zoom-in view is portrayed in Figure 7(b). This figure indicates that the sliding mode controller has less overshoot/undershoot and the proposed controller converges faster to minimize its error. The major difference between the proposed controller and the sliding mode controller is that the later controller needs the full model of the system and the proposed controller works without utilizing any model for the microgrid.

4.5. Quantitative Comparisons between Proposed Controller and Other Controllers

In previous subsections, the proposed controller is compared to some linear/adaptive/nonlinear controllers to affirm its good characteristics for the operation of the microgrid at different operating conditions. The summary of this comparisons is tabulated in Table 8.

5. Simulation Results of Proposed Operational Scheme in Microgrid Mode

This section is divided into some subsections to show the performance of the proposed scheme, which stabilizes the voltage at the load side for different loading conditions.

5.1. Variable Balanced Loads

This section exhibits the simulation results for the proposed scheme and controller documented in a previous section and depicted in Figures 2 and 3 for the microgrid of Figure 1. The loads in the microgrid are the parallel combination of two balanced loads of and . At time t = 2.5 s, the second load is disconnected and the first load remains connected to the grid. The voltages at the inverters’ bus and after transformer bus (before and after the used filter) are given in Figure 8(a). The rms voltage in percent at the point of common coupling (PCC) is displayed in Figure 8(b). In the control scheme of Figure 2, the output of the switching modulation (PD-PWM) is applied on each inverter separately. Therefore, the load power (active and reactive) is equally shared among the working inverters. The load active power and the injected active power by three inverters are given in Figures 8(c), 8(d), 8(e), and 8(f), respectively. The reactive power has a similar performance to the active power sharing of Figure 8. Another advantage of using the 5-level diode-clamped inverter is exemplified in Figure 8(g), where the voltage THD of the injected voltage is less than 2% at any operating condition.

5.2. Variable Unbalanced Loads

This section depicts the simulation results for the suggested scheme in a previous section, which is depicted in Figure 3 for the positive- and negative-sequence control loops. Before time t < 5 s, the existing balanced load in the system is . At time t = 5 s, the first unbalanced loads are connected to the system; these loads are , , and , which are attached in parallel to the original balanced loads. At time t = 7.5 s, the second unbalanced loads of , , and are connected to the loads mentioned above. The rms voltage in percent is given in Figure 9(a) for the connection of two groups of unbalanced loads. The effectiveness of the mitigation for the negative-sequence voltage by its control loop is manifested by the negative-sequence factor as defined in IEEE Standard 1159-1995, which should not be greater than 2%. Figures 9(b) and 9(c) show the negative-sequence factor without and with using its control loop (lower blocks) in Figure 3. The reflection of the small negative-sequence factor is shown in the instantaneous voltage and current waveforms at the loads, shown in Figures 10(a) and 10(b), respectively.

5.3. Nonlinear Loads

The nonlinear load is a drastically problematic issue for the droop control schemes because the conventional droop is designed to let all generators share the fundamental components only. The existence of harmonics adds more complexity to the droop control [29]. On the contrary, the proposed scheme handles the harmonics without any modification or adding more complexity since each inverter is given the same control signals (output of the PD-PWM) to stabilize the voltage at the loads. Therefore, the load harmonics are evenly shared among the inverters. This equal distribution of harmonics among the inverters comes naturally (plug-and-play capability) due to the structure of the proposed operational (control) scheme depicted in Figure 2. The nonlinear load is presented by diode bridges with a highly inductive load. This nonlinear load is added to the system at time t = 12.5 s with the balanced original load of . The rms voltage in percent is given in Figure 11(a). The total three-phase load currents are given in Figure 11(b).

5.4. Loss/Reconnection of Any Inverter (Generation Unit) to Microgrid

In the droop control scheme, the loss of any inverter greatly influences the transient performance at the instant of the inverter loss [29]. This transition requires the droop control to have a high bandwidth in order to recover the voltage fast. Another advantage of the proposed scheme is its seamless transitional profile during the loss or reconnection of any inverter circuit. The smooth transient performance emanates from the propounded structure of the control scheme because the output of the modulation technique (PD-PWM) is applied on all inverters at the same time, meaning that each inverter works independently of the other inverters to stabilize the voltage at the loads during any transition. As a result, the load current is equally divided among the existing (working) inverters. At time t = 17.5 s, the inverter-1 is disconnected, and both inverter-2 and inverter-3 are adaptively sharing the loads’ currents; that is why there is an increase in the injected current generated by inverter-2 and inverter-3. Consequently, the injected voltage of each existing inverter also changes (slightly increases) to accommodate the change in the injected current. The rms voltage profile in percent during the loss of the inverter-1 is illustrated in Figure 12(a). The three-phase currents of all three inverters are portrayed in Figures 12(b), 12(c), and 12(d). The instantaneous voltage waveforms per phase (before the transformer) of inverter-2 (or inverter-3) before and after the instant of inverter-1 loss are depicted in Figures 12(e) and 12(f), respectively. These two figures (Figures 12(e) and 12(f)) show a difference in the pattern of the voltage pulses, where the pulses of the voltage waveform (after the loss of inverter-1) are wider; this indicates more injected voltage at inverters’ bus to push more currents as shown in Figures 12(c) and 12(d). Almost an adverse performance can be obtained when a new inverter is connected to the microgrid.

6. Simulation Results of Proposed Operational Scheme in Grid-Connected Mode

The microgrid has an advantage of autonomous working, or working connected to the power grid. The connection between both grids fetches some merits to the microgrid and power grid as well [30]. The current references of (33) are plugged to the current control loop as shown in Figure 2 so as to operate the power control. In order to have a smooth transition from the microgrid operation (microgrid mode) to the grid-connected mode, the following procedure is suggested.(1)The current control is adjusted such that its input current references are transferred from the microgrid operation (upper block-voltage control of Figure 2) to the grid-connected mode (lower block-power control of Figure 2). Meaning that the outputs of the voltage control (upper block) in Figure 2 become zero.(2)The power references are adjusted to barely cover the loads’ power inside the microgrid only. Therefore, the exchanged power and tie-feeder current between both grids are zero. At this operating condition, the connection between both grids can be established.(3)After step-2 is successfully realized, the power references are adjusted such that the power can be injected or absorbed in the tie feeder between both grids.

This aforementioned transition from the microgrid operation (microgrid mode) to the grid-connected mode is depicted in Figure 13(a), which shows the three steps mentioned above and the active power tracking performance to arbitrary power references. Also, the reactive power performance is depicted in Figure 13(b). In Figure 13 at time t = 20 s, the operation is intentionally transferred from the microgrid operation (microgrid mode) to the grid-connected mode. The transient time is almost 1 s for any transition in power and the performance tends to be of 1st order due to the suggested adaptation mechanism of the PI controller parameters.

Figure 14 gives more clarification to Figure 13, and it proves the advantages of connecting the microgrid to the main power grid for the same power curves of Figure 13. As shown in Figure 14 from time t = 20 s till t = 22.5 s, the power references are adjusted to cover the loads inside the microgrid only. Therefore, the exchanged power between both grids is zero (=0). If the power reference is greater than what the loads inside the microgrid need, then the rest of the generated power () is exported from the microgrid (MG) to the power grid (PG) and vice versa. The exchanged active power between the microgrid and power grid (), microgrid load power (), and generated power of the microgrid () is depicted in Figure 14(a), and in Figure 14(b) the reactive power is depicted.

7. Conclusion

This paper presents an innovative operational scheme for the microgrid. This scheme has a new adaptive PI controller, which is based on an improved normalized least mean fourth algorithm. This adaptation mechanism is developed with a variable step-size technique in order to fasten its convergence and enhance its stability. The proposed operational scheme along with the developed controller is used to stabilize the magnitude and frequency of the voltage across the loads. This voltage is maintained around 1 pu (100% percent) at different loading conditions such as balanced, unbalanced, and nonlinear loads. The proposed scheme outperforms other linear, adaptive, and nonlinear controllers based similar schemes for the same microgrid operating conditions. Also, the propounded scheme has an advantage of enabling the microgrid to operate in a grid-connected mode and to seamlessly transfer from the microgrid mode (voltage control mode) to grid-connected mode (power control mode).

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Disclosure

A. Elnady serves as an Adjunct Associate Professor at Royal Military College of Canada.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Funding

This research work is sponsored by the University of Sharjah under the grant no 1802040393-P.