Next Article in Journal
Cultural Diversity and the Operational Performance of Airport Security Checkpoints: An Analysis of Energy Consumption and Passenger Flow
Previous Article in Journal
Site Selection for Solar–Wind Hybrid Energy Storage Plants Based on Triangular Fuzzy Numbers: A Case Study of China
Previous Article in Special Issue
Networked Microgrid Energy Management Considering Ownership and Control Structures: A Comparison
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids

1
Beijing Dingcheng Hongan Technology Development Co., Ltd., Beijing 101399, China
2
State Grid Beijing Electric Power Research Institute, Beijing 100031, China
3
Department of Instrumental & Electrical Engineering, Xiamen University, Xiamen 361005, China
4
Nanjing Fuhua New Energy Technology Co., Ltd., Nanjing 210049, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(14), 3852; https://doi.org/10.3390/en18143852 (registering DOI)
Submission received: 25 March 2025 / Revised: 3 July 2025 / Accepted: 15 July 2025 / Published: 19 July 2025

Abstract

Microgrids have drawn attention due to their helpfulness in the development of renewable energy. It is necessary to make an optimal power dispatch scheme for each micro-source in a microgrid in order to make the best use of fluctuating and unpredictable renewable energy. However, the computational time of solving the optimal dispatch problem increases greatly when the grid’s structure is more complex. An improved parallel differential evolution (PDE) approach based on a message-passing interface (MPI) is proposed, aiming at the solution of the optimal dispatch problem of a microgrid (MG), reducing the consumed time effectively but not destroying the quality of the obtained solution. In the new approach, the main population of the parallel algorithm is divided into several small populations, and each performs the original operators of a differential evolution algorithm, i.e., mutation, crossover, and selection, in different processes concurrently. The gather and scatter operations are employed after several iterations to enhance population diversity. Some improvements on mutation, adaptive parameters, and the introduction of migration operation are also proposed in the approach. Two test systems are employed to verify and evaluate the proposed approach, and the comparisons with traditional differential evolution are also reported. The results show that the proposed PDE algorithm can reduce the consumed time on the premise of obtaining no worse solutions.

1. Introduction

A microgrid [1] is a low-generating and low-distributing power system composed of distributed generators, loads, energy storage systems, electric vehicles, protection devices, and control devices. Generally, renewable energy, such as solar and wind energy, is the main generating unit in a microgrid [2]. However, the output from solar and wind energy sources tends to fluctuate [3] and is often intermittent [4]. To make better use of these unstable renewable energy units, the optimal power dispatch of a microgrid is necessary [5].
The optimal power dispatch of a microgrid involves coordinating the power generation from sources such as wind turbines, PV systems, and micro-turbines, along with the charging/discharging cycles of energy storage systems and electric vehicle batteries, to achieve objectives such as minimizing operational costs [6] or optimizing economic and environmental impacts [7]. Through the optimal dispatch to a microgrid, surplus solar and wind energy are stored in the batteries, which may have prospects in smoothing and stabilizing the power output of photovoltaic systems, peak load shifting, operating reserves, and improving power quality [8]. The energy stored in batteries is released when solar and wind energy is deficient, such as at night, on cloudy days, and in a high-load period. The dispatch of a microgrid contributes to meeting the demand of loads in 24 h and makes better use of renewable energy [9].
The optimal power dispatch problem of a microgrid is a complicated constrained optimization problem and requires effective solution techniques. Traditional programming techniques such as MILP [10] and stochastic programming [11] have been proposed as alternative techniques to solve the optimization problem of the optimal dispatch of a microgrid. However, the optimal power dispatch problems in microgrids are generally non-smooth and non-convex optimization problems that are usually hard to solve through traditional optimization algorithms [12]. Artificial intelligence optimization algorithms have the ability to solve non-convex and non-smooth problems. Up to now, GA [13], GPSO-GM [14], modified PSO [15], harmony search algorithm [16], modified krill herd (MKH) algorithm [17], improved quantum PSO [18], SFO [19], DE algorithm [20], marine predator algorithm [21], quantum adaptive sparrow search algorithm [22], etc., have been employed to solve the optimal dispatch problem of microgrids successfully.
Among those artificial intelligence methods, the DE algorithm, consisting of the operations of mutations, crossovers, and selections, requires few control variables, is robust and easy to use, and converges fast [23] for a non-convex and non-smooth problem. Benefitting from the above advantages, many DE algorithms have been employed to solve different optimal power dispatch problems in microgrids. Research in Ref. [24] reformulated the nonlinear AC-DC OPF problem as an equivalent traditional AC OPF problem, and then a modified adaptive differential evolution algorithm was proposed to solve the non-convex AC OPF problem. Three soft computing techniques, viz. particle swarm optimization, differential evolution, and differential evolution with local–global neighborhoods, were used to perform a novel dynamic cost analysis of a microgrid and minimize its overall cost in Ref. [25]. In order to solve the real-time scheduling problem of community MG, a heuristic-based differential evolution (DE) algorithm was introduced in Ref. [26]. Their case study shows that the DE algorithm can generate feasible solutions with lower computational effort. The dynamic scheduling of a combined heat–power islanded microgrid with RES and energy storage was presented in Ref. [27], and a fuzzy attainment module was integrated into the modified differential evolution algorithm with dynamic mutation rates to obtain the best solution for the scheduling problem. However, most past works simplified the constraints of power balance and neglected the power loss and voltage constraints. In fact, the operation of a microgrid must be carefully controlled in order to prevent abrupt voltage fluctuations that stem from the sensitivity of voltages to variations in power injections, node over-voltages and under-voltages, and drops in the power factor [28]. As explained in Refs. [29,30], voltage stability plays an important role in power system operations. Therefore, power flow limits are advocated in this context to ensure the stability of voltage. Even though the importance of power flow constraints was emphasized in Refs. [31,32], they focused only on a specific time interval and ignored the coordination among different periods. But it is necessary to consider it over multiple periods because the states of charge (SOC) of batteries are relevant to their last SOC, and power flow distributions are period-coupling. Although the power flow constraints and the detailed network structure were considered in Ref. [6], the population size of the employed evolutionary algorithm is too large to conceal their influences on the increasing computational time.
In fact, solution techniques to optimal power dispatch problems for microgrids have always attracted scholars’ attention, particularly in recent years. On the one hand, the consideration of coordinating the power dispatch among multiple periods, as well as the complication of a transmission network, makes the optimal power dispatch problem more complex. On the other hand, the rolling horizon scheduling proposed by the research in Refs. [33,34], which was proposed to handle the uncertain nature of the power sources and load, put forward higher requirements for solving the scheduling model. The effectiveness of small population sizes in decreasing computational time has been verified in Refs. [35,36,37,38], but it may obtain bad solutions for intricate optimization problems due to its easily damaged population diversity. Hence, reducing the computational time needed to solve such an optimal power dispatch problem is still very challenging. Decreasing the population size and implementing the parallelization of the evolutionary algorithm may be an alternative way to balance this contradiction. In the parallelization of the evolutionary algorithm, the large main population, which is employed to enhance the population diversity, can be divided into several populations, each with a smaller size, and then each smaller population can be used to search for the optimal results independently and concurrently. Both the computational time, which depends on the small population size, and the population diversity, which depends on the total population, will be improved. In these circumstances, the contradiction between computational time and the precision of solutions will be resolved. Of course, it will occupy more memory space and CPU cores. Fortunately, hardware costs have become lower with the development of manufacturing technology for CPUs and ROM/RAM.
It should be noted here that many significant research efforts have been dedicated to exploring parallel implementations of differential algorithms. These efforts encompass three principal methodologies: CPU-driven parallelism [39], GPU-accelerated parallel implementations [40], and hybrid parallelization frameworks [41]. GPU implementations achieve paradigm-shifting speedups in evolutionary computation for data-parallel, large-population scenarios. However, their efficacy is contingent upon co-designing algorithms with hardware constraints, mitigating memory access contention, and PCIe transfer overheads. In contrast, CPU or heterogeneous CPU-GPU frameworks maintain advantages for fine-grained, decision-intensive problems, where branch divergence degrades GPU throughput. In this study, we concentrate on parallel computing approaches utilizing CPU architectures. The main contribution of this work is outlined as follows.
(1) An improved parallel differential evolution (PDE) approach is proposed for optimal power dispatch in microgrids, accounting for power flow limits. The proposed PDE approach is developed based on the message-passing interface (MPI) standard [42] in order to reduce the computational time and obtain a good solution.
(2) The PDE approach splits the main population into several smaller populations, and each small population performs the mutation operation and crossover operation in different CPU processes independently at the same time. The computational time of the DE algorithm using a small population size is less than that of a large population. As a consequence, the PDE algorithm will spend less computational time compared to a traditional serial DE algorithm.
(3) The gather and scatter operations are also employed to ensure the preferred population diversity. In the gather operation, the small population of each process is gathered to the root process after some given iterations, and these gathered individuals will perform the operations of the mutation, crossover, and selection to enhance the population diversity. Then, the gathered population will be scattered into several small populations again to perform a mutation and crossover in different processes.
(4) Some other improvements on the mutation, adaptive parameters, and the introduction of a migration operation are also implemented in order to find the optimal solution quickly and generate superior vectors in a more effective way. The feasibility and effectiveness of the proposed PDE approach are verified and evaluated through two test microgrid systems.
The remaining part of this paper is structured as follows. Section 2 introduces the problem formulation for the optimal power dispatch problem in a microgrid. Section 3 briefly reviews the traditional differential evolution algorithm. The proposed PDE algorithm based on an MPI standard is proposed in Section 4. Section 5 introduces the improvements of the PDE algorithm for optimal power dispatch in a microgrid. Section 6 provides numerical results, and Section 7 concludes.

2. Problem Formulation

Optimizing the objective function is very important in the optimal dispatch of a microgrid, and various prioritizing goals depending on different operational contexts have been involved. For example, Hu et al. [43] minimized the total operation cost of the involved microgrids. Sati et al. [44] optimized the total generation cost of the considered system, Ashfaq et al. [45] minimized the total power losses and voltage profile, Zhang et al. [6] optimized the total generation and operation cost of the involved microgrids, and Basu [46] aimed at optimizing the total profit function of involved microgrids. This study focuses on addressing the economic–environmental tradeoff. The corresponding objective function is formulated in detail as follows.

2.1. Objective Functions

The objective function C considered in the optimization problem is described as (1).
min C = C O + C F + C E V + C g r i d
where C is total cost,  C O  is the maintenance cost,  C F  is fuel cost,  C E V  is emissions treatment cost and  C g r i d  is the cost of exchanging power with the main grid. The maintenance cost  C O is formulated as (2).
C O = t = 1 24 i = 1 N C O i P i ( t )
where N is the number of micro-sources including wind turbines, photovoltaic systems, batteries, and micro-turbines, C O i is the maintenance coefficient of micro-source i, and P i ( t ) is the active power of micro-source i at time interval t. Only the micro-turbine will produce fuel costs and emission disposal costs among those distributed generators, and its fuel cost C F can be formulated as (3).
C F = t = 1 24 i = 1 L C F i P F i ( t )
where L is the number of micro-turbines, C F i is the coefficient of fuel cost of micro-turbine i, and P F i ( t ) is the active power of micro-turbine i at time interval t. Micro-turbines will release pollutants, including carbon dioxide, sulfur dioxide, and nitrogen oxide. The emission cost C E F is formulated as (4).
C E V = t = 1 24 k = 1 m i = 1 L β k α k P M T i ( t )
where m is the number of pollutant category, α k and β k are the emission factor and unit price of the k-th pollutants, respectively, and P M T i ( t ) is the active power of micro-turbine i at time interval t. The cost of power trade with the main grid C g r i d is formulated as shown in (5).
C g r i d = t = 1 24 ( C P g r i d ( t ) × P P g r i d ( t ) C S g r i d ( t ) × P S g r i d ( t ) )
where C g r i d is the cost of power trade between the considered microgrid and the corresponding main grid, C P g r i d and C s g r i d are the purchasing and selling prices from the microgrid to the main grid, respectively, and P s g r i d and P P g r i d are the selling and purchasing electricity from the microgrid to the main grid, respectively.

2.2. Constraints

(1)
Power balance constraint
The active and reactive power injections, P i , n and Q i , n of bus i in the considered microgrid is formulated as (6).
P i , n = e i j = 1 n ( G i j e j B i j f j ) + f i j = 1 n ( G i j f j + B i j e j ) Q i , n = f i j = 1 n ( G i j e j B i j f j ) e i j = 1 n ( G i j f j + B i j e j )
where e i and f i are the real and imaginary part of the voltage of bus i, respectively, and G i j and B i j are the real and imaginary part of mutual admittance between bus i and bus j, respectively. In particular, P i , n and Q i , n can be formulated as (7).
P i , n = P i , G P i , L Q i , n = Q i , G Q i , L
where P i , G and Q i , G are the total active and inactive power of distributed energy sources at bus i, respectively. P i , L and Q i , L are the total active and inactive power of loads at bus i, respectively.
(2)
Bus voltage amplitude constraint
The limits of bus voltage amplitude V i are formulated as (8).
V i , min V i V i , max
where V i is the voltage amplitude of bus i, V i , min and V i , max are the minimum and maximum voltage amplitude of bus i, respectively.
(3)
Transformer ratio constraint
The limits of transformer ratio k i of the k-th transformer is formulated as (9).
k i , min k i k i , max
where k i is the ratio of transformer i, k i , min and k i , max stands for the minimum and maximum value of the ratio for the i-th transformer, respectively.
(4)
Active power constraint
The constraints of active power generation P i ( t ) of the i-th generator at the t-th time interval are listed as (10).
P i min P i ( t ) P i max , i = 1 , 2 , , H
where P i min and P i max are the minimum and maximum of the active power of distributed generator i, respectively, H is the number of distributed generators.
(5)
Batteries constraint
The state of charge of the i-th battery at the t-th time interval S O C i ( t ) is limited as (11).
S O C i , min S O C i ( t ) S O C i , max
where S O C i ( t ) is the SOC of battery i at time interval t, S O C i , min and S O C i . max  are the minimum and maximum of the SOC of battery i, respectively.
(6)
Transmission constraint
Transmission power S i ( t ) of branch i at time interval t is limited as shown in (12).
S i ( t ) S i max
where S i ( t ) is the transmission power flow of transmission line l at time interval t, S i max denotes its maximum value.

3. Brief Overview of Differential Evolution Algorithm

The differential evolution (DE) algorithm, a heuristic approach for minimizing potentially nonlinear and non-differentiable continuous space functions, was proposed by Rainer Storn and Kenneth Price in Ref. [23]. It comprises the operations of initialization, evaluation, mutation, crossover, and selection, offering advantages such as requiring few control variables and exhibiting robustness. Consider a population size of N and a variable dimensionality of D; the i-th individual at the t-th generation is denoted by Equation (13). The subsequent section details the steps of the traditional DE algorithm, several of which are incorporated into the PDE algorithm.
X i , t = ( x i , t 1 , x i , t 2 , , x i , t D ) , i = 1 , 2 , , N
Step 1: Initialization: the initial population of the algorithm is randomly generated in the range of X min to X max and the initial population is expressed as (14). The boundaries of these variables are expressed as Equations (15) and (16).
X i , 0 = ( x i , 0 1 , x i , 0 2 , x i , 0 D ) , i = 1 , 2 , , N
X min = ( x min 1 , x min 2 , , x min D )
X max = ( x max 1 , x max 2 , , x max D )
Step 2: Calculate the fitness function value f ( X i , t ) of each target vector X i , t in the current population.
Step 3: Mutation: For each target individual X i , t  i = 1, 2, …, N, three mutually different integers (i.e., r 1 , r 2 , r 3 1 , 2 , , N are first generated randomly. It should be noted here that four numbers (i.e., r 1 , r 2 , r 3 , i ) are different from each other. Then, mutant vector V i , t for the i-th target is generated according to Equation (17).
V i , t = X r 1 , t + F ( X r 2 , t X r 3 , t )
where F is mutagenic factor and it is generated randomly between [0, 2]. If V i , t is not in the limited range, set V i , t = X min + r a n d ( 0 , 1 ) ( X max X min ) , where rand(0,1) is a random number 0 , 1 .
Step 4: Crossover: Generate trial vectors for all target vectors, and the j-th dimension value of a trial vector is formed by mutant vector V i , t  and target vector  X i , t according to Equation (18). Here, an example of the crossover operation for 5-dimensional vectors is given in Figure 1 to help understand the crossover mechanism.
u i , t j = v i , t j   r a n d j C R   or   j = r a n d n i x i , t j   r a n d j > C R   and   j r a n d n i j = 1 , 2 , , D
where r a n d j is a random number  0 , 1 , r a n d n i  is a randomly chosen index  1 , 2 , . D , and C R is the crossover constant  [ 0 , 1 ] .
Step 5: Selection: The i-th vector of next generation is chosen from the trial vector u i , t j and the original target vector X i , t using the greedy criterion according to Equation (19). Within the selection operation described by (19), if the fitness value of trial vector U i , t is smaller than that of X i , t , U i , t will be one vector of the next generation. Otherwise, X i , t will still be a member of next generation.
X i , t + 1 = U i , t f ( U i , t ) < f ( X i , t ) X i , t f ( U i , t ) f ( X i , t ) i = 1 , 2 , , N
Step 6: End condition: if the given iteration number is reached, the optimal solution is outputted, and the algorithm will end. Otherwise, go to Step 2.

4. Parallel Differential Evolution Algorithm

The computational time of the traditional differential evolution (DE) algorithm is primarily governed by two factors: the dimensionality of the solution vector and the population size employed. Generally, a smaller population size reduces computational time for the same optimization problem. However, arbitrarily decreasing population size to accelerate computation is often inadvisable, as it may compromise population diversity and lead to suboptimal solutions. While population reduction remains theoretically feasible if diversity preservation is ensured, this work proposes a parallel DE algorithm based on the message-passing interface (MPI) [42] standard to concurrently address computational efficiency and diversity maintenance. The framework of the proposed parallel DE (PDE) algorithm is illustrated in Figure 2.
The PDE algorithm partitions the main population into multiple subpopulations that perform mutation, crossover, and selection operations concurrently across distinct CPU processes. This architecture ensures the algorithm’s computational time primarily depends on subpopulation size, thereby significantly reducing total execution time. After predetermined iterations, all processes synchronize information to the root process to enhance population diversity. The aggregated population undergoes mutation and crossover in the root process before being redistributed to individual processes for independent operations. This periodic gathering mechanism safeguards solution quality through diversity preservation. Here, taking a 5-dimensional vector space optimization as an example, Figure 3 demonstrates the PDE workflow distributed across three processes.

5. Improvements on Proposed PDE Approach

5.1. Sorting Vectors for Mutation

The three target vectors in the mutation operation of the traditional DE algorithm are chosen randomly. However, this is not conducive to generating good solutions. Here, a sorting strategy for the selected target vectors [39] is employed to help the algorithm search along the direction towards to the best individual selected. Within the sorting strategy, the best one among the three vectors will be selected as r 1 , the second one is considered as r 2 and the last one as r 3 .

5.2. Adaptive Parameter Updating

The scaling factor F and crossover probability factor CR are two important parameters in traditional DE, which play an important role in the search and convergence of DE. A proper choice of F and CR will help to accelerate the solving process of optimization problems. However, F and CR are usually set as constant values that have to be determined by users in the traditional DE algorithm. Generally, dynamically or self-adaptively generating F and CR will help to generate more superior vectors effectively [47]. Aiming at the issue, a self-adaptive selection for F and CR is employed in the improved PDE algorithm for the optimal power dispatch problem in a microgrid. Within the adaptive selection strategy, each individual of the population has its own F and CR, and they can be dynamically adjusted with the evolution of the population according to some specific rules. The initial F and CR in the proposed PDE are generated randomly according to their minimum and maximum values, which are given by the prior experience. Generally, the minimum and maximum values of F are 0.1 and 0.9, while they are 0.0 and 0.9 for CR. The values of F and CR for different individuals at various generations will be updated using (20) when the corresponding individual has not generated a better solution in some iterations.
F i = F i + ( 1 Z i / Z b ) ( F b k - F i ) C R i = C R i + ( 1 Z i / Z b ) ( C R b k - C R i )
where F i and C R i are the current parameters that individual i adopts at the k-th generation, F i and C R i are their updated parameters, Z i is the total times of individual i generating a better solution, while Z b is the maximum value among them, and F b k and C R b k are the current parameters of the corresponding Z b .

5.3. Migration Operation

Generally, a fast population converging will accelerate the searching process. However, too-fast convergence will result in reducing search efficiency and improving probability of falling into a local optimum for solutions. Aiming to balance the converging velocity and hence maintain the population diversity, a migration operation proposed in Ref. [35] is adopted to alleviate the prematurity. If the crowding level, which is formulated by (21), is more than its tolerated level determined by ε 1 , a new diverse population is regenerated around the present optimal solution using (23) within the introduced migration operation.
ρ = i = 1 N d = 1 D η X d i k N D
where η X d i k denotes the closeness degree of the i-th individual to the best individual along with the d-th dimensionality in the evolution population, and it is calculated using Equation (22). N is the population size, D is the dimensionality of individual, X d i k is the d-th dimension parameter of individual i at the k-th generation.
η X d i k = 1 X d i k X d b k / X d b k < ε 2 0 o t h e r s
where X d b k is the d-th dimension parameter of the best individual at the k-th generation, ε 2 is a constant to measure of the approaching distance between the best individual and the other individuals. Based on experience, the value of parameter ε 2 should not exceed 0.3, and the value of parameter ε 1 should not be lower than 0.6. Here, ε 2 is set to 0.15 and ε 1 is set to 0.85 according to [35]. Within the introduction of migration operation, the population diversity of the evolutionary population will be maintained because once the population comes together around the best individual, the population will be initially generated around the best individual. It is precisely through this migration that the diversity of the population is maintained to a certain extent.
X d i k = X d b k + ω 1 ( X d k max X d b k )    ω 2 > X d k max X d b k X d k max X d k min X d b k + ω 1 ( X d b k X d k min )    o t h e r w i s e  
where X d b k is the d-th dimension value of the best individual at the k-th generation while X d i k denotes its new generated value, ω 1 and ω 2 are the uniformly random numbers distributed in [0, 1], and X d k max and X d k min are the maximum and minimum boundary values of the d-th dimension parameter of the population at the kth generation.

5.4. Dispatch Strategy

The distributed generators involved in the microgrid consist of wind generators, photovoltaic systems, batteries, and micro-turbines. However, the outputs of photovoltaic systems and wind generators are uncontrollable due to the max-power trapping control modes employed. Only the outputs of batteries and micro-turbines need to be dispatched in the microgrid. The dispatch strategy for controllable generators depends on the active power of the slack bus. The active power of the slack bus donated by P s , t is obtained through power flow calculation. If the P s , t is beyond its limited range, the outputs of batteries and micro-turbines in other PV buses will be adjusted. The steps of adjustment are shown as follows.
Step 1: Calculate the d e l t a P s , t according to (24).
d e l t a P s , t = P s , t P s , t max i f P s , t > P s , t max P s , t P s , t min i f P s , t < P s , t min
where P s , t min and P s , t max are the minimum and maximum active power of the slack bus, respectively.
Step 2: If a b s | d e l t a P s , t | > f 1 where  f 1 is a constant to determine whether the batteries are adjusted, adjust the power outputs of batteries according to (25). Otherwise, go to Step 6.
P B i ( t ) = P B i ( t ) + λ 1 d e l t a P s , t λ 2 q u a B
where P B i ( t ) is the original active power of battery i at time interval t , P B i ( t ) is the adjusted active power, λ 1 is a factor which satisfies λ 1 > 1 in consideration of the power loss, λ 2 is a factor to reduce the adjustment amount every time, avoiding going beyond the ranges of SOC of the batteries, and q u a B is the number of batteries.
Step 3: Rectify the adjusted power of batteries to satisfy the constraints of battery outputs and then carry out the power flow calculation using the new adjusted power.
Step 4: If the new a b s | d e l t a P s , t | > f 2 where f 2 is a constant to determine whether the micro-turbines are adjusted, adjust the power outputs of the micro-turbine according to (26). Otherwise, go to Step 6.
P M T i ( t ) = P M T i ( t ) + λ 3 d e l t a P s , t λ 4 q u a T
where P M T i ( t ) is the original active power of micro-turbine i at time interval t , P M T i ( t ) is the adjusted active power, λ 3 is a factor which satisfies λ 3 > 1 in consideration of the power loss, λ 4 is a factor to reduce the adjustment amount every time, avoiding going beyond the output ranges of the micro-turbines, q u a T is the quantity of micro-turbines.
Step 5: Rectify the adjusted power of micro-turbines to satisfy the constraints of micro-turbine outputs, and then carry out the power flow calculation using the new adjusted power.
Step 6: Calculate the purchasing or selling power from the main grid. Based on the purchasing or selling power, calculate the C g r i d according to (5), and end the dispatch strategy.

5.5. Rules Dealing with Constraints

It is very hard to deal with the complex constraints involving equations and non-equations of the optimal power dispatch problem in a microgrid. The proposed PDE algorithm employs three rules for dealing with the constraints in order to obtain a feasible solution. The first rule is the frontier rule, which aims to deal with inequality constraints for decision variables. The second rule is the power flow rule, which deals with power balance constraints. The third rule is the penalty rule, which punishes infeasible solutions.
(1)
Frontier Rule
For the control variables of the optimization problem, i.e., the voltage amplitudes of PV bus, the active powers of all micro-sources, the states of charge of batteries, and the transformer ratios, if the calculated values are more than their maximums, they will be set equal to their maximums. If the values are less than their minimums, they will be set equal to their minimums.
(2)
Power Flow Rule
This rule employs the Newton–Raphson method to implement power flow calculation through which all state variables of the candidate solution will be calculated. Here in this work, the Newton–Raphson method expressed by rectangular coordinates is adopted. Once the convergence of the method is achieved successfully, the handling processes for the constraints will be finished. Otherwise, the penalty rule, which will be introduced in the next paragraph, will be considered. The method of power flow calculation is introduced in Ref. [35] in detail.
(3)
Penalty Rule
The penalty rule has to be employed to help individuals getting rid of infeasible regions, while the above two rules fail. In fact, the penalty rule will be used when a solution violates the power flow constraint or the bus voltage amplitude constraint. The total accumulated penalty terms of a candidate solution at the k-th generation will be calculated as (27).
p e n a l t y k = t = 0 T a f b v , k V A b v , k , t + a f p f , k V A p f , k , t
where k is the iteration number, a f b v , k is the amplification factor of violating the bus voltage amplitude constraint in the k-th iteration; V A b v , k , t is the accumulated violated amount of all bus voltage amplitude constraints at time interval t in the corresponding iteration; a f p f , k is the amplification factor of violating the power flow constraint; V A p f , k , t is the accumulated violated amount of all power flow constraints at time interval t.
The amplification factors a f i , k are dynamic and are formulated as (28). With the increase in iterations, the amplification factor is linear growth. As a consequence, the impact of the penalty function on the total cost is small in early iterations and enormous in the latter iterations.
a f i , k = a f i , min + ( a f i , max a f i , min ) k / k max
where k max is the given maximal iterations; a f i , k is the amplification factor in the k-th iteration for violation of the constraint i; a f i , min and a f i , max are the minimum and maximum amplification factors for violation of the constraint i, respectively.

6. Case Study and Result Analysis

The effectiveness of the proposed PDE approach for optimal power dispatch problems in a microgrid is verified through two test systems whose power generators include photovoltaic systems, wind generators, batteries, and micro-turbine generators. Additionally, larger-scale test systems that are modified through the second test system but with more optimizing variables are also employed to test the proposed approach in detail.

6.1. Test Systems and Parameter Settings

The involved two test systems, one with IEEE 9-bus and the other with IEEE 39-bus networks [48], are applied to verify the effectiveness of the proposed PDE approach. The entire scheduling period is one day, which is divided into 24 intervals. The detailed configurations of the two systems are shown in Table 1 and Table 2, respectively, while the corresponding parameters of different micro-sources are shown in Table 3. The varied loads for the two systems are shown in Figure 4 and Figure 5, respectively. The illumination and wind speed of photovoltaic and wind generators on the considered day are shown in Figure 6. The purchasing electricity prices for the peak period (11 h–15 h and 19 h–21 h), flat period (8 h–10 h, 16 h–18 h and 22 h–23 h), and valley period (0 h–7 h) are 0.83, 0.49 and 0.17 CNY/kWh, while the selling prices are 0.65, 0.38 and 0.13 CNY/kWh, respectively. The proposed approach, as well as other comparative algorithms, are all implemented using the C++ programming language in Ubuntu 22.04, with an Xeon® E5-2670 v2 2.5 GHz CPU and RAM of 128 GB. The parameters, including the original ones of the baseline algorithm of the traditional DE and the additional parameters, which consist of the small population size (SPS) as well as the parallel process number (PPN), and the gather and scatter frequency (GSF) of the proposed PDE algorithm for the two test systems, are shown in Table 4. It should be noted here that all parameters of the proposed PDE here are not the fine-tuned ones, which means they are not the best ones but are just set through trial and error.

6.2. Results and Comparative Analysis

6.2.1. Optimization Result Presentation

Within the above parameter settings shown in Table 4, we run the proposed PDE algorithm 10 times independently for each test system, and the obtained statistical metrics, such as the best, worst, and average objective functions, as well as their standard deviation values (denoted as STDV) and the average CPU time, are shown in Table 5. It is clearly seen from the table that the best values of the obtained solutions are CNY 13,953.40 and 22,657.30 for the considered test systems, respectively. The average values of the obtained optimal cost in 10 independent runs are CNY 14,035.94 and CNY 22,871.98 for test systems I and II. The average CPU time consumption for these two systems is 27 s and 45 min 52 s for test systems I and II. The optimal SOC of different batteries and active power outputs of different micro-turbine generators for test system one are illustrated in Figure 7 and Figure 8, respectively. The obtained optimal voltage magnitudes and phase degrees of different buses of test system I are shown in Figure 9 and Figure 10, while other state variables can be easily calculated within these given decision variables through power flow calculations. It is clearly seen from these figures that all obtained control variables for the optimal solution are within their boundary limits. Accordingly, the optimal SOCs of different batteries and active power outputs of various micro-turbine generators for test system II are shown in Figure 11 and Figure 12, respectively. The obtained optimal voltage magnitudes and phase degrees of various generator buses are shown in Figure 13 and Figure 14. It is found from Figure 11 and Figure 12 that the SOCs of all batteries lie in [0.3, 1.0], and the active power outputs of all micro-turbine generators also satisfy their constraints. Additionally, the varying violations in bus voltage constraints, power flow constraints, and the corresponding penalty terms for test systems one and two are shown in Figure 15 and Figure 16 and deeply show the effectiveness of the proposed PDE algorithm. It is clearly found from Figure 15 that most violations are zero after 200 iterations for test system I, and from Figure 16, it can be seen that the violations are close to zero after 350 iterations for test system II. It is also found from these two figures that the final penalty terms converge to a relatively small value, which is infinitely close to zero after 200 and 350 iterations. That means the proposed PDE approach can effectively obtain feasible solutions. This also shows the validity of the constraint handling rules.

6.2.2. Comparisons with Baseline Algorithm of Traditional DE

To further highlight the performance of our proposed algorithm, we implemented its baseline algorithm—the traditional serial differential evolution for solving microgrid optimal scheduling problems on the same platform. Both the traditional DE and the improved PDE employ the same parameters, and they are independently run 10 times, and their comparative results are presented in Table 6 and Table 7 for the considered test systems, respectively. Additionally, the convergence characteristics for the obtained optimal solutions of the two algorithms are shown in Figure 17 and Figure 18 for test systems I and II, respectively.
It is shown from Table 6 that the best, worst, average, and standard deviation values of the improved PDE are CNY 13,953.4, 14,120.1, 14,035.9, and 60.47, which are a little smaller than what the traditional DE obtained at the corresponding values of CNY 13,966.6, 14,350.7, 14,099.6, and 154.17. Additionally, it is quite obvious from the table that the average CPU time at the value of 22 s consumed by the proposed PDE is roughly smaller than that of the traditional DE at the value of 2 min 54 s. This shows the effects of the proposed IDE algorithm. According to the results shown in Table 7, the improved PDE obtains much better results than the traditional DE Additionally, and obviously, the consumed CPU time of the proposed improved PDE is relatively smaller than that of its baseline algorithm—the DE algorithm—in which the proposed PDE only consumes 45 min 52 s, while the traditional DE consumes about 5 h 26 min and 57 s. Additionally, the multi-core hardware (such as the number of CPU cores and memory occupation) for the proposed PDE and the traditional DE are also reported in Table 8. It is clearly seen from this table that each process of these two algorithms occupies approximately equivalent memory space, but the total resources of all CPU cores for the proposed PDE are about 10 times those of the traditional DE. The implementation of this proposed parallel approach adheres to the space–time tradeoff principle, strategically consuming additional memory and CPU resources to achieve significant computational speedups. Fortunately, the price of disks and CPUs is becoming cheaper with the development of technology at present.
It is shown from Figure 17 that the PDE outperforms the traditional DE after 200 iterations for test system I. Moreover, as shown in Table 6, the CPU time consumption of the PDE is significantly lower than that of the traditional DE. In one world, though these two algorithms obtain nearly close results, the traditional DE consumes about 175 s CPU time, while the PDE algorithm only consumes 22 s. In contrast, for test system II, it is quite clearly seen from Figure 18 that the proposed PDE approach yields the best convergence nature and obtains better fitness than the baseline algorithm does. Hence, it can be concluded that the PDE algorithm outperforms the traditional DE, not only in terms of convergence but also in terms of convergence cost.
Additionally, a Wilcoxon rank sum test is implemented for the considered two test systems in order to compare the statistical performances of these two algorithms. Here, the null hypothesis is that the solutions obtained by the improved PDE and the traditional serial DE are samples from continuous distributions with equal medians. The test is carried out at a significance level of 0.05 between the proposed PDE and traditional DE, and the test results are shown in Table 9. In this table, p returns a significant probability, representing whether the improved PDE has the same distribution as the corresponding traditional DE, and h returns the result of the hypothesis test. If the overall difference between the improved PDE and the traditional DE is not significant, then h is zero; if the overall difference between the improved PDE and the traditional DE is significant, then h is one. If p is close to zero, then the null hypothesis can be questioned, which means the improved PDE generates a different solution distribution from the compared algorithm. It is quite clearly seen in Table 9 that p = 0.3832 and h = 0 for test system I, and this means the PDE obtains a similar solution distribution as the traditional DE does for this test system. As for test system II, it is quite obvious from this table that the p value is 6.66E-4 and h is equal to one, which means the proposed PDE obtains a different solution distribution from the traditional DE.

6.3. Parameter Sensitivity Analysis

There are three additional parameters in the proposed PDE algorithm, including the small population size (SPS), the parallel processes number (PPN), and the gather and scatter frequency (GSF). In order to show the impacts of different values of SPS, PPN, and GSF on solution effectiveness, the following three cases are designed.
Case 1: various values of SPS when PPN is 10 and GSF is 10.
Case 2: various values of PPN when SPS is 10 and GSF is 10.
Case 3: various values of GSF when SPS is 10 and PPN is 10.
Here, taking test system II as a sample, each scheme runs 10 times, and the obtained statistical metrics in 10 independent runs are reported in Table 10, Table 11 and Table 12. It can be found from Table 10 that the larger the SPS the PDE employs, the better the solution that will be obtained. However, a larger SPS takes more CPU time. Regarding the parameter of PPN, it is shown in Table 11 that with the increase in PPN, the solution is better. However, it also takes more CPU time.
As for the impacts of the parameter GSF reported in Table 12, we can conclude the following. On one hand, there exists no obvious linear relationship between the GSF and the CPU time consumed. This means that the CPU time consumed by the operation of gather and scatter is a small portion of the total CPU time. On the other hand, with the increase in GSF from 15, the solution is becoming worse because the population diversity may be worse with the increasing GSF value. In other words, the gather and scatter operation performs well in terms of balancing the population diversity.

6.4. Test for Microgrid Dispatching Problems with More Large-Scale Optimizing Variables

A modified configuration test system is employed to test the effects of the proposed approach in larger-scale optimization problems of microgrids. This larger-scale system has the same network as test system II but more controlled micro-sources. The detailed configuration of this system is shown in Table 13, and within this configuration, the number of optimization variables is equal to 1584, which is the sum number of batteries, micro-turbine generators, transformers and generator buses multiplied by the number of time intervals. The load of various buses is multiplied by 1.5 times the corresponding original ones in test system II. In addition to the improved PDE and traditional DE, another famous algorithm, particle swarm optimizer (PSO), has also been implemented for this test system. The comparative results of these three algorithms for this test system are shown in Table 14. It is nearly certain from the table that the proposed PDE can obtain feasible optimal solutions, but the other two algorithms cannot. Moreover, the average CPU time consumption obtained by the proposed PDE approach is much smaller than those values obtained by the traditional DE and PSO.

7. Conclusions

In this work, an optimal power dispatch problem in a microgrid is formulated with consideration of the transmission network and power flow constraints. An improved parallel different evolution approach is proposed in order to solve this complicated constrained optimization problem. The proposed PDE approach divides the main population into several small populations in order to save computational time. Each small population performs mutations, crossovers, and selections in different CPU processes at the same time. These different CPU processes deliver data and information effectively to the root process after some given iterations. Then, the information of all populations is collected into the root process to select a better next-genus group to ensure population diversity. Although the PDE algorithm saves on computational time, mass memory is occupied, and multi-core CPUs are used. Fortunately, with the development of science and technology, especially the development of the manufacturing technology of CPUs and ROM/RAM, hardware costs are becoming lower. It is economically feasible to reduce the computational time by using multi-core CPUs and occupying memory. The efficiency of the proposed PDE is verified by using two test systems with IEEE 9-bus and 39-bus network models, respectively. The traditional serial DE algorithm is also implemented for the same systems. The simulations and comparisons show that the proposed PDE algorithm not only saves computational time but also obtains better solutions.

Author Contributions

Conceptualization: T.L.: data curation, Y.L.; formal analysis, F.W.; funding acquisition, T.L.; investigation, J.Z.; methodology, C.G.; resources, H.M.; software, T.L. and Y.L.; supervision, J.Z.; validation, F.W.; visualization, C.G. and H.M.; writing—original draft, T.L. and J.Z.; writing—review and editing, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by State Grid Beijing Electric Power Company Technology Project of China with Grant Number DCHA-KJ-23290702.

Data Availability Statement

The datasets presented in this article are not readily available because the data are part of an ongoing study. Requests to access the datasets should be directed to zjrhust@gmail.com.

Conflicts of Interest

Authors Tianle Li: Yifei Li, Cheng Gong and Hao Ma are employed by Beijing Dingcheng Hongan Technology Development Co., Ltd.; Author Fang Wang is employed by State Grid Beijing Electric Power Research Institute; the authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

PSOparticle swarm optimizationDEdifferential evolution
SFOsunflower optimization algorithmMPImessage-passing interface
SOCstate of chargeCPUcentral processing unit
PDEparallel differential evolutionSPSsmall population size
GSFgather and scatter frequencyPPNparallel process number
GAgenetic algorithmMILPmixed integer linear programming
Nomenclature
Q max maximum reactive power C R min minimum crossover constant
Q min minimum reactive power C R max maximum crossover constant
P max maximum active power a f 1 , min minimum penalty factor to voltage constraint
P min minimum active power a f 1 , max maximum penalty factor to voltage constraint
F max maximum mutagenic factor a f 2 , min minimum penalty factor to power flow constraint
F min minimum mutagenic factor a f 2 , max maximum penalty factor to power flow constraint

References

  1. Li, X.; Hu, C.; Luo, S.; Lu, H.; Piao, Z.; Jing, L. Distributed Hybrid-Triggered Observer-Based Secondary Control of Multi-Bus DC Microgrids over Directed Networks. IEEE Trans. Circuits Syst. I Regul. Pap. 2025, 72, 2467–2480. [Google Scholar] [CrossRef]
  2. Hao, Y.; Dong, L.; Liang, J.; Liao, X.; Wang, L.; Shi, L. Power forecasting-based coordination dispatch of PV power generation and electric vehicles charging in microgrid. Renew. Energy 2020, 155, 1191–1210. [Google Scholar] [CrossRef]
  3. Hu, Z.; Su, R.; Veerasamy, V.; Huang, L.; Ma, R. Resilient frequency regulation for microgrids under phasor measurement unit faults and communication intermittency. IEEE Trans. Ind. Inform. 2024, 21, 1941–1949. [Google Scholar] [CrossRef]
  4. Nwulu, N.I.; Xia, X. Optimal dispatch for a microgrid incorporating renewables and demand response. Renew. Energy 2017, 101, 16–28. [Google Scholar] [CrossRef]
  5. Sreedharan, P.; Farbes, J.; Cutter, E.; Woo, C.K.; Wang, J. Microgrid and renewable generation integration: University of California, San Diego. Appl. Energy 2016, 169, 709–720. [Google Scholar] [CrossRef]
  6. Zhang, J.R.; Wu, Y.H.; Guo, Y.R.; Wang, B.; Wang, H.Y.; Liu, H.D. A hybrid harmony search algorithm with differential evolution for day-ahead scheduling problem of a microgrid with consideration of power flow constraints. Appl. Energy 2016, 183, 791–804. [Google Scholar] [CrossRef]
  7. Azizipanah-Abarghooee, R.; Golestaneh, F.; Gooi, H.B.; Lin, J.; Bavafa, F.; Terzija, V. Corrective economic dispatch and operational cycles for probabilistic unit commitment with demand response and high wind power. Appl. Energy 2016, 182, 634–651. [Google Scholar] [CrossRef]
  8. Zhou, N.; Liu, N.; Zhang, J.; Lei, J. Multi-Objective Optimal Sizing for Battery Storage of PV-Based Microgrid with Demand Response. Energies 2016, 9, 591. [Google Scholar] [CrossRef]
  9. Liu, K.; Gao, F. Scenario adjustable scheduling model with robust constraints for energy intensive corporate microgrid with wind power. Renew. Energy 2017, 113, 1–10. [Google Scholar] [CrossRef]
  10. Minh, N.Q.; Linh, N.D.; Khiem, N.T. A mixed-integer linear programming model for microgrid optimal scheduling considering BESS degradation and RES uncertainty. J. Energy Storage 2024, 104, 114663. [Google Scholar] [CrossRef]
  11. 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]
  12. Fang, X.; Yang, Q.; Wang, J.; Yan, W. Coordinated dispatch in multiple cooperative autonomous islanded microgrids. Appl. Energy 2016, 162, 40–48. [Google Scholar] [CrossRef]
  13. Nemati, M.; Braun, M.; Tenbohlen, S. Optimization of unit commitment and economic dispatch in microgrids based on genetic algorithm and mixed integer linear programming. Appl. Energy 2018, 210, 944–963. [Google Scholar] [CrossRef]
  14. Abedini, M.; Moradi, M.H.; Hosseinian, S.M. Optimal management of microgrids including renewable energy scources using GPSO-GM algorithm. Renew. Energy 2016, 90, 430–439. [Google Scholar] [CrossRef]
  15. Hossain, M.A.; Pota, H.R.; Squartini, S.; Abdou, A.F. Modified PSO algorithm for real-time energy management in grid-connected microgrids. Renew. Energy 2019, 136, 746–757. [Google Scholar] [CrossRef]
  16. Liu, C.J.; Abdulkareem, S.S.; Rezvani, A.; Samad, S.; Aljojo, N.; Foong, L.K.; Nishihara, K. Stochastic scheduling of a renewable-based microgrid in the presence of electric vehicles using modified harmony search algorithm with control policies. Sustain. Cities Soc. 2020, 59, 102183. [Google Scholar] [CrossRef]
  17. Chen, W.M.; Shao, Z.H.; Wakil, K.; Aljojo, N.; Samad, S.; Rezvani, A. An efficient day-ahead cost-based generation scheduling of a multi-supply microgrid using a modified krill herd algorithm. J. Clean. Prod. 2020, 272, 122364. [Google Scholar] [CrossRef]
  18. Zhao, X.; Zhang, Z.; Xie, Y.; Meng, J. Economic-environmental dispatch of microgrid based on improved quantum particle swarm optimization. Energy 2020, 195, 117014. [Google Scholar] [CrossRef]
  19. Venkatesan, K.; Gouda, P.K.; Rath, B.B.; Krishnamoorthy, M. Optimal day-ahead scheduling of microgrid equipped with electric vehicle and distributed energy resources: SFO-CSGNN approach. J. Energy Storage 2024, 102, 113933. [Google Scholar] [CrossRef]
  20. Ramli, M.; Bouchekara, H.; Alghamdi, A.S. Optimal sizing of PV/wind/diesel hybrid microgrid system using multi-objective self-adaptive differential evolution algorithm. Renew. Energy 2018, 121, 400–411. [Google Scholar] [CrossRef]
  21. Li, L.L.; Ji, B.X.; Liu, G.C.; Yuan, J.P.; Tseng, S.W.; Lim, M.K.; Tseng, M.L. Grid-connected multi-microgrid system operational scheduling optimization: A hierarchical improved marine predators algorithm. Energy 2024, 294, 130905. [Google Scholar] [CrossRef]
  22. Li, B.; Wang, H.L.; Wang, X.L.; Negnevitsky, M.; Li, C.J. Tri-stage optimal scheduling for an islanded microgrid based on a quantum adaptive sparrow search algorithm. Energy Convers. Manag. 2022, 261, 115639. [Google Scholar] [CrossRef]
  23. Storn, R.; Price, K. Differential evolution: A simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef]
  24. Bharothu, J.N.; Sridhar, M.; Rao, R.S. Modified adaptive differential evolution based optimal operation and security of AC-DC microgrid systems. Int. J. Electr. Power Energy Syst. 2018, 103, 185–202. [Google Scholar] [CrossRef]
  25. Dey, B.; Bhattacharyya, B. Dynamic cost analysis of a grid connected microgrid using neighborhood based differential evolution technique. Int. Trans. Electr. Energy Syst. 2019, 29, e2665. [Google Scholar] [CrossRef]
  26. Rana, M.J.; Zaman, F.; Ray, T.; Sarker, R. Real-time scheduling of community microgrid. J. Clean. Prod. 2021, 286, 125419. [Google Scholar] [CrossRef]
  27. Shukla, S.; Pandit, M. Optimal Scheduling of a Renewable Integrated Combined Heat Power Microgrid with Energy Storage and Load Uncertainties. Arab. J. Sci. Eng. 2024, 49, 6883–6901. [Google Scholar] [CrossRef]
  28. Dall’Anese, E.; Zhu, H.; Giannakis, G.B. Distributed Optimal Power Flow for Smart Microgrids. IEEE Trans. Smart Grid 2013, 4, 1464–1475. [Google Scholar] [CrossRef]
  29. Zakariazadeh, A.; Homaee, O.; Jadid, S.; Siano, P. A new approach for real time voltage control using demand response in an automated distribution system. Appl. Energy 2014, 117, 157–166. [Google Scholar] [CrossRef]
  30. Kabir, M.N.; Mishra, Y.; Bansal, R.C. Probabilistic load flow for distribution systems with uncertain PV generation. Appl. Energy 2016, 163, 343–351. [Google Scholar] [CrossRef]
  31. Levron, Y.; Guerrero, J.M.; Beck, Y. Optimal Power Flow in Microgrids with Energy Storage. IEEE Trans. Power Syst. 2013, 28, 3226–3234. [Google Scholar] [CrossRef]
  32. Erseghe, T.; Tomasin, S. Power Flow Optimization for Smart Microgrids by SDP Relaxation on Linear Networks. IEEE Trans. Smart Grid 2013, 4, 751–762. [Google Scholar] [CrossRef]
  33. Silvente, J.; Kopanos, G.M.; Pistikopoulos, E.N.; Espuna, A. A rolling horizon optimization framework for the simultaneous energy supply and demand planning in microgrids. Appl. Energy 2015, 155, 485–501. [Google Scholar] [CrossRef]
  34. Zhang, J.; Li, Z.; Wang, B. Within-day rolling optimal scheduling problem for active distribution networks by multi-objective evolutionary algorithm based on decomposition integrating with thought of simulated annealing. Energy 2021, 223, 120027. [Google Scholar] [CrossRef]
  35. Zhang, J.; Wang, J.; Yue, C. Small Population-Based Particle Swarm Optimization for Short-Term Hydrothermal Scheduling. IEEE Trans. Power Syst. 2012, 27, 142–152. [Google Scholar] [CrossRef]
  36. Wang, C.; Liu, Y.; Zhao, Y. Application of dynamic neighborhood small population particle swarm optimization for reconfiguration of shipboard power system. Eng. Appl. Artif. Intell. 2013, 26, 1255–1262. [Google Scholar] [CrossRef]
  37. Hinojosa, V.H.; Araya, R. Modeling a mixed-integer-binary small-population evolutionary particle swarm algorithm for solving the optimal power flow problem in electric power systems. Appl. Soft Comput. 2013, 13, 3839–3852. [Google Scholar] [CrossRef]
  38. Zhang, J.; Tang, Q.; Chen, Y.; Lin, S. A hybrid particle swarm optimization with small opulation size to solve the optimal short-term hydro-thermal unit commitment problem. Energy 2016, 109, 765–780. [Google Scholar] [CrossRef]
  39. Zhang, J.; Lin, S.; Liu, H.; Chen, Y.; Zhu, M.; Xu, Y. A small-population based parallel differential evolution algorithm for short-term hydrothermal scheduling problem considering power flow constraints. Energy 2017, 123, 538–554. [Google Scholar] [CrossRef]
  40. Wang, Y.; Liu, Z.; Wang, H. Proposal and layout optimization of a wind-wave hybrid energy system using GPU-accelerated differential evolution algorithm. Energy 2022, 239, 121850. [Google Scholar] [CrossRef]
  41. Xia, Z.; Gao, B.; Yu, C.; Han, H.; Zhang, H.; Wang, S. A Hybrid Parallel Strategy for Isogeometric Topology Optimization via CPU/GPU Heterogeneous Computing. CMES-Comput. Model. Eng. Sci. 2024, 138, 1103–1137. [Google Scholar] [CrossRef]
  42. Gropp, W.; Lusk, E.; Doss, N.; Skjellum, A. A high-performance, portable implementation of the MPI message passing interface standard. Parallel Comput. 1996, 22, 789–828. [Google Scholar] [CrossRef]
  43. Hu, P.; Qian, L.; Li, Z.; Yu, Y.; Wang, D. Distributed dynamic economic dispatch of biogas-wind-solar-hydrogen multi-microgrid system considering individual selfishness. Energy Convers. Manag. X 2024, 24, 100761. [Google Scholar] [CrossRef]
  44. Sati, S.E.; Al-Durra, A.; Zeineldin, H.H.; EL-Fouly, T.H.; El-Saadany, E.F. Decentralized frequency restoration and stability enhancement for virtual synchronous machines at economic dispatch in islanded microgrid. Appl. Energy 2025, 377, 124544. [Google Scholar] [CrossRef]
  45. Ashfaq, S.; Zhang, D. Optimal power dispatch of islanded microgrid considering the extra reserve requirements. Aust. J. Electr. Electron. Eng. 2025, 1–11. [Google Scholar] [CrossRef]
  46. Basu, M. Effect of fuel constraints on day-ahead optimal bidding strategy for power, clean water and hydrogen dispatch of microgrid. Int. J. Hydrogen Energy 2025, 138, 733–744. [Google Scholar] [CrossRef]
  47. Gong, J.; Laili, Y.; Zhang, J.; Zhang, L.; Ren, L. A triple population adaptive differential evolution. Inf. Sci. 2025, 688, 121401. [Google Scholar] [CrossRef]
  48. Murillo-Sanchez, C.E.; Zimmerman, R.D.; Anderson, C.L.; Thomas, R.J. Secure Planning and Operations of Systems with Stochastic Sources, Energy Storage, and Active Demand. IEEE Trans. Smart Grid 2013, 4, 2220–2229. [Google Scholar] [CrossRef]
Figure 1. Illustration of the crossover process for D = 5.
Figure 1. Illustration of the crossover process for D = 5.
Energies 18 03852 g001
Figure 2. Illustration of proposed parallel DE.
Figure 2. Illustration of proposed parallel DE.
Energies 18 03852 g002
Figure 3. Illustration of the parallel DE for D = 5 and N = 30 divided into 3 small populations.
Figure 3. Illustration of the parallel DE for D = 5 and N = 30 divided into 3 small populations.
Energies 18 03852 g003
Figure 4. Varied load for test system 1.
Figure 4. Varied load for test system 1.
Energies 18 03852 g004
Figure 5. Varied loads for test system 2.
Figure 5. Varied loads for test system 2.
Energies 18 03852 g005
Figure 6. Illumination and wind speed.
Figure 6. Illumination and wind speed.
Energies 18 03852 g006
Figure 7. Optimal state of charge of different batteries for test system I.
Figure 7. Optimal state of charge of different batteries for test system I.
Energies 18 03852 g007
Figure 8. Optimal active power outputs of different micro-turbine generators for test system I.
Figure 8. Optimal active power outputs of different micro-turbine generators for test system I.
Energies 18 03852 g008
Figure 9. Optimal bus voltage magnitudes of different time intervals for test system I.
Figure 9. Optimal bus voltage magnitudes of different time intervals for test system I.
Energies 18 03852 g009
Figure 10. Optimal bus voltage angles of different time intervals for test system I.
Figure 10. Optimal bus voltage angles of different time intervals for test system I.
Energies 18 03852 g010
Figure 11. Optimal SOC of various batteries at different time intervals for test system II.
Figure 11. Optimal SOC of various batteries at different time intervals for test system II.
Energies 18 03852 g011
Figure 12. Optimal active power outputs of micro-turbine generators for test systems II.
Figure 12. Optimal active power outputs of micro-turbine generators for test systems II.
Energies 18 03852 g012
Figure 13. Optimal bus voltage magnitudes of various generator buses for test system II.
Figure 13. Optimal bus voltage magnitudes of various generator buses for test system II.
Energies 18 03852 g013
Figure 14. Optimal bus voltage angles of generator buses for test system II.
Figure 14. Optimal bus voltage angles of generator buses for test system II.
Energies 18 03852 g014
Figure 15. Violations and their corresponding penalty terms for test system I.
Figure 15. Violations and their corresponding penalty terms for test system I.
Energies 18 03852 g015
Figure 16. Violations and their corresponding penalty terms for test system II.
Figure 16. Violations and their corresponding penalty terms for test system II.
Energies 18 03852 g016
Figure 17. Convergence curves of total cost for test system I.
Figure 17. Convergence curves of total cost for test system I.
Energies 18 03852 g017
Figure 18. Convergence curves of total cost for test system II.
Figure 18. Convergence curves of total cost for test system II.
Energies 18 03852 g018
Table 1. Configurations of test system 1 with 9-bus network.
Table 1. Configurations of test system 1 with 9-bus network.
BusTypeNumberBusTypeNumber
0Battery61Wind generator 13
0Micro-turbine 121Wind generator 26
0Micro-turbine 222Photovoltaic8
0Micro-turbine 32
Table 2. Configurations of test system 2 with 39-bus network.
Table 2. Configurations of test system 2 with 39-bus network.
BusTypeNumberBusTypeNumber
29Photovoltaic333Wind generator 16
30Batteries334Wind generator 19
30Micro-turbine 1235Photovoltaic5
30Micro-turbine 2235Batteries2
31Wind generator 21036Photovoltaic5
31Batteries336Batteries2
32Wind generator 21037Micro-turbine 22
32Batteries338Micro-turbine 12
Table 3. Parameters of different micro-sources.
Table 3. Parameters of different micro-sources.
Micro-SourcesParameters
Wind 1 C o i = 1.875  CNY/kWh, Cut-in speed = 3 m/s, Cut-out speed = 25 m/s, Rated speed = 11 m/s, Rated power = 0.18 × 102 kW
Wind 2 C o i = 1.875  CNY/kWh, Cut-in speed = 3 m/s, Cut-out speed = 25 m/s, Rated speed = 13 m/s, Rated power = 0.18 × 102 kW
Photovoltaic C o i = 2.65  CNY/kWh, Temperature coefficient = 0.0041, Rated power = 0.4 × 102 kW, Standard radiation = 1 kW/m2, Temperature = 25 °C
Batteries C o i = 0.095 CNY/kWh, S O C min = 0.3, S O C max = 1
Micro-turbine 1 C o i = 0.608 CNY/kWh, C F i = 0.211 CNY/kWh, α k β k = 0.165 CNY/kWh, P max = 3 × 102 kW, P min = 0 kW
Micro-turbine 2 C o i = 0.589 CNY/kWh, C F i = 0.211 CNY/kWh, α k β k = 0.18 CNY/kWh, P max = 2.5 × 102 kW, P min = 0 kW
Micro-turbine 3 C o i = 0.614 CNY/kWh, C F i = 0.211 CNY/kWh, α k β k = 0.166 CNY/kWh, P max = 2.8 × 102 kW, P min = 0 kW
Table 4. Parameter settings of PDE algorithm for different systems.
Table 4. Parameter settings of PDE algorithm for different systems.
SystemParameters
Test System 1, 2 F min = 0.1 ,   F max = 0.9 ,   C R min = 0.0 ,   C R max = 0.9 ,   λ 1 = 1.3 ,   λ 2 = 10 ,   λ 3 = 2 ,   λ 4 = 1
f 1 = 3 ,   f 2 = 0.5 ,   ε 1 = 0.85 ,   ε 2 = 0.15 ,   S P S = 10 ,   P P N = 10 ,   G S F = 10
Test System 1 a f 1 , min = 15,000 ,   a f 1 , max = 20,000 ,   a f 2 , min = 1500 ,   a f 2 , max = 2000 , k max = 800
Test System 2 a f 1 , min = 10,000 ,   a f 1 , max = 15,000 ,   a f 2 , min = 200 ,   a f 2 , max = 500 , k max = 1500
Table 5. Obtained metrics of the proposed PDE for test systems I and II.
Table 5. Obtained metrics of the proposed PDE for test systems I and II.
MetricsBestWorstAverageSTDVAVG CPU Time
Test System I13,953.4014,120.1014,035.9460.470:00:20
Test System II22,657.3023,129.2022,871.98206.080:45:52
Table 6. Statistical metrics obtained by the improved PDE and the baseline algorithm of traditional DE for test system I.
Table 6. Statistical metrics obtained by the improved PDE and the baseline algorithm of traditional DE for test system I.
MetricsBestWorstAverageSTDVAVG CPU Time
Improved PDE13,953.414,120.114,035.960.470:00:22
Traditional DE13,966.614,350.714,099.6154.170:02:54
Table 7. Statistical metrics obtained by the improved PDE and the baseline algorithm of traditional DE for test system II.
Table 7. Statistical metrics obtained by the improved PDE and the baseline algorithm of traditional DE for test system II.
MetricsBestWorstAverageSTDVAVG CPU Time
Improved PDE22,657.323,129.222,872.0206.080:45:52
Traditional DE23,198.235,632.530,503.35047.125:26:57
Table 8. Multi-core hardware occupation of the involved algorithms.
Table 8. Multi-core hardware occupation of the involved algorithms.
SystemsMethodsCPU CoresInitial Resident MemoryMEM (%)CPU (%)
Test System ITDE126,364 K0.0206100
PDE1028,408 K0.0222100
Test System IITDE126,384 K0.0206100
PDE1027,284 K0.0214100
Table 9. Wilcoxon rank sum test of improved PDE and traditional DE for test systems I and II.
Table 9. Wilcoxon rank sum test of improved PDE and traditional DE for test systems I and II.
SystemphResults
Test System I0.38320PDE obtains similar solution distribution with traditional DE
Test System II6.66 × 10−41PDE obtains different solution distribution with traditional DE
Table 10. Results using different SPS for case 1 of test system 2.
Table 10. Results using different SPS for case 1 of test system 2.
SPSBest (CNY)Worst (CNY)Mean (CNY)CPU Time (min)
523,121.523,507.623,288.621.3
1022,657.323,129.222,872.045.7
1522,577.823,055.622,838.969.0
Table 11. Results using different PPN for case 2 of test system 2.
Table 11. Results using different PPN for case 2 of test system 2.
PPNBest (CNY)Worst (CNY)Mean (CNY)CPU Time (min)
522,997.823,508.023,296.140.3
1022,657.323,129.222,872.045.7
2022,480.022,735.922,572.172.2
Table 12. Results using different GSF for case 3 of test system 2.
Table 12. Results using different GSF for case 3 of test system 2.
GSFBest (CNY)Worst (CNY)Mean (CNY)CPU Time (min)
523,05423,261.223,191.343.14
1022,657.323,129.222,872.045.68
1522,607.323,439.423,008.143.46
2523,677.425,450.624,577.546.14
5024,835.927,473.426,461.343.26
10026,846.628,368.027,688.347.25
Table 13. Configurations of larger-scale test system with 39-bus network.
Table 13. Configurations of larger-scale test system with 39-bus network.
BusTypeNumberBusTypeNumber
29Photovoltaic333Wind generator13
30Batteries634Wind generator13
30Micro-turbine1435Photovoltaic3
30Micro-turbine2435Batteries4
30Micro-turbine3236Photovoltaic3
31Wind generator2536Batteries4
31Batteries637Micro-turbine24
32Wind generator2538Micro-turbine14
32Batteries6
Table 14. Comparative results of the proposed PDE with traditional DE and PSO.
Table 14. Comparative results of the proposed PDE with traditional DE and PSO.
MethodsBest SolutionWorst SolutionAvg CPU Time
Obj (CNY)Voltage Violations (p.u.)Obj (CNY)Voltage Violations (p.u.)
PDE27,104.00037,769.8000:41:09
TDE26,637.310.0105540,089.260.023996:28:31
PSO41,958.180.0011445,692.0406:02:22
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

Li, T.; Li, Y.; Wang, F.; Gong, C.; Zhang, J.; Ma, H. Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids. Energies 2025, 18, 3852. https://doi.org/10.3390/en18143852

AMA Style

Li T, Li Y, Wang F, Gong C, Zhang J, Ma H. Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids. Energies. 2025; 18(14):3852. https://doi.org/10.3390/en18143852

Chicago/Turabian Style

Li, Tianle, Yifei Li, Fang Wang, Cheng Gong, Jingrui Zhang, and Hao Ma. 2025. "Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids" Energies 18, no. 14: 3852. https://doi.org/10.3390/en18143852

APA Style

Li, T., Li, Y., Wang, F., Gong, C., Zhang, J., & Ma, H. (2025). Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids. Energies, 18(14), 3852. https://doi.org/10.3390/en18143852

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