1. Introduction
Against the backdrop of rapid development in renewable energy, traditional power systems are continuously optimizing their energy structures by introducing new clean energy sources and integrating them into the grid. Nowadays, the distributed generation of renewable energy, such as wind and solar power, is widely regarded as an environmentally and economically beneficial solution for future smart grids. The integration of clean energy into distributed power systems effectively enhances energy efficiency and the penetration rate of renewable energy. This significantly reduces the emissions of carbon dioxide and other harmful gases associated with traditional fossil fuel-based power generation, thereby helping to mitigate climate change and improve environmental quality. With the development and application of clean energy technologies, it is foreseeable that clean energy generation will become an integral part of the global energy system in the future.
Simultaneously, the introduction of clean energy is driving the development of microgrids. Microgrids integrate traditional generators with new energy sources to provide power services to users in a decentralized manner [
1]. With the ability to generate power independently and the flexibility to connect or disconnect from the utility grid, microgrids offer new avenues for the utilization of new energy sources. Microgrids effectively alleviate the supply pressure and environmental pollution of traditional power units. Moreover, during utility grid failures, microgrid systems can independently supply power to maintain normal operation. Compared to traditional power systems, microgrids have stronger local consumption capabilities. By managing the output of distributed power sources and scheduling energy usage rationally [
2], clean energy can be utilized more effectively.
Microgrids typically consist of various distributed power sources, energy storage devices, energy conversion equipment, loads, and various protective devices, forming a power supply system capable of achieving internal power balance [
3]. Distributed power sources generally consist of both renewable and traditional energy sources, which complement each other to support load balancing. Energy storage devices effectively store electricity from renewable sources and release it when needed to meet grid demands or provide backup power. Common energy storage devices include battery energy storage systems (such as lithium ion batteries, sodium sulfur batteries, etc.), pumped hydro storage, and compressed air energy storage. These devices not only improve the stability and reliability of microgrids but also help regulate load and balance differences between supply and demand in the power system, thereby achieving more effective grid management.
Although microgrids are considered crucial components of future power systems, they still encounter various challenges in practical applications. The main issues facing microgrid systems currently include:
(1) Reliability: The generation of renewable energy sources in the system is greatly affected by weather fluctuations, leading to unstable power generation in microgrid systems.
(2) Power Quality: Due to the inclusion of various distributed energy sources and loads, issues related to power quality within the microgrid (such as voltage fluctuations and harmonics) may affect power supply quality and equipment lifespan.
(3) Energy Management: Microgrids require the effective management of multiple distributed energy sources, including solar, wind, and batteries, to ensure stable power supply. This involves complex energy scheduling and optimization problems.
(4) Economic: The construction and operation costs of microgrids are relatively high, especially considering the constant technological updates and intense market competition. Thus, reducing costs and achieving economic feasibility are key issues.
Addressing the above problems, this paper proposes a series of solutions. To ensure the reliability of microgrid system operation, energy storage systems, diesel generators, and grid power are introduced to meet electricity loads during fluctuations in renewable energy generation, thus ensuring system stability. To tackle power quality, operational constraints are set for various distributed energy sources to control their output power limits, preventing drastic energy fluctuations that could affect equipment lifespan. As for energy management and economic issues, this paper introduces metaheuristic algorithms for optimizing microgrid energy management and overall costs.
The rapid solving capability and precise calculation ability of metaheuristic algorithms provide feasible solutions for optimizing microgrid energy management, sparking a surge in research on microgrid operation optimization. However, previous optimization processes often only considered economic and environmental pollution factors, neglecting the degradation costs of energy storage systems. In reality, in microgrid systems, due to the uncertainty of wind and solar power generation, energy storage systems undergo frequent charging and discharging, accelerating battery degradation. Thus, strategically planning the timing and depth of battery charging and discharging to reduce storage degradation costs is crucial for overall energy scheduling in microgrids. This paper considers the degradation costs of energy storage systems as a key element of microgrid system operating costs, together with economic costs and environmental costs, forming the comprehensive operating costs of microgrids, and uses an improved SCA to optimize them.
The main contributions of this paper are as follows:
(1) Establishing a microgrid energy storage system represented by lithium batteries, constructing degradation costs, and integrating them into the total operation costs of microgrids;
(2) Improving the SCA using two strategies: circle chaos mapping and Levy flight, and demonstrating the effectiveness of the improved algorithm through test functions;
(3) Using the improved SCA to simulate and optimize the operating costs of microgrid systems, demonstrating that the improved algorithm effectively reduces the overall operating costs of microgrids.
The structure of the article is as follows:
Section 2 reviews previous work,
Section 3 and
Section 4 introduce the degradation model of energy storage and the design of the comprehensive operating cost function of microgrids,
Section 5 introduces the improved SCA, and
Section 6 and
Section 7 present the experiments and conclusions of this paper, respectively.
2. Related Work
Wind power generation, as a significant form of renewable energy, holds a crucial position in today’s energy sector, and wind energy has now become one of the primary sources of global electricity supply [
4]. Wind power generation refers to the process of converting wind energy into mechanical energy and then into electrical energy through wind turbines. Wind power generation utilizes the wind to drive the rotation of turbine blades, which are connected to the generator rotor. The rotating rotor induces electrical current within the generator through magnetic field induction, thereby generating electrical energy. In recent years, the manufacturing cost of wind turbines has continuously decreased, and they are commonly equipped with smart sensors, resulting in improved operational efficiency and further reduction in usage costs.
Photovoltaic (PV) power generation is the process of directly converting sunlight radiation into electrical energy and is an important form of renewable energy. The core component of photovoltaic power generation is the solar panel, which consists of multiple solar cells. These cells can convert photons from sunlight into electrons, thus generating electrical current. Photovoltaic technology features renewable, non-polluting, and low-noise characteristics, playing a significant role in sustainable development and climate change mitigation [
5]. With continuous technological advancements and cost reductions, photovoltaic power generation has been widely deployed globally.
Wind power and photovoltaic power, as major clean energy technologies, play a critical role in addressing climate change and energy security challenges. Their generation processes involve minimal direct greenhouse gas emissions, contributing to improved environmental quality and exhibiting significant renewability. Additionally, their relatively low operation and maintenance costs contribute to enhanced economic benefits. However, wind and photovoltaic power generation are significantly influenced by weather factors, resulting in substantial output power fluctuations within microgrids, necessitating coordinated operation with other generation equipment.
Duan, YZ [
6] proposed a fully distributed algorithm that does not rely on the initialization process to solve the dynamic scheduling problem of hybrid microgrids. The optimal solution satisfies the supply and demand constraints and the constraints of unequal production capacity at each time limit. Dey, B et al. [
7] proposed a demand response (DR) model to maximize the advantages of microgrids, taking into account various aspects of utility and elasticity, as well as customer behavior. The optimization model can reduce the overall cost of the microgrid system. Zhao, ZL [
8] proposed a new autonomous multi-microgrid intraday robust energy management framework based on the distributed dynamic management model predictive control (DD-TMPC) method. The proposed strategy can dynamically capture the safe operating range of the microgrid system based on set theory. Wongdet, P [
9] proposed a capacity optimization method and cost analysis considering the life cycle of a battery energy storage system (BESS), which is conducive to reducing the total cost. Hemmati, M [
10] proposed a new energy management method for MMG networks in the presence of battery storage, renewable energy, and demand response (DR) plans. The uncertainty associated with the load and power output of wind and solar energy is handled by adopting the chance constrained programming (CCP) optimization framework in the MMG energy management model. Ref. [
11] investigated the smart control problem of autonomous microgrids to ensure voltage safety and maximize economic and environmental benefits. Ref. [
12] aimed to minimize total investment costs and technological factors and explored the design problem of microgrids composed of various types of distributed energy sources using the movable damping wave algorithm. Ref. [
13] focused on the energy management of microgrid systems in islanded mode, considering demand forecasting, and utilized the strawberry optimization algorithm for optimized scheduling. Dong Haiyan [
14] optimized the charging and discharging states of distributed energy sources in microgrids over multiple time ranges based on seasonal differences, aiming to achieve low carbon emissions under the low-carbon operation mode of microgrids. Wang et al. [
15] proposed a mixed-integer second-order cone optimization problem and demonstrated the performance optimization of the integrated energy system for fault recovery.
The aforementioned studies in microgrid optimization scheduling did not take into account the impact of battery degradation factors on costs. Unlike generation resources, the short-term scheduling of energy storage systems (ESSs) significantly affects their long-term lifespan; for instance, frequent charging and discharging can greatly reduce battery life. On the other hand, the conflict between cost and benefit further complicates the energy management problem of microgrids. Increasing ESS capacity can provide greater operational reserves, making microgrid operations smoother, but at the cost of additional capital investment [
15]. Additionally, most microgrid optimization scheduling problems use intelligent search algorithms for solutions; however, basic intelligent search algorithms suffer from slow convergence, weak global search capability, and susceptibility to local optima, necessitating improvements to enhance algorithm performance.
This paper incorporates battery degradation costs into the overall operating costs of microgrids, considering the depth of charge and discharge of batteries, the number of charge and discharge cycles, and cost losses during usage, and utilizes an improved SCA to optimize microgrid operating costs.
5. Solving Optimization Problems Based on CLSCA
In addressing optimization problems in microgrids, metaheuristic algorithms are widely applied due to their strong dimensional handling capability and fast convergence speed. Among the plethora of metaheuristic algorithms, the SCA stands out for its advantages such as fewer parameters, simplicity in structure, and relatively fast convergence speed, demonstrating excellent performance in solving practical problems. This algorithm targets the oscillatory and periodic nature of sine and cosine functions as the design objective of its implementation operators, seeking optimal solutions through search and iteration [
27].
While the SCA absorbs some advantages of traditional intelligent optimization algorithms in its iterative strategy, it still suffers from drawbacks such as slow convergence of the initial population and susceptibility to local optima, suggesting potential for improvement. In this study, we employ two strategies, circle chaotic mapping and Levy flight, to enhance the original SCA, aiming to achieve better performance in solving real-world problems.
5.1. Sine Cosine Algorithm
The sine cosine algorithm consists primarily of three steps: initialization, update, and selection. In the initialization phase, a set of initial individuals is generated based on a random algorithm, where each individual represents a solution in the search space. In the update phase, the iteration strategy of the SCA is categorized into two steps: global exploration and local exploitation. In global exploration, significant random fluctuations are applied to the solutions in the current population to explore unknown regions of the solution space. In local exploitation, weak random perturbations are applied to thoroughly search the neighborhood of the current solutions. Finally, in the selection phase, individuals with superior fitness values are selected for the next iteration through fitness comparison.
The SCA utilizes the periodic oscillations of sine and cosine functions to construct iteration equations that realize the functionalities of global exploration and local exploitation. These concise update equations impose perturbations and update the solution set. Specifically, the iteration equations are divided into two types: sine iteration or cosine iteration equations.
where
,
,
, and
are random numbers between 0 and 1;
represents the fittest individual from the previous iteration.
5.2. Circle Chaos Map
The SCA adopts a random generation of initial populations. Although convenient, this approach may lead to uneven population distribution and overall lower quality, resulting in instability in the early stages of algorithm execution. To address these issues, chaotic models are commonly employed during population generation to improve population quality. Currently used chaotic mappings include tent mapping, logistic mapping, and Chebyshev mapping [
28]. Both Chebyshev and logistic mappings represent typical chaotic systems, where the mapping points exhibit high values at the ends and low values in the middle, causing uneven distribution, thereby affecting the algorithm’s search efficiency.
Compared to the dense distribution of boundary values in the logistic mapping range, tent chaotic mapping possesses both uniform probability density and good characteristics. Therefore, initializing populations using tent mapping can generate a more uniformly random distribution. However, tent mapping exhibits unstable periodic points in certain intervals. Meanwhile, circle mapping shares similar uniformity with tent mapping but offers a more balanced distribution at the ends of intervals [
29]. The formula for calculating circle chaotic mapping is as follows:
This paper selects the circle mapping, which exhibits a more uniform distribution and greater stability, to enhance the SCA. This enhancement aims to increase individual diversity, thus accelerating the convergence speed of the algorithm. It facilitates better exploration of the solution space, improves stability, and achieves higher convergence accuracy. The distribution of random mapping, tent chaotic mapping, and circle mapping is illustrated in
Figure 3 below:
5.3. Levy Flight
The Levy distribution is a probability distribution model proposed by the renowned French mathematician Paul Levy. It can be utilized to describe the flight trajectories of flying animals in nature, providing crucial insights for scientific research [
30]. Levy flight represents a highly scalable stochastic process, enabling movements spanning multiple distances, thereby significantly expanding the search domain and enhancing the global search capabilities of algorithms. The Levy distribution is defined as follows:
The Levy distribution with parameter β is denoted as Levy(β), representing a random variable following this distribution. Levy(β) is defined by Equation (20), where u and v are normally distributed, and β is set to 1.5. The updated formula for SCA position, incorporating Levy flight trajectories, is presented as follows:
The pseudo-code of the improved algorithm is as follows (see Algorithm 1):
Algorithm 1 The pseudo-code of the CLSCA |
Initialize the population (i = 1, 2, …, N) with circle chaos mapping Calculate the fitness values of the initial search individuals while t< G Update rand1 for i = 1: N for j = 1:d Calculate the parameters rand2, rand3 and rand4 Update the positions of the search agents by Equation (19) End j Perform Lévy flight operator using Equation (22) to generate a candidate search agent Update the Amend the position of the current search individual based on lb and ub End i Return the best solution obtained so far as the global optimum |
5.4. Performance Testing
To validate the performance of the CLSCA, this study conducts tests using the benchmark functions from CEC2005. Four test functions are selected, comprising two unimodal functions and two multimodal functions. A comparison is made with classical PSO and the SCA to demonstrate the feasibility and effectiveness of CLSCA optimization. The unimodal functions assess the convergence speed and accuracy of the optimization algorithm, while the multimodal functions evaluate the global search capability. The test functions used are shown in
Table 1:
All tested algorithms were iterated one thousand times with an initial population size set to 30. To mitigate experimental errors, each algorithm underwent 100 simulations to compute both the minimum and average values.
The objective space and convergence curves for unimodal functions are depicted in
Figure 4:
The target space diagram and convergence curve diagram of the multi-peak function are shown in
Figure 5:
The minimum and average values after iteration of the three algorithms are shown in
Table 2:
The test results indicate that the CLSCA significantly outperforms both the SCA and PSO algorithm in terms of convergence speed and accuracy. Additionally, the CLSCA demonstrates effective avoidance of falling into the trap of local optima, exhibiting robustness and optimization capability.
This paper employs the improved CLSCA to solve the proposed microgrid optimization problem. The objective is to minimize the overall operational cost of the microgrid using the CLSCA, aiming for better planning of energy output in the microgrid.
7. Conclusions
Microgrids, as flexible and organized electrical power systems, effectively integrates various generation sources and loads to meet regional electricity demands. The dynamic optimization of multiple distributed energy resources ensures the stability of the entire system, achieving efficient and reliable power supply. This paper analyzes the operational characteristics of distributed energy resources in microgrid systems, establishes mathematical models for wind power generation, photovoltaic generation, diesel generator generation, and battery energy storage, and clarifies their constraints. Based on this, a daily operational model for microgrids is constructed to reduce the overall operating costs of microgrid systems. Unlike previous studies that only consider economic costs and environmental management costs in microgrid operating costs, this paper incorporates battery degradation costs as an important influencing factor in comprehensive cost analysis of the system. The aim is to ensure the lowest operating costs of the microgrid while mitigating battery degradation through dynamic adjustments.
Energy management and cost planning in microgrids pose a complex nonlinear problem. Traditional methods are limited by dimensionality and data volume, making it challenging to solve such problems effectively. Therefore, this paper employs the SCA, a metaheuristic algorithm, to address this issue. The SCA offers advantages such as a simple structure and fast convergence. To achieve better optimization results, this study improves the SCA using two strategies: circle chaotic mapping and Levy flight. The effectiveness of the improved algorithm is validated through testing functions.
By applying the SCA and CLSCA to optimize the operating costs of the same microgrid system, this research provides a more comprehensive and accurate assessment of comprehensive costs. Finally, by comparing the application effects of the SCA and CLSCA, the superiority and reliability of the CLSCA in microgrid system optimization are verified. The results demonstrate that the model effectively reduces the comprehensive operating costs of microgrids, promoting their optimized operation.