Next Article in Journal
Design and Analysis of a Bionic Gliding Robotic Dolphin
Next Article in Special Issue
Application of an Enhanced Whale Optimization Algorithm on Coverage Optimization of Sensor
Previous Article in Journal
Subtraction-Average-Based Optimizer: A New Swarm-Inspired Metaheuristic Algorithm for Solving Optimization Problems
Previous Article in Special Issue
Analysis of UAV Thermal Soaring via Hawk-Inspired Swarm Interaction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization

College of Electrical and Computer Science, Jilin Jianzhu University, Changchun 130000, China
*
Author to whom correspondence should be addressed.
Biomimetics 2023, 8(2), 150; https://doi.org/10.3390/biomimetics8020150
Submission received: 7 February 2023 / Revised: 29 March 2023 / Accepted: 4 April 2023 / Published: 7 April 2023

Abstract

:
This paper proposes an improved Bacterial Foraging Optimization for economically optimal dispatching of the microgrid. Three optimized steps are presented to solve the slow convergence, poor precision, and low efficiency of traditional Bacterial Foraging Optimization. First, the self-adaptive step size equation in the chemotaxis process is present, and the particle swarm velocity equation is used to improve the convergence speed and precision of the algorithm. Second, the crisscross algorithm is used to enrich the replication population and improve the global search performance of the algorithm in the replication process. Finally, the dynamic probability and sine-cosine algorithm are used to solve the problem of easy loss of high-quality individuals in dispersal. Quantitative analysis and experiments demonstrated the superiority of the algorithm in the benchmark function. In addition, this study built a multi-objective microgrid dynamic economic dispatch model and dealt with the uncertainty of wind and solar using the Monte Carlo method in the model. Experiments show that this model can effectively reduce the operating cost of the microgrid, improve economic benefits, and reduce environmental pollution. The economic cost is reduced by 3.79% compared to the widely used PSO, and the economic cost is reduced by 5.23% compared to the traditional BFO.

1. Introduction

The electricity demand continues to expand with social science and technology development. It is challenging to meet electricity demand using only traditional thermal power generation methods. Distributed generation (DG) is widely used in microgrid systems and supplies power to regional users because of its flexible control, self-protection, and schedulability. The energy consumption problems caused by traditional power generation methods can be alleviated, and the environmental pollution caused by thermal power generation can be reduced. Wind and photovoltaics are clean and renewable energy sources in microgrids. However, the intermittence and fluctuations caused by wind speed and light intensity will challenge the stable operation of the grid system with a large-scale grid connection of wind turbines and photovoltaic panels. Therefore, it is necessary to first deal with the uncertainty of wind photovoltaics and then use DG, which can operate flexibly and cooperate with renewable energy generation technologies to build a microgrid and optimize its scheduling. This model effectively reduces economic costs and improves power supply quality and stability.
Many scholars have studied the uncertainty treatment of wind and light. Ref. [1] proposed a Latin hypercube sampling method to process the uncertainty of wind and solar data, effectively reducing the impact of wind and light on power grid peak shaving [2]. Combining the roulette wheel mechanism and Monte Carlo thinking to process wind and light data, using randomly generated scenes to simulate the uncertain process of scenery, this method can effectively reduce the economic cost of hydrothermal unit scheduling.
Linear programming [3,4,5], dynamic programming [6,7], Lagrangian relaxation [8], and nonlinear programming [9,10] have many problems with large-scale power systems, such as traditional microgrid dispatching optimization methods. Various electrical constraints also increase the complexity and difficulty of microgrid dispatching optimization. These problems mainly focus on accuracy and computational efficiency. An increasing number of swarm intelligence algorithms have been applied to microgrid dispatching optimization to overcome such problems. Some mature swarm intelligence algorithms, such as PSO [11], GA [12], and WOA [13] are widely used in microgrid dispatching optimization due to their advantages of fast convergence and simple processes. However, these traditional algorithms also easily fall into local optima, have low efficiency, premature convergence results, and low precision. Many optimization methods have been encountered in the process of microgrid dispatching optimization. Reference [14] introduced a simulated annealing algorithm and chaos optimization into the PSO algorithm, enriching the population diversity, and enhancing the global search ability. Reference [15] presented a differential evolution algorithm (ED) into the quantum particle swarm optimization algorithm (QPSO), which improved the ability to jump out of the optimal local solution in the later stage. Reference [16] proposed using tabu search to optimize particle swarm optimization compared with CLQPSO and short-term microgrid scheduling results. The IPSO is better than the traditional PSO and Tabu Search (TS) in the two-level energy optimization scheduling strategy. Reference [17] proposed a BPSO method for scheduling household energy management systems with distributed power sources. This method can effectively reduce economic costs, energy consumption, and environmental pollution. Reference [18] used an adaptive strategy to optimize the GA to improve its convergence accuracy of the GA algorithm.
Moreover, Reference [19] combined the advantages of the GA and PSO algorithms. The microgrid dispatching optimization was modeled as a quadratic programming problem, and the improved GA-PSO algorithm was used. The WOA has a higher solution quality than the PSO and GA. However, WOA also needs help with problems, such as premature convergence and low accuracy of the results. To improve the performance of WOA, Reference [20] uses adaptive inertia weight, spiral search method, and generalized inverse learning to improve and optimize WOA. The results of multiregion interconnected microgrid system scheduling prove that this optimization method can effectively improve the performance of the WOA and reduce the cost of microgrid operation. New swarm intelligence algorithms have been gradually developed and applied to microgrid economic dispatch models. Reference [21] proposed an economic dispatch model using the cuckoo algorithm to optimize multiple microgrids and determined the power supply strategy by predicting the best state of charge of the battery. This method has a significant improvement over PSO. Reference [22] utilized a mixture of bacterial foraging algorithms and genetic algorithms to achieve minimum cost load management [23]. The bacterial foraging algorithm is also used to achieve the scheduling of isolated microgrids, and a large number of experiments have proven the effectiveness of the proposed method, which can reduce economic cost. Reference [24] proposed a bald eagle search optimization algorithm (BESOA) to control the scheduling between demand and power supply, which can effectively reduce energy costs and microgrid emissions costs. Reference [25] proposed applying the butterfly algorithm to the microgrid scheduling solution. Aiming at the problem of poor convergence accuracy of the butterfly algorithm and easy falling into a local optimum, they used Cauchy mutation to improve the position information of the butterfly and expand the global search performance of the algorithm by using chaotic mapping enriched species diversity. The method’s effectiveness is proven by scheduling a microgrid cluster system composed of multiple microgrids. An improved crow algorithm [26] is proposed for microgrid scheduling with distributed power sources. By introducing a Levy flight strategy, the convergence speed and result accuracy of the algorithm can be effectively improved.
Most swarm intelligence research focuses on solving the performance of algorithms in the microgrid dispatching process. (2) The main contributions of this study are as follows:
(1)
This study improved the algorithm’s speed and considered its accuracy in chemotaxis. The adaptive step size formula replaces the standard fixed step size, and the PSO speed formula is introduced to improve the random direction vector (PHI).
(2)
The crisscross algorithm is used to improve the population of the algorithm and global search performance in the replication part.
(3)
The dynamic dispersal equation and sine-cosine algorithm were used to improve the loss of high-quality results and the algorithm’s efficiency for the dispersal part.
The remainder of this paper is organized as follows: the first section builds a microgrid model with multiple objective cost functions; the second section describes the improvement of the BFO, quantitatively analyzes the impact of each part of the improvement, and conducts a comparative test; the third section deals with the uncertain processes of wind and solar, applies the BFO to the microgrid dispatching model to solve it, and gives the comparative experimental results; and the fourth section is a summary of the full text.

2. Microgrid Economic Dispatch Model

The microgrid example comprises distributed power sources, such as wind generators, photovoltaic power generation panels, diesel engines, micro steam turbines, and fuel cells shown in Figure 1.

2.1. The Model of DG

As energy generation forms, wind and photovoltaic power have significant volatility and are affected by many meteorological factors, such as wind speed, wind direction, light intensity, and temperature. Therefore, the power balance brought by wind power generation has great uncertainty. A model of a wind turbine follows:
P W = { 0 , v < v i n   o r   v < v o u t P n , v n v v o u t ( v v i n ) ( v n v i n ) P n , v i n v v n .
In Equation (1), (Explain the specific meaning of the formula) P W represents the output of wind power, P n represents rated power, and the output of wind power generation is related to the actual wind speed, where v represents actual wind speed, v i n , v o u t and v n represent the cut-in wind speed, cut-out wind speed, and rated wind speed, respectively. When the wind speed is less than the cut-in wind speed or greater than the cut-out wind speed, the fan is not working. The output power is zero. If the wind speed is between the rated wind speed and the cut-out wind speed, the fan output is at the rated power output. When the wind speed is between, the output power of the fan is reflected by the empirical equation.
Photovoltaic panel model:
P V = r s η V .
Photovoltaic output is positively correlated with light intensity. In Equation (2), P V represents the output power of solar energy, r represents the light intensity, s represents the total radiation area of the photovoltaic module, and η V represents the photoelectric conversion efficiency of the photovoltaic panel.
Diesel generator model:
The mathematical model of diesel generators is like that of coal-fired units in thermal power generation, and it has a particular peak-shaving effect in microgrids. The formula is as follows:
C D E = i = 1 N ( a i + b i P D E + c i P D E 2 ) .
In Equation (3), a i , b i , and c i are the cost coefficients of diesel generators; C D E represents the cost of power generation; P D E represents the output of generators; N represents the number of diesel generators.
Micro Turbine Model:
The stand-alone power of a microturbine is small, generally between 20 and 300 KW, and its formula is as follows:
C M G = P r i c e L P M G ( t ) Δ t η M G ( t ) .
In Equation (4), Price and L represent the price and calorific value of natural gas, respectively; P M G ( t ) represents the output power of the microturbine at time t; η M G ( t ) represents the power generation efficiency at this time, and the efficiencies of different types of micro-turbines can be obtained by polynomial curve fitting. The model of the micro turbine is C65; Δ t indicates the operating hours.
Fuel cell model:
Fuel cells are known as the fourth-generation power generation device technology. Proton exchange membrane fuel cells are selected, and their cost formula is similar to that of microturbines:
C F C = P r i c e L P F C ( t ) Δ t η F C ( t ) .
In Equations (5), P F C ( t ) and η F C represent the fuel cell’s output power and power generation efficiency, respectively, where the power generation efficiency can also be obtained by polynomial curve fitting.
The traditional neural network prediction method for wind and solar output prediction is unsuitable because wind and solar have volatility and randomness and are affected by many factors. Traditional wind and solar output forecasting use a neural network to make regression predictions on historical power. However, the predicted value often needs to reflect the influence of uncertain weather conditions on wind and solar output. Aiming at the uncertainty processing of wind and solar, Ref. [27] proposed a two-stage optimization model of the microgrid from the two stages of day ahead and real time. This method can effectively reduce the prediction error and improve the stability of the power supply. Ref. [28] proposed a microgrid interval optimization method based on affine arithmetic and used the non-dominated sorting genetic algorithm to solve the framework. The results show that this method can effectively alleviate the uncertainty brought by renewable energy, such as wind and solar. Ref. [29] considered the meteorological conditions comprehensively, using a data-driven Bayesian non-parametric method, modified column, and constraint generation (CC) to solve the uncertainty problem of the scenery further. This paper uses the Monte Carlo sampling method to reduce the scene of wind and solar generation. The uncertain process of wind power and photovoltaic output is simulated by randomly optimized scenario generation and reduction. The core idea of Monte Carlo is to use the frequency of events to approximate the probability of event occurrence and use the Euclidean distance as the basis for scene reduction to iterate. The method is mainly divided into three parts: building a probability model, sampling, and valuation.
Weibull distribution of wind speed:
f ( v , c , k ) = ( k c ) ( v c ) k 1 e ( v c ) k .
In Equation (6), v represents the actual wind speed, and c and k are Weibull’s model parameters.
Beta distribution of light intensity:
f ( s , α , β ) = Γ ( α + β ) Γ ( α ) Γ ( β ) s ( α 1 ) ( 1 s ) ( β 1 ) .
In Equation (7), s represents the light intensity α and β is the shape parameter of the Beta distribution. The wind speed and light intensity data fitted by Weibull and Beta distributions are, respectively, substituted into the wind turbine output model and the photovoltaic power generation output model. The wind and solar output prediction is obtained by using Monte Carlo scene reduction.

2.2. Microgrid Economic Dispatching Model

There are multiple objective functions and constraints in the microgrid dispatching optimization problem, and most of the research on microgrid scheduling only considers the cost target of the DG output of the microgrid and the cost of electricity purchase and sale. In this paper’s microgrid economic dispatching model, there are traditional power generation, such as microturbines and diesel generators, so the three objective functions of DG cost, environmental impact cost, and power purchase cost are considered comprehensively.
Power Generation Cost:
F 1 = min ( t = 1 T [ i = 1 N ( ( C i , f + C i , m ) P i , t ) ] ) .
In Equation (8), T represents the scheduling cycle; N represents the total number of distributed power sources; C i , f and C i , m , respectively, P i , t cost and equipment maintenance cost of distributed power sources;  represents the output result of the i-th power source at time t. The installation and maintenance costs of wind turbines and photovoltaic power generation panels are not considered here.
Environmental Impact Costs:
In the microgrid of this example, there is a distributed power source that uses natural gas, diesel, and other energy supplies as raw materials for power generation. It is also necessary to include the environmental impact cost in the objective function of microgrid dispatching optimization to consider the environmental gas pollution caused by the consumption of these raw materials (mainly refers to C O 2 , S O 2 , N O X , etc.):
F 2 = min ( t = 1 T ( i = 1 N ( C i , e P i , t ) ) ) .
Equation (9), C i , e represents the pollution gas environmental cost coefficient corresponding to each distributed power supply.
Electricity price cost:
To reflect intuitively the consumption and utilization of the microgrid, consider the cost of electricity price as the objective optimization function:
F 3 = min ( t = 1 T ( C g r i d , t P g r i d , t ) ) .
In Equation (10), C g r i d , t represents the real-time electricity price (24 h system); P g r i d , t represents the power exchange result between the microgrid and the enormous power grid after considering the user load.
In summary, the objective function of microgrid dispatching optimization can be expressed as
min F = i = 1 3 F i .
Micro Turbine Constraints:
P M G min P M G ( t ) P M G max .
In Equation (12), P M G min represents the minimum output constraint of the microturbine; P M G max represents the maximum power of the microturbine unit output; some studies use the rated power here.
Diesel Constraints:
P D E min P D E ( t ) P D E max .
Fuel Cell Constraints:
P F C min P F C ( t ) P F C max .
Power exchange constraints between the microgrid and main grid:
P g r i d min P g r i d P g r i d max .
In the above equation, P g r i d min P g r i d max  represent the minimum and maximum power allowed for power exchange between the microgrid and the primary grid.
Microgrid supply and demand balance constraints:
P L , t = P g r i d , t + P M G , t + P D E , t + P F C , t + P W , t + P V , t .
In Equation (16), P L , t represents the total power demanded by the load during the t period.

3. An Improved Bacterial Foraging Optimization and Its Application

The BFO [30,31,32] is a new swarm intelligence algorithm mainly divided into chemotaxis, replication, and dispersal. (BFO’s Short Insights) Traditional BFOs will face problems, such as slow convergence speed, poor accuracy of results, easy to fall into local optimization, and low efficiency of algorithms. The schematic diagram of E. coli is shown in Figure 2, Figure 2a represents the forward swimming process of E. coli, and Figure 2b represents the overturning process of E. coli.

3.1. Chemotaxis Process

Chemotaxis is a significant part of the BFO algorithm. It simulates the forward and reverse of Escherichia coli in the foraging process, as shown in the above picture (Figure 2). This is used as the primary means of optimization. The following formula can approximate the process of flipping forward:
θ ( i , j + 1 , k , l ) = θ ( i , j , k , l ) + C ( i ) P H I P H I = Δ i Δ T i · Δ i
In Equation (17), θ ( i , j , k , l ) represents the position of the i-th bacterium at the j-th chemotaxis, k-th replication, and l-th dispersal; C ( i ) represents the step size of the i-th bacterium, and the traditional Bacterial Foraging Optimization adopts a fixed step size formula to find the Optimal solution; PHI represents the random direction of bacteria forward; Δ i is the defined random direction vector.
Step size C has a significant impact on the convergence speed and accuracy of the algorithm. Although a more significant step size can increase the convergence speed, it reduces the accuracy. Although a too-small step size can improve the solution accuracy, it will cause the algorithm to converge slowly. The fixed step size in the traditional BFO is a fundamental reason for the slow convergence of the algorithm because it cannot balance the convergence speed and accuracy. Ref. [33] introduced the step size search formula of the fish swarm algorithm into the BFO and used an adaptive function to improve the step size. The speed of this function is very slow at the beginning of the iteration, and the speed suddenly increases at the end of the iteration. Although this method can improve the convergence speed to a certain extent, its impact on the global search performance of the algorithm remains to be verified. For this reason, this paper proposes to use the dynamic step size formula instead of the traditional fixed value.
C ( x ) = exp ( ( N c N r e N e d τ j + ( k 1 ) N c + ( l 1 ) N r e N e d ) 1 α ) C .
In Equation (18), (We rewrote the correlation equation) N c , N r e , and N e d , respectively, denote the number of chemotaxis restriction, replication restriction, and dispersal restriction in the α  expressed as the step length coefficient. The above equation makes it possible to search with a more significant step size in the early stage of the algorithm iteration and speed up the algorithm’s convergence speed. As the number of iterations increases, a refined search is performed with a small step size in the later stage of the iteration to improve the algorithm’s accuracy.
Another factor that plays a crucial role in the convergence speed is the random direction vector PHI. Due to the random process being included in the definition of the random direction vector, the convergence speed of the algorithm is limited [34]. For this reason, this paper proposes a particle swarm algorithm speed formula using dynamic inertia weight factors to replace the traditional random direction vector.
V ( j + 1 ) = w _ n o w V ( j ) + c 1 r 1 ( P b e s t i P i ) + c 2 r 2 ( G b e s t i P i ) ,
w _ n o w = ( w _ s t a r t w _ e n d ) ( M a x i t e r i t e r ) M a x i t e r + w _ e n d .
In Equation (19), V represents the velocity; c 1 and c 2 represent the weight coefficient; r 1 and r 2 represent random number; P b e s t i G b e s t i  represent the current optimal solution and the optimal global solution, respectively w _ n o w  represents the dynamic inertia weight coefficient. The advantages of the fast solution speed of the particle swarm optimization algorithm are mainly reflected in the speed and population update formula. The update of velocity V depends on the optimal solution, which is very different from random optimization. Many invalid searches are avoided, which is also the main reason for the fast iteration of the particle swarm optimization algorithm. Replacing the traditional PHI with the speed formula can speed up the chemotaxis speed of bacteria foraging and significantly improve the convergence speed and efficiency of the algorithm (Algorithm 1).
Algorithm 1: Chemotaxis process with hybrid dynamic step size and PSO
1 for j = 1:Nc
2  for i = 1:s
3    C = C(x) (C (x) represents the dynamic adaptive step size of the xth bacteria)
4    Calculate the influence of bacterial clustering behavior on fitness value and save as Jl
5    Replacing PHI with Particle Swarm Velocity Formula
6    P(i,j + 1) = P(j) + C * PHI
7    Update fitness value J
8    while (m < Ns)
9      if (J < Jl)
10       Update fitness value J
11      else
12       m = Ns
13      end
14   end
15   Update fitness value Jl
16  end
17 end

3.2. Replication Process

The replication process is the process of simulating the biological elimination competition of bacteria. After the chemotaxis is completed, the replication operation is performed according to the accumulated health value of the bacteria, namely:
J H e a l t h i = j = 1 N c J ( i , j , k , l ) .
In Equation (21), J H e a l t h i represents the cumulative health value of bacteria i; N c which represents the total number of chemotaxis. The BFO algorithm uses the binary replication method. The cumulative health value is sorted in ascending order, and the first half of high-quality bacterial individuals are copied to keep the overall number of bacteria unchanged.
The traditional binary replication method has certain disadvantages. Although the algorithm’s complexity is reduced, the diversity of the population is also significantly reduced. Currently, the improvement of the BFO replication process mainly focuses on the hybridization of the population, and the commonly used methods include mixed GA. Ref. [35] proposed the method of crossing bacterial individuals to improve the population. However, this paper proposes to use the crisscross algorithm [36,37,38] to replace the binary replication method to improve the replication process and ensure the diversity of the population. The crisscross algorithm has been an emerging swarm intelligence algorithm in recent years. Each crossover iteration of the crisscross has a comparison process with the previous generation different from Ref. [35]. The horizontal crossover process is as follows:
M S h c ( x , d ) = r 1 X ( x , d ) + ( 1 r 1 ) X ( y , d ) + c 1 ( X ( x , d ) X ( y , d ) ) ,
M S h c ( y , d ) = r 1 X ( y , d ) + ( 1 r 1 ) X ( x , d ) + c 1 ( X ( y , d ) X ( x , d ) ) .
This equation is expressed as the intersection of X ( x , d ) and X ( y , d ) in the d dimension, which r 1 represents a random number between [0, 1] and c 1 represents a random number between [−1, 1]. Two individuals can be crossed to produce two offspring, which can be decided by updating the health value. High-quality individuals enter the next step of the vertical crossover process.
The vertical cross process is:
M S v c ( x , d 1 ) = r X ( x , d 1 ) + ( 1 r ) X ( x , d 2 ) .
This formula is expressed as crossing bacteria x in two dimensions. The vertical crossing is a random process. The vertical crossing will be performed only when the satisfaction probability is less than the crossing probability. This is also the difference from the horizontal crossing. At the same time, it is only better than the parent generation. The cross children will be retained for the next iteration. Relying on the CSO to update the population in different dimensions can effectively broaden the population’s diversity and enhance the algorithm’s global search performance (Algorithm 2).
Algorithm 2: Replication Process of Hybrid CSO
1 for k = 1:Nre
2   for i = 0:s/2 − 1
3    if rand < Longitudinal crossing probability
4     for j = 1:p
5       Longitudinal crossing of populations
6     end  
7    end
8   end
9   Update population according to fitness value
10  for i = 0:p/2 − 1
11    for j = 1:s
12     Horizontal crossing of populations
13    end
14  end
15 end

3.3. Dispersal Process

Dispersion is significant to ensure that the algorithm jumps out of the optimal local solution. The algorithm is designed to regenerate a bacterium i according to the initial population generation formula if the random probability r is less than the fixed dispersal probability P e d . This method simulates the influence of the external environment on E. coli. The traditional fixed dispersal probability will bring certain disadvantages. Some high-quality bacterial individuals will be eliminated, thereby reducing the algorithm’s efficiency under the fixed probability to satisfy the algorithm’s general nature. This paper introduces a dynamic probability formula to replace the traditional fixed dispersal probability through:
P ( x ) = P e d J w o r s t J x J w o r s t J b e s t .
The probability can be adjusted to a dynamic probability that changes with the health value. In Equations (25), J w o r s t represents the worst value of the health degree, J b e s t represents the optimal value of the health degree, and J x represents the real-time health value of the x-th bacteria. The probability of individuals with excellent health values being dispersed decreases while the probability of bacterial individuals with poor health values being dispersed increases in this way. Thus, the high-quality individuals avoid loss and ensure the efficiency and performance of the algorithm. Although, the dynamic dispersal probability can avoid the loss of high-quality solutions as much as possible. This paper proposes the Sine-Cosine algorithm (SCA) to improve the dispersal process.
SCA is a new swarm intelligence algorithm proposed by Australian scholar Mirjalili in 2016 [39]. The algorithm utilizes sine and cosine functions inspired by the fluctuating optimization of sine and cosine functions to fluctuate the initial random candidate solution toward the optimal solution or vice versa to complete the optimization process.
X i t + 1 = X i t + r 1 sin ( r 2 ) | r 3 P i t X i t | , r 4 < 0.5 ,
X i t + 1 = X i t + r 1 cos ( r 2 ) | r 3 P i t X i t | , r 4 0.5 .
The above equation X i t represents the position of the i-th dimension of the current solution in the t-th iteration, the value of r 1 to r 4 means a random number, indicating the end position of the i-th dimension. r 4 is a random number that represents the determination of the probability of a search strategy. Taking 0.5 allows the two strategies to be performed with equal probability. When the random number is less than 0.5, a sinusoidal oscillation search is performed, and when the random number is greater than 0.5, a cosine oscillation search is performed. Ref. [40] applies the SCA to the process of chemotaxis and uses the sine-cosine search formula to optimize the random direction vector PHI so that the step size can be reduced linearly from a to 0. The speed of BFO improves in this model. This paper proposes using the SCA to improve population generation in dispersal. After satisfying the dynamic dispersal probability, it is judged again to perform the sine-cosine search. The terminal position is set as the optimal bacterial position, and the above formula generates dispersed populations of bacteria that meet the requirements. The dispersed bacteria will change with the optimization process of the algorithm. Thus, the loss of the optimal value caused by the randomness of traditional methods is avoided, and the algorithm’s efficiency is improved (Algorithm 3).
Algorithm 3: Dispersion process of hybrid dynamic probability and SCA
1 for l = 1:Ned
2   for m = 1:s
3    Dynamic dispersion probability
4    if Ped > rand
5     if r4 < 0.5
6      Sinusoidal oscillation search
7     else
8      Cosine oscillation search
9     end
10    end
11  end
12 end

3.4. Test Analysis

To quantitatively analyze the impact of each improved part on the performance of the algorithm, this paper uses six test functions to test BFO and BFO with CSO and BFO with SCA and BFO with CSO and SCA, BFO with PSO, IBFO with PSO, and CSO and SCA. Moreover, this paper compared BFO with PSO and some improved bacterial foraging algorithms. The number of iterations is 400, the number of bacteria s is 50, the number of chemotaxis Nc is 50, the maximum number of steps Ns of one-way movement is 4, the number of copy operations Nre is 4, the number of dispersal Ned is 2, the traditional dispersal probability Ped is 0.25, the number of attractants d attract is 0.1, the release rate of the attractant ommiga attract is 0.2, the number of repellants h repellant is 0.1, and the release rate ommiga repellant of the repellant is 0.1. Each group of test functions is carried out in 20 experiments, and the test results are as follows (Table 1, Figure 3, Figure 4, Figure 5, Figure 6, Figure 7 and Figure 8).
The ordinate in the figure above represents the function value, and the abscissa represents the iteration number. By combining the algorithm’s test results and convergence curve, SCA comprehensively improves the convergence speed and accuracy of the algorithm. The CSO improves the algorithm’s accuracy more significantly but at the expense of convergence speed. Mixing the two will improve the accuracy due to SCA’s efficient population dispersal during the dispersal process. It reduces the algorithm speed slightly simultaneously because mixing crisscross takes some time. However, the CSO enriches the replication population and improves the search performance of the algorithm. The convergence result will change abruptly due to the influence of dispersal on population initialization when iteration is 200 times. Improving the dispersal process can effectively alleviate this situation and make the whole process of algorithm convergence relatively smooth. Mixing PSO can significantly improve the convergence rate of BFO because PSO can improve the process of E. coli rollover swimming and avoid a lot of invalid random searches. The speed update formula of the particle swarm optimization algorithm can quickly search for iteration. The BFO integrated with various optimization parts has the highest search accuracy and the fastest iteration speed. This paper also compares some other algorithms for BFO optimization, such as the Hormone Regulation based Emotional Bacterial Foraging Algorithm (HR-EBFA) [41], Bacterial Foraging reinforcement Learning Optimization Algorithm (RL-BFA) [42], the improved Quantum Bacterial Foraging Algorithm (MQBFA) [44], and Distribution Estimation based adaptive Bacterial Foraging Algorithm (BFOED) [43]. The improved bacterial foraging algorithm presented in this paper has better results than the above methods.

4. Algorithm Application and Experimental Analysis

In this paper, microgrid dispatching optimization is designed as the behavior of bacteria foraging. The flow chart is as follows:
Among them, in Figure 9, the bacterial population is initialized as a six-dimensional array: P = z e r o s ( N , T , p o p s i z e , N c , N r e , N e d ) . The first to sixth dimensions correspond to the distributed power supply, the microgrid operating period, the number of bacteria, the number of chemotaxes, the number of replications, and the number of dispersals.

4.1. Uncertainty Treatment of Wind Power and Photovoltaic

Given the uncertain influence of wind power and solar, this paper uses meteorological data from a particular place in Inner Mongolia to predict wind and solar output. It uses the MC’s idea to generate 100 scenery scenes and then cut them back randomly. The five output scenes and their probabilities after reduction are shown in the figure below.
According to Figure 10, Scenario 5 has the highest probability. Figure 11 shows 100 random scenarios for simulating wind power output, and Figure 12 shows 100 random scenarios for simulating photovoltaic output. Figure 13 and Figure 14 show the output after scenario reduction. The uncertainty process of wind and photovoltaic output are simulated by using the probability of scenario occurrence. Therefore, this paper uses the forecast data of the reduced wind and photovoltaic output of Scenario 5, and the reduced wind power output is shown in Figure 15.

4.2. Examples of Microgrid Dispatching

The basic parameters of the controllable distributed power generation in Table 2 and typical daily load and real-time electricity price in Table 3 in this example are as follows:
The typical daily load [45] and real-time electricity price [46] are as follows:
Considering the environmental cost, the emission coefficients of each pollutant, and the corresponding cost coefficients [47] are as follows (Table 4):
Figure 16 shows the scheduling results of the microgrid. Wind and photovoltaic are clean and renewable energy that will be fully output in the microgrid dispatching, and other distributed power sources will fill the shortage of unmet load demand. It is necessary to purchase power from the enormous power grid if the combined output of each distributed power source under the constraint of the upper limit of the maximum power fails to meet the load demand. Fuel cells are prioritized for most of the operation period, followed by micro steam turbines and diesel generators because of their low operating costs and environmental impact. The overflow will be sold to the grid according to the selling price between hours three and six; the overflow occurs at hours nineteen and twenty-two. This study will consider adding energy storage equipment into the subsequent research to improve the absorption capacity of the power grid.
It can be seen from Figure 17 that the Total cost (T-cost) includes various parts of the cost, including the operation cost of distributed power supply (O-cost), Environmental pollution cost (E-cost), and the cost of electricity purchase and sale (P and S-cost). The operation cost of distributed power supply gradually increases after the start-up of each distributed power supply and then fluctuates within a specific range; during the stop phase, the operation cost will gradually decrease. O-cost accounts for a large proportion of T-cost, followed by E-cost and P-and S-cost. The negative value of the P- and S-cost represents the profit from electricity sales, and the positive value represents the electricity purchase expenditure.
The following Table 5 shows the detailed data of each distributed power source and power grid output in the optimal scheduling results of the microgrid.
This paper applies IBFO, BFO, and PSO to the microgrid economic dispatching problem to verify the improved method’s excellence. The number of experiments is 30, and the experimental results are averaged. In Table 5, the experimental result of IBFO is the best, which is CNY 1653.4, the experimental result of BFO is CNY 1739.9, and the experimental result of PSO is CNY 1716.0. The microgrid dispatching cost of IBFO is reduced by 3.79% compared with PSO. The scheduling cost of the improved bacterial foraging algorithm is reduced by 5.23% compared with the traditional BFO. The experimental results show that the improved bacterial foraging algorithm can effectively reduce the cost of economic dispatching optimization of the microgrid.

5. Conclusions

This paper refines the three main steps of BFO. This study introduced the speed formula of PSO in the chemotaxis stage to improve the search accuracy and speed. The adaptive step size is used to modify the standard fixed step size, which made the algorithm search at high speed in the early iteration. The improvements reduce the step size in the late iteration. The CrissCross Algorithm is used to enrich the population diversity in the replication stage. The global search performance of the algorithm is further enhanced. This research proposes the dynamic dispersal equation to improve the survival of high-quality individuals’ probability to solve the low efficiency caused by the loss of high-quality individuals in the dispersal process. This research also proposed SCA to improve the population generation and further improve the search efficiency of the algorithm. The influence of each improved part on the algorithm’s performance was quantitatively analyzed by multiple test functions and compared with many other improved algorithms for bacterial foraging. The results show that the improved Bacterial Foraging Algorithm proposed has the best results. This study applied the improved BFO to a microgrid economic scheduling model considering multiple optimization objectives to prove the excellent performance. MC is used to reduce the scene by aiming at the uncertainty processing of scenery force in the model. Finally, the experimental results prove that the method proposed can effectively reduce the operating cost of the microgrid, improve economic benefits, reduce environmental pollution, and ensure the stability of power consumption for users. In the future, we can study the accommodation of microgrids and the dispatching of microgrids with multiple energy storage devices.

Author Contributions

Conceptualization, Y.Z. (Yi Zhang); methodology, Y.L.; software, Y.L.; investigation, Y.Z. (Yangkun Zhou); resources, Y.L.; data curation, Y.Z. (Yangkun Zhou); writing—original draft preparation, Y.Z. (Yangkun Zhou) and Y.Z. (Yi Zhang); writing—review and editing, Y.Z. (Yi Zhang). All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the fund of the Science and Technology Development Project of Jilin Province No. 20220203190SF; the fund of the education department of Jilin province No. JJKH20210257KJ.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

Abbreviations commonly used in articles and abbreviations used in bacterial foraging algorithms:
NameAbbreviation
Particle Swarm OptimizationPSO
Genetic AlgorithmGA
Differential Evolution AlgorithmDE
Whale Optimization AlgorithmWOA
Bacterial Foraging OptimizationBFO
Sine-Cosine algorithmSCA
Criss-cross OptimizationCSO
Distributed GenerationDG
PV powerPV
Power of WindPW
Number of chemotaxis restrictionNc
Number of replication restrictionNre
Number of dispersal restrictionNed
Search Step SizeC
Probability of dispersionPed
Fitness valueJ
PopulationP

References

  1. Sahoo, A.; Hota, P.K. Impact of energy storage system and distributed energy resources on bidding strategy of micro-grid in deregulated environment. J. Energy Storage 2021, 43, 103230. [Google Scholar] [CrossRef]
  2. Meng, A.; Xu, X.; Zhang, Z.; Zeng, C.; Liang, R.; Zhang, Z.; Wang, X.; Yan, B.; Yin, H.; Luo, J. Solving high-dimensional multi-area economic dispatch problem by decoupled distributed crisscross optimization algorithm with population cross generation strategy. Energy 2022, 258, 124836. [Google Scholar] [CrossRef]
  3. Das, A.; Wu, D.; Ni, Z. Approximate dynamic programming with policy-based exploration for microgrid dispatch under uncertainties. Int. J. Electr. Power Energy Syst. 2022, 142, 108359. [Google Scholar] [CrossRef]
  4. Sigalo, M.B.; Pillai, A.C.; Das, S.; Abusara, M. An Energy Management System for the Control of Battery Storage in a Grid-Connected Microgrid Using Mixed Integer Linear Programming. Energies 2021, 14, 6212. [Google Scholar] [CrossRef]
  5. Li, B.; Roche, R. Real-Time Dispatching Performance Improvement of Multiple Multi-Energy Supply Microgrids Using Neural Network Based Approximate Dynamic Programming. Front. Electron. 2021, 2, 637736. [Google Scholar] [CrossRef]
  6. Capuno, M.; Song, H. DC Microgrid Optimal Power Flow Using Nonlinear Programming. Proc. Acad. Conf. Korean Electr. Soc. 2016, 11, 68–69. [Google Scholar]
  7. Zheng, C.; Eskandari, M.; Li, M.; Sun, Z. GA−Reinforced Deep Neural Network for Net Electric Load Forecasting in Microgrids with Renewable Energy Resources for Scheduling Battery Energy Storage Systems. Algorithms 2022, 15, 338. [Google Scholar] [CrossRef]
  8. Dou, C.; Zhou, X.; Zhang, T.; Xu, S. Economic Optimization Dispatching Strategy of Microgrid for Promoting Photoelectric Consumption Considering Cogeneration and Demand Response. J. Mod. Power Syst. Clean Energy 2020, 8, 557–563. [Google Scholar] [CrossRef]
  9. Jiang, H.; Ning, S.; Ge, Q.; Yun, W.; Xu, J.; Bin, Y. Optimal economic dispatching of multi-microgrids by an improved genetic algorithm. IET Cyber-Syst. Robot. 2021, 3, 68–76. [Google Scholar] [CrossRef]
  10. Hernández-Ocaña, B.; García-López, A.; Hernández-Torruco, J.; Chávez-Bosquez, O. Bacterial Foraging Based Algorithm Front-end to Solve Global Optimization Problems. Intell. Autom. Soft Comput. 2022, 32, 1797–1813. [Google Scholar] [CrossRef]
  11. Hernández-Ocaña, B.; Hernández-Torruco, J.; Chávez-Bosquez, O.; Calva-Yáñez, M.B.; Portilla-Flores, E.A. Bacterial Foraging-Based Algorithm for Optimizing the Power Generation of an Isolated Microgrid. Appl. Sci. 2019, 9, 1261. [Google Scholar] [CrossRef] [Green Version]
  12. Awad, H.; Hafez, A. Optimal operation of under-frequency load shedding relays by hybrid optimization of particle swarm and bacterial foraging algorithms. Alex. Eng. J. 2022, 61, 763–774. [Google Scholar] [CrossRef]
  13. Jiang, J.; Zhou, R.; Xu, H.; Wang, H.; Wu, P.; Wang, Z.; Li, J. Optimal sizing, operation strategy and case study of a grid-connected solid oxide fuel cell microgrid. Appl. Energy 2022, 307, 118214. [Google Scholar] [CrossRef]
  14. Wang, J.; Liu, C.; Zhou, M. Improved Bacterial Foraging Algorithm for Cell Formation and Product Scheduling Considering Learning and Forgetting Factors in Cellular Manufacturing Systems. IEEE Syst. J. 2020, 14, 3047–3056. [Google Scholar] [CrossRef]
  15. Jalilpoor, K.; Nikkhah, S.; Sepasian, M.S.; Aliabadi, M.G. Application of precautionary and corrective energy management strategies in improving networked microgrids resilience: A two-stage linear programming. Electr. Power Syst. Res. 2022, 204, 107704. [Google Scholar] [CrossRef]
  16. Bio Gassi, K.; Baysal, M. Analysis of a linear programming-based decision-making model for microgrid energy management systems with renewable sources. Int. J. Energy Res. 2022, 46, 7495–7518. [Google Scholar] [CrossRef]
  17. Khalid, A.; Javaid, N.; Mateen, A.; Khalid, B.; Khan, Z.A.; Qasim, U. Demand Side Management Using Hybrid Bacterial Foraging and Genetic Algorithm Optimization Techniques. In Proceedings of the 2016 10th International Conference on Complex, Intelligent, and Software Intensive Systems (CISIS), Fukuoka, Japan, 6–8 July 2016; IEEE: New York, NY, USA, 2016. [Google Scholar]
  18. Liu, L.; Shan, L.; Dai, Y.; Liu, C.; Qi, Z. A Modified Quantum Bacterial Foraging Algorithm for Parameters Identification of Fractional-Order System. IEEE Access 2018, 6, 6610–6619. [Google Scholar] [CrossRef]
  19. Meng, A.; Ge, J.; Yin, H.; Chen, S. Wind speed forecasting based on wavelet packet decomposition and artificial neural networks trained by crisscross optimization algorithm. Energy Convers. Manag. 2016, 114, 75–88. [Google Scholar] [CrossRef]
  20. Zhang, M.; Xu, W.; Zhao, W. Combined optimal dispatching of wind-light-fire-storage considering electricity price response and uncertainty of wind and photovoltaic power. Energy Rep. 2023, 9, 790–798. [Google Scholar] [CrossRef]
  21. Yin, M.; Li, K.; Yu, J. A data-driven approach for microgrid distributed generation planning under uncertainties. Appl. Energy 2022, 309, 118429. [Google Scholar] [CrossRef]
  22. Mirjalili, S. SCA: A Sine Cosine Algorithm for solving optimization problems. Knowl.-Based Syst. 2016, 96, 120–133. [Google Scholar] [CrossRef]
  23. Mohammad, S.; Nasir, A.N.K.; Ghani, N.M.A.; Ismail, R.M.T.R.; Abd Razak, A.A.; Jusof, M.F.M.; Rizal, N.A.M. Hybrid Bacterial Foraging Sine Cosine Algorithm for Solving Global Optimization Problems. IOP Conf. Ser. Mater. Sci. Eng. 2020, 917, 12081. [Google Scholar] [CrossRef]
  24. Ni, N.; Zhu, Y. Self-adaptive bacterial foraging algorithm based on estimation of distribution. J. Intell. Fuzzy Syst. 2021, 40, 5595–5607. [Google Scholar] [CrossRef]
  25. Alhasnawi, B.N.; Jasim, B.H.; Siano, P.; Alhelou, H.H.; Al-Hinai, A. A Novel Solution for Day-Ahead Scheduling Problems Using the IoT-Based Bald Eagle Search Optimization Algorithm. Inventions 2022, 7, 48. [Google Scholar] [CrossRef]
  26. Alhasnawi, B.N.; Jasim, B.H.; Mansoor, R.; Alhasnawi, A.N.; Rahman, Z.A.S.A.; Haes Alhelou, H.; Guerrero, J.M.; Dakhil, A.M.; Siano, P. A new Internet of Things based optimization scheme of residential demand side management system. IET Renew. Power Gener. 2022, 16, 1992–2006. [Google Scholar] [CrossRef]
  27. Rezaei, N.; Meyabadi, A.F.; Deihimi, M. A game theory based demand-side management in a smart microgrid considering price-responsive loads via a twofold sustainable energy justice portfolio. Sustain. Energy Technol. Assess 2022, 52, 102273. [Google Scholar] [CrossRef]
  28. Kasruddin Nasir, A.N.; Ahmad, M.A.; Tokhi, M.O. Hybrid spiral-bacterial foraging algorithm for a fuzzy control design of a flexible manipulator. J. Low Freq. Noise Vib. Act. Control 2022, 41, 340–358. [Google Scholar] [CrossRef]
  29. Ping, L.; Xiangrui, K.; Chen, F.; Zheng, Y. Novel distributed state estimation method for the AC-DC hybrid microgrid based on the Lagrangian relaxation method. J. Eng. 2019, 2019, 4932–4936. [Google Scholar] [CrossRef]
  30. Behnamfar, M.R.; Barati, H.; Karami, M. Stochastic Multi-objective Short-term Hydro-thermal Self-scheduling in Joint Energy and Reserve Markets Considering Wind-Photovoltaic Uncertainty and Small Hydro Units. J. Electr. Eng. Technol. 2021, 16, 1327–1347. [Google Scholar] [CrossRef]
  31. Mao, W.; Dai, N.; Li, H. Economic dispatch of microgrid considering fuzzy control based storage battery charging and discharging. J. Electr. Syst. 2019, 15, 417–428. [Google Scholar]
  32. Du, X.; Wang, L.; Zhao, J.; He, Y.; Sun, K. Power Dispatching of Multi-Microgrid Based on Improved CS Aiming at Economic Optimization on Source-Network-Load-Storage. Electronics 2022, 11, 2742. [Google Scholar] [CrossRef]
  33. Zhao, X.; Zhang, Z.; Xie, Y.; Meng, J. Economic-environmental dispatch of microgrid based on improved quantum particle swarm optimization. Energy 2020, 195, 117014. [Google Scholar]
  34. Tang, X.; Li, Z.; Xu, X.; Zeng, Z.; Jiang, T.; Fang, W.; Meng, A. Multi-objective economic emission dispatch based on an extended crisscross search optimization algorithm. Energy 2022, 244, 122715. [Google Scholar] [CrossRef]
  35. Zhang, X.; Son, Y.; Cheong, T.; Choi, S. Affine-arithmetic-based microgrid interval optimization considering uncertainty and battery energy storage system degradation. Energy 2022, 242, 123015. [Google Scholar] [CrossRef]
  36. Dai, X.; Lu, K.; Song, D.; Zhu, Z.; Zhang, Y. Optimal economic dispatch of microgrid based on chaos map adaptive annealing particle swarm optimization algorithm. J. Phys. Conf. Ser. 2021, 1871, 012004. [Google Scholar] [CrossRef]
  37. 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]
  38. Dan, Y.; Tao, J. Knowledge worker scheduling optimization model based on bacterial foraging algorithm. Future Gener. Comput. Syst. 2021, 124, 330–337. [Google Scholar] [CrossRef]
  39. Zhang, S.; Ji, X.; Guo, L.; Bao, Z. Multi-objective bacterial foraging optimization algorithm based on effective area in cognitive emergency communication networks. China Commun. 2021, 18, 252–269. [Google Scholar] [CrossRef]
  40. Zhang, Z.; Wang, Z.; Cao, R.; Zhang, H. Research on two-level energy optimized dispatching strategy of microgrid cluster based on IPSO algorithm. IEEE Access 2021, 9, 120492–120501. [Google Scholar] [CrossRef]
  41. Zhang, Z.; Zhao, C.; Chen, D.; Wen, A. Research on Microgrid Scheduling Based on Improved Crow Search Algorithm. Int. Trans. Electr. Energy Syst. 2022, 2022, 4662760. [Google Scholar] [CrossRef]
  42. Wang, Z.; Dou, Z.; Dong, J.; Si, S.; Wang, C.; Liu, L. Optimal Dispatching of Regional Interconnection Multi-Microgrids Based on Multi-Strategy Improved Whale Optimization Algorithm. IEEJ Trans. Electr. Electron. Eng. 2022, 17, 766–779. [Google Scholar] [CrossRef]
  43. Ding, M.; Zhang, Y.; Mao, M.; Liu, X.; Xu, N. Economic operation optimization for microgrids including Na/S battery storage. Proc. CSEE 2011, 31, 7–14. [Google Scholar]
  44. Dong, H.; Qi, X.; Wu, Y. Multi Objective Optimization of AGV Workshop Based on Improved Bacterial Foraging Algorithm. Syst. Eng. 2021, 39, 132–142. [Google Scholar]
  45. Han, C.; Zhang, X.; Tao, X.; Qu, K. Optimization Algorithm of Reinforcement Learning Based Knowledge Transfer Bacteria Foraging for Risk Dispatch. Autom. Electr. Power Syst. 2017, 41, 69–77+97. [Google Scholar]
  46. Hong, B.W.; Guo, L.; Wang, C.S.; Jiao, B.Q.; Liu, W.J. Model and method of dynamic multi-objective optimal dispatch for microgrid. Electric Power Autom. Equip. 2013, 33, 100–107. [Google Scholar]
  47. Wei, Z.; Zhang, H.; Wei, P.; Liang, Z.; Ma, X.; Sun, Z. Two-stage optimal dispatching for microgrid considering dynamic incentive-based demand response. Power Syst. Prot. Control 2021, 49, 1–10. [Google Scholar]
Figure 1. Schematic Diagram of Microgrid Structure.
Figure 1. Schematic Diagram of Microgrid Structure.
Biomimetics 08 00150 g001
Figure 2. E. coli swimming flip chart.
Figure 2. E. coli swimming flip chart.
Biomimetics 08 00150 g002
Figure 3. Convergence curve of f1.
Figure 3. Convergence curve of f1.
Biomimetics 08 00150 g003
Figure 4. Convergence curve of f2.
Figure 4. Convergence curve of f2.
Biomimetics 08 00150 g004
Figure 5. Convergence curve of f3.
Figure 5. Convergence curve of f3.
Biomimetics 08 00150 g005
Figure 6. Convergence curve of f4.
Figure 6. Convergence curve of f4.
Biomimetics 08 00150 g006
Figure 7. Convergence curve of f5.
Figure 7. Convergence curve of f5.
Biomimetics 08 00150 g007
Figure 8. Convergence curve of f6.
Figure 8. Convergence curve of f6.
Biomimetics 08 00150 g008
Figure 9. Flowchart of solving microgrid dispatching by comprehensively improved Bacterial Foraging Optimization.
Figure 9. Flowchart of solving microgrid dispatching by comprehensively improved Bacterial Foraging Optimization.
Biomimetics 08 00150 g009
Figure 10. Reduced Scenario Probabilities.
Figure 10. Reduced Scenario Probabilities.
Biomimetics 08 00150 g010
Figure 11. 100 random scenarios of wind power output.
Figure 11. 100 random scenarios of wind power output.
Biomimetics 08 00150 g011
Figure 12. 100 random scenarios of photovoltaic output.
Figure 12. 100 random scenarios of photovoltaic output.
Biomimetics 08 00150 g012
Figure 13. Wind power output reduced to 5 scenarios.
Figure 13. Wind power output reduced to 5 scenarios.
Biomimetics 08 00150 g013
Figure 14. Photovoltaic output reduced to 5.
Figure 14. Photovoltaic output reduced to 5.
Biomimetics 08 00150 g014
Figure 15. Wind power photovoltaic output after scenario reduction using MC.
Figure 15. Wind power photovoltaic output after scenario reduction using MC.
Biomimetics 08 00150 g015
Figure 16. Scheduling output results of microgrid and distributed power sources.
Figure 16. Scheduling output results of microgrid and distributed power sources.
Biomimetics 08 00150 g016
Figure 17. Each target cost result.
Figure 17. Each target cost result.
Biomimetics 08 00150 g017
Table 1. Compare test results.
Table 1. Compare test results.
FunctionEquationRangeOptimization
Technique
BestMeanstd
Sphere f 1 = i = 1 n x i 2 [−100–100]BFO0.41590.57020.1178
PSO0.20740.78610.5161
BFO with CSO0.03550.07640.0196
BFO with SCA0.37190.63270.1740
BFO with CSO and SCA0.02700.08030.0178
BFO with PSO [34] 0.08460.13160.0283
BFO with PSO, CSO and SCA3.82 × 10−174.79 × 10−91.34 × 10−8
HR-EBFA [41] 2.69 × 10−42.29 × 10−4
RL-BFA [42] 1.14 × 10−23.99 × 10−3
Ackley f 2 = 20 e x p ( 0.2 1 n i = 1 n x i 2 ) e x p ( 1 n i = 1 n cos ( 2 π x i ) ) + 20 + e [−32–32]BFO2.03372.33810.1838
BFO with CSO0.44980.67640.1175
BFO with SCA1.75692.24960.2334
BFO with CSO and SCA0.42630.70150.1197
BFO with PSO [34]0.76341.06450.1507
BFO with PSO, CSO and SCA3.36 × 10−70.00100.0017
BFOED [43]8.70 × 10−50.71340.2977
BFOSA [43]4.55 × 10−31.71330.3189
MQBFA [44] 1.2485
Rastrigin f 3 = i = 1 n [ x i 2 10 cos ( 2 π x i ) + 10 ] [−5.1–5.1]BFO18.589842.53818.1756
PSO7.744514.59184.2319
BFO with CSO8.472913.40232.3003
BFO with SCA24.652743.46787.8781
BFO with CSO and SCA4.088713.48223.3111
BFO with PSO [34]16.604326.80804.6352
BFO with PSO, CSO and SCA1.39 × 10−121.49 × 10−72.99 × 10−7
HR-EBFA [41] 8.13 × 10−41.09 × 10−3
RL-BFA [42] 1.90000.3140
MQBFO [44] 25.6570
Schaffer f 4 = 0.5 + sin 2 ( x 1 2 x 2 2 ) 0.5 [ 1 + 0.001 ( x 1 2 x 2 2 ) ] 2 [−100–100]BFO7.65 × 10−81.50 × 10−61.75 × 10−6
BFO with CSO1.83 × 10−94.88 × 10−84.53 × 10−8
BFO with SCA2.38 × 10−87.74 × 10−79.23 × 10−7
BFO with CSO and SCA4.99 × 10−119.48 × 10−87.95 × 10−8
BFO with PSO [34]1.72 × 10−79.48 × 10−61.64 × 10−5
BFO with PSO, CSO and SCA5.55 × 10−171.05 × 10−103.5 × 10−10
HR-EBFA [41] 4.94 × 10−32.70 × 10−3
RL-BFA [42] 2.69 × 10−23.82 × 10−3
Alpine f 5 = i = 1 n | x i sin x i + 0.1 x i | [−10–10]BFO0.17890.52850.1529
PSO0.01580.12310.1286
BFO with CSO0.02910.06710.0179
BFO with SCA0.22530.51810.1338
BFO with CSO and SCA0.02820.05990.0142
BFO with PSO [34]0.05820.14100.0492
BFO with PSO, CSO and SCA2.29 × 10−82.90 × 10−46.67 × 10−4
Schwefel f 6 = i = 1 n | x i | + i = 1 n | x i | [−10–10]BFO1.02912.02830.3183
PSO0.24700.42240.0944
BFO with CSO0.44480.66370.1050
BFO with SCA1.28101.93790.2794
BFO with CSO and SCA0.53940.70730.0835
BFO with PSO [34]0.70390.90210.1191
BFO with PSO, CSO and SCA1.93 × 10−70.00160.0046
Table 2. Basic parameters of controllable distributed power supply.
Table 2. Basic parameters of controllable distributed power supply.
Controllable Micro Power TypeLife Expectancy/YearPower Lower Limit/KWPower Upper Limit/KW
DE10060
FC10040
MT10065
grid −30200
Table 3. Typical daily load and real-time electricity price.
Table 3. Typical daily load and real-time electricity price.
Time Period/hLoad/KWElectricity Price/(Yuan/(KW·h))Time Period/hLoad/KWElectricity Price/(Yuan/(KW·h))
00:00–01:00101.0490.240012:00–13:00121.6290.9900
01:00–02:0079.9910.177013:00–14:00136.1511.4900
02:00–03:0041.8620.130114:00–15:00137.7520.9900
03:00–04:00101.3120.096915:00–16:00118.8240.7900
04:00–05:0067.1390.030016:00–17:00139.2210.4000
05:00–06:0082.0000.170117:00–18:00157.1580.3647
06:00–07:0085.0850.271018:00–19:00101.6890.3590
07:00–08:00110.8750.386419:00–20:00127.4000.4130
08:00–09:00115.2490.516920:00–21:00135.3120.4448
09:00–10:00120.6870.526021:00–22:0096.6920.3480
10:00–11:0098.7860.810022:00–23:0090.2430.3000
11:00–12:0013.9441.000023:00–24:00109.5870.2250
Table 4. Pollutant discharge and cost coefficient.
Table 4. Pollutant discharge and cost coefficient.
Types of Polluting GasesTreatment Cost (Yuan/kg)Controllable Power Supply Pollution Gas Emission Coefficient (g/(KW·h))
DEMTFC
N O x 26.463.741.820.01
S O 2 6.2378.792.280.003
C O 2 0.211142.9724.620.4
Table 5. Detailed data of microgrid and the output of DG.
Table 5. Detailed data of microgrid and the output of DG.
Time (h)Grid (KW)DE (KW)MT (KW)FC (KW)PV-WT (KW)
154.98474.615730.52938.44192.4774
213.920817.746116.799530.90690.5377
3−30.000049.200717.04345.57852.6790
4−1.138726.501863.059511.73691.1584
5−27.546220.136861.181011.68111.6862
6−22.21452.539161.319238.54151.8147
732.426724.480620.60017.54640.0312
818.70059.493958.803422.68571.1915
945.467712.929633.732521.97381.1454
1016.033547.431415.347037.28434.5908
1124.69198.967941.654420.02693.4449
1243.771324.074416.518611.37698.2029
1337.622328.555027.377019.64728.4275
1459.93953.918953.682612.20776.4023
1518.427255.683519.214738.51255.9142
1626.28108.250350.607430.90762.7776
1730.475629.135343.621332.85223.1366
1842.272528.807349.152135.82541.1007
19−28.680248.283664.077717.13990.8680
2029.662030.352845.465120.28811.6321
2169.74174.834952.36285.80722.5654
22−21.703427.631358.788631.13480.8406
2322.878424.707325.022817.27170.3629
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

Zhang, Y.; Lv, Y.; Zhou, Y. Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization. Biomimetics 2023, 8, 150. https://doi.org/10.3390/biomimetics8020150

AMA Style

Zhang Y, Lv Y, Zhou Y. Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization. Biomimetics. 2023; 8(2):150. https://doi.org/10.3390/biomimetics8020150

Chicago/Turabian Style

Zhang, Yi, Yang Lv, and Yangkun Zhou. 2023. "Research on Economic Optimal Dispatching of Microgrid Based on an Improved Bacteria Foraging Optimization" Biomimetics 8, no. 2: 150. https://doi.org/10.3390/biomimetics8020150

Article Metrics

Back to TopTop