1. Introduction
In the context of intensifying global warming and the deepening implementation of the “dual-carbon” strategy, the low-carbon transition of energy systems has become a core strategic direction for countries pursuing sustainable development [
1]. As a key infrastructure that integrates distributed renewable energy, enhances energy efficiency, and reduces carbon emissions, microgrids play a crucial role in this transition. Innovations and applications in microgrid scheduling not only determine the stability and economic viability of energy systems but also directly influence the pace of achieving low-carbon development goals [
2,
3,
4]. From an economic perspective, as the penetration of intermittent renewable energy sources such as photovoltaic (PV) generation and wind turbines (WT) continues to increase in microgrids, the limitations of traditional scheduling models have become evident. On the one hand, the stochastic nature of renewable energy output often leads to supply–demand imbalances, requiring frequent power exchanges with the main grid or activation of controllable units such as fuel cells (FC) and microturbines (MT) to maintain system balance. This not only increases electricity purchase and fuel procurement costs but may also trigger penalty mechanisms due to power fluctuations, further raising operational expenses. On the other hand, the coupled operation of multiple energy sources in microgrids—including renewable energy, controllable sources, and battery storage (BT)—lacks refined scheduling strategies. Issues such as improper timing of storage charging/discharging and coarse allocation of controllable unit output frequently occur, resulting in persistently high pollutant treatment costs, which undermine the economic feasibility of microgrid operations and hinder their large-scale commercialization [
5,
6,
7].
From the low-carbon development perspective, the core objective of microgrid scheduling has shifted from single “cost minimization” to a coordinated optimization of “economic efficiency and low-carbon goals.” Traditional microgrid scheduling that overly relies on fossil-fuel-based controllable sources not only consumes large amounts of coal, natural gas, and other nonrenewable resources but also generates SO
2, NO
x, and CO
2 emissions, which contradict global low-carbon transition trends. Thus, a pressing challenge is designing advanced scheduling strategies that maximize renewable energy utilization and minimize fossil fuel consumption, thereby achieving simultaneous reductions in carbon emissions and operating costs while ensuring supply–demand balance [
8,
9,
10]. In essence, microgrid scheduling involves dynamically allocating the output of various energy sources within a 24 h horizon under multiple constraints, such as generation limits, state-of-charge (SOC) boundaries of storage, and interaction limits with the main grid. Its complexity lies in the characteristics of “multi-variable coupling, high stochasticity, and multi-objective trade-offs”. For example, during daytime PV peaks, it is necessary to coordinate storage charging and reduce controllable unit output, whereas at night, when PV generation is absent, the challenge shifts to balancing storage discharging and grid electricity purchases, while avoiding risks of power imbalance. These requirements place stringent demands on scheduling algorithms, particularly in terms of global exploration, high-dimensional problem-solving capability, and solution stability [
11,
12,
13].
For both reliability and management considerations, the most effective approach to integrating renewable energy into power systems is through the adoption of microgrid structures. Microgrids are often regarded as intelligent distribution systems because their internal management systems must not only ensure supply–demand balance but also formulate optimal operation strategies to minimize energy costs [
14,
15]. A renewable-energy-based microgrid, defined as a microgrid in which at least one renewable source serves as the primary power supply, has emerged as a focal point of global research. Within this context, optimal scheduling is a critical task of the microgrid Energy Management System (EMS), aiming to minimize operating costs while mitigating load disturbances. To achieve the optimal operating points of various microgrid components, intelligent scheduling strategies must be developed to determine the most efficient operation plan over the scheduling horizon. Optimal scheduling (OS) encompasses decisions on power generation from internal sources, power exchange between the microgrid and the main grid, and charging/discharging schedules of storage units [
16,
17].
In addressing the microgrid scheduling problem, conventional optimization techniques such as linear programming and dynamic programming provide satisfactory accuracy under deterministic conditions. However, when confronted with the uncertainties of renewable energy output and the coupling constraints among multiple sources, these methods often suffer from discrepancies between model assumptions and real-world scenarios, leading to local optima and failing to satisfy the requirements of “economic–low-carbon” coordinated scheduling. In recent years, swarm intelligence algorithms have attracted significant attention due to their global search capabilities inspired by collective behaviors in nature [
18,
19]. By mimicking biological group dynamics—such as ant colonies in foraging or bird flocks in migration—these algorithms exploit information exchange and iterative updates among individuals to progressively approach the global optimum. As a result, they exhibit remarkable advantages in solving high-dimensional, nonlinear, and multi-constrained optimization problems [
20].
In recent years, an increasing number of swarm intelligence algorithms have been developed. For example, Particle Swarm Optimization (PSO), inspired by the foraging behavior of bird flocks, was introduced by Eberhart and Kennedy [
21]; the Genetic Algorithm (GA), based on Darwin’s theory of evolution, was proposed by Holland [
5]; and Simulated Annealing (SA), derived from the annealing process in metallurgy, was presented by N. Metropolis et al. [
22]. Other notable examples include the Grey Wolf Optimizer (GWO), inspired by the social hierarchy and hunting behavior of grey wolves [
23]; Harris Hawks Optimization (HHO), based on the cooperative predation strategy of hawks hunting rabbits [
24]; the Dung Beetle Optimizer (DBO), simulating rolling, dancing, foraging, stealing, and reproduction behaviors of dung beetles [
25]; the Secretary Bird Optimization Algorithm (SBOA), inspired by the survival behaviors of secretary birds [
26]; the Golden Eagle Optimizer (GEO), derived from golden eagles’ speed-regulating hunting behaviors [
27]; the Crested Porcupine Optimizer (CPO), simulating defensive behaviors of crested porcupines [
28]; the Black Widow Optimization Algorithm (BWO), based on the unique reproductive behavior of black widow spiders [
29]; the Northern Goshawk Optimizer (NGO), inspired by the hunting strategies of northern goshawks [
30]; the Marine Predators Algorithm (MPA), based on the foraging behavior of marine predators [
31]; the Whale Optimization Algorithm (WOA), simulating the hunting strategy of humpback whales with three phases—search, shrinking encircling, and spiral updating [
32]; the Snake Optimizer (SO), inspired by the mating behavior of snakes [
33]; the Red-Billed Blue Magpie Optimizer (RBMO), derived from the searching, chasing, attacking, and food-storing behaviors of magpies [
34]; the Quantum Avian Navigation Optimizer (QANA), inspired by the remarkable navigation abilities of migratory birds [
35]; and the Golden Jackal Optimization Algorithm (GJO), which models the cooperative hunting behaviors of golden jackals [
36]. Although these algorithms have demonstrated effectiveness in solving specific optimization problems, most of them still suffer from common shortcomings, such as a tendency to fall into local optima and slow convergence speed.
The Zebra Optimization Algorithm (ZOA) [
37], as a recently developed swarm intelligence method, constructs its search mechanism by simulating zebras’ foraging behavior (exploration phase) and anti-predation defense strategies (exploitation phase). While it has shown certain potential in solving low-dimensional numerical optimization problems, its standard version exhibits three major limitations when applied to high-dimensional, highly constrained engineering problems such as microgrid scheduling. First, its search mechanism is overly simplistic: during the foraging phase, the algorithm relies solely on the “pioneer zebra” (i.e., the global best individual) to guide the search, with little information exchange among individuals of different fitness levels. This narrow search perspective reduces diversity and hinders exploration. Second, it suffers from insufficient dimensional coordination, as individuals update each decision variable independently without considering interdimensional correlations. Third, its boundary-handling approach is overly coarse, directly truncating infeasible solutions that exceed constraints [
38,
39,
40,
41]. These shortcomings not only limit the optimization accuracy of scheduling schemes but also result in higher operating costs and less effective carbon emission reduction, making it difficult to meet the practical demands of microgrid operation for both economic efficiency and environmental sustainability.
The selection of the Zebra Optimization Algorithm (ZOA) as the basis for developing the SZOA is driven by its inherent advantages and targeted adaptability to microgrid scheduling needs. First, the ZOA’s biologically inspired mechanism—simulating zebras’ foraging (exploration) and anti-predation (exploitation) behaviors—naturally balances global search and local refinement, which aligns with the “multi-variable coupling, high stochasticity” characteristics of microgrid scheduling, unlike the behavior of some MAs (e.g., PSO, GA) prone to premature convergence. Second, the ZOA displays low computational complexity without excessive parameter tuning or complex operators, ensuring that subsequent enhancements (e.g., multi-population search) do not introduce prohibitive overhead, suitable for 24 h high-dimensional scheduling.
To address these issues, this paper proposes a Synergistic Zebra Optimization Algorithm (SZOA) and applies it innovatively to microgrid optimal scheduling, aiming to achieve the dual objectives of “reducing economic costs” and “lowering carbon emissions.” The SZOA introduces three core enhancement strategies to overcome the limitations of the standard algorithm. First, a multi-population cooperative search mechanism is designed, which integrates differential vectors formed from the global best, suboptimal, worst, and randomly selected individuals. Learning factors are dynamically assigned based on Euclidean distance, thereby constructing comprehensive search directions, enhancing population diversity, and fully exploiting the potential for maximizing renewable energy utilization and reducing fossil fuel consumption. Second, a vertical crossover–mutation strategy reorganizes positions across different dimensions within each individual and introduces random perturbations. This breaks the limitation of “dimension-wise independent updates”, enabling coordinated optimization of multi-source power outputs in 24 h microgrid scheduling, alleviating local optima in high-dimensional scenarios, and improving the refinement of scheduling solutions. Third, a leader-guided boundary control strategy replaces conventional fixed-boundary truncation. By constructing dynamic constraint intervals centered on the best individual, it ensures the continuity and rationality of decision variables such as storage state-of-charge (SOC) and power outputs, thereby reducing power imbalance risks and penalty costs.
The main contributions of this study are as follows:
- (1)
A Synergistic Zebra Optimization Algorithm (SZOA) is proposed by integrating a multi-population cooperative search mechanism, a vertical crossover–mutation strategy, and a leader-guided boundary control strategy. These enhancements effectively address the limitations of the standard Zebra Optimization Algorithm (ZOA), namely its narrow search perspective, insufficient dimensional coordination, and coarse boundary handling, thereby improving its performance on complex optimization tasks.
- (2)
Comprehensive comparative experiments are conducted on benchmark test suites CEC2017 (d = 30) and CEC2022 (d = 10, 20), where the SZOA is evaluated against nine peer algorithms including IAGWO, EWOA, and VPPSO. Statistical analyses using the Wilcoxon rank-sum test and the Friedman mean-rank test confirm the superior optimization accuracy, convergence speed, and robustness of the SZOA.
- (3)
An “economic–low-carbon” bi-objective microgrid scheduling model is constructed, and the SZOA is successfully applied to the optimal scheduling of a grid-connected microgrid. Simulation results based on a typical day dataset from Guangdong Province demonstrate its practical value in reducing operating costs (with a minimum cost of USD 5165.96) and mitigating carbon emissions.
The remainder of this paper is organized as follows.
Section 2 describes the principles of the ZOA and the design details of the SZOA, including the initialization, exploration, and exploitation phases of the ZOA, as well as the mathematical models and pseudocode of the three enhancement strategies.
Section 3 presents numerical experiments, parameter settings, population diversity analysis, exploration–exploitation balance analysis, and performance comparisons.
Section 4 applies the SZOA to microgrid scheduling, covering the modeling of distributed generation units, objective functions, and constraints, followed by detailed scheduling results.
Section 5 concludes the study, highlights its limitations, and discusses directions for future research.
3. Numerical Experiments
3.1. Algorithm Parameter Settings
In this section, the performance of the proposed SZOA is evaluated using the most challenging benchmark suites for numerical optimization, CEC2017 [
42] and CEC2022 [
43], and then compared with several other algorithms. The comparison algorithms include: Improved Multi-Strategy Adaptive Grey Wolf Optimization (IAGWO) [
44], the Enhanced Whale Optimization Algorithm (EWOA) [
45], Velocity Pausing Particle Swarm Optimization (VPPSO) [
46], improving the search performance of SHADE using linear population size reduction (L-SHADE) [
47], Animated Oat Optimization (AOO) [
48], the Crested Porcupine Optimizer (CPO) [
28], the Dung Beetle Optimization Algorithm (DBO) [
49], and the standard Zebra Optimization Algorithm (ZOA) [
37]. Parameter settings for all compared algorithms are detailed in
Table 1.
3.2. Qualitative Analysis of SZOA
3.2.1. Analysis of the Population Diversity
In optimization algorithms, population diversity refers according to the differences among individuals within a population [
50,
51], with each individual generally representing a candidate solution. A reduction in diversity often results in premature convergence to local optima, which can limit the algorithm’s ability to explore the global search space. Conversely, maintaining greater diversity supports broader exploration of potential solutions and increases the likelihood of identifying the global optimum. In this section, we assess the population diversity of the SZOA approach using Equation (14) [
26,
52].
where
denotes the population diversity,
represents the population size,
indicates the problem’s dimensionality, and
denotes the value of the
individual in the
dimension at the
iteration.
quantifies the dispersion degree of the entire population relative to its center of mass at iteration
, which is calculated using Equation (15).
Figure 4 presents the evolution of population diversity for the SZOA and the original ZOA on the CEC2017 (d = 30) benchmark suite. The results indicate that while the diversity of both algorithms decreases as the iterations progress, the SZOA consistently maintains higher diversity throughout the entire optimization process. For instance, on F18 at iteration 250, the diversity of the ZOA drops below 300, whereas the SZOA maintains it at around 500; on F30 at iteration 400, the SZOA still exhibits diversity above 400, while that for the ZOA falls below 200. This improvement is attributed to SZOA’s multi-population collaborative search mechanism, which integrates differential vectors of individuals with different fitness levels (Gap1–Gap4) and dynamically allocates learning factors, thereby preventing excessive aggregation of individuals. Additionally, the adaptive step size slows down the decay of diversity. In contrast, the ZOA’s single-leader guidance tends to cause rapid diversity loss. This enhanced diversity enables the SZOA to effectively avoid local optima and improve overall optimization performance.
3.2.2. Analysis of the Exploration and Exploitation
In optimization algorithms, both exploration and exploitation play crucial roles. Exploration involves the broad search across different regions of the solution space to discover new areas that may contain the global optimum. Exploitation, on the other hand, focuses on refining and improving existing high-quality solutions through an intensive local search, leveraging current information to achieve higher precision.
Overemphasis on exploration can cause inefficient allocation of computational resources, as the algorithm may scan extensively without sufficiently improving promising solutions, missing opportunities for local refinement. Conversely, excessive exploitation increases the risk of premature convergence to local optima, limiting the search for better solutions in other regions [
53,
54]. Hence, achieving an appropriate balance between these two processes is essential for algorithmic performance. In this section, we examine the exploratory and exploitative behaviors of the SZOA algorithm, as measured by Equations (16) and (17) [
26].
where
denotes the measure of diversity at the
th iteration, which is calculated by Equation (18), and
denotes the maximum measure of diversity throughout the iteration.
Figure 5 illustrates the dynamic changes in exploration and exploitation rates of the SZOA on the CEC2017 benchmark functions (all with dimension 30). In the early iterations (0–100), the exploration rate remains between 60% and 80%; for example, on F20 at iteration 50, the exploration rate exceeds 70%, ensuring adequate global search coverage. During the mid-phase (100–300 iterations), the exploration rate decreases to 30–50%, while the exploitation rate rises to 50–70%, achieving a smooth transition from “broad exploration” to “local exploitation”; for instance, on F25 at iteration 200, the exploitation rate reaches 60%. In the late phase (300–500 iterations), the exploitation rate stabilizes at 70–90%, while exploration is retained at 10–30%; for example, on F30 at iteration 500, the exploration rate remains around 20%, balancing solution refinement with avoidance of local optima. This equilibrium is attributed to the SZOA’s design: the multi-population collaborative search mechanism integrates multi-source information to prevent resource wastage and premature convergence, the vertical crossover mutation strategy introduces perturbations to facilitate exploration, and the leader-based dynamic boundary control enhances exploitation efficiency, collectively supporting its superior optimization performance.
3.2.3. Impact Analysis of the Strategy
To evaluate the individual contributions and synergistic effects of the three enhancement strategies—multi-population synergistic search mechanism (S1), vertical crossover–mutation strategy (S2), and leader-based boundary control strategy (S3)—ablation experiments were conducted using the CEC2017 benchmark suite (dimension d = 30). Five algorithmic variants were designed for comparison: the standard ZOA, ZOA_S1 (incorporating only S1), ZOA_S2 (incorporating only S2), ZOA_S3 (incorporating only S3), and SZOA, which integrates all three strategies. The experimental results are presented in
Figure 6 and
Figure 7.
The convergence curves in
Figure 6 show that the individual strategies contribute differently to ZOA’s performance. ZOA-S1 (incorporating only S1) leverages multi-source individual information, achieving faster convergence than that of the standard ZOA on functions such as F1 and F7, but still underperforming compared to the results for the SZOA. ZOA-S2 (incorporating only S2) optimizes high-dimensional problems through dimension reorganization, performing better than the ZOA on complex functions like F9 and F16, yet struggling to escape local optima. ZOA-S3 (incorporating only S3) enhances stability on functions such as F21 and F30 by reducing abrupt positional changes via dynamic boundary control, but its convergence precision remains limited. In contrast, the SZOA, which integrates all three strategies, demonstrates superior convergence across all benchmark functions; for example, on F18 at iteration 500, the SZOA achieves a significantly lower objective value than that of any single-strategy variant, and on F30, it converges rapidly with minimal fluctuation.
Figure 7 further quantifies these differences through average ranking: the standard ZOA ranks lowest, followed by ZOA-S1, ZOA-S2, and ZOA-S3, while the SZOA leads with an average rank of 2.73, markedly outperforming the other variants whose average ranks all exceed 3.80. These results indicate a significant synergistic effect among the three strategies: S1 provides optimized global search directions, S2 addresses high-dimensional coordination issues, and S3 ensures rational search within boundary regions. The combination not only overcomes the limitations of individual strategies but also enhances the balance between global exploration and local exploitation, enabling the SZOA to surpass both the standard ZOA and its single-strategy variants.
3.3. Experimental Results and Analysis of CEC2017 and CEC2022 Test Suite
This section evaluates the performance of the SZOA against other benchmark algorithms on the CEC2017 and CEC2022 test suites, which include four categories of mathematical functions: unimodal, multimodal, composition, and hybrid functions. Multimodal functions, containing multiple local optima, are suitable for assessing the exploration capabilities of new optimizers. Composition and hybrid functions evaluate the algorithms’ ability to avoid local optima, while unimodal functions, containing only a single global optimum, are used to assess exploitation performance.
To ensure experimental fairness and mitigate randomness, the population size was fixed at 30, the maximum number of iterations was set to 500, and each algorithm was independently run 30 times. The mean (Ave) and standard deviation (Std) of the results were recorded, with the best values highlighted in bold. All experiments were conducted on a Windows 11 system equipped with an AMD Ryzen 7 9700X 8-Core Processor (3.80 GHz), 48 GB of RAM, and MATLAB 2024b. The convergence curves and box plots of the different algorithms are presented in
Figure 8 and
Figure 9, providing an intuitive visualization of their convergence speed and result distribution characteristics.
Table 2,
Table 3 and
Table 4 quantitatively compare the optimization performance of the SZOA with nine benchmark algorithms—namely, IAGWO, EWOA, VPPSO, L-SHADE, AOO, CPO, DBO, SBOA, and the original ZOA—on the CEC2017 (dimension) and CEC2022 (dimensions d = 10, d = 20) test suites. The primary evaluation metrics are the mean (Ave) and standard deviation (Std) of the objective function values.
On the CEC2017 test set (d = 30), the SZOA demonstrates clear superiority across the unimodal, multimodal, hybrid, and composition functions. For instance, for the unimodal function F1, which tests local exploitation capability, the SZOA achieves an Ave of 5.2887 × 103, far lower than that of the original ZOA (1.0170 × 1010) and also better than that of other high-performing algorithms such as L-SHADE (1.5604 × 104) and SBOA (3.7176 × 104). Its Std is only 6.0862 × 102, indicating strong solution stability. For the multimodal function F30, which evaluates global exploration and avoidance of local optima, the SZOA attains an Ave of 5.8597 × 103—approximately 1/16 of that for the original ZOA (9.7294 × 104)—with an Std of 1.5783 × 103, much lower than the results for DBO (2.4650 × 107) and EWOA (3.3193 × 106), demonstrating stable convergence in complex search spaces.
For the CEC2022 test set, the SZOA’s advantages are further highlighted across different dimensional scenarios. For d = 10, the theoretical optimum of unimodal function F1 is 3.0000 × 102, which the SZOA precisely reaches with an Ave of 3.0000 × 102 and an extraordinarily low Std of 3.1667 × 10−14. In contrast, the original ZOA records an Ave of 1.3227 × 103 and an Std of 1.6245 × 103, while the results for IAGWO, EWOA, and other algorithms also exceed 3.0000 × 102, indicating that the SZOA achieves highly accurate optimization for low-dimensional simple functions. For the higher-dimensional scenario (d = 20), the optimization difficulty of F1 significantly increases; the SZOA still maintains an Ave of 3.0000 × 102 with an Std of 2.3065 × 10−3, whereas the ZOA and IAGWO record Ave values of 1.6695 × 104 and 1.1055 × 104, respectively. This confirms the effectiveness of the SZOA’s vertical crossover–mutation strategy in addressing “dimension interdependence insufficiency”; by recombining and perturbing internal dimensions, the strategy enables complementary and coordinated information exchange among dimensions, avoiding local stagnation even in high-dimensional spaces.
The convergence curves in
Figure 8 provide an intuitive dynamic view of the SZOA’s performance advantage. For representative functions such as F1, F12, F18, and F30 from CEC2017 and F1, F6, and F11 from CEC2022, the SZOA’s curves consistently lie below those of other algorithms, indicating faster convergence. For example, for F12 (a composition function with multiple local optima) of CEC2017, the SZOA quickly reduces the objective function from 10
7 to 10
5 within the first 50 iterations, whereas the results for the ZOA and DBO remain at 10
8–10
9. By iteration 500, the SZOA achieves 5.3085 × 10
4, much lower than those for the ZOA (1.0004 × 10
9) and DBO (1.4215 × 10
8). This rapid convergence is attributed to the SZOA’s multi-population synergistic search mechanism, which integrates differential vectors of the global best (
), second-best (
), worst (
), and two random individuals (
,
) and dynamically allocates learning factors (
) based on Euclidean distances to construct a comprehensive search direction, overcoming the narrow search perspective and slow convergence of the standard ZOA.
Figure 9 shows box plots to quantify result stability. For CEC2017 functions F7, F10, F16, and F25 and for CEC2022 functions F4, F7, and F11, the SZOA exhibits significantly narrower boxes with medians closer to theoretical optima and no obvious outliers. For instance, for F7 of CEC2017, the SZOA’s box ranges from approximately 820 to 860, with a median around 840, while the results for the ZOA range from 900 to 1200, with multiple outliers above 1200. For F4 (d = 10) of CEC2022, the SZOA’s box width is less than 5, whereas the IAGWO and EWOA exhibit widths of approximately 20 and 30, respectively, demonstrating higher consistency across independent L-SHADEs. This high stability results from the SZOA’s leader-based boundary control strategy, which replaces fixed boundaries with dynamic constraint zones centered on the best individual, effectively avoiding abrupt position changes caused by “direct truncation” in the ZOA and reducing local optimum traps near search space boundaries.
Overall, the quantitative results in
Table 2,
Table 3 and
Table 4, combined with the intuitive analyses from
Figure 8 and
Figure 9, indicate that the synergistic effect of the SZOA’s three core enhancement strategies achieves comprehensive superiority over the original ZOA and other comparison algorithms in terms of optimization accuracy, convergence speed, and result stability. The algorithm demonstrates robust adaptability across different dimensions and function types (unimodal, multimodal, hybrid, and composition), providing solid performance support for subsequent applications in engineering problems such as microgrid optimization scheduling.
3.4. Statistical Analysis
Statistical analysis is indispensable for optimizing algorithms, as it provides a framework for researchers to systematically assess and compare the effectiveness of different methods. This process supports informed decision making when identifying the optimal approach for particular research objectives. In this section, the performance of the SZOA algorithm is evaluated through the Wilcoxon rank-sum test and the Friedman test, with comprehensive descriptions of the methodology and outcomes provided.
3.4.1. Wilcoxon Rank-Sum Test
In this subsection, the Wilcoxon rank-sum test [
55] is employed to assess whether significant differences exist in the performance of the SZOA algorithm, without relying on assumptions of normality. Compared to the traditional
t-test, the Wilcoxon test offers greater flexibility, as it remains applicable to data with non-normal distributions or outliers. The test statistic
for the Wilcoxon rank-sum test is defined by Equation (19).
where
denotes the rank of
among all observations. The test statistic
is calculated by Equation (20).
For larger sample sizes,
is approximately normally distributed by Equation (21) and Equation (22).
and the standardized statistic Z is calculated by Equation (23).
A significance level of 0.05 was adopted to determine whether the results of each SZOA run exhibited a statistically significant difference from those of other algorithms. Under the null hypothesis (
), it is assumed that no significant difference exists between the two algorithms. If the
-value is less than 0.05,
is rejected, indicating a significant performance difference; otherwise, it is retained. The
-value is presented in
Appendix A.2Table 5 quantifies the performance differences between the SZOA and nine benchmark algorithms on the CEC2017 (d = 30) and CEC2022 (d = 10, d = 20) test suites using the Wilcoxon rank-sum test (
p = 0.05) in the form of “(+/=/-)”, where “+” indicates that SZOA is significantly superior. This test does not require the assumption of normality, allowing for the objective exclusion of random effects. For CEC2017 (d = 30), the SZOA achieves a “+” value of 30 against the ZOA, EWOA, and two other algorithms (i.e., SZOA performs significantly better for all 30 functions), a “+” value of 29 against the VPPSO and L-SHADE (only 1 function shows no advantage), and a “+” value of 27 compared to the IAGWO and AOO (3 functions show no advantage), demonstrating clear superiority in high-dimensional scenarios. For CEC2022, when d = 10, SZOA attains a “+” value of 12 compared to the IAGWO, ZOA, and four other algorithms (all 12 functions are better) and a “+” value of 11 compared to the EWOA and DBO. When d = 20, the results are similar, with only the SBOA showing a “+” value of 9 (3 functions show no advantage). These results indicate that the Wilcoxon test confirms the statistical significance of the SZOA’s performance improvements and demonstrates that its superiority is stable across different dimensionalities, providing critical support for the reliability of its performance.
3.4.2. Friedman Mean Rank Test
In this subsection, the Friedman test [
56] is used to determine the overall ranking of the MECOA relative to other methods. As a nonparametric approach, the Friedman test is suitable for comparing median performance differences across three or more matched groups. It is particularly well-suited for repeated measures or block designs, and is often employed as a robust alternative to ANOVA when the assumption of normality is violated. The Friedman test statistic is calculated according to Equation (24).
where
is the number of blocks,
is the number of groups, and
is the rank sum for the
-th group. When
and
are large,
follows approximately a
distribution, with
degrees of freedom.
As shown in
Table 6, the performance rankings for the CEC2017 (d = 30) and CEC2022 (d = 10, 20) test suite are presented, where “M.R” denotes the mean rank and “T.R” denotes the total rank. Smaller rank values indicate superior overall algorithm performance. As a nonparametric method, this test does not rely on the assumption of normality and can effectively compare median performance differences among multiple algorithms, making it particularly suitable for the overall evaluation of numerical optimization algorithms.
For CEC2017 (d = 30), the SZOA achieved a mean rank of only 1.20, with a total rank of 1, significantly outperforming the SBOA (mean rank 2.57, 2nd place) and the original ZOA (mean rank 8.80, 9th place). For CEC2022 (d = 20), the SZOA maintained a mean rank of 1.25 and remained in 1st place, while the original ZOA reached a mean rank of 8.83 (total rank 10). Other benchmark algorithms, such as the IAGWO (mean rank 5.75) and EWOA (mean rank 8.58), also lagged far behind the SZOA. These results indicate that the SZOA consistently demonstrates superior comprehensive optimization capability across both high-dimensional, complex test suites and benchmark suites from different years.
Figure 10 visualizes the ranking distributions of different algorithms for each function of the CEC2017 (d = 30) and CEC2022 (d = 10, d = 20) test suites, further confirming the statistical results in
Table 6. For CEC2017 (d = 30), for representative functions such as F1, F5, F9, and F12, the SZOA consistently ranks 1st, with no function ranked below the top 2. Even for more complex multimodal functions like F26 and F30, the SZOA maintains 1st place, whereas the original ZOA mostly ranks between 8th and 10th, and the IAGWO and EWOA distribute between 3rd and 7th. For CEC2022 (d = 10, d = 20), the SZOA similarly demonstrates concentrated and leading rankings: for d = 10, it ranks 1st for functions such as F1, F3, and F6; for d = 20, although it ranks 2nd for a few functions like F11 and F12, it predominantly holds 1st place. Among the comparison algorithms, only the SBOA and L-SHADE occasionally reach 2nd place, while the rest are mostly ranked 4th or lower.
In summary, the quantitative rankings in
Table 6, combined with the visual distributions in
Figure 10, indicate that the SZOA’s three synergistic strategies—multi-population collaborative search, vertical crossover–mutation, and leader-based boundary control—enable not only superior performance for individual functions but also consistent overall superiority across different dimensions and function types. The stability and leading position of its rankings further confirm the rationality and effectiveness of the algorithm design.
3.5. Runtime Comparison Analysis of SZOA and ZOA
Building on the previous research findings, the improved SZOA demonstrates significantly better overall performance compared to that of the standard ZOA. This section focuses on analyzing the computational time cost differences between the two algorithms for the CEC2017 benchmark. To ensure fairness, both the SZOA and ZOA were configured using standardized parameter settings, which are entirely consistent with those used in the preceding sections. The average runtime for each algorithm was calculated based on 30 independent runs.
Figure 11 presents the average computation time (in seconds) required by each algorithm to solve the test functions.
From the data distribution in the graph (
Figure 11), it can be observed that the running time of the SZOA is slightly higher than that of the original ZOA for most test functions. For instance, for certain functions, the average running time of the SZOA is approximately 0.06–0.70 s, while the results for the SZOA reach 0.08–0.90 s. In a few specific cases (such as F1, where ZOA needs 0.06 s and SZOA requires 0.08 s), the difference in running time becomes more pronounced. However, the overall time cost remains within the same order of magnitude, with no exponential increase.
This slight increase in computation time primarily stems from the three enhanced strategies integrated into the SZOA: the multi-population synergistic search mechanism, the vertical crossover–mutation strategy, and the leader-based boundary control strategy, which introduce additional overhead. Although these new operations add extra computational costs, theoretical time complexity analysis indicates that the SZOA does not introduce higher-order complexity factors. Its time complexity remains consistent with that of the original ZOA, both exhibiting . Therefore, the difference in running time between the two algorithms remains within an acceptable range.
5. Summary and Prospect
This study focuses on the core demand of “economic–low-carbon” synergistic optimization scheduling in microgrids. To address the shortcomings of the traditional Zebra Optimization Algorithm (ZOA)—namely the reliance on a single search mechanism, insufficient inter-dimensional coordination, and coarse boundary handling when solving complex high-dimensional problems—we propose a Synergistic Zebra Optimization Algorithm (SZOA). Its effectiveness is verified through numerical experiments and engineering applications. The main conclusions are as follows:
From the perspective of algorithmic improvements, the SZOA achieves performance breakthroughs through three core strategies. First, the multi-population synergistic search mechanism integrates difference vectors from the global best, suboptimal, worst, and random individuals. By dynamically assigning learning factors based on Euclidean distance, it builds a comprehensive search direction and effectively mitigates the rapid loss of population diversity caused by the reliance on a single “leader zebra” in the standard ZOA, thus providing multi-source support for global exploration. Second, the vertical crossover–mutation strategy reorganizes dimensions within individuals and introduces random perturbations, breaking the limitation of “dimension-independent updates” in traditional algorithms. This enhances complementarity and coordination across dimensions in high-dimensional problems, preventing certain dimensions from falling into local optima. Third, the leader-guided boundary control strategy transforms fixed boundaries into dynamic constraint intervals centered on the population’s best individual. This replaces the “direct truncation” method, ensuring continuity and rationality in position updates, while reducing local optima traps near the boundary.
For numerical validation, the SZOA was tested on the CEC2017 benchmark set (dimension d = 30) and the CEC2022 benchmark set (dimensions d = 10 and d = 20) and compared against nine algorithms, including the Improved Adaptive Grey Wolf Optimizer (IAGWO), the Enhanced Whale Optimization Algorithm (EWOA), and the original ZOA. Results show that the SZOA consistently achieved the best performance across unimodal, multimodal, hybrid, and composite functions. For example, in the CEC2017 F1 (unimodal) test, the average objective value obtained by the SZOA was 5.2887 × 103, far lower than the original ZOA’s 1.0170 × 1010. In the F30 (multimodal) test, the SZOA achieved an average value of just 5.8597 × 103, only one-sixteenth of the value of the original ZOA, with a significantly lower standard deviation. Wilcoxon rank-sum and Friedman mean-rank tests further confirmed that the improvements in the SZOA are statistically significant. The SZOA consistently maintained a leading position across dimensions, with the lowest average ranks (1.20 for CEC2017 and 1.25 for CEC2022 with d = 20).
In terms of engineering applications, the SZOA was applied to the grid-connected microgrid scheduling problem. The microgrid model incorporates photovoltaic generation (PV), wind power (WT), fuel cells (FC), microturbines (MT), battery storage (BT), and grid interaction. A dual-objective framework was established with “economic cost minimization” and “low-carbon emission reduction”. The objective functions included fuel cost, operation cost, and pollution treatment cost, subject to multiple constraints. Simulation results based on a typical day in Guangdong Province show that the SZOA-optimized microgrid achieved a minimum operating cost of USD 5165.96, an average cost of USD 6853.07, and a standard deviation of only USD 448.53—all superior compared to the results for the other algorithms. Furthermore, the SZOA effectively coordinated the outputs of the distributed energy sources. During the daytime, it maximized PV utilization (peaking near 35 kW) and WT output (30–40 kW), while reducing reliance on fossil fuel generators such as FC and MT. At night, BT discharge (–20 to –30 kW) compensated for load gaps, thereby reducing fossil fuel consumption and pollutant emissions and realizing the “economic–low-carbon” synergy in microgrid optimization.
Although this study provides a reliable solution through algorithmic innovations and engineering validation of the SZOA, several promising extensions remain. This study still exhibits certain limitations. On the one hand, the SZOA-based microgrid scheduling model adopts deterministic typical daily data of renewable energy output and load demand, lacking an optimization mechanism to cope with uncertainties like extreme weather or sudden load changes, which may reduce the solution’s robustness. On the other hand, the SZOA is only applied to single grid-connected microgrid scheduling, and its adaptability to complex multi-microgrid interconnected systems with power trading and shared energy storage remains untested. Additionally, the slight increase in computational overhead due to its three enhancement strategies may make it difficult to meet real-time scheduling needs in large-scale, high-dimensional microgrid scenarios.
Future research may incorporate interval optimization and robust optimization methods, building uncertainty-aware scheduling models that consider extreme weather and sudden load fluctuations to enhance robustness. The SZOA could also be extended to interconnected multi-microgrid systems to optimize power trading and storage allocation, improving regional energy system performance. Moreover, based on multi-objective optimization theory, the objective system could be expanded to include equipment lifetime loss and supply reliability, with tailored multi-objective solving strategies. Finally, engineering modules of the SZOA could be developed, integrated with edge computing and real-time data acquisition technologies, to promote its transition into practical engineering applications.