1. Introduction
In a microgrid with multiple power generators, economic dispatch is desirable so that the total operational costs are minimized while generating for a given demand. The economic dispatch (ED) problem has been solved in various ways by [
1,
2,
3,
4]. Various mathematically based optimization techniques, such as lambda iteration, gradient, Newton method, base-point participation factor method, and others, can be used to resolve economic dispatch [
5]. Many researchers have also chosen to use hybrid techniques such as artificial intelligence and optimization techniques to solve economic dispatch. This improves one technique’s performance while using another to discover a superior answer. To address ED, the available optimization techniques to be utilized are genetic algorithm (GA), particle swarm optimization (PSO), differential evolution (DE), firefly algorithm (FA), artificial bee colony (ABC), etc. [
6,
7,
8,
9,
10]. Consensus-based algorithms are studied in [
5,
11,
12,
13]. Demand side management was discussed and introduced in [
14,
15,
16,
17,
18,
19,
20]. In [
21,
22,
23,
24], the effects of noise were discussed. The economic dispatch problem is solved in [
25,
26,
27,
28,
29,
30,
31] without using a distributed system or central controller. In most islanded microgrids analysis, only active power is considered for stability. The reactive power irregularities and system noise conditions are hardly taken into account. This paper focuses on three algorithms, namely the Lagrange, firefly, and artificial bee colony algorithm in the presence of low, medium, and high levels of noise in the microgrid system. The Lagrange method was chosen due to its wide usage and for comparison with the least used firefly and ABC algorithms.
To compensate for voltage and phase angle instability, FACTS devices were mostly used. One of the many tools frequently used for this purpose is STATCOM. Shunt compensation is provided by STATCOM using a voltage source converter [
32]. Another benefit is that it offers the system lower damping, fewer harmonics, better response, and an enhanced voltage profile [
33]. Ref. [
34] uses DSTATCOM with electric vehicles in microgrids to enhance its performance by stabilizing voltage and frequency profiles. In this study, a STATCOM controller is used to efficiently provide voltage stability and less phase angle fluctuations in an islanded mode of microgrid under a variety of noise situations. To give the system general stability, reactive power is included in the study.
Many researchers have studied the impact of the virtual synchronous generator (VSG) on islanded microgrids. The authors of [
35] introduce two PI controllers to improve frequency response when a disturbance is introduced in the system. A novel frequency control method is introduced in [
36] by designing an event-trigger condition that helps in frequency restoration. The authors of [
37] proposed a distributed model predictive control strategy for islanded microgrids to restore voltage and frequency when disturbance happens. Furthermore, the authors of [
38] introduced model predictive control for primary frequency regulation for load switching. Due to less stability in droop control, the VSG strategy is preferred.
Evaluation of Lagrange, firefly, and artificial bee colony algorithms was conducted for the following cases in this paper:
Incremental cost variation in microgrid using VSG—STATCOM for the noise level of 0.8.
Active power variation with and without VSG—STATCOM in the microgrid for noise levels of 0.0, 0.2, 0.5, and 0.8.
Reactive power variation with and without VSG—STATCOM in the microgrid for noise levels of 0.0, 0.2, 0.5, and 0.8.
The paper is categorized into sections as follows:
Section 2 discusses microgrid structure. The economic dispatch problem using the Lagrange method, firefly, and artificial bee colony algorithm is defined in
Section 3.
Section 4 discusses a consensus-based noise-resilient economic dispatch strategy for distributed systems.
Section 5 introduces the STATCOM controller. The VSG strategy is discussed in
Section 6. Results and discussions are presented in
Section 7 and conclusions are presented in
Section 8 of this paper.
4. Consensus-Based Strategy for Noise [24]
The communication link for the microgrid was created. Each generator has a corresponding agent that collects information from the unit to which it corresponds. All of the agents have data sharing and communication capabilities [
24]. Our microgrid in islanded mode comprises three generation units, and the system has a total of three agents, each of whom is connected to a distinct generation unit. Agents exchange information that they have received, gathered, and processed with one another. We understand each unit’s present status thanks to this interaction. The information obtained from the agent(s) is utilized to change the output power from every unit in order to lower the total cost of the microgrid system. For this investigation, the sources of noise include interference from electric and magnetic fields, environmental noise, and noise from the grid’s components. Mechanical parts generate noise. Devices also produce harmonics and high-frequency switching noise. Noise is also a result of communication delays. This is taken into account when the load changes because the demand prediction has changed. The noises due to communication between units and between units and agents are also included in this method. They are modeled as Gaussian noise [
29]. Communication links between agents are depicted as c
12, c
21, c
23, c
32, c
31, c
13. These communication links help share data between each agent about the incremental cost and output power generated from each unit. They help in deciding the optimal incremental cost and generation power for each unit to achieve economic dispatch.
Before exchanging a unit’s data with another agent, each agent calculates the corresponding incremental cost of that particular unit. The set point of output power is established using the data and provided to the appropriate generating units. The three units will change their generation capacity to reach equal incremental costs in order to address the economic dispatch issue. As a result, microgrid costs are decreased. The authors of [
24,
39,
40] have equated as follows:
where Є [r] = IC of the unit at rth iteration, Є [r + 1] = IC of unit at (r + 1)th iteration, Φ[r] = step-size, G = n × n diagonal matrix, H
1 and H
2 = n × m matrix, and C[r] = noises’ communication link.
G (0.2 noise level) = diag [0.2 0.2 0.2]
G (0.5 noise level) = diag [0.5 0.5 0.5]
G (0.8 noise level) = diag [0.8 0.8 0.8]
The equation is given as [
40]:
Z[n + 1] = Z[n] + µ[n][P z[n] + WN[n]]
where Z
avg[n + 1] are the desired IC set points for each unit.
5. STATCOM Controller Model
A static synchronous compensator/condenser is another name for STATCOM. It is a well-known technology for controlling voltage. It is a member of the flexible alternating current transmission system (FACTS) family, which is utilized to improve the controllability of the transmission system and helps increase power transfer capability. It accomplishes this by providing the microgrid with reactive power. In addition to STATCOM, a PI (proportional integral) controller is added. The system’s voltage flicker is lessened by the PI controller [
43].
Although a static VAR compensator can be utilized to maintain voltage stability, STATCOM has a constant current characteristic at voltages below its predetermined low limit, giving it better qualities overall. STATCOMs are more expensive than static VAR compensation, but they also respond more quickly [
44]. The STATCOM model with a PI controller is shown in
Figure 3 below. α is the phase angle of the output voltage.
The reactive electricity needed to keep the microgrid in balance is provided by STATCOM. Due to fluctuating PV generation and wind generator output (caused by changing solar radiation and wind speed throughout the day), the balancing of the reactive power load is necessary. The following assumption is made when formulating the reactive power balancing equation: reactive power is fed into the bus by the STATCOM controller, PV unit, and steam turbine unit. Also, reactive power is fed to the load and DFIG that is received from the bus [
39].
The reactive power balance equation is as follows:
The terminal voltage fluctuates in response to changes in the load or noise level, hence modifying the reactive power output of the various microgrid components. This alters the microgrid’s output voltage [
32]:
where
= reactive power output for PV unit,
= reactive power output for steam turbine unit,
= reactive power output for STATCOM controller,
= reactive power output for consumer load,
= reactive power output for wind generator unit, and
= derivative of the reactive output power of various components with respect to time and voltage.
The main goal of this analysis is to lessen damping in the microgrid system and increase system stability in noisy conditions. A minimum increase in the system’s terminal voltage and less damping help to achieve a voltage stability margin. Some performance indices are utilized to reduce overshoot, rising time, settling time, and steady-state error of terminal voltage, including integral absolute error (IAE), integral time-weighted absolute error (ITAE), and integral square error (ISE). The square of the error is continuously integrated by ISE. Larger errors will incur greater penalties under ISE than smaller ones. As a result, there are quick responses accompanied by oscillations with a low amplitude.
6. Virtual Synchronous Generator (VSG) Strategy
The VSG control system [
45] is a thorough system that integrates a number of modules to enable the efficient and effective management of power. The VSG strategy is in charge of modeling the system’s performance and determining its ideal power output. The frequency regulation module, voltage regulation module, grid-connected mode of control module, and SPWM modulation module are also included. A dependable and secure electricity management system is provided by the cooperation of all of these modules. Each modules’ detailed working is provided in [
40].
Power electronic inverters have low system stability when subjected to disturbances and load fluctuations [
46,
47]. The control method is also established, and traditional SG rotation has a considerable output inductance and moment of inertia. By translating the outside properties of the microgrid into an SG, it is possible to compare the power supply of the microgrid to the primary mover. The energy storage system saves any remaining electricity generated by dispersed sources while the microgrid inverter’s inverter and filter modules deliver it to the load.
The second-order equation modeling of the SG is shown in [
45]. As seen in
Figure 4, the rotor motion model encourages system stability. It accomplishes this by adding J and D, where d is the corrective angle, when P
m and P
e are out of sync. Once the grid-connected signal SS has been transmitted, the frequency regulation module selects its reference value depending on the grid side frequency, f
g, range. If the reference value comes within the expected range, it is chosen as f
g; otherwise, it is chosen as f
ref. When the system is operating in island mode, f
ref is used as the reference value [
40]. The power frequency co-efficient k
p value is used by the frequency regulation module to set primary regulation. When necessary, the frequency regulation unit changes to secondary frequency regulation while operating.
7. Results and Discussions
Figure 5 describes the control system and techniques used for the system under study. IC is calculated using the three Lagrange, FA, and ABC algorithms. In accordance with this IC value, the three generating units generate active power for load demand. Before this power is fed to the PCC, its value is sent to the agents connected to each generation unit to improve the effect of noise using the consensus-based algorithm. Any change in the load demand is also implemented during this stem. If optimal IC is not met, then the units are sent a signal via the agents’ system to modify their generation output while satisfying their constraints. Once the optimal IC is reached, it is then sent to VSG (detailed control strategy is available in [
40]) and the STATCOM controller to stabilize active power and compensate for reactive power, respectively. This stabilized power output is then sent to the loads via point of common coupling (PCC).
It is assumed that the initiating states of the STATCOM and VSG control techniques will be identical. They experience the same disturbance and stabilize after it reaches the steady-state condition. The optimization percentage D
n-s% and the difference offset ratio D
1-0% are utilized as the criteria for evaluating the parameters. The ratio of the two offsets under the two defined methods to the initial value, or D
1-0%, indicates how much the offset under the new approach has decreased in comparison to the offset under the standard technique. It is provided as [
46]:
where A
0 = initial value of the parameter, A
1s = parameter’s value when the standard strategy is stable, and A
1n = parameter’s value when the new strategy is stable.
The parameter optimization of the new method in comparison to the traditional strategy is represented by Dn-s%. It is expressed as a percentage.
Where the relevant parameter’s character determines what ‘±’ means.
MATLAB is used for this study’s simulations. When there is no noise present in the system, the microgrid is initially evaluated. To assess how well the system performs in the absence of noise, the preceding section’s economic dispatch algorithms are used coupled with reactive power compensation. The system is subjected to noise with a level of 0.2 variance, comparing its performance. The noise level is raised to 0.5 variance during the third condition and to 0.8 variance during the final condition. With the inclusion of various noise levels, load variation at 0.3 s is introduced in the system. This load varies due to changes in the load demand. The output power of the three generator units seeks to preserve its ideal dispatch schedule in all instances. In different noise environments,
Figure 6 compares the microgrid system’s terminal voltage with respect to time. As can be observed from the graph, the high noise level of 0.8 (purple legend) makes it difficult to stabilize the microgrid while it is in islanded mode. It takes about 35 s for the system to reach a steady-state value. Reactive power correction aids in a very quick system stabilization for low to medium noise levels. The system stabilizes in less than 20 s. By examining the graph’s red, black, and pink legends, which represent low, medium, and high noise variance, respectively, it is also possible to draw this conclusion.
Figure 7,
Figure 8 and
Figure 9 compare incremental cost (IC) for the three generating units for noise level of 0.8. For the Lagrange method, it takes about 60 s to reach the optimal IC of 6 USD/kWh, Whereas in firefly and ABC algorithms, it takes about 55 s and 50 s, respectively, to reach the optimal value. The ABC algorithm outperforms the two in terms of IC in the islanded microgrid.
Figure 10,
Figure 11,
Figure 12 and
Figure 13 compare the microgrid system’s voltage fluctuations with respect to time for the three different algorithms. The system is compared for all noise levels (no noise, 0.2, 0.5, and 0.8 noise variance) with and without a VSG control strategy. It can be concluded that for all cases, the inclusion of VSG helps control the fluctuations much faster. In most cases, it takes about 0.85 s to reach stability. However, it can be seen that the ABC algorithm (green legend) outperforms other algorithms and reaches stability faster in all noise variance. Also, the voltage fluctuations are observed to be low in the ABC algorithm compared to the firefly and Lagrange methods. It is also observed that most units reach 300 volts faster and with fewer fluctuations when the ABC-VSG strategy is used (green dashed line legend).
A similar conclusion can be drawn for frequency fluctuations from
Figure 14,
Figure 15,
Figure 16 and
Figure 17. The average time taken to reach 60 Hz frequency is about 0.75 s in the ABC algorithm when used with VSG for all noise variances. For other cases, the time taken to reach a stable value of 60 Hz is more, as seen from the graphs. Moreover, the frequency fluctuations are less for the ABC-VSG strategy (green dashed line legend).
Figure 18 compares the microgrid system’s active power fluctuations with respect to time using the Lagrange method. It is observed that there is more fluctuation in the system with higher noise variance. But the addition of VSG technology helps in the better transition of and much smoother functioning of the system. On average, it takes about 0.9 s for the system to stabilize. Similarly, it is observed from
Figure 19 that a high noise level makes it difficult to stabilize the islanded microgrid for the firefly algorithm and takes about 1 s in most cases. Again, VSG performs better with this algorithm. ABC algorithm’s performance is shown in
Figure 20; it can lower fluctuations for all noise variances at a faster rate of about 0.7 s on average than other algorithms, and it also performs better when used with the VSG control strategy.
Figure 21,
Figure 22 and
Figure 23 compare the reactive power response for all algorithms, and it can be concluded that with higher noise variances, it becomes difficult to manage reactive power compensation. However, with the STATCOM-VSG strategy, compensation performance increases in all three algorithms. It is observed that the Lagrange and ABC methods work slightly better than the firefly algorithm. It takes less than 1 s to compensate for reactive power in Lagrange and ABC algorithms. As seen from
Figure 22, it will take more than 1 s for the system to compensate for the optimal reactive power value of 8 kVar. In all cases, it was observed that the ABC algorithm response rate is higher than the Lagrange and firefly algorithms.
Table 4 provides the initial values to calculate the difference offset ratio for Lagrange formulation. As demonstrated in
Figure 10,
Figure 11,
Figure 12 and
Figure 13, the output voltage under the VSG control strategy decreases from 300 volts when a variable load is attached, but the voltage fluctuates less with the VSG-STATCOM strategy for all noise levels. A similar finding for frequency is drawn from
Figure 14,
Figure 15,
Figure 16 and
Figure 17 for frequency. With the VSG strategy, the output active power is 14 kW, and the output reactive power is 10 kVar. The differential offset ratio D
1-0% for different algorithms is shown in
Table 4,
Table 5 and
Table 6 for both scenarios with and without VSG. The tables’ results show that using the STATCOM-VSG technique for all system noise variations results in greater reactive power compensation. The difference offset ratio for voltage is 2% in the Lagrange method, 0.83% in the firefly algorithm, and 0.5% in the ABC algorithm. For the frequency parameter, it is 0.67% in Lagrange, 0.33% in firefly, and 0.13% in the ABC algorithm. Similarly, for active and reactive power, the difference offset ratio is the least in the ABC algorithm and highest in the Lagrange method. A settling time of 0.79 s was found to be least in the ABC algorithm. The firefly algorithm settles at 0.92 s, whereas the Lagrange method settles at 0.9 s. The settling time is observed to be less with the VSG strategy. Similarly, maximum overshoot is least for the ABC algorithm with a value of 12.8 kW. Hence, it can be ascertained that the difference in the offset ratio for various parameters is found to be the least in the artificial bee colony algorithm. Thus, it provides a much more secure, stable, cost-effective, and efficient functionality for microgrids.
8. Conclusions
The three discussed algorithms were utilized in this study to examine how the microgrid operates in islanded mode for various noise levels while also providing reactive power compensation. In a shorter time period, it drives the units to the desired incremental cost value. The ABC algorithm reaches 6 USD/kWh IC in about 50 s, whereas the other two algorithms take about a minute to reach this value. In case of voltage fluctuations, 300 V is reached faster in the ABC algorithm (in 0.75 s). For frequency, it takes between 0.75 s and 0.9 s for various noise levels. With a higher noise level of 0.8, it takes longer for frequency to reach 60 Hz for all three algorithms. The ABC algorithm provides a faster response of an average of 0.75 s. Similarly for active power and reactive power, the ABC algorithm takes less than a second to reach their ideal value, whereas it takes longer for the other two methods to reach the desired value. With the inclusion of the VSG control strategy, the system can stabilize much faster in the event of noise and load changes, as seen from the results section. In islanded mode, the performance of the VSG control strategy with the STATCOM controller on voltage, frequency, active power, and reactive power parameters is better.
It can also be concluded that the ABC algorithm performs the best among the other algorithms discussed in this paper. It has a quicker response and less fluctuations for all four parameters. Hence, the ABC algorithm is most suitable for economic dispatch solution with noise, and it provides a reliable and stable islanded microgrid system.