1. Introduction
Global economic growth remains heavily dependent on fossil fuels, and this dependence continues to intensify the greenhouse effect and associated climate risks. Renewable energy development is therefore an important means of reducing dependence on fossil fuels and mitigating these environmental impacts [
1]. However, renewable power generation is inherently intermittent and uncertain, resulting in variable output profiles. These fluctuations increase the risk of mismatches between power generation and load demand, which can disrupt real-time power balance and compromise the safe and reliable operation of the utility grid [
2]. Microgrids can integrate distributed energy resources and coordinate their operation through optimal dispatch. Such coordination can mitigate fluctuations in renewable generation and maintain a regional balance between supply and demand, thereby reducing grid operational risks and supporting the transition toward a low-carbon energy system [
3].
Management of microgrid operations primarily focuses on economic dispatch. Its goal is to optimally schedule the power outputs of distributed energy resources to minimize operating costs while satisfying load demand and system constraints [
4]. However, this objective focuses solely on economic performance, which is insufficient to meet the requirements of modern power systems [
5]. Therefore, economic–environmental dispatch (EED), which incorporates pollutant treatment costs into the optimization objective, balances economic and environmental objectives while satisfying operational constraints [
6,
7].
Microgrid optimal dispatch is characterized by high dimensionality and nonlinearity. When addressing such complex problems, conventional mathematical approaches often incur high computational costs and are prone to becoming trapped in suboptimal solutions [
8,
9]. Consequently, owing to their broad applicability and flexibility, metaheuristic optimization algorithms have become widely used to solve such problems [
10]. Typical examples include particle swarm optimization (PSO) [
11], snake optimizer (SO) [
12], dung beetle optimizer (DBO) [
13], hippopotamus optimization (HO) [
14], artificial rabbits optimization (ARO) [
15], multi-verse optimizer (MVO) [
16], and differential evolution (DE) [
17]. In recent years, improved metaheuristic algorithms have been widely studied for microgrid optimal dispatch problems. Lu et al. [
18] proposed an enhanced sardine optimization algorithm to balance economic and environmental objectives in microgrid systems. Wang et al. [
19] incorporated electric vehicles into the microgrid system and improved the reference-vector-guided evolutionary algorithm by combining a Chebyshev map with an angle penalty distance strategy, thereby reducing the system’s operating and pollutant treatment costs. With fuel costs and pollutant emissions as the optimization objectives, Aldosary [
20] proposed a fractional-order fish migration algorithm and verified its effectiveness in solving the EED problem. Li et al. [
21] adopted an improved marine predators algorithm (MPA) to solve the microgrid dispatch problem and reduce operating costs. Xie et al. [
22] proposed a dynamic classification sparrow search algorithm that divides the population into three groups and assigns a corresponding strategy to each group. The algorithm was applied to isolated microgrid dispatch, reducing operating costs and carbon dioxide emissions. Elattar [
23] proposed a modified harmony search algorithm to minimize fuel costs and pollutant emissions in a renewable-integrated microgrid. Zhao et al. [
24] presented a multi-objective optimal dispatch approach that balances economic costs, renewable energy utilization, and user satisfaction in islanded microgrid dispatch. Chakraborty et al. [
25] used the slime mould algorithm to optimize the economic and environmental performance of microgrids under multiple scenarios.
Existing microgrid energy management predominantly relies on conventional complementary wind–solar configurations. However, in practical operation, the unavailability of a single energy source due to equipment maintenance or sudden meteorological changes poses a considerable challenge to dispatch optimization. Therefore, it is necessary to examine the impact of different power supply configurations on scheduling results to evaluate the applicability of the dispatch strategy. Using a leader artificial rabbits optimization algorithm, Kharrich et al. designed multiple hybrid microgrid configurations for domestic loads, including configurations with both wind and solar resources and those lacking either resource [
26]. Based on a non-dominated sorting nutcracker optimization algorithm, Liu et al. compared microgrid configurations containing both wind and solar resources with those lacking either resource, thereby evaluating the trade-off between economic and environmental performance across different seasons [
27]. Kharrich et al. proposed an optimization method based on a movable damped wave algorithm to analyze the economic and environmental performance of four different power configurations [
28]. Based on improved harris hawks optimization, Mallikarjun et al. compared the economic dispatch performance of a microgrid integrated with a wireless electric vehicle battery charging system under different configurations, such as wind–solar–storage complementarity and renewable energy disconnection [
29]. Yakout et al. proposed an optimization framework for sizing and dispatch based on arctic puffin optimization and compared a wind–solar–storage–diesel configuration with one without photovoltaic (PV) generation [
30].
Therefore, optimization algorithms should be specifically improved according to the characteristics of the problem being addressed. Based on the above studies, this study proposes an improved variant of the red-billed blue magpie optimizer (RBMO), referred to as IRBMO, to solve the economic–environmental dispatch problem of a hybrid microgrid. The main contributions of this work are summarized as follows:
- 1.
A grid-connected hybrid microgrid EED model is established by integrating PV, wind turbines (WT), micro-turbines (MT), fuel cells (FC), and storage batteries (SB). The model jointly considers fuel cost, operation and maintenance cost, grid interaction cost, and pollutant treatment cost, thereby enabling coordinated optimization between economic operation and environmental protection.
- 2.
IRBMO is proposed to solve the nonlinear microgrid dispatch problem. Composite chaotic initialization, an anti-predation mechanism, a multi-stage refined foraging strategy, and a simulated annealing acceptance criterion are incorporated to enhance population diversity, convergence accuracy, and the ability to avoid local optima.
- 3.
IRBMO is evaluated on the CEC2019 benchmark functions against eight optimizers: RBMO, PSO, SO, DBO, HO, ARO, MVO, and DE. The Wilcoxon and Friedman tests are used to assess statistical significance, while sensitivity analysis and component-wise ablation experiments are conducted to further evaluate the performance of IRBMO.
- 4.
Three microgrid configurations—namely, PV-WT-MT-FC-SB, WT-MT-FC-SB, and PV-MT-FC-SB—are constructed to evaluate the influence of different renewable energy configurations on dispatch performance. The comparative results confirm that the complete PV-WT-MT-FC-SB system provides the most economical and environmentally friendly operation scheme under the coordination of IRBMO.
The subsequent parts of this work are arranged as follows:
Section 2 describes the modeling of the microgrid components, along with the objective functions and constraints.
Section 3 details the underlying principles of IRBMO.
Section 4 evaluates the performance of IRBMO.
Section 5 presents the simulation results of the microgrid EED.
Section 6 outlines the conclusions of this research.
5. Case Study
5.1. Experimental Data
To validate the performance of the formulated model and the optimization algorithm, a specific locale in Northeast China is chosen for empirical analysis. Endowed with abundant wind and solar resources as well as a solid industrial foundation, this region serves as a pivotal area for conducting research on clean energy integration and regional energy system optimization.
Figure 4 illustrates the wind and solar power outputs, electrical loads, and temperature data for typical days in summer and winter within this region.
To incentivize users to optimize their consumption schedules and maintain a robust supply–demand balance, a time-of-use pricing mechanism is implemented. This strategy determines electricity tariffs based on the system’s average marginal operational costs.
Table 8 presents the time-of-use electricity prices in this region.
The pollutant treatment costs and the corresponding emission coefficients are presented in
Table 9. The maintenance cost coefficients of the microgrid components are summarized in
Table 10, while their principal technical parameters and operating limits are provided in
Table 11.
5.2. Simulation Results Analysis
To evaluate the effectiveness of IRBMO in solving the optimal dispatch problem of the grid-connected microgrid, three representative scenarios are considered: Scenario 1 includes PV, WT, MT, FC, and SB; Scenario 2 includes WT, MT, FC, and SB; and Scenario 3 includes PV, MT, FC, and SB.
Comparative experiments are conducted using IRBMO and eight benchmark algorithms. The population size and maximum number of iterations are set to 50 and 200, respectively, for all scenarios. Each algorithm is independently run 20 times for each case, and the mean results are used to determine the final dispatch scheme.
5.2.1. Scenario 1: PV-WT-MT-FC-SB Microgrid
Scenario 1 is the base operating condition, with PV, WT, MT, FC, and SB all available. As shown in
Table 12, IRBMO achieves the lowest mean comprehensive cost among the nine algorithms in both seasons. Its mean comprehensive costs are 1578.20 Chinese yuan (CNY) in summer and 1535.46 CNY in winter, with standard deviations of 19.37 and 20.99, respectively. These standard deviations are the second lowest among the compared algorithms, indicating stable performance across independent runs. The corresponding mean emissions are 850.66 kg and 792.51 kg. IRBMO records the lowest mean emissions in summer, while its winter value is slightly higher than the 789.78 kg obtained by ARO. Compared with the eight benchmark algorithms, IRBMO reduces the mean comprehensive cost by 0.47–2.58% in summer and 0.54–3.83% in winter.
Figure 5 shows a rapid decrease in the IRBMO fitness value during the initial iterations, followed by convergence to a relatively low and stable level. This pattern indicates competitive convergence performance under the specified population size and maximum iteration limit of 200.
Figure 6 shows the dispatch schemes obtained by IRBMO for summer and winter. PV and WT directly supply the load when renewable generation is available, while MT, FC, SB, and the utility grid compensate for changes in renewable output and demand. In summer, PV supplies part of the daytime load, and MT and FC increase their outputs during several high-demand periods, particularly when PV generation declines. The lower winter PV output requires greater contributions from MT, FC, and the utility grid. SB alternates between charging and discharging over the scheduling horizon. It generally stores energy when electricity prices are relatively low or renewable generation is sufficient and releases energy during high-price or high-demand periods. This behavior shifts energy across time, reduces power supply pressure during peak-load periods, and supports the coordinated operation of the microgrid.
5.2.2. Scenario 2: WT-MT-FC-SB Microgrid
Scenario 2 represents the restricted operating condition without PV, while WT, MT, FC, and SB remain available.
Table 13 shows that IRBMO achieves the lowest mean comprehensive cost among the nine algorithms in both seasons, with values of 1696.85 CNY in summer and 1586.41 CNY in winter. The corresponding standard deviations are 17.32 and 21.53, both ranking second among the compared algorithms and indicating stable performance across independent runs. The mean emissions are 929.04 kg in summer and 825.00 kg in winter. IRBMO records the lowest mean emissions in summer, while its winter value is slightly higher than the 816.96 kg obtained by ARO. Compared with the eight benchmark algorithms, IRBMO reduces the mean comprehensive cost by 0.41–2.82% in summer and 0.36–4.47% in winter.
Figure 7 shows that the IRBMO fitness value decreases rapidly during the initial iterations and then converges to a relatively low and stable level. This pattern indicates competitive convergence performance under the specified population size and maximum iteration limit of 200.
Figure 8 shows the dispatch schemes obtained by IRBMO for summer and winter without PV generation. WT supplies renewable power throughout the scheduling horizon, while MT and FC adjust their outputs in response to changes in wind generation and load demand. Their outputs increase during several high-demand periods, particularly in the evening. The utility grid supplies the remaining deficit or absorbs surplus power according to the balance between generation and demand.
The SB power profile reflects the absence of surplus photovoltaic energy for daytime charging. In summer, SB frequently switches between charging and discharging to respond to changes in WT generation and load demand. In winter, it mainly charges during the first half of the scheduling horizon and discharges during several high-load periods in the evening and at night. Charging at the end of the scheduling horizon also satisfies the terminal SOC constraint. Without PV generation, SB transfers energy across time, partly compensates for the loss of daytime photovoltaic power, and reduces the power supply burden on MT, FC, and the utility grid during high-load periods.
5.2.3. Scenario 3: PV-MT-FC-SB Microgrid
Scenario 3 represents the restricted operating condition without WT, while PV, MT, FC, and SB remain available. As shown in
Table 14, IRBMO obtains mean comprehensive costs of 1795.06 CNY in summer and 1875.62 CNY in winter. In summer, ARO achieves the lowest value of 1793.66 CNY, which is 1.40 CNY lower than the IRBMO result. IRBMO nevertheless records the lowest standard deviation of 19.68. In winter, IRBMO achieves the lowest mean comprehensive cost of 1875.62 CNY, with a standard deviation of 17.25. Its mean emissions are 1059.09 kg in summer and 1113.91 kg in winter. ARO records the lowest mean emissions in both seasons, while IRBMO ranks second. Compared with seven of the eight benchmark algorithms, IRBMO reduces the summer mean comprehensive cost by 0.64–2.39%, but its cost is 0.08% higher than that obtained by ARO. In winter, IRBMO reduces the mean comprehensive cost by 0.10–1.85% relative to all eight benchmark algorithms.
Figure 9 shows that the IRBMO fitness value decreases rapidly during the initial iterations and then converges to a relatively low and stable level. This pattern indicates competitive convergence performance under the specified population size and maximum iteration limit of 200, even without WT generation.
Figure 10 shows the dispatch schemes obtained by IRBMO for summer and winter without WT generation. PV generates power only during daylight hours and reaches its maximum output around midday. Without the continuous contribution of WT, MT and FC supply a substantial share of the load throughout the scheduling horizon and generally increase their outputs during evening high-demand periods as PV generation declines. The utility grid responds to changes in PV generation and load demand by supplying the remaining deficit or absorbing surplus power.
The SB power profile also reflects the absence of WT. Because surplus wind energy is unavailable for charging, SB operation depends mainly on daytime PV generation, time-of-use electricity prices, and load demand. In summer, SB generally charges during several early low-demand periods and discharges during selected daytime and evening periods. In winter, it switches more frequently between charging and discharging in response to changes in PV generation and demand. SB therefore transfers energy across time, partly compensates for the loss of continuous wind power, and reduces the power supply burden on MT, FC, and the utility grid during high-demand periods.
5.3. Comparative Analysis of Dispatch Results Under Three Scenarios
Table 12,
Table 13 and
Table 14 compare the comprehensive costs, standard deviations, emissions, and cost saving rates of the nine algorithms. IRBMO achieves the lowest mean comprehensive cost in five of the six operating cases. The exception is Scenario 3 in summer, where ARO obtains 1793.66 CNY, 1.40 CNY less than the 1795.06 CNY obtained by IRBMO. IRBMO also records relatively small standard deviations across the six cases, indicating stable performance over independent runs, and its mean emissions rank first or second in every case. Overall, IRBMO provides competitive comprehensive cost performance and optimization stability.
A comparison of the three scenarios shows how renewable-energy availability affects microgrid operation. Relative to Scenario 1, removing PV in Scenario 2 increases the IRBMO mean comprehensive cost by 7.52% in summer and 3.32% in winter; the corresponding mean emissions increase by 9.21% and 4.10%. Removing WT in Scenario 3 increases the mean comprehensive cost by 13.74% in summer and 22.15% in winter, while mean emissions rise by 24.50% and 40.55%. The simultaneous availability of PV and WT therefore produces lower comprehensive costs and emissions under the profiles considered. The larger increases observed without WT also indicate that WT provides more continuous renewable power support than PV in these cases.
Table 15 reports the average runtime of each algorithm across the six operating cases. IRBMO requires 5.246 s on average, less than the 6.026 s required by HO but more than the runtimes of the other benchmark algorithms. The additional computational cost arises from the introduction of multiple improvement mechanisms.
As shown in
Table 16, IRBMO obtains the lowest mean rank of 3.108 and ranks first overall. ARO, MVO, and HO follow with mean ranks of 3.683, 4.550, and 4.783, respectively. The Friedman test identifies overall performance differences among the nine algorithms, with IRBMO achieving the best overall ranking for comprehensive cost.
5.4. Discussion
The results are based on deterministic hourly profiles of renewable generation, load demand, and electricity prices. This assumption provides a consistent basis for evaluating IRBMO and comparing the three microgrid configurations, but the resulting schedules are optimal only for the specified profiles. In practice, forecast errors in PV and WT output or load demand may require additional grid purchases, more frequent battery regulation, or higher MT and FC outputs. These adjustments may affect operating costs, pollutant emissions, and constraint satisfaction. Differences between forecast and actual electricity prices may also alter the preferred periods for grid transactions and battery charging or discharging.
The typical summer and winter days represent the main seasonal characteristics of the investigated region, but they do not capture daily variability, extreme operating conditions, prolonged periods of low renewable generation, or correlations among renewable generation, load demand, and electricity prices. The reported costs and emissions therefore cannot be directly extrapolated to annual operation. Moreover, the framework has been validated only through MATLAB simulations. Although the results confirm its effectiveness for the formulated dispatch problem, they do not fully represent the engineering conditions of an operating microgrid. Additional validation is needed to assess the real-time feasibility and operational reliability of the framework in practical systems.
Future work will model uncertainties in renewable generation, load demand, and electricity prices through stochastic optimization, robust optimization, or rolling-horizon dispatch. The practical applicability of the framework will also be assessed through hardware-in-the-loop testing, real-time digital simulation, and validation with operational microgrid data.
6. Conclusions
This study proposes IRBMO for the economic–environmental dispatch of grid-connected microgrids. The algorithm integrates composite chaotic initialization, an anti-predation mechanism, a multi-stage fine foraging strategy, and a simulated annealing acceptance mechanism to improve population diversity and solution accuracy while reducing the risk of becoming trapped in local optima. IRBMO was evaluated on ten CEC2019 benchmark functions and compared with RBMO, PSO, SO, DBO, HO, ARO, MVO, and DE. The results indicate competitive solution accuracy and optimization stability. In the ablation study, the complete IRBMO obtains the lowest average rank of 2.00 among the six variants, showing that the four strategies work more effectively in combination.
A normalized objective function places operating and environmental treatment costs on comparable scales. The microgrid model includes PV, WT, MT, FC, SB, and interaction with the utility grid. Three system configurations were examined under typical summer and winter conditions. Across 20 independent runs, IRBMO achieves the lowest mean comprehensive cost in five of the six operating cases. In these cases, it reduces the mean comprehensive cost by 0.10% to 4.47% relative to the eight benchmark algorithms. In Scenario 3 under summer conditions, IRBMO reduces the mean comprehensive cost by 0.64% to 2.39% relative to seven benchmark algorithms. Comparing the three configurations shows that retaining both renewable sources reduces comprehensive cost and emissions under the adopted profiles. The Friedman test identifies significant overall performance differences among the nine algorithms, and IRBMO ranks first with the lowest mean rank of 3.108.
This study uses deterministic profiles of renewable generation, load demand, and electricity prices. Future work will model these uncertainties and examine weight sensitivity and Pareto-based multi-objective optimization. Hardware-in-the-loop experiments and physical microgrid test-platform studies will be used to evaluate the real-time feasibility, control performance, and practical applicability of the proposed scheduling method.