Next Article in Journal
MHD Stagnation Point of Blasius Flow for Micropolar Hybrid Nanofluid toward a Vertical Surface with Stability Analysis
Previous Article in Journal
Simulations of Dynamical Electronic Vortices in Charge and Spin Density Waves
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Sparrow Search Algorithm for Optimal Operation Planning of Hydrogen–Electric Hybrid Microgrids Considering Demand Response

1
Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
2
Institute of Intelligent Manufacturing, GDAS, Guangzhou 510070, China
3
Guangdong Key Laboratory of Modern Control Technology, Guangzhou 510070, China
*
Authors to whom correspondence should be addressed.
Symmetry 2023, 15(4), 919; https://doi.org/10.3390/sym15040919
Submission received: 28 March 2023 / Revised: 11 April 2023 / Accepted: 11 April 2023 / Published: 15 April 2023
(This article belongs to the Section Engineering and Materials)

Abstract

:
Microgrid operation planning is crucial for ensuring the safe and efficient output of distributed energy resources (DERs) and stable operation of the microgrid power system. The integration of hydrogen fuel cells into microgrids can increase the absorption rate of renewable energy, while the incorporation of lithium batteries facilitates the adjustment of microgrid power supply voltage and frequency, ensuring the three-phase symmetry of the system. This paper proposes an economic scheduling method for a grid-connected microgrid that considers demand response and combines hydrogen and electricity. Based on the operating costs of renewable energy, maintenance and operation costs of nonrenewable energy, interaction costs between the microgrid and main grid, and pollution control costs, an optimization model for dispatching a hydrogen–electric hybrid microgrid under grid-connected mode is established. The primary objective is to minimize the operating cost, while the secondary objective is to minimize the impact on the user’s power consumption comfort. Therefore, an improved demand response strategy is introduced, and an enhanced sparrow search algorithm (ISSA) is proposed, which incorporates a nonlinear weighting factor and improves the global search capability based on the sparrow search algorithm (SSA). The ISSA is used to solve the optimal operation problem of the demand-response-integrated microgrid. After comparison with different algorithms, such as particle swarm optimization (PSO), whale optimization algorithm (WOA), sooty tern optimization algorithm (STOA), and dingo optimization algorithm (DOA), the results show that the proposed method using demand response and ISSA achieves the lowest comprehensive operating cost for the microgrid, making the microgrid’s operation safer and with minimum impact on user satisfaction. Therefore, the feasibility of the demand response strategy is demonstrated, and ISSA is proved to have better performance in solving optimal operation planning problems for hydrogen–electric hybrid microgrids.

1. Introduction

With the continuous development of society, the demand for electricity is increasing for human beings. In the entire power generation system of society, the power grid, as the main power generation system, bears a large part of the power generation responsibility. However, due to the increasing attention paid to sustainable development, many drawbacks of the power grid have gradually emerged [1,2,3,4]. On the one hand, the operation of the power grid is accompanied by significant environmental pollution [5,6,7,8], and on the other hand, the high operating cost of the power grid [9] makes it difficult to achieve real-time operation scheduling, which contradicts the increasing demand for electricity reliability from users. Therefore, in this situation, where environmental and economic pressures are exerting a double layer of pressure, distributed generation technology is rapidly developing [10,11,12]. Furthermore, the various advantages of distributed energy sources increasingly meet environmental and economic needs. Firstly, distributed generation has less pollution, which can effectively reduce environmental pollution. Secondly, it effectively uses clean energy sources, such as wind, solar, and geothermal energy in the local area to increase energy utilization efficiency. Thirdly, the cost of investment and construction is lower.
However, with the rapid development of distributed generation technology, many problems have gradually emerged. In the operation of the power grid, many distributed energy sources are connected to it, which produces a series of disadvantages related to system security protection, power quality, and reliable operation [13]. In order to solve the phenomenon of the impact of integrating DER into grid operation and make full use of the economic and environmental benefits brought by distributed generation technology, microgrid systems composed of renewable energy have been widely applied and developed [14,15,16,17,18]. A microgrid is a system unit that includes energy storage systems, loads, and DER. It can be connected to the power grid for grid-connected operation, and it can also operate independently from the power grid. It plays an important role in promoting the effective absorption of renewable energy and ensuring power supply reliability [19,20,21,22,23].
In the power grid system, because the generated energy cannot be stored in a large capacity, in order to solve the coordination and control problem, almost all power generation, transformation, transmission, and distribution must be completed at the same time. In a microgrid system, it includes a series of uncontrollable renewable energy sources, such as wind power and photovoltaic power. The complexity of the system scheduling and control mechanism is relatively high. However, the microgrid system has high efficiency, high reliability, flexible operation management, and can be connected to the distribution network for grid-connected operation. Therefore, optimizing the scheduling of microgrids involves many functional objectives and is relatively complex.
Therefore, an increasing number of researchers are using different scheduling strategies and metaheuristic algorithms to solve the optimal operation problem of microgrids. In [24], Alireza et al. proposed a robust metaheuristic optimization algorithm, evolutionary particle swarm optimization (E-PSO), to solve the optimization configuration and technoeconomic analysis of a standalone multicarrier microgrid (SMCMG). The paper [25] used PSO to solve the minimum-cost problem of complex microgrid models, including microgas turbines (MT), fuel cells (FC), waste-to-energy plants, wind turbine systems, boilers, anaerobic digestion-reformer systems, inverters, rectifiers, and some energy storage units. In [26], Chenyu et al. proposed to improve the economics of microgrids using twin-delayed deep deterministic policy gradient algorithm (TD3). Meanwhile, in [27], Hongsheng et al. proposed an improved particle swarm optimization algorithm considering demand response and a Gaussian disturbance mechanism to improve the economics and environmental friendliness of microgrids. Arul et al. [28] proposed a new gray wolf optimization algorithm based on reverse gradient to clarify the optimized operation of sustainable and unsustainable energy in microgrids by calculating the operation of microgrids in grid-connected mode. Prakash et al. [29] proposed an algorithm that combines gradient boosting decision tree (GBDT) and seagull optimization algorithm (SOA) to achieve the optimal operation of a microgrid system under grid-connected mode. This microgrid includes MT, WT, and photovoltaic (PV) systems. The goal is to reduce the cost incurred during the operation and maintenance of the microgrid system connected to the grid and to reduce the hourly power generation fluctuations of the microgrid. Yehia et al. [30] proposed an energy management system based on grasshopper optimization algorithm (GOA) to find the optimal power generation of distributed generators in microgrids, which involves reducing the cost of total power generation. In this study, the proposed unit was applied to a microgrid with five power generation units: industrial, commercial, feed, and residential loads. In addition, this study also used muddy soil fish optimization algorithm (MSFOA) based on fish foraging patterns. The main purpose of the algorithm is to reduce the cost incurred during the production process and to reduce the cost of importing energy into the grid. Karthik et al. [31] evaluated the optimal planning setting of independent microgrids under system fuzziness and studied many operating strategies to investigate system performance. The proposed optimal planning system is mainly aimed at improving energy utilization efficiency and reducing system fuel costs and gas emissions. Trong-The et al. [32] proposed an improved sparrow search algorithm (ESSA) based on elite reverse learning strategy and the firefly algorithm (FA) mutation strategy for microgrid optimization operation planning. Based on variables such as environmental costs, power interactions, investment depreciations, and maintenance systems, the optimal planning and total operation cost scheduling cycle of the microgrid with distributed power generation were modeled, and a multiobjective economic optimization model of the power grid was established to propose suggestions for the feasibility of microgrid operation. Yixing et al. [33] proposed an improved whale optimization algorithm (IWOA) with an adaptive weight strategy and a Levy flight trajectory based on the original whale optimization algorithm (WOA). The algorithm significantly improved the optimization results and opened up new directions for algorithmic improvements. In addition, to minimize emissions and operating costs, Amin et al. [34] introduced the concept of a temporary microgrid and proposed a new optimal model for microgrids, demonstrating the advantages of this new type of microgrid. This new microgrid will be used for planning the next generation of intelligent sustainable integrated grids [35].
Currently, most research on the optimal operation of microgrids focuses on improving the efficiency of renewable energy sources and controlling pollution costs, without considering the reduction in load demand through operating strategies. In addition, different metaheuristic algorithms have different effects on different problems, and some metaheuristic algorithms are prone to low accuracy and slow response when solving the optimal operation of microgrids. Furthermore, the uncertainty and volatility of wind power and photovoltaic power have an impact on microgrids. The introduction of lithium batteries can facilitate the adjustment of the microgrid’s power supply voltage and frequency, ensuring that the system does not experience three-phase asymmetry faults. Therefore, to improve the efficiency of clean energy, reduce pollution, and ensure the safe and stable operation of the entire microgrid, this paper proposes a demand response strategy and an improved sparrow search algorithm (ISSA) that incorporates nonlinear weighting factors and enhances global search capabilities to solve the optimal operation problem of a hydrogen–electric hybrid grid-connected microgrid. Economic, environmental, and user comfort factors are considered to establish the mathematical model and objective function of the microgrid, including the differences in electricity prices, load demand, and pollution emissions.

2. Demand Response Model

Demand response refers to the behavior of users who can flexibly adjust their own electricity usage time and duration to participate in microgrid optimization. Through this approach, the electricity usage of the microgrid can be adjusted to address issues of high or low electricity usage during certain periods. In this section, by optimizing the load curve from the demand side, the controllable load in each period is controlled by time shifting, and the load curve is smoothed to make electricity usage more stable for users. At the same time, by adopting the ISSA method under the constraint of controllable load capacity, the optimal transfer quantity is obtained to improve the safe operation of the microgrid while reducing its operating costs. The demand response model studied in this paper is a demand response model for a grid-connected microgrid that includes wind turbine (WT) and photovoltaic (PV) power. In this model, the demand response of the microgrid is analyzed.

2.1. Demand Response Objective Function

We fully utilize the low-cost clean energy generated by photovoltaics (PV) and wind turbines (WT). To minimize the system net load, which is defined as the total electricity consumption throughout the day minus the total available renewable energy generation throughout the day, the system net load is minimized as the objective function, as shown in Equation (1):
min F 1 = t T P L o a d ( t ) P P V ( t ) P W T ( t )
where P L o a d ( t ) represents the optimized load demand at time t, P P V ( t ) represents the PV generation power at time t, P W T ( t ) represents the WT generation power at time t, T is the total time period, and  F 1 is the net load value.
During a microgrid scheduling period, renewable energy generation often falls short of the load demand and requires purchasing power from the main grid. The time-of-use tariff mechanism is considered to minimize the user’s electricity cost within the load dispatchable space, as shown in Equation (2):
min F 2 = t T [ C b ( t ) P b ( t ) C S ( t ) P S ( t ) ]
where C b ( t ) and C S ( t ) represent the purchase and selling electricity prices at time t, P b ( t ) and P S ( t ) represent the purchased and sold power at time t, and  F 2 represents the interaction cost between the microgrid and the main grid.
To convert the multiobjective problem into a single-objective problem, the values of the different dimensional objective functions are normalized and a trade-off function is selected, as shown in Equation (3) [36]:
min D = l = 1 2 ( F l F l . b e s t )
where F 1 . b e s t and F 2 . b e s t represent the optimal net load value and optimal electricity cost of the single-objective optimization equation, respectively, and  F 1 and F 2 represent the calculated net load value and electricity cost in practice.

2.2. User Satisfaction Function

The demand response strategy may affect the user’s electricity satisfaction to some extent. The electricity satisfaction function defined in this paper is shown in Equation (4) [36], where the electricity satisfaction of the unscheduled load curve is defined as 100%.
S T L = 1 t T P L o a d ( t ) P l o a d ( t ) 2 × t T P l o a d ( t )
where S T L represents the electricity satisfaction, and  P l o a d ( t ) represents the load demand at time t before optimization.

2.3. Demand Response Constraints

When loads participate in demand response, there are also constraints on load scheduling. The maximum value of the transferable load in each time period is determined by the current demand response scheme, and the minimum transferable load is set to 0. The transfer capacity constraint is shown in Equation (5). The total load before and after the transfer remains unchanged, as shown in Equation (6):
0 V i n ( t ) V i n . max ( t ) 0 V o u t ( t ) V o u t . max ( t )
t T P L o a d ( t ) = t T P l o a d ( t )
where V i n ( t ) and V o u t ( t ) represent the transferred load in and out of the system during time period t, and V i n . max ( t ) and V o u t . max ( t ) represent the maximum allowable load that can be transferred in and out during time period t.

3. Hydrogen–Electric Hybrid Microgrid Model

Due to the fact that traditional microgrids only consider the generation of wind turbines, photovoltaics, and some nonrenewable distributed power sources, their operation is not stable enough, and there is also severe emission of pollutants. In order to ensure the safety of microgrid operation and reduce its pollutant emissions, this paper considers using proton exchange membrane fuel cells as hydrogen fuel cells (HFCs), lithium batteries as representative energy storage systems (ESSs), controllable distributed energy sources represented by microgas turbines (MT), and renewable energy sources (RESs) represented by photovoltaic generators (PV) and wind turbines (WT). Moreover, this paper’s research is based on the grid-connected mode, in which the microgrid interacts with the main grid. Figure 1 shows the typical structure of a hydrogen–electric hybrid microgrid under grid-connected mode.

3.1. Objective Function of Microgrid

Microgrid operational planning refers to developing specific plans and strategies for the operation of a microgrid system based on its characteristics and requirements. The purpose is to achieve the highest economic efficiency in microgrid operation. Therefore, the objective of the hydrogen–electric hybrid microgrid system studied in this paper is to minimize the sum of operational costs, pollutant emission costs, and compensation costs for demand response, as expressed in Equation (7):
min C a l l = c 1 + c 2 + c 2
where C a l l represents the overall cost of the microgrid, c 1 is the operating cost function of the microgrid, c 2 is the pollution emission cost function of the microgrid, and  c 3 is the cost function for demand response compensation. The operating cost function c 1 is defined by Equation (8):
c 1 = F 2 + t T C E S S ( t ) + C P V ( t ) + C W T ( t ) + C H F C ( t ) + C M T ( t )
where C E S S ( t ) is the maintenance cost of the lithium battery in time period t, C P V ( t ) is the maintenance cost of the photovoltaic system in time period t, C W T ( t ) is the maintenance cost of the wind turbine in time period t, C H F C ( t ) is the fuel and maintenance cost of the hydrogen fuel cell in time period t, and  C M T ( t ) is the fuel and maintenance cost of the microgas turbine in time period t.
The calculation of pollution emission cost is based on the cost of pollution control caused by the pollutants emitted to the environment. The distributed power source microgas turbine in the microgrid generates corresponding pollutant gases, including CO 2 , SO 2 , CO, and NO x . c 2 is the pollution emission cost function, and Equation (9) defines the mathematical model of the pollutant emission cost function. Equation (10) gives the calculation cost of the MT emission of various pollutants.
c 2 = t T C M T . c o n ( t )
C M T . c o n ( t ) = ( C E . C O 2 + C E . S O 2 + C E . C O + C E . N O X ) · P M T ( t )
where C M T . c o n ( t ) is the pollutant emission cost of the microgas turbine in time period t, and  P M T ( t ) is the output power of the microgas turbine in time period t.
The calculation of demand response cost is based on providing certain compensation for users’ participation in demand response and compensating users by transferring the load. The compensation cost function c 3 is given by Equation (11):
c 3 = z · P t r a n s ( t )
where z is the compensation amount per 1 kW/hour of load transfer, and  P t r a n s ( t ) is the transferred load.

3.2. Distributed Energy Resources Model

Photovoltaic (PV) power generation is a technology that directly converts solar energy into electrical energy through the photovoltaic effect of the semiconductor interface. The key component of this technology is the solar cell. After being connected in series and encapsulated for protection, the solar cells can form large-area solar cell modules, which can be combined with power controllers and other components to form a photovoltaic power generation device. The output power of PV panels is mainly affected by factors such as light intensity and ambient temperature, and its mathematical expression is shown in Equation (12):
P P V = P S T C S P V [ 1 + M ( T e T S T C ) ] G S T C A · E P V
where P P V is the actual output power of the photovoltaic panel, P S T C is the output power of the photovoltaic panel under standard test conditions, S P V is the light intensity, G S T C is the light intensity under standard test conditions, M is the temperature power coefficient, T e is the ambient temperature, T S T C is the temperature under standard test conditions, A is the area of the photovoltaic panel, and  E P V is the energy conversion efficiency.
The principle of wind turbine (WT) power generation is to use wind power to drive the rotation of the blades and then increase the speed through the gearbox to promote the generator to generate electricity. Its mathematical expression is shown in Equation (13):
P W T = 0 , 0 v v s , v e v P r a t e v v s v r v e , v s v v r P r a t e , v r v v e
where P W T is the output power of the wind turbine, P r a t e is the rated power of the wind turbine, v is the actual wind speed, v r is the rated wind speed, v s is the cut-in wind speed, and  v e is the cut-out wind speed.
A hydrogen fuel cell (HFC) is a power generation device that directly converts the chemical energy of hydrogen and oxygen into electrical energy. Its basic principle is the reverse reaction of water electrolysis. HFC has no pollution in the environment, and its combustion only releases water. In addition, HFC can adjust its power output to any desired reference value within the power limitation range. Its output power is shown in Equation (14), and the cost is shown in Equation (15):
P H F C = e · v H 2 F C
C H F C = a k · P H F C 2 ( t ) + b k · P H F C ( t ) + c k
where P H F C is the output power of the hydrogen fuel cell, v H 2 F C and C H F C are the power generation cost of the fuel cell, and  a k , b k , and  c k are the coefficients of the cost function.
Microgas turbines (MT) have advantages, such as high efficiency, clean and reliable operation, and flexible system configuration. They can serve as backup power generation units for microgrids in case of insufficient electricity supply, ensuring the reliability of microgrid power supply. The working principle of MT involves using a centrifugal compressor to continuously intake air from the outside and compress it. The compressed air is heated in a heat exchanger and then enters the combustion chamber. After mixing with fuel injected into the combustion chamber, the high-temperature gas produced by combustion flows into the turbine, driving it to rotate and generating electricity with the help of a generator. The cost is expressed in Equation (16):
C M T = k · P M T ( t )
where C M T is the fuel cost of MT, P M T is the output power of the diesel generator, and k is the fuel cost coefficient.
Lithium batteries are used as ESS for charging and discharging in microgrids to maintain the power balance and energy buffering of the entire microgrid. They can also be used to conveniently adjust the voltage and frequency of the microgrid and stabilize the system’s three-phase symmetry. The state of charge (SOC) is used to represent the remaining amount of lithium battery charge as a ratio of the total amount of electricity, as shown in Equation (17), during the operation of lithium batteries.
S O C t = C e c = 1 I d t C
where S O C t represents the remaining capacity of the lithium battery at time t, C e represents the remaining energy, and C represents the total energy.
The relationship between SOC and charging and discharging is shown in Equation (18):
S O C ( t + 1 ) = ( 1 E s o r ) S O C ( t ) + P c h η c h S O C ( t + 1 ) = ( 1 E s o r ) S O C ( t ) P d i s η c h
where S O C ( t + 1 ) represents the SOC of the lithium battery at time t + 1 , Esor represents the self-discharge rate of the lithium battery, P c h represents the charging power of the lithium battery, η c h represents the charging efficiency of the lithium battery, P d i s represents the discharging power of the lithium battery, and  η c h represents the discharging efficiency of the lithium battery.

3.3. Constraints of DER

In the model of a hydrogen–electricity hybrid microgrid, to ensure stable and safe operation of the entire microgrid system, the power generation unit needs to satisfy corresponding limiting conditions when outputting electric energy under the influence of its own devices. During operation, the microgrid must satisfy the constraint of power balance, expressed in Equation (19):
P a l l ( t ) P E S S ( t ) + P L G ( t ) = P l o a d ( t )
where P a l l ( t ) is the power generation of the DRE microgrid at time t, P L G ( t ) is the interaction power between the microgrid and the main grid at time t, P E S S ( t ) is the output or input power of the lithium battery at time t, and  P l o a d ( t ) represents the load on the microgrid at time t.
HFC and MT also need to satisfy their respective upper and lower power limits, as well as ramp-up power limits, which are represented by Equations (20) and (21):
P i min P i ( t ) P i max
P i ( t ) P i ( t 1 ) p i Δ t
where P i ( t ) is the output power of the i-th distributed power source during time t, and P i min and P i max represent the upper and lower limits of the i-th distributed power source’s output power. p i represents the maximum climb rate of the i-th controllable generator unit, and  Δ t represents the operating time increment.
In addition, the power constraint for the interaction between the microgrid and the main grid is represented by Equation (22):
P L G . min | P g r i d ( t ) | P L G . max
where P L G . max and P L G . min are the upper and lower limits of the interaction power between the microgrid and the main grid.
Furthermore, there exist power and capacity limitations on the charging and discharging of the lithium battery during its operation, as represented by Equations (23) and (24):
0 P c h ( t ) P c h . max 0 P d i s ( t ) P d i s . max
S O C min ( t ) S O C ( t ) S O C max ( t )
where P c h ( t ) and P d i s ( t ) represent the charging and discharging power of the lithium battery, and  P c h . max and P d i s . max represent the upper limits of the charging and discharging power of the lithium battery. S O C max ( t ) and S O C min ( t ) represent the upper and lower limits of the battery capacity during time t.

4. Algorithm for Solving the Optimization Model

The optimal operation of microgrids, which involves achieving the best output from distributed power sources while minimizing costs, is a complex multiobjective problem. This paper introduces demand response and uses metaheuristic algorithms to solve the optimal operation problem of microgrids. Therefore, this section proposes an improved sparrow search algorithm (ISSA) that incorporates nonlinear weight factors and enhances global search capabilities.

4.1. Improved Sparrow Search Algorithm

The sparrow search algorithm (SSA) [37] simulates the foraging behavior of sparrows, which are typically divided into producers and followers to accomplish foraging.
In SSA, the best individual in the population is given priority in obtaining food during the search process. As producers, they have a larger foraging search range than followers. The update method for the position of the explorer in each iteration is shown in Equation (25):
X i , j t + 1 = X i , j t · e x p ( i α · i t e r max ) , i f R 2 < S T X i , j t + Q · L , i f R 2 S T
when R 2 < S T , it means that there are no predators around, and the producer can perform a global search. If  R 2 S T , it means that some sparrows have detected predators, and all sparrows must take appropriate actions. During foraging, some followers monitor the producers at all times. Once the producers find better food, they will immediately leave their current location to compete for food. If they win the competition, they can immediately obtain the food; otherwise, they need to continue to execute Equation (26):
X i , j t + 1 = Q · e x p ( X w o r s t t X i , j t i 2 ) , i f i > n 2 X P t + i + | X i , j t X P t + i | · A + · L , o t h e r w i s e
where X P t + i is the optimal producer position, X w o r s t t is the current global worst position, and n is the population size. A is a 1 × d matrix, and the random amplitude of each element is 1 or 1 . The definition of A + is shown in Equation (27):
A + = A T ( A A T ) 1
when i > n 2 , it indicates that the i-th follower with a lower fitness value is in a poor state and needs to fly to other places for food. Assuming that 10–20% of the individuals in the population are aware of the danger, the initial positions of these individuals are randomly generated in the population, as shown in Equation (28):
X i , j t + 1 = X b e s t t + β · | X i , j t X b e s t t | , i f f i > f g X i , j t + K · ( X i , j t X w o r s t t f i f W + ω ) , i f f i = f g
where X b e s t t is the current global optimal position, β is the step size control parameter (its value is a random number that obeys the normal distribution with a mean of 0 and a variance of 1), K is a random number in [ 1 ,1], f is the fitness value, and f i , and  f g are the current optimal and worst fitness values, respectively. ω is a constant to avoid denominator 0. Therefore, f i > f g indicates that the sparrow is at the edge of the population. When f i = f g , it indicates that the sparrow in the middle of the population is aware of the danger and needs to be close to other sparrows to avoid predation. Here, K represents the direction of the sparrow’s movement and is also the step control parameter.
In SSA, the way sparrows converge to the current best solution is by directly jumping to the vicinity of the current best solution, rather than moving towards it. This leads to the weakness of SSA in a global search and makes it prone to getting stuck in local optima. As can be seen from Equation (25), the global search capability of SSA is relatively weak.
The first improvement made to the SSA is the modification of Equation (25) by removing the step of converging to the origin and changing the movement towards the optimal position to movement towards the vicinity of the optimal position. In addition, a nonlinear weight factor is introduced in this paper, as shown in Equation (29):
Δ = 2 ( t i t e r T max ) 2
The fully improved equation is presented as Equation (30):
X i , j t + 1 = X i , j t · ( 1 + Δ · Q ) , i f R 2 < S T X i , j t + Q , i f R 2 S T
The introduction of a nonlinear weighting factor can effectively enhance the optimization ability of SSA. By applying a nonlinear weighting factor that changes dynamically with the increase in iteration times, the global search ability and local search ability of SSA can be adjusted dynamically, which can accelerate the convergence speed of the algorithm and improve the optimization accuracy. Next, Equation (26) is retained, and Equation (28) is improved by randomly approaching the discoverer in all dimensions for each sparrow. The specific formula is shown in Equation (31):
X i , j t + 1 = X i , j t + β · ( X i , j t X b e s t t ) , i f f i > f g X b e s t t + β · ( X w o r s t t X b e s t t ) , i f f i = f g
The improvement removes the cumbersome parts of the original algorithm. When f i > f g , the sparrow will flee to a random position between itself and the optimal position. When f i = f g , the sparrow at the optimal position will flee to a random position between the optimal and worst positions.
Such improvements actually accelerate the update speed and accuracy of the entire algorithm, greatly enhancing the global search ability, which is precisely the weakest point of the original algorithm. Therefore, the improvement of the entire algorithm not only enhances the global search ability but also greatly strengthens the accuracy and convergence speed of the algorithm. Within the set number of iterations, the individual positions are continuously updated according to the formula mentioned above, in order to ultimately find the feasible optimal solution and complete the optimal planning of the objective. The ISSA process is illustrated in Figure 2.
Algorithm 1 gives the pseudocode of ISSA.

4.2. Test Function

This section verifies the performance of the proposed ISSA. Ten benchmark functions from CEC2017 [38] are used to test the performance of ISSA, as shown in Table 1. The experimental results of ISSA are compared with those of SSA, PSO, WOA, DOA, STOA, WSSA, and ESSA. Table 2 shows the average results of ISSA on the ten different benchmark functions, compared with SSA, weight sparrow search algorithm (WSSA), and enhanced sparrow search algorithm (ESSA) [32]. Figure 3, Figure 4 and Figure 5 show the convergence curves of ISSA and the left-side SSA, WSSA, and ESSA for each benchmark function. The function landscape views of F 1 ( x ) , F 4 ( x ) , and F 7 ( x ) from CEC2017 are shown on the right side of the figures.
Algorithm 1 Pseudocode of ISSA.
Require:
  T: the maximum iterations
   P D : the number of producers
   S D : the number of sparrows who perceive danger
   R 2 : the alarm value
  n: the number of sparrows
  Initialize a population of n sparrows and define its relevant
  Parameters
 Ensure:  X b e s t , f g
   1: while ( t < T ) do
   2:    Rank the fitness values and find the current best individual and the current worst individual.
   3:     R 2 = r a n d ( 1 )
   4:    for do i = 1:PD
   5:        Using Equation (30) update the sparrow’s location;
   6:    end for
   7:    for do i = (PD + 1):n
   8:        Using Equation (26) update the sparrow’s location;
   9:    end for
    10:    for  do l = 1:SD
    11:        Using Equation (31) update the sparrow’s location;
    12:    end for
    13:    Get the current new location;
    14:    If the new location is better than before, update it
    15:    t = t + 1
    16: end while
    17: return X b e s t , f g
Table 2 indicates that ISSA performs better than most of the test functions, with smaller function values being found. Figure 3, Figure 4 and Figure 5 show that ISSA significantly improves the convergence speed, accuracy, and global search ability compared with SSA, WSSA, and ESSA, indicating that ISSA has superior algorithmic-solving capabilities. Table 3 presents the test results of ISSA and other metaheuristic algorithms.
Table 3 shows that ISSA performs better than other algorithms in optimizing functions F 1 ( x ) , F 2 ( x ) , F 3 ( x ) , F 4 ( x ) , F 7 ( x ) , F 9 ( x ) , and F 15 ( x ) . It greatly improves the accuracy of functions F 1 ( x ) and F 2 ( x ) and finds smaller function values.

5. Calculation and Analysis

The subject of this study is a hydrogen–electric hybrid microgrid system. An optimization model with bounded rationality in user electricity decision making and ISSA were used to solve and analyze the optimal operation problem. The interconnected microgrid system is shown in Figure 6, connected to the large power grid, with renewable clean energy sources consisting of PV and WT and distributed controllable energy sources consisting of HFC and MT. The energy storage system is ESS, and there are 31 households using the system. All calculations in this paper are based on MATLAB.

5.1. Related Calculation and Analysis Data

Based on the dataset provided in [39,40], and with reference to the mathematical model described earlier, the 24-h electricity load data for typical weather conditions in summer, as well as the output power data of WT and PV without dispatch, are selected as shown in Figure 7.
The purchasing and selling electricity prices for each moment in the microgrid are shown in Table 4, and the parameters for each distributed power source are presented in Table 5. The cost calculation of polluting gases is illustrated in Table 6. Based on time-of-use pricing [40] and Figure 7, we know that the peak hours are from 11:00 to 16:00 and 18:00 to 21:00; the off-peak hours are from 07:00 to 10:00, 16:00 to 18:00, and 21:00 to 24:00; and the valley hours are from 00:00 to 07:00.

5.2. Analysis of Demand Response Results

This paper analyzes four different response schemes for transferable load capacity, which are set at 0% (Scheme 1), 10% (Scheme 2), 20% (Scheme 3), and 30% (Scheme 4) of the original load curve. In addition, three different microgrid operation strategies are implemented to balance the generation of MT and HFC (Strategy 1), reduce the generation of MT while increasing that of HFC (Strategy 2), and reduce the generation of HFC while increasing that of MT (Strategy 3). The compensation for demand response is set at 0.3 (USD/kWh). The optimal solution is selected by comparing the operational cost of the microgrid and user satisfaction. Figure 8 shows the changes in residential load demand for the four schemes, and Table 7 shows the operating costs of the microgrid under four different schemes and three different strategies. The cost calculation is performed using Equation (7).
From Figure 8 and Table 7, it can be observed that user participation in demand response reduces electricity consumption during peak hours and increases it during off-peak hours. This leads to a more balanced load for the microgrid and lower operational costs, but it may also result in decreased user satisfaction.
When optimizing solely for user satisfaction, Scheme 1 has the highest user satisfaction rate of 100%, but it is also the most expensive option. Scheme 2 decreases user satisfaction by 3.47%, while having low demand response compensation costs, but its overall operational cost reduction compared with Scheme 1 is relatively small. Scheme 3 decreases user satisfaction by 5.86% and has a slightly lower overall operational cost than Scheme 2, but it comes with increased demand response compensation costs. Scheme 4 decreases user satisfaction by 10.61% and has the lowest operational cost, but it greatly reduces user satisfaction.
Taking both user satisfaction and operational strategies into account, Strategy 1 appears to be the most constructive, while Strategy 2, which reduces MT’s generation while increasing HFC’s, raises microgrid environmental friendliness but significantly increases operational costs. On the other hand, Strategy 3, which increases MT’s generation while decreasing HFC’s, lowers operational costs but also reduces microgrid environmental friendliness and increases pollutant emissions. Therefore, Scheme 3 and Strategy 1 strike a balance between improving microgrid economics, environmental friendliness, and user satisfaction, making them the optimal choices for microgrid operations.

5.3. Analysis of Demand Response Results

Figure 9 presents the output power of distributed renewable energy (DRE) sources, excluding PVs and WTs, as well as the buying and selling power with the main grid, under the operation of the microgrid optimized using Scheme 3 and Strategy 1 in ISSA.
From Figure 9, it can be seen that during the time period of 00:00–07:00, the load demand of the entire microgrid system decreases. At this time, the price of purchasing electricity from the main grid is lower than the price of generating electricity from nonrenewable distributed power sources. Therefore, the ESS is charged while meeting the load demand. During the period of 07:00–10:00, the electricity usage is at a normal level, and the prices of purchasing and selling electricity from the main grid are not much different from the price of generating electricity from nonrenewable distributed power sources. From 10:00–16:00, the load demand continues to increase, and it is the peak period of electricity usage from the main grid. The price of selling electricity to the main grid is higher than the price of generating electricity from nonrenewable distributed power sources. At this time, the PV generation reaches its peak, but due to the high demand for electricity, the ESS begins to generate electricity. From 16:00–18:00, the main grid is in a normal period, and the PV output begins to decrease. The amount of electricity sold to the main grid decreases, and the ESS is charged. From 18:00–21:00, it is the peak period of electricity usage for the whole day, and the PV generation basically stops. Therefore, the MT, HFC, and ESS are all at a high level of electricity generation. If the DER cannot meet the load demand at this time, the microgrid can only balance the load by purchasing electricity from the main grid. From 21:00–24:00, the load demand begins to decrease, and therefore, the output power of the ESS, MT, and HFC begins to decrease.
To verify the feasibility of ISSA, Figure 10 shows the power generation proportion of various DRE sources in the microgrid under different algorithms.
From Figure 10, it can be observed that in the microgrid controlled by ISSA, the power generation proportion of MT and HFC is relatively high, nearly 48%. The power generation proportion of ESS is 11%, while the proportion of buying power from the main grid is the lowest compared with other algorithms, reduced by 3%, 3%, 2%, 2%, and 3% compared with SSA, POS, WOA, DOA, and STOA, respectively. This indicates that the microgrid controlled by ISSA can reduce dependence on the main grid and minimize interaction with the main grid.
To further verify the improvement of ISSA, we conducted 20 iterations using ISSA, SSA, POS, WOA, DOA, and STOA, as well as E-PSO [24], ESSA [32], and IWOA [33], and compared and analyzed the average values. Using the objective function given in Equation (7), the best fitness curves obtained from 20 runs of each algorithm using ISSA are shown in Figure 11 and Figure 12, and the worst fitness curves are shown in Figure 13 and Figure 14. The fitness values for the worst, best, and average objective functions obtained after running each algorithm 20 times are shown in Table 8.
From Table 8, it can be observed that the worst and best cost of ISSA are smaller than those of other algorithms. The average cost computed by ISSA is reduced by 16.1%, 15.3%, 14.5%, 9.2%, 4.7%, 16.2%, 15.5%, and 13.1% compared with SSA, POS, WOA, DOA, STOA, ESSA, E-PSO, and IWOA, respectively. These results indicate that the proposed ISSA can lower the operating cost of the microgrid and can be used to solve the optimal operational planning problem of the hydrogen-electricity hybrid microgrid.

6. Conclusions

This study establishes a grid-connected hydrogen–electric hybrid microgrid model that includes WT, PV, MT, HFC, and ESS. The optimal operating objective is to minimize economic and environmental costs while maximizing user satisfaction. To address this problem, demand response is introduced, and an improved weight sparrow search algorithm is proposed, which uses a nonlinear weight factor and enhances global search capability. The optimization results show that introducing demand response can reduce microgrid operating costs by sacrificing a small portion of user satisfaction, and selecting the correct operating strategy can significantly reduce microgrid operating and environmental costs. In addition, using an appropriate metaheuristic algorithm for the microgrid can greatly reduce operating costs. Furthermore, using lithium batteries as energy storage systems in the coordinated control effectively regulates microgrid power quality and ensures the symmetry of renewable energy and microgrid systems. This study also introduces an improved sparrow search algorithm (ISSA), which outperforms other optimization algorithms, including SSA, PSO, WOA, DOA, STOA, ESSA, E-PSO, and IWOA, in terms of microgrid operating costs, reducing them by 16.1%, 15.3%, 14.5%, 9.2%, 4.7%, 16.2%, 15.5%, and 13.1%, respectively. Moreover, the DER outputs under different algorithms are analyzed, and the results show that using ISSA can increase the output ratio of RES and reduce the electricity purchased from the main grid. Thus, achieving optimal operation in microgrids is not only important for economic dispatch but also for balancing various distributed power sources, including WT, PV, ESS, MT, and HFC.
By introducing demand response, selecting the correct operating strategy, and using ISSA to solve the optimization problem of the hydrogen–electric hybrid microgrid, this study provides a reference for improving the optimal operation of the microgrid.

Author Contributions

Conceptualization, Y.Z.; methodology, Y.Z. and Y.L.; software, Y.Z.; validation, Y.Z., Z.W. and Y.L.; formal analysis, Y.Z. and Y.L.; writing—original draft preparation, Y.Z. and Z.W.; writing—review and editing, Y.Z.; visualization, Y.Z. and Y.L.; supervision, S.Z. and L.Z.; project administration, Z.W. and L.Z.; funding acquisition, Z.W. and L.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Guangdong Province Key Areas R&D Program (2022B0303030002, 2020B0101320002), Guangzhou Key R&D Program (202206030008), Guangzhou Basic and Applied Basic Research Foundation (2023A04J0045), International Science and Technology Cooperation Project of Huangpu (2021GH13), and GDAS’ Project of Science and Technology Development (2022GDASZH-2022010108).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Li, X.; Fang, L. Research on economic dispatch of large power grid based on granular computing. In Proceedings of the 2016 IEEE PES Asia-Pacific Power and Energy Engineering Conference (APPEEC), Xi’an, China, 25–28 October 2016; pp. 1130–1133. [Google Scholar] [CrossRef]
  2. Qin, X.; Su, L.; Jiang, Y.; Zhou, Q.; Chen, J.; Xu, X.; Chi, Y.; An, N. Study on inertia support capability and its impact in large scale power grid with increasing penetration of renewable energy sources. In Proceedings of the 2018 International Conference on Power System Technology (POWERCON), Guangzhou, China, 6–8 November 2018; pp. 1018–1024. [Google Scholar] [CrossRef]
  3. Liu, L.; Wei, K.; Ge, X. GIC in Future Large-Scale Power Grids: An analysis of the problem. IEEE Electrif. Mag. 2015, 3, 52–59. [Google Scholar] [CrossRef]
  4. Du, W.; Tuffner, F.K.; Schneider, K.P.; Lasseter, R.H.; Xie, J.; Chen, Z.; Bhattarai, B. Modeling of grid-forming and grid-following inverters for dynamic simulation of large-scale distribution systems. Atmosphere 2021, 12, 1086. [Google Scholar] [CrossRef]
  5. Maciejczyk, P.; Chen, L.; Thurston, G. The role of fossil fuel combustion metals in PM2.5 air pollution health associations. IEEE Trans. Power Deliv. 2020, 36, 2035–2045. [Google Scholar] [CrossRef]
  6. Perera, F. Pollution from fossil-fuel combustion is the leading environmental threat to global pediatric health and equity: Solutions exist. Int. J. Environ. Res. Public Health 2018, 15, 16. [Google Scholar] [CrossRef] [Green Version]
  7. Perera, F. Multiple threats to child health from fossil fuel combustion: Impacts of air pollution and climate change. Environ. Health Perspect. 2017, 125, 141–148. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Fu, X.; Sun, J.; Huang, M.; Tian, Z.; Yan, H.; Iu, H.H.; Hu, P.; Zha, X. Large-signal stability of grid-forming and grid-following controls in voltage source converter: A comparative study. IEEE Trans. Power Electron. 2020, 36, 7832–7840. [Google Scholar] [CrossRef]
  9. Zhang, Y.; Jin, L.; Wang, Y.; Liu, H. The Exploration and Application Research of Emerging Technologies in Operation and Maintenance of Large Power Grid Enterprises. IOP Conf. Ser. Mater. Sci. Eng. 2016, 688, 055090. [Google Scholar] [CrossRef]
  10. Ghasemi, A.; Enayatzare, M. Optimal energy management of a renewable-based isolated microgrid with pumped-storage unit and demand response. Renew. Energy 2018, 123, 460–474. [Google Scholar] [CrossRef]
  11. Zia, M.F.; Elbouchikhi, E.; Benbouzid, M. Microgrids energy management systems: A critical review on methods, solutions, and prospects. Appl. Energy 2018, 222, 1033–1055. [Google Scholar] [CrossRef]
  12. Mengelkamp, E.; Gärttner, J.; Rock, K.; Kessler, S.; Orsini, L.; Weinhardt, C. Designing microgrid energy markets: A case study: The Brooklyn Microgrid. Appl. Energy 2018, 210, 870–880. [Google Scholar] [CrossRef]
  13. Kaur, A.; Kaushal, J.; Basak, P. A review on microgrid central controller. Renew. Sustain. Energy Rev. 2016, 55, 338–345. [Google Scholar] [CrossRef]
  14. Wan, X.; Lian, H.; Ding, X.; Peng, J.; Wu, Y.; Li, X. Hierarchical multiobjective dispatching strategy for the microgrid system using modified MOEA/D. Complexity 2020, 2020, 4725808. [Google Scholar] [CrossRef]
  15. Tian, L.; Cheng, L.; Guo, J.; Wu, K. System modeling and optimal dispatching of multi-energy microgrid with energy storage. J. Mod. Power Syst. Clean Energyy 2020, 8, 809–819. [Google Scholar] [CrossRef]
  16. Jiang, H.; Ning, S.; Ge, Q. Multi-objective optimal dispatching of microgrid with large-scale electric vehicles. IEEE Access 2019, 1, 145880–145888. [Google Scholar] [CrossRef]
  17. 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]
  18. Hosseini, S.M.; Carli, R.; Dotoli, M. Robust optimal energy management of a residential microgrid under uncertainties on demand and renewable power generation. IEEE Trans. Autom. Sci. Eng. 2020, 18, 618–637. [Google Scholar] [CrossRef]
  19. Muhtadi, A.; Pandit, D.; Nguyen, N.; Mitra, J. Distributed energy resources based microgrid: Review of architecture, control, and reliability. IEEE Trans. Ind. Appl. 2021, 57, 2223–2235. [Google Scholar] [CrossRef]
  20. Al-Ismail, F.S. DC microgrid planning, operation, and control: A comprehensive review. IEEE Access 2021, 9, 36154–36172. [Google Scholar] [CrossRef]
  21. Ali, S.; Zheng, Z.; Aillerie, M.; Sawicki, J.; Pera, M.; Hissel, D. A review of DC Microgrid energy management systems dedicated to residential applications. Energies 2021, 14, 4308. [Google Scholar] [CrossRef]
  22. Akinyele, D.; Olabode, E.; Amole, A. Review of fuel cell technologies and applications for sustainable microgrid systems. Inventions 2020, 5, 42. [Google Scholar] [CrossRef]
  23. Beheshtaein, S.; Cuzner, R.M.; Forouzesh, M.; Savaghebi, M.; Guerrero, J.M. DC microgrid protection: A comprehensive review. IEEE J. Emerg. Sel. Top. Power Electron. 2019, 1, 1. [Google Scholar] [CrossRef]
  24. Lorestani, A.; Gharehpetian, G.B.; Nazari, M.H. Optimal sizing and techno-economic analysis of energy-and cost-efficient standalone multi-carrier microgrid. Energy 2019, 178, 751–764. [Google Scholar] [CrossRef]
  25. Oghaddas-Tafreshi, S.M.; Mohseni, S.; Karami, M.E.; Kelly, S. Optimal energy management of a grid-connected multiple energy carrier micro-grid. Appl. Therm. Eng. 2019, 152, 796–806. [Google Scholar] [CrossRef]
  26. Cui, C.; Dong, Z. Optimal Operation Strategy of Microgrid Based on TD3 Algorithm. In Proceedings of the 2022 7th International Conference on Power and Renewable Energy (ICPRE), Shanghai, China, 23–26 September 2022; pp. 347–351. [Google Scholar] [CrossRef]
  27. Deng, H.; Li, B.; Wang, J.; Hu, W. Multi-objective optimal dispatching of microgrid considering demand side response. In Proceedings of the International Conference on Mechanisms and Robotics (ICMAR 2022), Zhuhai, China, 10 November 2022; pp. 633–639. [Google Scholar] [CrossRef]
  28. Rajagopalan, A.; Nagarajan, K.; Montoya, O.D.; Dhanasekaran, S.; Kareem, I.A.; Perumal, A.S.; Lakshmaiya, N.; Paramasivam, P. Multi-Objective Optimal Scheduling of a Microgrid Using Oppositional Gradient-Based Grey Wolf Optimizer. Energies 2022, 15, 9024. [Google Scholar] [CrossRef]
  29. Arumugam, P.; Kuppan, V. A GBDT-SOA approach for the system modelling of optimal energy management in grid-connected micro-grid system. Int. J. Energy Res. 2021, 45, 6765–6783. [Google Scholar] [CrossRef]
  30. Gad, Y.; Diab, H.; Abdelsalam, M.; Galal, Y. Smart energy management system of environmentally friendly microgrid based on grasshopper optimization technique. Energies 2020, 13, 5000. [Google Scholar] [CrossRef]
  31. Karthik, N.; Parvathy, A.K.; Arul, R.; Jayapragash, R.; Narayanan, S. Economic load dispatch in a microgrid using Interior Search Algorithm. In Proceedings of the 2019 Innovations in Power and Advanced Computing Technologies (i-PACT), Vellore, India, 22–23 March 2019; pp. 1–6. [Google Scholar] [CrossRef]
  32. Nguyen, T.; Ngo, T.; Dao, T.; Nguyen, T. Microgrid operations planning based on improving the flying sparrow search algorithm. Symmetry 2022, 14, 168. [Google Scholar] [CrossRef]
  33. Liu, Y.; Yang, S.; Li, D.; Zhang, S. Improved Whale Optimization Algorithm for Solving Microgrid Operations Planning Problems. Symmetry 2022, 15, 36. [Google Scholar] [CrossRef]
  34. Khodaei, A. Provisional microgrids. IEEE Trans. Smart Grid. 2014, 6, 1107–1115. [Google Scholar] [CrossRef]
  35. Khodaei, A. Provisional microgrid planning. IEEE Trans. Smart Grid 2015, 8, 1096–1104. [Google Scholar] [CrossRef]
  36. Wu, Q.; Xie, Z.; Ren, H.; Li, Q.; Yang, Y. Optimal trading strategies for multi-energy microgrid cluster considering demand response under different trading modes: A comparison study. Energy 2022, 254, 124448. [Google Scholar] [CrossRef]
  37. Xue, J.; Shen, B. A novel swarm intelligence optimization approach: Sparrow search algorithm. Syst. Sci. Control Eng. 2020, 15, 22–34. [Google Scholar] [CrossRef]
  38. Wu, G.; Mallipeddi, R.; Suganthan, P.N. Problem Definitions and Evaluation Criteria for the CEC 2017 Competition on Constrained Real-Parameter Optimization; Technical Report; National University of Defense Technology: Changsha, China; Kyungpook National University: Daegu, Republic of Korea; Nanyang Technological University: Singapore, 2017. [Google Scholar]
  39. Seel, J.; Mills, A.; Millstein, D.; Gorman, W.; Jeong, S. Solar-to-Grid Public Data File for Utility-scale (UPV) and Distributed Photovoltaics (DPV) Generation, Capacity Credit, and Value. 2020. Available online: https://data.openei.org/submissions/2881 (accessed on 30 November 2022).
  40. Thibedeau, J. July 2014 Green Machine Florida Canyon Hourly Data. 2014. Available online: https://gdr.openei.org/submissions/431 (accessed on 30 November 2022).
  41. Nguyen, T.; Dao, T.; Nguyen, T. An Optimal Microgrid Operations Planning Using Improved Archimedes Optimization Algorithm. IEEE Access 2022, 10, 67940–67957. [Google Scholar] [CrossRef]
  42. Zhang, Z.; Wang, Z.; Wang, H.; Zhang, H.; Yang, W.; Cao, R. Research on bi-level optimized operation strategy of microgrid cluster based on IABC algorithm. IEEE Access 2021, 9, 15520–15529. [Google Scholar] [CrossRef]
Figure 1. A typical structure of a grid-connected microgrid.
Figure 1. A typical structure of a grid-connected microgrid.
Symmetry 15 00919 g001
Figure 2. Flow chart of ISSA.
Figure 2. Flow chart of ISSA.
Symmetry 15 00919 g002
Figure 3. The evaluated experimental results of F 1 ( x ) .
Figure 3. The evaluated experimental results of F 1 ( x ) .
Symmetry 15 00919 g003
Figure 4. The evaluated experimental results of F 4 ( x ) .
Figure 4. The evaluated experimental results of F 4 ( x ) .
Symmetry 15 00919 g004
Figure 5. The evaluated experimental results of F 7 ( x ) .
Figure 5. The evaluated experimental results of F 7 ( x ) .
Symmetry 15 00919 g005
Figure 6. The structure of a grid-connected hydrogen–electric hybrid microgrid system.
Figure 6. The structure of a grid-connected hydrogen–electric hybrid microgrid system.
Symmetry 15 00919 g006
Figure 7. User power load and power output of renewable energy resources.
Figure 7. User power load and power output of renewable energy resources.
Symmetry 15 00919 g007
Figure 8. The optimized load curve of four schemes.
Figure 8. The optimized load curve of four schemes.
Symmetry 15 00919 g008
Figure 9. The outputs of each DER in microgrid by running ISSA.
Figure 9. The outputs of each DER in microgrid by running ISSA.
Symmetry 15 00919 g009
Figure 10. Percentages of outputs from each DER by running SSA, ISSA, POS, WOA, DOA, and STOA.
Figure 10. Percentages of outputs from each DER by running SSA, ISSA, POS, WOA, DOA, and STOA.
Symmetry 15 00919 g010
Figure 11. The best operation cost curves of the microgrid obtained by running SSA, ISSA, POS, WOA, DOA, and STOA.
Figure 11. The best operation cost curves of the microgrid obtained by running SSA, ISSA, POS, WOA, DOA, and STOA.
Symmetry 15 00919 g011
Figure 12. The worst operation cost curves of the microgrid obtained by running SSA, ISSA, POS, WOA, DOA, and STOA.
Figure 12. The worst operation cost curves of the microgrid obtained by running SSA, ISSA, POS, WOA, DOA, and STOA.
Symmetry 15 00919 g012
Figure 13. The best operation cost curves of the microgrid obtained by running ESSA, ISSA, E-POS, and IWOA.
Figure 13. The best operation cost curves of the microgrid obtained by running ESSA, ISSA, E-POS, and IWOA.
Symmetry 15 00919 g013
Figure 14. The worst operation cost curves of the microgrid obtained by running ESSA, ISSA, E-POS, and IWOA.
Figure 14. The worst operation cost curves of the microgrid obtained by running ESSA, ISSA, E-POS, and IWOA.
Symmetry 15 00919 g014
Table 1. The equation of the selected test function.
Table 1. The equation of the selected test function.
AlgorithmEquation
F 1 ( x ) x 2 + 10 6 i = 2 D x i 2
F 2 ( x ) i = 1 D x i i + 1
F 3 ( x ) i = 1 D x i 2 + ( i = 1 D 0.5 x i ) 2 + ( i = 1 D 0.5 x i ) 4
F 4 ( x ) i = 1 D 1 ( 100 ( x i 2 x i + 1 ) 2 + ( x i 1 2 ) )
F 5 ( x ) i = 1 D ( x i 2 10 cos ( 2 π x i ) + 10 )
F 7 ( x ) min ( i = 1 D ( x i ^ μ 0 ) 2 ) , d D + s i = 1 D ( x i ^ μ 1 ) 2 ) + 10 ( D i = 1 D cos ( 2 π z i ^ ) )
F 9 ( x ) sin 2 ( π w 1 ) + i = 1 D 1 ( w i 1 ) 2 ( 1 + 10 sin 2 ( π w i + 1 ) ) + ( w D 1 ) 2 ( 1 + sin 2 ( 2 π w D ) )
F 11 ( x ) i = 1 D ( 10 6 ) i 1 D 1 x i 2
F 13 ( x ) 20 exp ( 0.2 1 D i = 1 D x i 2 ) exp ( 1 D i = 1 D cos ( 2 π x i ) ) + 20 + e
F 15 ( x ) i = 1 D x i 2 4000 i = 1 D cos ( x i i ) + 1
Table 2. The average results of ISSA on 10 different benchmark functions are compared with SSA, WSSA, and ESSA, respectively.
Table 2. The average results of ISSA on 10 different benchmark functions are compared with SSA, WSSA, and ESSA, respectively.
AlgorithmsSSAWSSAESSAISSA
F 1 ( x ) 2.7 × 10 72 2.9 × 10 47 3.0 × 10 67 2.4 × 10 203
F 2 ( x ) 6.7 × 10 51 2.3 × 10 49 2.4 × 10 61 3.5 × 10 69
F 3 ( x ) 3.2 × 10 0 4.9 × 10 1 2.8 × 10 1 2.8 × 10 1
F 4 ( x ) 2.5 × 10 4 3.7 × 10 5 6.7 × 10 5 4.2 × 10 9
F 5 ( x ) 2.6 × 10 11 7.1 × 10 9 8.9 × 10 12 4.2 × 10 11
F 7 ( x ) 4.2 × 10 2 7.1 × 10 2 3.3 × 10 2 2.9 × 10 4
F 9 ( x ) 3.8 × 10 9 2.7 × 10 9 2.9 × 10 9 7.6 × 10 9
F 11 ( x ) 3.1 × 10 4 4.9 × 10 4 2.6 × 10 3 5.1 × 10 5
F 13 ( x ) 4.1 × 10 0 5.4 × 10 0 3.6 × 10 0 2.6 × 10 0
F 15 ( x ) 1.1 × 10 1 4.3 × 10 2 4.9 × 10 2 3.3 × 10 2
Table 3. The average results of ISSA on 10 different benchmark functions are compared with POS, WOA, DOA, and STOA, respectively.
Table 3. The average results of ISSA on 10 different benchmark functions are compared with POS, WOA, DOA, and STOA, respectively.
AlgorithmsPOSWOADOASTOAISSA
F 1 ( x ) 5.8 × 10 12 2.8 × 10 57 2.9 × 10 67 4.2 × 10 86 2.4 × 10 203
F 2 ( x ) 8.3 × 10 22 1.9 × 10 51 2.3 × 10 59 3.9 × 10 54 3.5 × 10 69
F 3 ( x ) 3.9 × 10 1 1.1 × 10 1 5.3 × 10 1 6.8 × 10 1 2.8 × 10 1
F 4 ( x ) 2.5 × 10 1 2.3 × 10 2 7.3 × 10 2 4.6 × 10 6 4.2 × 10 9
F 5 ( x ) 2.5 × 10 2 3.9 × 10 9 1.6 × 10 10 7.3 × 10 12 4.2 × 10 11
F 7 ( x ) 4.2 × 10 1 4.6 × 10 1 8.1 × 10 2 7.3 × 10 4 2.9 × 10 4
F 9 ( x ) 6.5 × 10 2 5.9 × 10 2 7.6 × 10 8 2.9 × 10 8 7.6 × 10 9
F 11 ( x ) 9.1 × 10 1 3.6 × 10 1 2.9 × 10 4 2.6 × 10 5 5.1 × 10 5
F 13 ( x ) 3.9 × 10 0 9.0 × 10 0 7.3 × 10 0 1.7 × 10 0 2.6 × 10 0
F 15 ( x ) 4.8 × 10 1 4.3 × 10 1 2.9 × 10 1 7.3 × 10 2 3.3 × 10 2
Table 4. Market price of electricity [41].
Table 4. Market price of electricity [41].
TypesPrice/[USD·(kWh) 1 ]
Peak PeriodThrough PeriodNormal Period
Buy0.840.190.51
Sell0.420.100.26
Table 5. Generation parameters of each DER in the microgrid [42].
Table 5. Generation parameters of each DER in the microgrid [42].
TypesMinimum
Power/(kW)
Maximum
Power/(kW)
Maintenance
Costs/(USD/kW)
Climb
Rates/(kW/min)
Large Grid−2402400.001/
PV01800.012/
WT01700.036/
MT153000.1072
HFC52500.2053
ESS−1501500.005/
Table 6. Pollutant emission factors for each DER in the microgrid [32].
Table 6. Pollutant emission factors for each DER in the microgrid [32].
Types of PollutantPollution Costs (USD/kg)Emission Factors of MT/(kg/kWh)
CO 2 0.00410.184
SO 2 0.8759.3 × 10 7
NO x 1.256.19 × 10 4
CO0.1451.7 × 10 4
Table 7. The optimization results under different operation schemes and strategies.
Table 7. The optimization results under different operation schemes and strategies.
SchemesElectricity
Satisfaction
Compensation for
Demand Response/(USD)
Comprehensive Operation Cost/(USD)
Strategy 1Strategy 2Strategy 3
1100%03420.913692.823301.26
296.53%175.393349.653619.773212.14
394.14%298.633246.343510.243121.83
489.39%425.133224.393473.643098.49
Table 8. The best and worst of each algorithm and the average cost.
Table 8. The best and worst of each algorithm and the average cost.
Types of AlgorithmsCost/(USD)
WorstBestAverage
SSA3482.293225.773341.36
ISSA3327.412647.342879.53
POS3456.253194.273320.51
WOA3490.263165.273297.19
DOA3493.653050.443145.73
STOA3401.532851.263014.59
ESSA3469.363259.713376.29
E-PSO3503.643186.823324.76
IWOA3486.623094.363256.73
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

Zhao, Y.; Liu, Y.; Wu, Z.; Zhang, S.; Zhang, L. Improving Sparrow Search Algorithm for Optimal Operation Planning of Hydrogen–Electric Hybrid Microgrids Considering Demand Response. Symmetry 2023, 15, 919. https://doi.org/10.3390/sym15040919

AMA Style

Zhao Y, Liu Y, Wu Z, Zhang S, Zhang L. Improving Sparrow Search Algorithm for Optimal Operation Planning of Hydrogen–Electric Hybrid Microgrids Considering Demand Response. Symmetry. 2023; 15(4):919. https://doi.org/10.3390/sym15040919

Chicago/Turabian Style

Zhao, Yuhao, Yixing Liu, Zhiheng Wu, Shouming Zhang, and Liang Zhang. 2023. "Improving Sparrow Search Algorithm for Optimal Operation Planning of Hydrogen–Electric Hybrid Microgrids Considering Demand Response" Symmetry 15, no. 4: 919. https://doi.org/10.3390/sym15040919

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