Next Article in Journal
Construction of Multi-Scale Fusion Attention Unified Perceptual Parsing Networks for Semantic Segmentation of Mangrove Remote Sensing Images
Previous Article in Journal
A Near-Ultraviolet Photodetector Based on the TaC: Cu/4 H Silicon Carbide Heterostructure
Previous Article in Special Issue
On Hybrid Nanogrids Energy Management Systems—An Insight into Embedded Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Scheduling of Microgrids Based on an Improved Dung Beetle Optimization Algorithm

by
Yuntao Yue
*,
Haoran Ren
,
Dong Liu
and
Lenian Zhang
School of Electrical and Information Engineering, Beijing University of Civil Engineering and Architecture, Beijing 102616, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(2), 975; https://doi.org/10.3390/app15020975
Submission received: 25 November 2024 / Revised: 15 January 2025 / Accepted: 16 January 2025 / Published: 20 January 2025

Abstract

:
More distributed energy resources are being integrated into microgrid systems, making scheduling more complex and challenging. In order to achieve the utilization of renewable energy and peak load shifting on a microgrid system, an optimal scheduling model is established. Firstly, a microgrid operation model including a photovoltaic array, wind turbine, micro gas turbine, diesel generator, energy storage, and grid connection is constructed, considering the demand response and the uncertainty of wind and solar power. The modeling demand response is determined via a price–demand elasticity matrix, whereas the uncertainty of wind and solar power is established using Monte Carlo sampling and a K-means clustering algorithm. Secondly, a multi-objective function that includes operational and environmental treatment costs is constructed. To optimize the objective function, an Improved Dung Beetle Optimization algorithm (IDBO) is proposed. A tent mapping, non-dominated sorting, and reverse elite learning strategy is proposed to improve the Dung Beetle Optimization algorithm (DBO); therefore, the IDBO is developed. Finally, the proposed model and algorithm are validated through some simulation experiments. A benchmark function test proves that IDBO has a fast convergence speed and high accuracy. The microgrid system scheduled by IDBO has the lowest total cost, and its ability to achieve peak load shifting and improve the utilization of renewable energy is proved through tests involving different scenarios. The results show that compared with traditional optimal scheduling models and algorithms, this approach is more reliable and cost-effective.

1. Introduction

The energy demand is rising, and fossil resources like coal, diesel, and natural gas are still important for both production and daily life [1,2]. However, excessive use of fossil resources is causing an increasing environmental problem, which threatens natural ecosystems [3]. As a result, renewable energy (RE) sources like wind and solar power are highly anticipated. The microgrid (MG) is seen as a system that allows fossil and REs to work in a coordinated way.
MG is a small power-generation and distribution system composed of distributed generations (DGs), Battery Energy Storage Systems (BESSs), and loads. Fossil-energy-generation units, such as diesel generators (DEs) and micro gas turbines (MTs), together with RE-generation units, such as wind turbines (WTs) and photovoltaic panels (PVs), collectively form the DGs. They operate collaboratively to provide a reliable power supply [4]. MG was proposed to achieve flexible and efficient use of distributed energy sources and to address the challenge of integrating DGs into the grid. The development and promotion of MG can greatly advance the integration of fossil and RE, ensuring a highly reliable energy supply to loads in multiple forms. This is an effective way to transition from traditional grids to smart grids. The scale of distributed RE generation is expanding, and its role in MG is becoming prominent.
However, RE generation depends on real-time weather conditions, making it unpredictable. Directly integrating RE will lead to a negative impact on the safety and stability of MG. Fossil energy generation also faces uncertainties, such as fluctuating operational costs and environmental treatment costs, which may impact grid interaction [5,6]. As a result, the multiple power sources involved mean that managing and optimizing the scheduling of microgrids has become a complex problem involving many constraints. In recent years, the demand response (DR) and the uncertainty of wind and solar power have been proposed to describe issues resulting from unpredictability in MG scheduling. But this will make the MG operation more complex to schedule. Finding efficient ways to resolve these problems is a challenge [7]. Bio-inspired optimization algorithms have gained attention for their ability to tackle microgrid optimization issues. Common algorithms, such as particle swarm optimization (PSO) [8,9], genetic algorithm (GA) [10,11], and grey wolf optimizer (GWO) [12], have been shown to be feasible in MG optimal scheduling.
Researchers have explored various bio-inspired optimization algorithms for MG optimal scheduling. Peng et al. [13] introduced a model for analyzing the cost-effectiveness of MG operation using a Distributed Economic Model Predictive Controller (DEMPC). This method is effective; however, the solving process requires each subsystem to obtain the optimal solutions of other subsystems, making the process complex. Nguyen et al. [14] proposed an optimization model for an MG with PV, WT, MT, DE, and BESS, aiming to reduce operating costs using Improved Archimedes Optimization (IAO). While it performs well in global searches, it can sometimes encounter local optima and may struggle with multi-objective problems. Yang et al. [15] used the Analytical Target Cascading (ATC) method but offered limited discussion on RE sources like PVs and WTs; as such, their model is overly restrictive for solving a complex MG system that contains diverse DG units. Ghodusinejad et al. [16] presented an MG model using the Pareto Envelope-based Selection Algorithm II (PESA-II) for optimal scheduling. This algorithm only checks undefeated members and its parents; the process is simple. But fossil energy sources are not sufficiently addressed. Other researchers, like Hu et al. [17], also focused on optimal scheduling, considering fossil energy and using the Amended Multiverse Optimizer Algorithm (AMVOA), considering the uncertainty of wind and solar power. However, the optimization process of AMVOA includes two stages. The running speed is slow, which has a negative impact on the overall optimization efficiency. Bolurian et al. [18] introduced a model that optimizes costs, emissions, and power demand using a column and constraint generation algorithm (C and CG). But this model only involved WT and BESS. Lou et al. [19] created a hybrid MG model with solar thermal and photovoltaic systems, using Non-dominated Sorting Genetic Algorithm II (NSGA-II), but this model applies only to specific cases like scenarios involving thermal energy. Bo et al. [20] focused on a very innovative scenario involving RE and hydrogen, solving their model with distributionally robust optimization (DRO). He et al. [21] used Multi-Objective War Strategy Optimization (MOWSO) for MG optimal scheduling, focusing on operational and environmental costs. A very new algorithm was used, which has a strong parallelism ability and a simple process. But there is a lack of discussion on fossil fuels. Other studies such as that by Wang et al. [22], who used an Improved Grey Wolf Optimization (I-GWO) for an MG with PV, WT, MT, DE, and BESS. Although I-GWO worked well for generating the initial population, it was prone to becoming stuck in local optima. Meng et al. [23] applied the Multi-Objective Sparrow Search Algorithm (MOSSA) to optimize operational and environmental costs, considering the DR of MG. MOSSA uses fused sinusoidal search strategy to improve searching ability. Although the performance has been improved, trigonometry will make the calculation process more complex. Qiu et al. [24] used data-driven robust optimization (RO) to develop a comprehensive system, but they did not account for environmental costs. Lin et al. [25] used Lagrange Multipliers (LMs), though their comparison lacked sufficient experiments in different scenarios. Zhang et al. [26] proposed a model using the Improved Bacterial Foraging Optimization Algorithm (I-BFO) but faced challenges with local optima, considering the uncertainty of wind and solar power. Finally, Zhang et al. [27] applied the Improved Butterfly Optimization Algorithm (I-BOA). The I-BOA showed faster convergence speed, though improvements could be made in generating the initial population. Chen et al. [28] introduced a probability distribution and employed Monte Carlo sampling to generate a large number of scenarios. The number of scenarios was then reduced through scenario reduction techniques, comprehensively modeling the uncertainty of RE. Nammouchi et al. [29] accomplished energy management in MG by progressively establishing deterministic optimization models and robust optimization models, addressing the uncertainties in RE units and user consumption. They innovatively proposed the concepts of “good deviation” and “bad deviation” to enhance the flexibility of the model. Rui et al. [30] managed the energy scheduling of MG by establishing a clear two-stage optimization model. Utilizing a rolling optimization approach, they updated the optimization decisions at each time step based on the latest forecast information, thereby effectively addressing the uncertainties in PV generation and load. By applying Stackelberg game theory, they simulated the interactive relationship between the Energy Management Operator (EMO) and the MG, ensuring that both parties could identify optimal strategies within the game. Vidan et al. [31] effectively addressed the uncertainties in the bidding strategies of thermal generators and battery storage by establishing two robust models. They thoroughly investigated the impact of robustness parameters on the models and rigorously introduced mathematical formulations. A summary of the MG literature review is presented in Table 1.
The Dung Beetle Optimizer (DBO) is a new swarm bio-inspired algorithm introduced in 2022 [32]. It mimics the behavior of dung beetles, selecting random candidate solutions and simulating the best path for delivering food. The algorithm divides the beetles into four groups, each using different search strategies. By adding complexity to the search process, DBO reduces the impact of environmental changes on finding the best solution. Although DBO is relatively new, it has already been applied in many studies. Chen et al. [33] used DBO for 3D path planning of drones, initializing the population with a chaotic strategy. Wei et al. [34] utilized DBO to optimize the dimensions of ship hulls, achieving certain results by combining the algorithm with a random forest surrogate model. Alnafisah et al. [35] established a financial futures prediction model, integrating deep learning with DBO. It is evident that DBO algorithm exhibits high versatility, showing good performance in path planning, industrial production and finance, etc. However, there is currently a significant gap in applying DBO for optimal scheduling in MG.
In this study, we aim to minimize total costs, including operational costs and environmental costs, by modeling an MG system that includes PV, WT, DE, MT, BESS, and grid interactions. To flexibly adjust the load and improve system efficiency, DR, as well as the uncertainty of wind and solar power, is factored into MG. To enhance the DBO algorithm’s robustness in addressing initial population randomness and optimize its global search performance, three innovative strategies are introduced: Tent chaotic mapping initialization, non-dominated sorting, and elite reverse learning.
The main contributions and novelties of this study are summarized as follows:
  • A more comprehensive microgrid scheduling model. In response to the shortcomings of existing research in terms of system efficiency, power supply reliability, and economic optimization, an integrated optimal scheduling model is constructed, considering DR and the uncertainties of wind and solar power. Under the time-of-use pricing mechanism, DR is divided into two categories for modeling: reducible load and transferable load. Additionally, the Monte Carlo scenario sampling combined with the K-means clustering algorithm is proposed to simulate the uncertainties of wind and solar power output. This approach effectively addresses the issue of insufficient consideration of uncertainty factors in traditional optimization models.
  • Based on Improved Dung Beetle Optimization algorithm (IDBO). An improved DBO is developed to address the limitations of traditional optimization algorithms in terms of convergence speed, solution accuracy, and the ability to escape local optima. Tent chaotic mapping initialization, non-dominated sorting, and elite reverse learning strategy are introduced to improve the performance of DBO. These enhancements significantly improve the algorithm’s global search capability and convergence performance, providing a more effective tool for solving complex microgrid optimal scheduling issues.
  • The proposed model and algorithm are verified from multiple scenarios. Compared to existing methods, simulation experiments for various operational scenarios are designed. Through comparative analysis, the feasibility and superiority of the proposed model and the IDBO are validated. By comparing some indicators, the feasibility of the proposed model and algorithm is verified, providing a new idea for improving the reliability and economy of microgrid system.

2. Microgrid Operation Structure

The objective of this study is to optimize the operation of the microgrid to enhance the utilization of RE, reduce total costs, and ensure the stability and reliability of the MG. To achieve this, it is essential to model the various components of the MG and propose an optimization scheduling strategy. The MG consists of several key components, and the behavior of these components has a direct impact on the overall optimization of the microgrid. The MG system includes DGs such as PV, WT, DE, MT, BESS, grid interactions, and the loads, as shown in Figure 1. The power output of each DG source can be expressed as PPV, PWT, PMT, PDE, PES, and Pgrid, where PPV is the output power of the PV, PWT is the output power of the WT, PMT is the output power of the MT, PES is the output power of the DE, PES is the output power of the BESS, and Pgrid is the output power of the grid connection.

2.1. Model of Distributed Generations

2.1.1. Photovoltaic Array

As one of the main sources of RE, solar power can harness sunlight in real time and convert it into electricity for load use. The model for the output power of a PV is shown as follows:
P P V = P m I I S T C 1 + α T T M
where PPV is the current output power of the PV, Pm is the output power of the PV under standard test conditions, I is the current solar irradiance, ISTC is the solar irradiance under standard test conditions, α is the temperature coefficient of the PV, T is the current temperature of the PV, and TM is the temperature of the PV under standard test conditions.

2.1.2. Wind Turbine

Wind energy is another main source of RE. The mathematical model for the output power of a WT unit is shown as follows:
P W T = 0 , v < v c i a v 3 + b v 2 + c v + d , v c i v < v m P r , v m < v < v c o 0 , v v c o
where PWT is the current output power of the WT, Pr is the rated power of the WT, v is the current wind speed, vci is the cut-in wind speed, vm is the rated wind speed, vCO is the cut-out wind speed, and a′, b′, c′, and d′ are wind speed parameters.

2.1.3. Micro Gas Turbine

MTs are small, efficient distributed generation units, typically with a single-unit power output ranging from 25 kW to 500 kW. The operational efficiency of an MT is shown as follows:
η M T = 0.0753 P M T t 65 3 0.3095 P M T t 65 2 + 0.4174 P M T t 65 + 0.1068
where η M T is the operational efficiency of the MT, and PMT(t) is the active output power of the MT.
Additionally, three components are included in the cost model of an MT: the environmental treatment cost model, the fuel cost model, and the maintenance cost model.
C M T = C M T o + C M T m + C M T P
where CMT is the total operational cost of the MT, CMTO is the fuel cost, CMTm is the maintenance cost, and CMTP is the environmental treatment cost.

2.1.4. Diesel Generator

Compared to other DGs, DEs have a faster startup speed, making them suitable as auxiliary power sources to enhance the stability of MG. Three components are included in the cost model of a DE: the environmental treatment cost model, the fuel cost model, and the maintenance cost model.
C D E = C D E o + C D E m + C D E P
where CDE represents the total operational cost of the DE, CDEO is the fuel cost, CDEm is the maintenance cost, and CDEP is the environmental treatment cost.

2.1.5. Energy Storage

Energy storage maintains the balance between supply and demand.
S O C t = S O C t 1 + 1 η P E S t ,   P E S t 0 S O C t 1 + η + P E S t ,   P E S t > 0
where SOC(t) is the state of charge of the battery at time t, and PES(t) is the charging or discharging power of the battery at time t.

2.2. Microgrid Demand Response Model

DR refers to the regulation and optimization of the electricity consumption behavior of users through some measures, thereby optimizing the load curve, enhancing the MG’s ability to absorb wind and solar power, and achieving the peak load shifting. DR is based on the price–demand elasticity matrix E.
E = e 11 e 12 e 1 n e 21 e 22 e 2 n e n 1 e n 2 e n n
e i j = P L i P L i p j p j 0
where eij is the elasticity coefficient of the i-th row and the j-th column, indicating the elasticity coefficient of the load at time i corresponding to the price at time j. P L i is the load variation at time i after DR, P L i is the initial load at time i, Δpj is the price variation at time j after DR, and pj0 is the initial price at time j.
Since different types of loads show varying sensitivities to the same price changes, DR is further divided into reducible loads and transferable loads. Reducible loads are adjusted by comparing price changes before and after DR to decide whether to reduce the load. Transferable loads are freely adjusted by users based on the price after DR.
P L i = P L i j = 1 24 E i , j p j p j 0 p j 0
where P L i is the initial shiftable or curtailable load at time i, and pj represents the electricity price at time j.

3. Microgrid Multi-Objective Optimization Model

3.1. Objective Function

The scheduling model’s objective function is formulated to minimize the total system cost, encompassing both operational expenditures and environmental mitigation expenses. The objective function is defined as follows:
F = C 1 + C 2
where F represents the total cost of the MG, C1 is the operational cost, and C2 is the environmental treatment cost.

3.1.1. Operational Cost

The expression for operational cost is as follows:
C 1 = C M T o m + C D E o m + a × C g r i d + C P V o m + C W T o m + C E S
where CMTom is the operation and maintenance cost of the MT; CDEom is the operation and maintenance cost of the DE; Cgrid is the cost of interacting with the grid; a is the grid connection coefficient, which can be either 0 or 1 (1 for grid-connected, 0 for isolation); CPVom is the operation and maintenance cost of PVs; CWTom is the operation and maintenance cost of WTs; and CES is the cost of BESS.
The operation and maintenance cost of the MT CMTom is divided into fuel cost CMTo and maintenance cost CMTm.
C M T o m = C M T o + C M T m
C M T o = C t L H V t = 1 T P M T t η M T C M T m = t = 1 T K M T P M T t
where PMT(t) is the output power of the MT, η M T is the efficiency of the DE, LHV is the lower heating value, C is the fixed natural gas price (2.5 CNY/m3), and KMT is the maintenance coefficient of the MT.
The operation and maintenance cost of the DE is as follows:
C D E o m = C D E o + C D E m
C D E o = c 1 P D E 2 + c 2 P D E + c 3 C D E m = t = 1 T K D E P D E t
where PDE is the output power of the DE, and c1, c2, c3 are the combustion coefficients, whereas KDE is the maintenance coefficient of the DE.
When the grid connection coefficient a = 1, the cost function for energy interaction with the grid is as follows:
C g r i d = t = 1 T ( P g r i d t G g r i d t × Δ t )
where Pgrid(t) is the power exchanged with the grid, and Ggrid(t) represents the current purchase and sale price of electricity.
Since solar and wind are clean energy sources, PVs and WTs only include maintenance costs CPVom and CWTom.
C P V o m = t = 1 T K P V m P P V t C W T o m = t = 1 T K W T m P W T t
where KPVm is the maintenance coefficient for PVs, and KWTm is the maintenance coefficient for WTs.
The cost model for the energy storage system CES is represented as follows:
C E S = t = 1 T C p P E S t
C p = G E S K E S t E S G E S = δ 1 + δ n 1 + δ n 1
where PES is the output power of the BESS (positive during charging, negative during discharging), Cp is the present value of total investment costs, GES is the total investment cost of the energy storage system, tES is the annual operating time of the energy storage system, KES is the investment recovery coefficient, δ is the depreciation rate of the storage unit, and n is the designed life span.

3.1.2. Environmental Treatment Cost

The expression for environmental treatment cost is as follows:
C 2 = C M T P + C D E P
C M T P = y = 1 M D y H y P M T t t C D E P = y = 1 M D y H y P D E t t
where CMTP is the environmental treatment cost for the MT, CDEP is the environmental treatment cost for the DE, PMT(t) is the output power of the MT, PDE(t) is the output power of the DE, and DyHy is the cost coefficient for treating major pollutants.

3.2. Constraints

3.2.1. Power Balance Constraints

P L + P E S = P M T + P D E + P g r i d + P P V + P W T
where PL is the daily load of the MG.

3.2.2. Output Constraints

P M T m i n t P M T t P M T m a x P D E m i n t P D E t P D E m a x t P W T m i n t P W T t P W T m a x t P P V m i n t P P V t P P V m a x t P E S m i n t P E S t P E S m a x t
where P i m i n and P i m a x are the upper and lower limits of power for each DG.

3.2.3. Climbing Constraints

P M T t P M T t 1 r M T P D E t P D E t 1 r D E
where rMT is the upper limit of the ramp rate for the MT, and rDE is the upper limit for DEs.

3.2.4. Grid Constraints

P g r i d m i n t P G r i d t P g r i d m a x t
The constraints apply only when the grid connection parameter a = 1.

3.2.5. Battery Energy Storage System Constraints

S O C E S m i n t S O C t S O C E S m a x t
where S O C E S m i n and S O C E S m a x are the lower and upper limits of the storage capacity.

3.3. Expression of Optimization Model

Therefore, the optimization problem of the MG can be formulated as follows: decision variable X = {PDG,i} subject to constraint Y = { P L + P E S = P M T + P D E + P g r i d + P P V + P W T , P D G , i m i n t P D G , i P D G , i m a x t ,   P M T , D E t P M T , D E t 1 r M T , D E ,   S O C E S m i n t S O C t S O C E S m a x t } , with the objective of minimizing the total operational cost Z = {Fmin}.

3.4. Uncertainty of Wind and Solar Power

Wind power and solar power are affected by various factors such as weather conditions and equipment maintenance, making wind speed and solar irradiance inherently random and uncertain. This results in the highly random nature of the output power from both WT and PV systems, thereby compromising the reliability of MG optimal scheduling.

3.4.1. Monte Carlo Sampling

Based on the wind speed and solar irradiance data, daily distribution curves with equal probabilities can be obtained. These curves accurately characterize the uncertainty of wind and solar power. Using the wind speed and solar irradiance data from a specific day at the School of Electrical and Information Engineering, Beijing University of Civil Engineering and Architecture, Monte Carlo sampling was performed. Figure 2 shows 1000 wind and solar output scenarios generated using Monte Carlo sampling, where different colors show the different scenarios.

3.4.2. Scenario Reduction

Monte Carlo sampling can generate a large number of WT and PV time-series scenarios with equal probabilities. Whereas this effectively shows the uncertainty of wind and solar power, the large number of sample scenarios significantly increases the computational complexity of algorithms and reduces their efficiency. Therefore, scenario reduction methods are required to select a small number of representative scenarios and fit their occurrence probabilities. The proposed approach effectively addresses the inherent uncertainties associated with wind and solar power generation while simultaneously improving the computational efficiency of the algorithm.
Common reduction techniques include PCA and DBSCAN, but they are not capable of addressing the uncertainty of wind and solar power in MGs. Firstly, PCA is a dimensionality reduction technique primarily used for data compression and feature extraction, rather than directly performing cluster analysis. While PCA can help simplify data, it cannot directly handle clustering problems in wind and solar power. Secondly, although DBSCAN excels at handling noise and clusters of complex shapes, in the analysis of MGs, the data typically have less noise, and the clusters are relatively regular, making DBSCAN’s advantages less pronounced. In contrast, the backward scenario reduction and the K-means clustering algorithm are frequently used to address wind and solar scenario reduction in MGs. The backward scenario reduction method eliminates scenarios with minimal impact on the overall characteristics step by step until the desired number of scenarios is reached. This method is intuitive and simple to implement. The K-means clustering algorithm employs iterative optimization to automatically classify and aggregate similar scenarios, efficiently reducing a vast set of scenarios into a compact collection of representative ones. It is computationally efficient and more suitable for handling large-scale data.
The number of clusters is important in scenario reduction algorithms. Too many clusters will reduce computational efficiency, whereas too few will fail to represent the uncertainty of wind and solar power. Based on an analysis of different cluster numbers, 1000 wind and solar output scenarios generated through Monte Carlo sampling are reduced to five scenarios using both methods, allowing for a comprehensive comparison of their advantages and disadvantages, as shown in Figure 3 and Figure 4. The probabilities of the five scenarios after reduction are shown in Table 2.
From Figure 3 and Figure 4, it can be observed that the backward scenario reduction method performs poorly when dealing with a large sample size of 1000 scenarios. Its output exhibits excessive fluctuations and bad probability distribution, making it insufficient to describe the uncertainty of wind and solar power output. In contrast, the K-means clustering algorithm better captures the variability and uncertainty of wind and solar power output, providing more reliable and practical guidance for the optimization scheduling and economic operation of MGs incorporating WT and PV.
The K-means clustering algorithm was chosen as the scenario reduction technique primarily because it can efficiently process large-scale sample data and significantly reduce computational complexity. By clustering the output scenarios of wind and solar power into representative scenarios, K-means preserves the core characteristics of the original data while reducing the number of samples. This enhances the computational efficiency and convergence speed of the optimization algorithm, making it particularly suitable for addressing the randomness and uncertainty issues in microgrid optimization.

4. Improved Dung Beetle Optimization Algorithm

4.1. Dung Beetle Optimization Algorithm

DBO is a novel swarm bio-inspired algorithm that mimics the behavior of dung beetles [32]. The beetles are divided into four subpopulations, each performing different strategies.

4.1.1. Ball-Rolling Beetles

The behavior of ball-rolling beetles can be divided into two modes: obstacle mode and non-obstacle mode. When a beetle is moving and encounters an unobstructed path, its direction is determined by the sun. The position update expression for a beetle in motion is as follows:
x i t + 1 = x i t + α k x t t 1 + b x i t x w o r s t t
where t is the current iteration count, and x i t denotes the position of the i-th beetle in the population at the t-th iteration. x w o r s t t is the worst position in the current iteration. k is the deflection coefficient, where k ϵ ( 0,0.2 ] . b is any constant within (0, 1). The value of α can be ±1. When α equals 1, the beetle moves without deviation; when α equals −1, the beetle deviates from its original direction.
When a beetle encounters an obstacle that prevents further movement, a unique step size is required to regain direction. DBO uses the tangent function to update position.
x i t + 1 = x i t + tan θ x i t x w o r s t t
where θ is the deflection angle of the beetle’s special step size. When θ is 0 , π / 2 , π , the beetle’s position will not be updated.

4.1.2. Egg-Laying Beetles

When egg-laying beetles move to a safe and suitable location, a boundary selection can be established, which is defined by
L b = max x g b e s t t 1 R , L b U b = max x g b e s t t 1 + R , U b R = 1 t T m a x
where Lb and Ub are the lower and upper boundary vectors of the area, whereas x g b e s t t indicates the global best position vector of the current population. The variable R is defined with Tmax being the maximum iteration count. Lb* and Ub* are the lower and upper boundary vectors of the egg-laying area, which can be adjusted dynamically through iterations based on R. Therefore, the dynamic iterative process for egg-laying beetles is expressed as follows:
B i t + 1 = x g b e s t t + b 1 × B i t L b + b 2 × B i t U b
B i t + 1 is the position information of the ith egg-laying beetle at the t-th iteration, whereas b1 and b2 are two independent random vectors of size 1 × D, and D is the dimension of the optimization.

4.1.3. Small Beetles

Small beetles will search for food. During foraging, the area is dynamically refreshed with each iteration. The boundary of foraging area is defined as follows:
L b = max x l b e s t t 1 R , L b U b = max x l b e s t t 1 + R , U b R = 1 t T
where x l b e s t t is the local best position, whereas Lb′ and Ub′ are the lower and upper boundary vectors of the foraging area. The individual position update expression for foraging beetles is as follows:
x i t + 1 = x i t + C 1 x i t L b + C 2 x i t U b
where C1 is a random number following a normal distribution, and C2 is a random vector in (0, 1).

4.1.4. Thief Beetles

Thief beetles steal food from other beetles by following the global best position. The position information of the thief beetles can be described as follows:
x i t + 1 = x l b e s t t + S g x i t x g b e s t t + | x i t x l b e s t t
where g is a random vector of size 1 × D that follows a normal distribution, whereas S is an arbitrary constant. The position of the i-th beetle in the population at the t-th iteration is indicated by x i t , whereas x i t + 1 is the current position vector, and x l b e s t t , x g b e s t t are the position vectors of the local best point and global best point.
Thus far, limited research has applied DBO to MGs. Improving DBO to meet the needs of MG optimization can help to fully harness its potential.

4.2. Improved Dung Beetle Optimization

4.2.1. Tent Chaotic Mapping

In DBO, the initial population is usually generated randomly. This will result in an uneven distribution and reduce diversity. Tent chaotic mapping is used for improving initialization. Tent chaotic mapping has a more uniform distribution function; the expression is as follows:
Z k + 1 = Z k β , Z k 0 , β 1 Z k 1 β , Z k β , 1
where k is the current population count, Zk is the k-th population, with a certain initial value, and β is the chaos parameter with a certain initial value.

4.2.2. Non-Dominated Sorting Method

The selection process of DBO lacks clear evaluation and ranking of the superiority among individuals in the population, making it difficult to distinguish the advantages of different individuals in multi-objective optimization problems. This may make the overall performance and convergence speed of the algorithm worse. To address this, a non-dominated sorting method is introduced to improve the selection process of the DBO. The non-dominated sorting method is implemented as follows:
  • Non-dominated sorting;
  • Crowding distance calculation.

4.2.3. Elite Reverse Learning Strategy

Becoming trapped in local optima is another disadvantage of DBO. The reverse learning strategy operates by evaluating a solution, calculating its opposite, and then selecting the better one. However, normal reverse learning has its limitations, as it relies only on the upper and lower bounds of the population. It will increase the computational complexity in later stages of the algorithm. To address this, the boundaries are adjusted to use the best solution from the current generation and the worst solution from the previous generation. This approach makes better use of the information from top-performing individuals, and is called the elite reverse learning strategy.
K s d = log 1.2 + 1.5 T T m a x x l b e s t t = K s d x l b e s t t + x l w o r s t t x l b e s t t
where Ksd is the current disturbance factor, x l b e s t t is the current optimal position vector, and x l w o r s t t is the previous generation’s worst position vector.

4.3. Algorithm Solution Process

The pseudocode of IDBO is shown in Algorithm 1. The flowchart of the MG optimization scheduling model based on IDBO is shown in Figure 5.
Algorithm 1. Improved Dung Beetle algorithm.
Require: The maximum iterations Tmax, the size of the particle’s population N.
Ensure: Optimal position and its fitness value.
1: Initializing algorithm parameters: Population size Np, Max generation Nm, Dimension D
2: Improved Chaotic Initialization of Population
3:   function Non-dominated Sorting of the Population
4:   Initialization
5:   Calculation of dominance relationship
                   I f   i 1 , , M ,   f i p f i q   a n d   j 1 , , M , f j p < f j q , t h e n   p   d o m i n a t e s   q
6:   function Frontier Construction
7:      Determine the first frontier
8:      Building other frontiers
9:      repeat
10:   end function
11:   function Crowding Degree Calculation
12:      Boundary individual processing
13:      Distance Calculation d k = d k + f k + 1 ( m ) f k 1 ( m ) f m a x ( m ) f m i n ( m )
14:   end function
15: while ( t T m a x ) do
16: for i 1 to N do
17:   if i == Ball-rolling Beetle then
18:       δ = r a n d ( 1 )
19:      if δ < 0.9 then
20:      Select α value by −1 or 1
21:      Update the ball-rolling beetle by x i t + 1 = x i t + α k x t t 1 + b x i t x w o r s t t
22:      else
23:      Update the ball-rolling beetle by x i t + 1 = x i t + tan θ x i t x w o r s t t
24:      end if
25:   end if
26:   if i == Egg-laying Beetles then
27:      Update the egg-laying beetles by B i t + 1 = x g b e s t t + b 1 × B i t L b + b 2 × B i t U b
28:   end if
29:   if i == Small Beetles then
30:      Update the small beetles by x i t + 1 = x i t + C 1 x i t L b + C 2 x i t U b
31:   end if
32:   if i == Thief Beetles then
33:      Update the thief beetles by x i t + 1 = x l b e s t t + S g x i t x g b e s t t + | x i t x l b e s t t
34:   end if
35: end for
36: if the newly generated position is better than before then
37:      Update it
38: end if
39: Non-dominated Sorting of the Current Population
40: function Reverse Learning for Elite Individuals
41:   Select elite individuals
42:   Calculate the boundaries of elite individuals
43:   Generate reverse solution X′ = rand() × (TLb + TUb) − X
44: end function
45: t = t + 1
46: end while
47: return
In this study, the optimization scheduling of the MG is achieved through the IDBO. Each beetle’s position represents the power output of various DG units and energy storage systems within the MG. The movement of the beetles simulates the exploration behavior of the algorithm in the process of searching for the optimal solution. The beetles’ “movement” is limited by several constraints, such as power balance, output power range, and climb rate constraints. In this metaphor, the beetles’ behavior can be seen as traversing the solution space by following specific rules, avoiding infeasible regions, and utilizing the reverse learning strategy to escape local optima, ultimately searching for the global optimal solution. Therefore, the IDBO provides an efficient solution for optimization scheduling of MGs.
It is worth mentioning that the main reason for choosing the DBO is its unique exploration and exploitation mechanisms, which can effectively solve complex optimization problems, rather than simply due to its novelty or natural metaphor. Many nature-inspired algorithms rely solely on superficial metaphors, lacking substantive scientific contributions, and even obscuring underlying mathematical principles through obscure terminology [36]. In contrast, the core mechanisms of DBO (such as rolling, dancing, and foraging behaviors) have been carefully designed and transformed into mathematically rigorous optimization strategies, making a clear scientific contribution. Supported by both empirical and theoretical evidence, DBO performs excellently in search efficiency and in handling multimodal problems, avoiding the “just another nature-inspired algorithm” trap. The selection of DBO is justified by its dual merits: as a novel algorithm, it not only contributes significant scientific value to the optimization domain but also exhibits remarkable potential in addressing complex problem-solving challenges.

5. Case Simulation

5.1. Algorithm Testing

To test the performance of IDBO, six benchmark functions were selected, including two unimodal benchmark functions, two multimodal benchmark functions, two fixed-dimension multimodal benchmark functions, and a multi-objective function to comprehensively assess its optimization capabilities [28]. Through testing, the basic performance of IDBO can be validated. Benchmark functions are shown in Table 3.
From the benchmark function tests, IDBO showed clear advantages in both speed and accuracy. In tests on the unimodal benchmark functions F1 and F2, IDBO quickly converged to a stable state in the early stages of iteration and was much faster than other algorithms, including DBO. The results showed that IDBO had excellent speed and accuracy. For the multimodal functions F3 and F4, which have multiple local optima where other algorithms often become stuck, IDBO maintained good performance. It effectively avoided these traps and found better solutions, with better fitness function values than other algorithms. In tests with fixed-dimension multimodal functions F5 and F6, IDBO performed especially well, particularly with F6, where other algorithms became stuck in local optima. IDBO not only escaped the local optima but also quickly approached the global optimal solution, maintaining its advantage in complex search spaces. From the results of the multi-objective test function ZDT1, it can be observed that the approximate Pareto front is relatively close to the true Pareto front in most regions, which indicates that IDBO exhibits good convergence and diversity in the multi-objective optimization process, effectively approximating the true optimal solution set. A comparison of the results of different test benchmark functions is shown in Figure 6.

5.2. Case Simulation Without DR and Uncertainty of Wind and Solar Power

To verify the proposed method, a basic MG system was selected as a simulation case study. The MG system includes MT, DE, PV, WT, BESS, and grid connection, without considering the uncertainty of wind and solar power output and the impact of DR on load. The parameters of DGs are listed in Table 4. The pollutant treatment coefficients for the MT and DE are shown in Table 5. The parameters of BESS are shown in Table 6, and the time-of-use pricing is shown in Table 7.
Figure 7 shows the Pareto front, illustrating a relationship between environmental costs and operational costs. As environmental costs decrease, operational costs rise; conversely, higher environmental costs correlate with lower operational costs. This relationship arises because lower environmental costs typically indicate greater reliance on RE. Whereas these energy sources are environmentally friendly, their operation costs are usually higher. In contrast, when an MG primarily relies on fossil fuels (such as gas and diesel), the fuel costs may be lower, but environmental costs significantly increase due to the large amount of pollutant emissions from the combustion of fossil fuel.
Figure 8 shows the output of the MG at the lowest total cost without considering DR and the uncertainty of wind and solar power, illustrating the output strategies of different DGs.
The BESS charges actively during the valley time. By charging the battery at low electricity prices, the system prepares for the high demand in peak time. During the normal time, the BESS output fluctuates slightly, indicating that the system discharges based on electricity prices and load demand to meet the load. During peak time, the output power of the battery significantly increases, indicating that the system utilizes stored energy to supply power during high-demand periods. This aligns with the basic strategy of energy storage systems: charging when electricity prices are low or there is excess generation, and discharging when electricity prices are high or during peak load.
The PV output is nearly zero during the valley time due to the lack of sunlight, but it gradually increases between 6:00 a.m. and 8:00 a.m., reaching higher generation levels between 2:00 p.m. and 4:00 p.m. This is related to the intensity and duration of sunlight, and as the sun sets, the output of the PV system drops quickly, which fits the typical characteristics of solar systems.
The WT output exhibits significant fluctuations, as wind power generation largely depends on wind speed. In the morning, when the wind speed is low, WT output is minimal, whereas during the evening and midnight, as wind speed increases, WT output increases.
The MT and DE have lower output during the valley time, as electricity prices are lower and the system tends to reduce fuel consumption, maintaining a low output. During the normal time, the output of the MT and DE gradually increases, meeting the load and maintaining a stable supply. During peak time, in response to high demand, the MT and DE are activated to provide backup or peak-load power, leading to a significant increase in their output.
The grid interaction power fluctuates with changes in electricity prices. This indicates that the system is charging or purchasing cheaper electricity during the valley time to release the stored energy during peak time. During peak time, the power shows bidirectional fluctuations, indicating that the system has both the time to purchase electricity from the grid and the time to feed surplus electricity back into the grid. This dynamically balances the relationship between load and generation, which helps maintain the stability of the MG system.
To further validate the performance of IDBO, GWO and DBO were selected for comparison with IDBO. The simulation experiments used an optimization step of 1 h, with a 24 h period as the optimization cycle. The minimum total cost was set as the objective function. The comparison of converge curves is shown in Figure 9.
It can be seen that the IDBO significantly outperforms the GWO and DBO. Specifically, the initial value of IDBO is about 18.6% better than GWO and 5.5% better than DBO, enabling the algorithm to converge to the optimal value more quickly in fewer iterations. Non-dominated sorting allows for clearer evaluation and ranking of individuals within the population, which can improve convergence speed. As a result, IDBO reached the optimal range in fewer than 100 iterations. Additionally, the elite reverse learning strategy enhances convergence accuracy of IDBO in later iterations and improves the quality of the final value, which is about 56.6% better than GWO and 37.9% better than DBO. IDBO not only demonstrated a faster convergence speed, but also achieved higher solution accuracy and stronger local optima escape capability. These results fully demonstrate the significant advantages of the IDBO algorithm in terms of convergence, accuracy, and robustness.
A comprehensive evaluation framework was established to assess the performance of IDBO, DBO, and GWO, incorporating convergence half-life, relative convergence speed, and stability as key metrics, in addition to initial and final values. Convergence half-life is the number of iterations required to reach half of the final value. Relative convergence speed represents the relative rate of change of function values after each iteration.
Table 8 compares the indicators of the three algorithms, including initial values, final values, convergence half-life, and relative convergence speed. Table 9 compares the data after running the algorithms 100 times.
The IDBO demonstrates excellent performance in both initial and final values, achieving lower initial and final values, indicating its outstanding optimization capability. Additionally, IDBO also performs better in terms of convergence speed and stability compared to DBO and GWO. The GWO performs worse in this case, showing good stability but obtaining high initial and final values, along with slower convergence speed. Additionally, the running time of IDBO is slightly worse than DBO, which is a negative impact resulting from the increased algorithmic complexity. However, considering the overall performance, IDBO still maintains a significant competitive edge.
The performance indicators after 100 runs also show that IDBO has lower initial and final values. Although the GWO is slightly advantageous in terms of overall stability, IDBO still demonstrates better performance in this case.

5.3. Case Simulation with DR and Uncertainty of Wind and Solar Power

The output of wind and solar energy is highly random, necessitating appropriate modeling to enhance the efficiency of scheduling optimization. The K-means clustering algorithm effectively reduces computational complexity by categorizing different generation scenarios, thereby shortening running time. The clustered scenarios enable MG operators to predict and respond to various generation fluctuations based on historical data, leading to more accurate scheduling decisions. This approach not only increases scheduling efficiency but also enhances the MG’s adaptability to sudden changes. Based on the reduction scenarios as proposed in Section 3.3, a simulation analysis was conducted, considering DR.
It can be observed from Figure 10 that after the DR, the distribution of load exhibits a pronounced optimization effect. Specifically, the load during the valley and normal time increases, whereas the load during the peak time significantly decreases. This change indicates that the DR effectively guides users to reduce electricity demand during peak time while encouraging increased consumption during valley time, thereby smoothing the load curve. This adjustment in load distribution not only helps alleviate the pressure on the grid during peak time, reducing over-reliance on DG units, but also enhances the overall operational efficiency and stability of the grid. Furthermore, through its peak load shifting, the DR promotes the rational allocation of electricity resources, reduces operational costs of the power system, and provides greater flexibility for the integration of renewable energy sources.
Five scenarios obtained after K-means clustering reduction in Section 3.3 and the load curve considering DR were selected for scheduling simulation, and the data are shown in Figure 11. Figure 11a–e represent the solar and wind power of five scenarios. Additionally, the most typical scenario with the highest probability (Scenario 1) obtained through K-means clustering was selected for comparison simulation with a scenario that does not consider DR and the uncertainty of wind and solar power, using IDBO for optimization. Table 10 shows the results comparison of minimal total cost in different scenarios.
Table 10 shows that IDBO still demonstrates its outstanding global optimization capability and stability. The final value is significantly lower than the other two comparison algorithms. This result not only confirms the efficacy of IDBO in solving complex optimization problems but also validates the results in Section 5.1 and Section 5.2, further proving the unique advantages of IDBO in microgrid optimization scheduling. IDBO is better at handling nonlinear, multi-constraint optimization problems, especially in complex scenarios like microgrids that involve coordination of various energy sources and uncertainties, where its performance is particularly remarkable.
Table 11 compares the average final value after running the algorithms 100 times in five different scenarios. IDBO performs well across all five scenarios, with lower average total costs compared to other algorithms. Additionally, while achieving lower final values, IDBO also maintains lower standard deviations, indicating more stable results. This shows that IDBO is more reliable when handling different datasets, exhibiting higher stability and robustness. It effectively reduces operational uncertainty, validating its superior performance in MG optimal scheduling.
Figure 12 shows the comparison results of convergence curves considering DR and uncertainty, using IDBO for optimization. It can be seen that compared to the traditional scheduling model, which does not consider DR and uncertainty, this approach results in a significant reduction in the MG’s daily total cost by CNY 58.28. This substantial cost reduction is mainly attributed to the flexible adjustment of the load curve by the DR and the uncertainty factors. The DR incentivizes users to reduce electricity consumption during peak time and increase consumption during valley and normal time, achieving a peak load shifting, thereby reducing the operational pressure on the system. Meanwhile, the IDBO improves the system’s economy and reliability through precise prediction and optimization scheduling of wind–solar output fluctuations.
Figure 13 shows the output of the MG at the lowest total cost when considering DR and uncertainty of wind and solar power. Through the figure, it is proved that after the DR and uncertainty, the system’s scheduling strategy becomes more flexible and intelligent. It can dynamically adjust the operating mode based on the characteristics of different periods, thereby improving the system’s reliability and independence while ensuring economic efficiency. It can be seen that while the scheduling strategy of the MG remains consistent with Section 5.2, significant differences exist at the execution part. The most noticeable change is that the MG reduces its dependence on the grid, indicating that the system places greater use of DGs in the optimization scheduling process. By leveraging the DR and uncertainty, the MG is better able to coordinate its internal resources, reduce the need for electricity purchase from the grid, and, thereby, increase the system’s independence and self-sufficiency. Furthermore, the activity level of the BESS is significantly enhanced in the optimized scheduling, particularly notable at 8:00 a.m. At this time, the electricity price remains in the normal time, and the PV output is relatively abundant, so the BESS actively utilizes the PV output to charge. This strategy not only reduces charging costs but also improves the consumption of RE, avoiding the waste of solar energy. Simultaneously, the discharging behavior of the BESS during peak time further mitigates the power supply pressure on the system, achieving a peak load shifting.

6. Conclusions

It is crucial to fully consider economic issues and RE when scheduling MGs. In this paper, we constructed an MG system model including PV, WT, MT, DE, BESS, and grid connection. Based on the price–demand elasticity matrix, Monte Carlo sampling, and K-means clustering algorithm, DR and uncertainty of wind and solar power were fully modeled. The objective function was the total cost, including operational costs and environmental treatment costs. A novel algorithm IDBO was proposed to solve the issue. Compared to other algorithms, the designed IDBO managed to obtain lower total costs, achieve peak load shifting, and improve the utilization of RE. The optimization scheduling method proposed in this study holds significant practical value, particularly in scenarios such as smart MGs and virtual power plants (VPPs). By integrating the strategies, the economic efficiency and stability of the system can be significantly enhanced. The method presented in this paper can assist MG operators in reducing energy procurement costs and optimizing the utilization of renewable energy, thereby improving the system’s self-sufficiency. Furthermore, with the opening of the electricity market and the advancement of smart grid technologies, the proposed method will enable MGs to operate more efficiently in dynamic market environments. Especially when faced with uncertainties such as complex weather conditions and load fluctuations, this method will enhance the system’s robustness and flexibility, ensuring the reliability and economic efficiency of power supply.
Although our study achieved certain results in MG optimization scheduling, there are still some limitations that provide directions for future research improvements. Firstly, our study primarily focuses on optimizing the MG system in specific scenarios; it does not fully consider the impact of different geographical environments, climate conditions, and load characteristics on MG operations. Therefore, the generalizability of the research findings in more complex or diverse microgrid scenarios still requires further validation. Additionally, Monte Carlo sampling and K-means clustering may introduce certain biases. Specifically, potential uncertainty factors such as extreme weather events will cause information loss during the clustering process, lead to insufficient description of scenarios.
In the future, we aim to extend our research to more complex and diversified MG systems, further exploring the applicability and scalability of the method proposed in this paper. Specifically, we will investigate the feasibility of our approach in scenarios such as urban, rural, and industrial MG systems, each with distinct load profiles, energy sources, and operational constraints. By doing so, we can evaluate the robustness and adaptability of our method under different conditions, ensuring its practical utility in real-world applications. Additionally, we plan to explore the integration of our proposed method with emerging technologies and concepts in the energy domain. One particularly promising direction is its application to VPPs, which have garnered significant attention as a cutting-edge topic in modern power systems. By applying our method to VPPs, we aim to optimize their coordination and control, enhancing their ability to participate in energy markets, provide grid services, and improve overall system efficiency.

Author Contributions

Conceptualization, Y.Y.; methodology, H.R. and Y.Y; software, H.R.; validation, H.R. and L.Z.; resources, D.L.; data curation, D.L. and L.Z.; writing—original draft preparation, H.R.; writing—review and editing, Y.Y. and D.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Natural Science Foundation of Beijing Municipality, Grant number 4204093.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to the data in the text relating to the privacy of electricity use in the regional distribution grid.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zhang, H.; Li, G.H.; Wang, S.T. Optimization dispatching of isolated island microgrid based on improved particle swarm optimization algorithm. Energy Rep. 2022, 8, 420–428. [Google Scholar] [CrossRef]
  2. Li, Y.Z.; Wang, P.; Gooi, H.B.; Ye, J.; Wu, L. Multi-Objective Optimal Dispatch of Microgrid Under Uncertainties via Interval Optimization. IEEE Trans. Smart Grid 2019, 10, 2046–2058. [Google Scholar] [CrossRef]
  3. Wang, K.; Xie, Y.F.; Zhang, W.M.; Cai, H.; Liang, F.; Li, Y. Research on optimal dispatch of distributed energy considering new energy consumption. Energy Rep. 2023, 10, 1888–1898. [Google Scholar] [CrossRef]
  4. Sahoo, S.K.; Sinha, A.K.; Kishore, N.K. Control Techniques in AC, DC, and Hybrid AC-DC Microgrid: A Review. IEEE J. Emerg. Sel. Top. Power Electron. 2018, 6, 738–759. [Google Scholar] [CrossRef]
  5. Liu, X.M.; Zhao, M.; Wei, Z.H.; Lu, M. The energy management and economic optimization scheduling of microgrid based on Colored Petri net and Quantum-PSO algorithm. Sustain. Energy Technol. Assess. 2022, 53, 102670. [Google Scholar] [CrossRef]
  6. Thirunavukkarasu, G.S.; Seyedmahmoudian, M.; Jamei, E.; Horan, B.; Mekhilef, S.; Stojcevski, A. Role of optimization techniques in microgrid energy management systems-A review. Energy Strategy Rev. 2022, 43, 100899. [Google Scholar] [CrossRef]
  7. Zhang, W.P.; Maleki, A.; Rosen, M.A.; Liu, J.Q. Sizing a stand-alone solar-wind-hydrogen energy system using weather forecasting and a hybrid search optimization algorithm. Energy Convers. Manag. 2019, 180, 609–621. [Google Scholar] [CrossRef]
  8. Anh, H.P.H.; Kien, C.V. Optimal energy management of microgrid using advanced multi-objective particle swarm optimization. Eng. Comput. 2020, 37, 2085–2110. [Google Scholar] [CrossRef]
  9. Mquqwana, M.A.; Krishnamurthy, S. Particle Swarm Optimization for an Optimal Hybrid Renewable Energy Microgrid System under Uncertainty. Energies 2024, 17, 422. [Google Scholar] [CrossRef]
  10. Yeh, W.C.; He, M.-F.; Huang, C.-L.; Tan, S.-Y.; Zhang, X.; Huang, Y.; Li, L. New genetic algorithm for economic dispatch of stand-alone three-modular microgrid in DongAo Island. Appl. Energy 2020, 263, 114508. [Google Scholar] [CrossRef]
  11. Witharama, W.M.N.; Bandara, K.; Azeez, M.I.; Bandara, K.; Logeeshan, V.; Wanigasekara, C. Advanced Genetic Algorithm for Optimal Microgrid Scheduling Considering Solar and Load Forecasting, Battery Degradation, and Demand Response Dynamics. IEEE Access 2024, 12, 83269–83284. [Google Scholar] [CrossRef]
  12. Javidsharifi, M.; Niknam, T.; Aghaei, J.; Mokryani, G.; Papadopoulos, P. Multi-objective day-ahead scheduling of microgrids using modified grey wolf optimizer algorithm. J. Intell. Fuzzy Syst. 2019, 36, 2857–2870. [Google Scholar] [CrossRef]
  13. Peng, Y.X.; Jiang, W.Q.; Wei, X.Q.; Pan, J.T.; Kong, X.Y.; Yang, Z. Microgrid Optimal Dispatch Based on Distributed Economic Model Predictive Control Algorithm. Energies 2023, 16, 4658. [Google Scholar] [CrossRef]
  14. Nguyen, T.T.; Dao, T.K.; Nguyen, T.T.T.; Nguyen, T.D. An Optimal Microgrid Operations Planning Using Improved Archimedes Optimization Algorithm. IEEE Access 2022, 10, 67940–67957. [Google Scholar] [CrossRef]
  15. Yang, Y.B.; Ai, D.X.; Zhang, L.; Zheng, Y.W. Economic optimal dispatch of active distribution network with CCHP multi-microgrid based on analytical target cascading. Front. Energy Res. 2024, 12, 1438961. [Google Scholar] [CrossRef]
  16. Ghodusinejad, M.H.; Peirov, S.; Yousefi, H.; Astaraei, F.R. Multi-objective optimal design and performance analysis of a residential microgrid. J. Energy Storage 2024, 92, 112201. [Google Scholar] [CrossRef]
  17. Hu, Q.P.; Zhao, G.X.; Hu, J.; Razmjooy, N. Maximizing energy storage in Microgrids with an amended multi-verse optimizer. Heliyon 2023, 9, e21471. [Google Scholar] [CrossRef] [PubMed]
  18. Bolurian, A.; Akbari, H.; Mousavi, S. Day-ahead optimal scheduling of microgrid with considering demand side management under uncertainty. Electr. Power Syst. Res. 2022, 209, 107965. [Google Scholar] [CrossRef]
  19. Lou, J.; Wang, Y.; Wang, H.; Wang, J.; Chen, L.; Zhang, J.; Islam, M.; Chua, K. Operation characteristics analysis and optimal dispatch of solar thermal-photovoltaic hybrid microgrid for building. Energy Build. 2024, 315, 114340. [Google Scholar] [CrossRef]
  20. Bo, Y.L.; Xia, Y.H.; Wei, W.; Li, Z.C.; Zhao, B.; Lv, Z.Y. Hyperfine optimal dispatch for integrated energy microgrid considering uncertainty. Appl. Energy 2023, 334, 120637. [Google Scholar] [CrossRef]
  21. He, Y.-L.; Wu, X.-W.; Sun, K.; Liu, X.-Y.; Wang, H.-P.; Zeng, S.-M.; Zhang, Y. A Novel MOWSO algorithm for Microgrid multi-objective optimal dispatch. Electr. Power Syst. Res. 2024, 232, 110374. [Google Scholar] [CrossRef]
  22. Wang, X.; Wang, S.; Ren, J.; Song, Z.; Zhang, S.; Feng, H. Optimizing Economic Dispatch for Microgrid Clusters Using Improved Grey Wolf Optimization. Electronics 2024, 13, 3139. [Google Scholar] [CrossRef]
  23. Meng, Y.; Wang, Y.; Sun, S.; Wang, S.; Zhang, H. Multi-objective optimal dispatching of demand response-enabled microgrid considering uncertainty of renewable energy generations based on two-level iterative strategy. Energy Rep. 2023, 9, 1842–1858. [Google Scholar] [CrossRef]
  24. Qiu, H.F.; Liu, P.X.; Gu, W.; Zhang, R.F.; Lu, S.; Gooi, H.B. Incorporating Data-Driven Demand-Price Uncertainty Correlations Into Microgrid Optimal Dispatch. IEEE Trans. Smart Grid 2024, 15, 2804–2818. [Google Scholar] [CrossRef]
  25. Lin, F.J.; Liao, J.C.; Zhang, Y.M.; Huang, Y.C. Optimal Economic Dispatch and Power Generation for Microgrid Using Novel Lagrange Multipliers-Based Method With HIL Verification. IEEE Syst. J. 2023, 17, 4533–4544. [Google Scholar] [CrossRef]
  26. Zhang, Y.; Lv, Y.; Zhou, Y. Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization. Biomimetics 2023, 8, 150. [Google Scholar] [CrossRef] [PubMed]
  27. Zhang, Y.; Zhou, H.; Xiao, L.; Zhao, G. Research on Economic Optimal Dispatching of Microgrid Cluster Based on Improved Butterfly Optimization Algorithm. Int. Trans. Electr. Energy Syst. 2022, 2022, 7041778. [Google Scholar] [CrossRef]
  28. Chen, H.P.; Gao, L.; Zhang, Z. Multi-objective optimal scheduling of a microgrid with uncertainties of renewable power generation considering user satisfaction. Int. J. Electr. Power Energy Syst. 2021, 131, 107142. [Google Scholar] [CrossRef]
  29. Nammouchi, A.; Aupke, P.; D′Andreagiovanni, F.; Ghazzai, H.; Theocharis, A.; Kassler, A. Robust opportunistic optimal energy management of a mixed microgrid under asymmetrical uncertainties. Sustain. Energy Grids Netw. 2023, 36, 101184. [Google Scholar] [CrossRef]
  30. Rui, T.; Li, G.L.; Wang, Q.J.; Hu, C.G.; Shen, W.X.; Xu, B. Hierarchical Optimization Method for Energy Scheduling of Multiple Microgrids. Appl. Sci. 2019, 9, 624. [Google Scholar] [CrossRef]
  31. Vidan, M.; D’Andreagiovanni, F.; Pandzic, H. Individual Thermal Generator and Battery Storage Bidding Strategies Based on Robust Optimization. IEEE Access 2021, 9, 66829–66838. [Google Scholar] [CrossRef]
  32. Xue, J.K.; Shen, B. Dung beetle optimizer: A new meta-heuristic algorithm for global optimization. J. Supercomput. 2023, 79, 7305–7336. [Google Scholar] [CrossRef]
  33. Chen, Q.; Wang, Y.J.; Sun, Y.F. An improved dung beetle optimizer for UAV 3D path planning. J. Supercomput. 2024, 80, 26537–26567. [Google Scholar] [CrossRef]
  34. Wei, Y.C.; Zhang, H.X.; Jiang, D.; Zhang, Y.X.; Xiao, S.H. Optimising ship principal dimensions with a Dung Beetle Optimizer and random forest proxy model. Ships Offshore Struct. 2024. early access. [Google Scholar] [CrossRef]
  35. Alnafisah, H.; Abdulrahim, H.; Hassaballa, A.A.; Alsulami, A.; Mohamed, A.O.Y. Dung beetle optimization with deep learning approach for solving inverse problems in predicting financial futures. Alex. Eng. J. 2024, 109, 71–82. [Google Scholar] [CrossRef]
  36. Sörensen, K. Metaheuristics—The metaphor exposed. Intl. Trans. Op. Res. 2015, 22, 3–18. [Google Scholar] [CrossRef]
Figure 1. Microgrid structure.
Figure 1. Microgrid structure.
Applsci 15 00975 g001
Figure 2. PV and WT output curve of simulated scenario. (a) WT output; (b) PV output.
Figure 2. PV and WT output curve of simulated scenario. (a) WT output; (b) PV output.
Applsci 15 00975 g002
Figure 3. PV and WT output data scenario after backward reduction. (a) WT output; (b) PV output.
Figure 3. PV and WT output data scenario after backward reduction. (a) WT output; (b) PV output.
Applsci 15 00975 g003
Figure 4. PV and WT output data scenario after K-means clustering reduction. (a) WT output; (b) PV output.
Figure 4. PV and WT output data scenario after K-means clustering reduction. (a) WT output; (b) PV output.
Applsci 15 00975 g004
Figure 5. Flowchart of IDBO.
Figure 5. Flowchart of IDBO.
Applsci 15 00975 g005
Figure 6. Results comparison of different test benchmark functions. (a) Result of F1; (b) result of F2; (c) result of F3; (d) result of F4; (e) result of F5; (f) result of F6; (g) Pareto front of ZDT 1.
Figure 6. Results comparison of different test benchmark functions. (a) Result of F1; (b) result of F2; (c) result of F3; (d) result of F4; (e) result of F5; (f) result of F6; (g) Pareto front of ZDT 1.
Applsci 15 00975 g006aApplsci 15 00975 g006b
Figure 7. Pareto fronts.
Figure 7. Pareto fronts.
Applsci 15 00975 g007
Figure 8. MG output at the lowest total cost without considering DR and uncertainty of wind and solar power.
Figure 8. MG output at the lowest total cost without considering DR and uncertainty of wind and solar power.
Applsci 15 00975 g008
Figure 9. Comparison of converge curves.
Figure 9. Comparison of converge curves.
Applsci 15 00975 g009
Figure 10. Load curves with or without DR.
Figure 10. Load curves with or without DR.
Applsci 15 00975 g010
Figure 11. Five PV and WT output scenarios after K-means clustering reduction.
Figure 11. Five PV and WT output scenarios after K-means clustering reduction.
Applsci 15 00975 g011aApplsci 15 00975 g011b
Figure 12. Comparison of convergence curves considering DR and uncertainty.
Figure 12. Comparison of convergence curves considering DR and uncertainty.
Applsci 15 00975 g012
Figure 13. MG output at the lowest total cost considering DR and uncertainty of wind and solar power.
Figure 13. MG output at the lowest total cost considering DR and uncertainty of wind and solar power.
Applsci 15 00975 g013
Table 1. Summary of MG literature review.
Table 1. Summary of MG literature review.
SourceRenewable EnergyFossil EnergyEnergy StorageDR and UncertaintyObjective FunctionStrategy
[13]PV, WTDEYesNoOperatingDEMPC
[14]PV, WTMT, DEYesNoOperatingIAO
[15]NoMT, DEYesNoOperatingATC
[16]PV, WTNoYesNoNet presentPESA-II
[17]PV, WTDEYesUncertaintyNet presentAMVOA
[18]WTNoYesUncertaintyOperating, environmentalC and CG
[19]PVThermalNoNoOperating, environmentalNSGA-II
[20]Hydrogen, PVNoYesNoOperatingDRO
[21]PV, WTNoYesNoOperating, environmentalMOWSO
[22]PV, WTMT, DEYesNoOperating, environmentalIGWO
[23]PV, WTDEYesDROperating, environmentalSSA
[24]PV, WTDEYesNoOperatingRO
[25]PV, WTMT, DEYesNoOperatingLM
[26]PV, WTMT, DEYesUncertaintyOperating, environmentalIBFO
[27]PV, WTMT, DEYesNoOperatingIBOA
[28]PV, WTNoYesDR, UncertaintyOperating, user satisfactionCPLEX
[29]PVNoYesUncertaintyEnergy managementGurobi
[30]PVNoYesNoEnergy trading, profits MIP
[31]NoThermalYesUncertaintyProfits RO
Table 2. The probabilities of the five scenarios after reduction.
Table 2. The probabilities of the five scenarios after reduction.
ScenarioBackward ReductionK-means Clustering Reduction
WTPVWTPV
Scenario 10.0250.1620.2290.225
Scenario 20.0410.0770.1790.192
Scenario 30.1250.10.1610.202
Scenario 40.1340.0410.2090.175
Scenario 50.6750.620.2040.206
Table 3. Benchmark functions.
Table 3. Benchmark functions.
FunctionDimRangeOptimal Value
F 1 = i = 1 n ( j 1 i x j ) 2 30[−100, 100]0
F 2 = i = 1 n [ x i + 0.5 ] 2 30[−100, 100]0
F 3 = i = 1 n [ x i 2 10 cos 2 π x i + 10 ] 30[−5.12, 5.12]0
F 4 = 1 4000 i = 1 n x i 2 i = 1 n cos x i i + 1 30[−600, 600]0
  F 5 = i = 1 11   a i x 1 ( b i 2 + b i x 2 ) b i 2 + b i x 3 + x 4 2 4[−5, 5]0.0003
F 6 = i = 1 5   [ ( X a i ) ( X a i ) T + c i ] 1 4[0, 10]−10.1532
ZDT 12[−4, 4](0, 1) to (1, 0)
Table 4. Parameters of DGs.
Table 4. Parameters of DGs.
ParametersMTDEPVWT
Power upper limit/KW60603010
Power lower limit/KW3600
Climb rate/KW1.51.500
Maintenance factor/(CNY/KW·h)0.02930.1280.00960.45
Table 5. Pollutant treatment coefficients.
Table 5. Pollutant treatment coefficients.
Pollutant TypePollutant Discharge Factor/(g/kWh)Governance Cost/(CNY/kg)
MTDE
CO27246890.21
CO0.0470.0310.29
NO20.00360.001814.842
Table 6. Parameters of BESS.
Table 6. Parameters of BESS.
ParametersValueParametersValue
Maximum capacity/KW·h150Minimum capacity/KW·h5
Basic capacity/KW·h50Maximum exchange power/KW30
Maintenance factor/(CNY/KW·h)0.026Charge/discharge efficiency0.9
Table 7. Time-of-use pricing.
Table 7. Time-of-use pricing.
Price TypeValley TimeNormal TimePeak Time
0:00–6:00
22:00–24:00
6:00–9:00
14:00–17:00
9:00–14:00
17:00–22:00
Purchase electricity/[CNY/(KW·h)]0.380.821.35
Sell electricity/[CNY/(KW·h)]0.150.36
Table 8. Indicator results comparison of different algorithms.
Table 8. Indicator results comparison of different algorithms.
AlgorithmInitial Value/CNYFinal Value/CNYConvergence Half-LifeRelative Convergence SpeedRunning Time/s
IDBO3891.181002.12140.19%23.54
DBO4107.021382.01470.25%20.25
GWO4616.791569.39210.62%31.34
Table 9. Data comparison of different algorithms after 100 runs.
Table 9. Data comparison of different algorithms after 100 runs.
ParametersIDBODBOGWO
Avg initial value/CNY4096.844237.224511.71
Avg final value/CNY1111.811602.261686.31
Standard deviation96.9116.0325.5
Table 10. Results comparison of minimal total cost in different scenarios.
Table 10. Results comparison of minimal total cost in different scenarios.
ScenarioIDBO/CNYDBO/CNYGWO/CNY
1954.241302.041420.69
2997.481402.991426.54
3996.011325.971411.65
4963.951370.781425.76
5986.611438.191459.79
Table 11. Average final value comparison of different algorithms after 100 runs in different scenarios.
Table 11. Average final value comparison of different algorithms after 100 runs in different scenarios.
ScenarioIDBODBOGWO
Avg Final Value/CNYStandard DeviationAvg Final Value/CNYStandard DeviationAvg Final Value/CNYStandard Deviation
1953.6889.211312.24114.31426.8723.94
2988.2592.31415.20120.221433.3127.85
3994.3293.021361.79124.911427.2631.56
4962.8891.251344.55116.781428.4526.51
5984.5790.331422.31119.851462.6521.2
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yue, Y.; Ren, H.; Liu, D.; Zhang, L. Optimal Scheduling of Microgrids Based on an Improved Dung Beetle Optimization Algorithm. Appl. Sci. 2025, 15, 975. https://doi.org/10.3390/app15020975

AMA Style

Yue Y, Ren H, Liu D, Zhang L. Optimal Scheduling of Microgrids Based on an Improved Dung Beetle Optimization Algorithm. Applied Sciences. 2025; 15(2):975. https://doi.org/10.3390/app15020975

Chicago/Turabian Style

Yue, Yuntao, Haoran Ren, Dong Liu, and Lenian Zhang. 2025. "Optimal Scheduling of Microgrids Based on an Improved Dung Beetle Optimization Algorithm" Applied Sciences 15, no. 2: 975. https://doi.org/10.3390/app15020975

APA Style

Yue, Y., Ren, H., Liu, D., & Zhang, L. (2025). Optimal Scheduling of Microgrids Based on an Improved Dung Beetle Optimization Algorithm. Applied Sciences, 15(2), 975. https://doi.org/10.3390/app15020975

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop