1. Introduction
The microgrid is a small electrical power distribution system that delivers electricity to autonomous locations [
1]. Microgrids may consist of conventional and non-conventional energy sources to provide electric power to a load of specific geographical regions [
2]. In general, microgrids can be classified into two modes based on grid connections, namely grid-connected mode and islanded mode. An islanded microgrid is a small-scale, localized, and self-sustained energy system that can generate, store, and distribute electricity, independently [
3]. The term islanded refers to a microgrid that can operate as an autonomous entity. An islanded microgrid is often designed to serve a specific geographical area, group of customers, industry, etc. The major advantages of an islanded microgrid are as follows: (1) enhancement of energy security, (2) reduction in greenhouse gas emissions, (3) improvement in resilience of local energy infrastructure, etc.
In a microgrid, various sources deliver electric power to meet continuously varying load demands. In general, non-conventional sources are preferred over conventional ones, due to environmental and economic reasons [
4]. Non-conventional sources such as a biodiesel engine generator (BDEG), biogas turbine generator (BGTG), wind turbine generator (WTG) plant, solar photovoltaic (SPV) power plant, aqua-electrolyzer (AE)-based fuel-cell (FC), etc. are preferred to meet load demand [
5,
6,
7,
8,
9,
10,
11,
12]. Among these sources, SPV plants and WTG plants are highly stochastic in nature and weather-dependent. To make a system reliable, conventional sources such as a diesel engine generator (DEG) are incorporated into the system as a backup generation source [
13]. Moreover, energy storage devices (ESDs) are incorporated into the model to store the excess power and to deliver the stored power during switching or emergencies. In [
2,
5,
6,
9], the authors considered a flywheel energy storage system (FESS), battery energy storage system (BESS), and ultra-capacitor as main storage units. In addition to this, superconducting magnetic energy storage (SMES) is also incorporated in the microgrid model due to its fast dynamic response [
10]. Recently, electric vehicles (EVs) gained attention in frequency control due to their high energy density and bidirectional charging-discharging ability [
14]. In addition to this, eco-friendly sources such as BGTG and BDEG are utilized with DGUs and ESD units to supply the load [
7,
8].
Generally, frequency oscillations occur in the system due to sudden changes in load demand, which causes a mismatch in generated output power and load power [
14,
15]. Similarly, uncertainty occurs in the system, caused by variations in load, wind power output, and solar power output leading to frequency oscillations. These oscillations are compensated by decreasing or increasing the active power of controllable sources [
6,
11,
16,
17,
18,
19,
20,
21]. In [
11], a micro-turbine generator (MTG) is utilized as a controllable source to compensate for power variations of solar and wind sources. Further, some control mechanisms like proportional integral-proportional derivative (PI-PD) [
5], PD-PI [
2,
7], type-2 fuzzy proportional integral derivative (PID) [
1,
6], PID [
11], and
[
3,
14] controllers are employed to mitigate frequency deviation in the microgrid.
The primary objective of designing a PID controller is to maintain the frequency within a predefined limit. There are several advanced versions of PID controllers such as adaptive PID, auto-tuned PID, and intelligent PID controller [
11,
16,
17,
18,
19] available in the literature for different applications [
22,
23]. Among these, the conventional PID controller is widely employed in frequency regulation due to simplicity in design and well-accepted performance [
24]. A PID controller must be tuned properly to obtain the desired performance. The performance of the PID controller depends on three tuning parameters, i.e., a proportional constant, an integral constant, and a derivative constant. The manual tuning of the PID controller is time-consuming and needs an expert [
6]. So, controller tuning with the help of rule-based methods is a preferred solution over manual tuning. Rule-based tuning methods require an accurate process model, which is generally challenging to obtain [
25]. Moreover, a mathematical model of the power system is of higher order due to interconnection, which is less appropriate and comparatively complex for control design. Due to this, a higher-order transfer function (HOTF) may be converted into a lower-order transfer function (LOTF) using approximation methods.
In this article, the linearized transfer function of an islanded microgrid and its approximated first-order model are derived. The validation of the approximated model is carried out through step, impulse, and Bode diagrams. Further, a PID controller is designed to regulate the frequency of the islanded microgrid within acceptable bounds. To obtain PID controller gains, tuning is processed with rule-based methods. To implement rule-based methods, a first-order plus dead time (FOPDT) model of the system is needed. To achieve this, various approximation methods have appeared in the literature [
26,
27,
28]. In this article, a step response-based reaction curve is utilized to obtain the FOPDT model. Based on this FOPDT model, rule-based PID tuning is proposed. The PID controller’s applicability in mitigating frequency deviation is illustrated by different plots. Additionally, a comparative study is conducted for frequency regulation for rule-based PID control design. The highlights of the presented article are as follows:
To represent the islanded microgrid model mathematically, an equivalent transfer function is derived with the help of the first-order transfer function of all DGUs and ESDs.
The derived transfer function is approximated into FOPDT form for ascertainment of suitable controller gain parameters.
PID controller tuning is processed with rule-based tuning methods such as Ziegler–Nichols (ZN) step response method [
29], Chien–Hrones–Reswick (CHR) method [
30], approximate m-constrained integral gain optimization (AMIGO) method [
31], Wang and Cluett (WC) method [
32], Wang–Chan–Juang (WCJ) method [
24], and Cohen–Coon (CC) method [
33].
Frequency regulation analysis for all rule-based controllers is conducted.
The utility of the PID control design and employed rule-based controller tuning methods used to mitigate frequency deviation is analyzed by presenting step response, impulse response, Bode plot, and frequency deviation plot.
A brief outline of this contribution is summarized as follows. Generalized architecture and a brief description of DGUs and ESDs with equivalent transfer functions are discussed in
Section 2.
Section 3 demonstrates PID controller design with rule-based tuning methods. The overall transfer function and approximated transfer function of the islanded microgrid are derived in
Section 4. The implementation of rule-based methods and comparative study with controller and without controller are also provided in this section. This discussion follows conclusions that are provided in
Section 5.
2. Islanded-Microgrid: Architecture and Description
In general, an islanded microgrid includes DGUs, ESDs, loads, controllers, and power converters [
34]. DGUs are of small ratings and may be conventional and non-conventional. It is important to understand that the output power of non-conventional sources like solar and wind is variable and uncertain due to variable weather conditions, geographic conditions, etc. To improve overall system reliability, DGUs and ESDs are interconnected through converters.
The schematic block diagram of the islanded microgrid considered in this work is shown in
Figure 1. This model consists of different DGUs such as WTG, SPV panel, DEG, BDEG, BGTG, and MT units. Further, ESDs such as BESS, FESS, AE, FC, and EV units are incorporated. Power produced by DGUs is used to meet load demand, while excess power is stored in ESDs. Converters convert the electric power of DGUs and ESDs into the desired form. A brief overview of the mathematical modeling of DGUs and ESDs with their generalized representation in transfer function form is discussed as follows.
2.1. Mathematical Models of Microgrid Components
2.1.1. Diesel Engine Generator
A DEG is a conventional source utilized as a backup power source to produce electrical power through fuel combustion [
35]. DEG can be modeled as a first-order transfer function
, which is expressed in (
1).
In (
1),
and
stand for gain and time constant of the DEG.
2.1.2. Solar Photovoltaic Panel
The SPV panel converts solar power into electrical power. Produced output power depends on the surface temperature and the amount of radiation that falls on the panel [
36]. Overall the SPV system can be represented by first-order transfer function
, which is expressed as
where
and
are the gain and time constant of the SPV system, respectively.
2.1.3. Wind Turbine Generator
The WTG produces electrical power utilizing the wind speed [
35,
36]. The first-order transfer function
of the WTG can be expressed as given in (
3).
The time constant and gain of the WTG model are represented by the variables
and
, respectively.
2.1.4. Biogas Turbine Generator
Animal waste and biodegradable garbage are used to produce biogas. Produced biogas is used to generate electricity [
8]. The transfer function
of a BGTG can be shown as written in (
4).
In (
4),
,
,
,
,
, and
refer to lead time, lag time, actuator-valve delay, combustion reaction delay, bio-gas delay, and discharge time constant of the BGTG, respectively. Further, the approximated first-order model of (
4) can be represented as
where
and
refer to the gain and time constant of the approximated model of BGTG, respectively.
2.1.5. Biodiesel Engine Generator
Biodiesel is extracted from plants utilizing chemical methods. This biodiesel is used to generate electrical power [
7,
8]. The linearized transfer function
of BDEG model is given as follows:
where
,
,
, and
, respectively, represent valve gain, valve actuator delay, engine gain, and engine time constant of BDEG, respectively. Further,
and
represent the gain and time constant of the approximated first-order model of the BDEG.
2.1.6. Micro-Turbine Generator
The MTG is a small-sized turbine generator set used to produce electricity with the help of liquid or gaseous fuel [
14]. The first-order transfer function
of MTG is given in (
7).
In (
7),
and
represent the gain and time constant of the MTG, respectively.
2.1.7. Aqua-Electrolyzer Fuel Cell
The AE transforms the excess power into hydrogen during off-peak hours and releases it during peak loads. FC uses stored hydrogen as a fuel to produce electrical energy [
6,
7,
37]. The equivalent transfer function
of the AE-based FC unit can be modeled as
where
and
refer to the gain and time constant of AE-based FC unit, respectively.
2.1.8. Battery Energy Storage
The BESS is used to maintain dynamic stability by providing instantaneous power to load for a short time [
36]. The first-order transfer function
of BESS can be written as
where
and
are termed as the gain and time constant of BESS, respectively.
2.1.9. Flywheel Energy Storage
The FESS stores excess energy in the form of kinetic energy during off-peak hours and releases it during peak load conditions [
36]. The transfer function
of FESS can be given as
where
and
represent gain and time constant of FESS, respectively.
2.1.10. Electric Vehicle
An EV can be used as a storage system that can provide power during an emergency to maintain system stability [
35]. The first-order transfer function
of EV can be given as shown in (
11).
In (
11),
and
represent the gain and time constant of EV, respectively.
2.1.11. Generator Dynamics
The transfer function
of the equivalent dynamic microgrid model can be represented as
where
M is the equivalent inertia constant and
D is the damping constant.
2.2. Block Diagram of Islanded Microgrid
The block diagram representation of the islanded microgrid given in
Figure 1 is depicted in
Figure 2. It consists of two loops namely primary control loop and secondary control loop. The primary control loop consists of ESDs whereas the secondary control loop consists of controllable DGUs. Additionally, uncontrollable DGUs like solar and wind are considered disturbances due to their variable power generation. Mathematical models of DGUs and ESDs are expressed in (
1)–(
12).
The nominal values and equivalent first-order transfer functions of all DGUs and ESDs utilized in this model are depicted in
Table 1. The sources like solar and wind are highly stochastic in nature and weather-dependent. Due to this, the generated output power of such sources is variable. To maintain the balance of generated power and load power, controllable DGUs such as BGDG, BGTG, MT, and DEG, are regulated. Additionally, ESDs act as backup power sources and provide sufficient power to load for a short time in emergency conditions. Power adjustments through ESDs act as primary control whereas power management by controllable sources represents secondary control.
The equivalent model of
Figure 2 is demonstrated in
Figure 3 by highlighting DGUs, ESDs, and equivalent system dynamics with their control signals, i.e.,
,
,
,
and disturbance signal
.
The equivalent forward path transfer function can be represented as
. The mathematical representation of
in transfer function form can be written as
where
In (
14) and (
15), numerator coefficients are denoted as
for
, while denominator coefficients are denoted as
for
, respectively. This model is utilized to analyze the dynamic behavior of frequency deviations in the islanded microgrid.
2.3. Relation between Frequency Deviation and Net Generated Power
To maintain frequency within an acceptable range, variations in the interconnected load and output power of wind and solar are compensated by decreasing or increasing output powers of controllable DGUs. The power produced through DGUs and ESDs is the total generated power (
) that is available to meet load power (
). The total power comprises the output powers of WTG, SPV, DEG, MT, BGDG, and BGTG, and exchangeable powers of FESS, BESS, AE-FC, and EV, which is shown as
The power balance equation of the model at any moment is depicted by net power
which is depicted as
The net power
is the difference between total generated power and load power. A mismatch between total power and load power creates a difference that leads to frequency deviations (
). A relation between
and
is expressed as
Frequency deviation (
) can be mitigated by maintaining the balance between (
) and
. To keep
within set bounds, the active power of ESDs and controllable DGUs is adjusted through some control mechanism. In this article, a PID controller is implemented to eliminate frequency deviation in the islanded microgrid.
2.4. Proportional Integral Derivative Controller
The major concern regarding the islanded microgrid containing RESs is ensuring frequency stability. To keep the frequency variation within set bounds, the active power of ESDs and DGUs is adjusted as per load variation. Proper coordination among DGUs and ESDs is required to regulate power flow and maintain the desired frequency. To achieve this purpose, a PID controller is designed and implemented. Closed loop control of islanded microgrid for frequency regulation is depicted in
Figure 4.
The PID controller is a widely used feedback controller in industry and provides excellent control performance under varying dynamics of the system [
6]. The block diagram of the PID controller is shown in
Figure 5. The mathematical representation of the PID controller in the time domain is given in (
19).
In (
19),
is controller output,
is the error between the desired and measured values. The constants
and
are the integral and derivative time constants. The PID controller [
39] operates in three modes such as proportional, integral, and derivative. The working of each mode is briefly discussed as follows:
Proportional term reduces the rise time. However, it does not eliminate steady-state error. A large proportional gain value can cause system instability. While, a small gain results in a smaller output response.
Integral term eliminates steady-state errors. But it may have large values of transient response. Overshoot may be caused by a high integral gain. While sluggishness may be caused by a low integral gain.
Derivative term increases the system’s stability, reduces overshoot, and improves transient response. A large derivative gain may make the system unstable.
The performance of the PID controller depends on the tuning of controller parameters. To tune PID parameters, rule-based approaches are utilized in this article.
Figure 5.
Block diagram of PID controller.
Figure 5.
Block diagram of PID controller.
3. Controller Tuning: Rule-Based Methods
The designing of the PID controller means obtaining values of tuning parameters, i.e.,
,
, and
, satisfying closed-loop system performance. Rule-based methods such as ZN step method [
29], CHR method [
30], WC method [
32], WCJ method [
40], AMIGO method [
31], and CC method [
33] are utilized to obtain the values of controller parameters. Rule-based methods are simple to use and have fixed formulae for the calculation of controller parameters [
31,
41]. To design a rule-based PID controller, the FOPDT model is essential, as these rules apply to the FOPDT model [
31].
To achieve the FOPDT model, an approximation of a higher-order transfer function is carried out. Approximation methods such as Skogestad half rule method [
27], Taylor series method [
28], and reaction curve method [
26], etc., are available in the literature [
26,
27,
28]. In this article, the reaction curve method is utilized to obtain the FOPDT model. The generalized FOPTD model can be expressed as given in (
20).
In (
20),
K,
, and
represent the gain, time constant, and delay time of the FOPDT model. Based on these parameters (
), parameters
are framed, which are depicted in (
21).
The parameters given in (
20) and (
21) are utilized in rule-based tuning to obtain PID controller gains. The formulation of controller gains using the parameters of (
20) and (
21) is explained as follows.
3.1. Ziegler–Nichols Method
This method was first proposed by Ziegler and Nichols (ZN) for tuning PID parameters [
29]. This method applies to S-shaped step response and is widely used in industries. This method is applicable for the FOPDT model, which is depicted in (
20). The ZN tuning rule for PID controller is shown in
Table 2.
3.2. Cohen–Coon Method
The ZN method exhibits a sluggish steady-state response when there is a substantial process delay as compared to the open-loop time constant [
33]. The Cohen–Coon (CC) method provides a solution to overcome the limitations of the ZN method by modifying tuning rules with the help of parameter
a.
Table 3 provides the CC tuning rule for PID gains utilizing FOPDT parameters.
3.3. Wang–Cluett Method
Wang and Cluett [
42] considered the FOPDT model and conducted an experimental study to derive a tuning rule for the PID controller. The tuning rule utilizes parameters (
) of reaction curve response and parameter
. Utilizing
, the tuning rule is framed and is depicted in
Table 4.
3.4. Wang–Chan–Juang Method
The Wang–Chan–Juang (WCJ) tuning method provides good performance for many processes and can achieve a desired trade-off between stability and performance [
40]. The tuning rule for PID parameters is tabulated in
Table 5.
3.5. Chien–Hrones–Reswick Method
The Chien–Hrones–Reswick (CHR) method evolved from the Ziegler–Nichols step response method. The CHR method possesses the flexibility of fine-tuning for both set point (SP) tracking and load rejection (LR) [
30]. The CHR method provides tuning rules for no overshoot, i.e., 0% and a 20% overshoot.
Table 6 outlines tuning rules for the PID controller for set point tracking and load rejection based on
and
.
3.6. Approximate M-Constrained Integral Gain Optimization Method
Approximate m-constrained integral gain optimization (AMIGO) is a design method obtained using simple parameter fitting [
41]. The parameters of the model are determined by the 63% rule. This method utilizes parameters of the reaction curve to frame a rule for the calculation of controller parameters. The tuning rule for PID parameters is tabulated in
Table 7.
5. Conclusions
The presented research article addresses the significant outcomes achieved in the frequency regulation of an islanded microgrid by employing a reaction curve-assisted Wang–Chan–Juaang (WCJ) tuning method for effective control design. The PID-based control design strategy is implemented on a linearized transfer function model of the islanded microgrid. The linearized islanded microgrid transfer function model is then approximated into an FOPDT form. One of the main contributions of this presented work is the successful utilization and implementation of the reaction curve method in the ascertainment of the FOPDT form of the linearized islanded microgrid transfer function model. Further, other rule-based methods, namely the ZN method, AMIGO method, CC method, CHR method, and WC method are involved in tuning the PID controller. A comparative analysis is conducted to identify the most effective tuning method to achieve better frequency regulation of the islanded microgrid. Among all rule-based tuning methods, the WCJ method performed better than other exploited tuning methods such as ZN, CHR, WC, AMIGO, and CC methods. To prove the effectiveness of the WCJ method, responses are presented to demonstrate its impact on transient response and frequency deviation. In support of the presented control design approach for frequency regulation of islanded microgrid system, tabulated data of tuning parameters and time domain specifications are also presented to validate the efficacy and applicability of the proposed control design strategy.
In the future, PID controller tuning can be accomplished by incorporating learning-based optimization approaches as an integration of advanced control techniques with experimental validation. Additionally, the fractional-order form of control design can be employed as an extended form of PID controller for frequency control. Another promising area for a possible extension of the presented work is the cyber-physical security of microgrids by addressing the cyber-physical security challenges associated with the implementation of advanced control strategies and resilience of microgrids.