1. Introduction
With the continuous increase of electricity consumption in China, the safe and stable operation of power system has become a hot issue in the power industry. Therefore, the optimal dispatching of power system is the key problem. Up to now, many scholars have studied the optimization scheduling of power system [1] [2] [3] [4] [5], but the current algorithms all have some obvious defects, such as slow calculation speed and relatively fuzzy calculation precision.
In this study, the original Cuckoo algorithm was improved and optimized, and the improved algorithm was used to optimize the established scheduling model, and the superiority of the improved algorithm was verified.
2. Improved Cuckoo Algorithm
2.1. Cuckoo Algorithm
Cuckoo algorithm combines common cuckoo propagation mechanism and levy search method [6]. In the beginning, the algorithm has a good search ability, but as time goes by, the defects of its search ability are gradually exposed. At the same time, the existing problems also include low search accuracy and slow speed, etc., so it is necessary to improve when solving multi-objective problems. For a D-dimensional optimization problem, D variables are required:
(1)
The position update formula based on Levy is as follows:
(2)
(3)
In the formula,
is the position of the nest after update,
is the current position of the nest, α is the step size, L(λ) is the data search path, and u is the standard normal variable.
2.2. Analysis of Mathematical Mechanism of GASCS
Inspired by the law of gravitation, Iranian scholar Emat Rashedi proposed the Gravity Search Algorithm (GSA) in 2009 [7]. The principle of GSA algorithm is: individuals of matter are attracted to each other due to the gravitational action, and the gravitational force moves along the direction of individuals with greater mass. The mass of a substance determines its gravitational pull, and the more massive the substance is, the greater the gravitational pull it will receive. Under the action of external gravity, the position of the material individual changes constantly, and finally, the whole group will gather around the mass of the material individual, which is close to the global optimal solution of the optimization problem. In the universal gravitation algorithm, the fitness value of three attribute description functions defined by mass in theoretical physics is used for reference, namely, active gravitation mass Ma, passive gravitation mass Mp and inertia mass Mi. The position of each material individual corresponds to the solution of the optimization problem, and its universal gravitation and inertial mass Mi jointly determine the fitness value of the corresponding function. In fact, the GSA algorithm controls the evolution of the algorithm by adjusting Ma, Mp and Mi, and promotes the matter individuals in the group to gather near the matter individuals with the greatest gravitational force, so as to search for the optimal solution.
The GSA algorithm model includes mass calculation, gravity calculation, acceleration calculation, velocity updating and position updating of individual matter. The algorithm first initializes the position and velocity of the individual matter within the interspace. As shown in literature [8], let the position and velocity of them substance individual in the D-dimensional spatial dimension evolving to the R-generation be respectively
,
Among them,
,
and
represent the positional and velocity components of them individual in the JTH dimension, respectively. The mass Mi and the gravitation of the individual are determined by the fitness value of the position pair of the individual. Calculate the acceleration of the material individual according to Newton’s second law, and update the position Xr,m and velocity Vr,m of the material individual.
The traditional CS algorithm is based on two searching mechanisms, Levy flight random walk and preferred random walk. Although it has certain convergence performance, it still has some limitations. Therefore, this paper proposes a cuckoo algorithm with gravitational acceleration mechanism. Based on the feature that the gravity search can perceive the global optimal information without learning the change of external environmental factors, the cuckoo nest is assigned with different individual masses, and the optimization process not only follows the Levy flight law, but also follows the law of gravity.
The detailed mechanism of GASCS algorithm is shown in Figure 1. nest (m), nest (s), and nest (k) are set as the nest location of the host population evolution respectively, and nest_g is the optimal nest location. Moreover, it is assumed that the quality of the host nest meets nest (s) > nest (m) > nest (k). Therefore, the mass of nest_g at the optimal nest location satisfies the following mathematical relationship: nest_g > nest (s) > nest (m) > nest (k). For the convenience of analysis, Xr,m are set to be equivalent to nest (m), Xr,s is set to be equivalent to nest (s), Xr,k is set to be equivalent to nest (k) and Xr,gb is set to be equivalent to nest_g. Fr,ms, Fr,mk and Fr,mg are set to act on respectively Gravitation of nest (m) to nest (s), nest (m) to nest (k), and nest (m) to nest_g. The accelerations generated by gravity are ams, amk and amg. Fr,m are all the resultant forces acting on nest (m) and nest_g to generate acceleration amg. Meanwhile, Fr,t is the external force acting on Fr,m and nest (k) to generate acceleration ar. Therefore, the host nest approaches nest_g, the most massive nest, under the influence of gravity. According to Newton’s Second Law, the rate of acceleration experienced by the host’s nest during evolution is determined by both the force exerted on the nest and its own mass. Based on this, the individual newer law (2) and newer law (3)
Figure 1. Mechanism of gravitational attraction acceleration.
of the cuckoo algorithm are improved into Equations (4) and (5):
(4)
(5)
where, Formula (4) and Formula (5) respectively represent individual positions of Levy flying random walk and preference random walk,
, and ar is the combined acceleration of Fr,t. According to Equation (4), it can be seen that, different from the traditional CS algorithm, host nest simply generates candidate solutions according to the Levy flight random walk, the GASCS algorithm takes each host nest as a material individual of different mass, which follows the law of universal gravitation and Newton’s second law. As shown in Figure 1, the host nest nest (m), nest (s) and nest (k) move along the direction of the acceleration of ar and formula (4) step correction term for
.
is obtained from the vector algorithm. Therefore, the algorithm can approximate the global optimal solution nest_g.
In summary, due to the position updating of individuals with Levy flying random walk and preference of random walk mode, the combined acceleration ar is introduced, and the ar follows algorithm. Therefore the GASCS algorithm can balance the search process of the algorithm and offset the deterioration of algorithm performance caused by unreasonable search step size setting. The proposed algorithm not only takes advantage of the infinite jumping characteristic of Levy flight random walk, which is easy to jump out of the local optimal solution, but also takes advantage of the universal gravitational acceleration to approach the global optimal solution quickly, which overcomes the limitation of CS algorithm.
In view of the imbalance between global search and local search in the limitations of the algorithm, GASCS algorithm proposes a probability mutation method to increase the diversity of population evolution, avoid the algorithm falling into local search and the delay phenomenon in the late execution of the algorithm.
Suppose
, and
. when performing the probability mutation operation, first select the individual population
from
with probability 1/D,
; Secondly, replace
with
of formula (17), where k is the random integers in
, ξ is a uniformly distributed random number in (0,1),
and
are the upper and lower bounds of
; Finally, the candidate solution
is replaced by
by probability mutation and enters into the execution process of the algorithm. Among them,
. After the probability mutation, the population evolution can get more diversity, and avoid the problem of low global search efficiency caused by the simplification of the optimization process.
(6)
GASCS algorithm not only uses the characteristics of infinite jump of Levy flight random swimming mode to jump out of local optimal solution easily, but also adopts the diversity of probability variation increasing algorithm to ensure that the algorithm can jump away from local optimal solution. Therefore, GASCS algorithm solves the problem of global search and local search imbalance in CS algorithm.
GSA algorithm mainly includes the following four steps:
1) Calculation of individual mass
According to literature [9], the mass of material individual M is defined as
(7)
(8)
where, fr,m and Mr,m respectively represent the functional fitness value and corresponding mass of the substance individual m in the RTH evolution of GSA algorithm. Assuming that the problem solved is a minimization problem, fr,best and fr,worst respectively represent the optimal and worst fitness values of substance individuals in the RTH evolution, and their mathematical expressions are as follows:
(9)
(10)
2) Gravity calculation of individual matter
According to the law of universal gravitation, on dimension j, the universal gravitation of material individual m on material individual k is defined as follows:
(11)
where ε is an infinitesimal constant; Mr,pm represents the inertial mass acting on the r evolution of the material individual m; Mr,ak represents the inertial mass acting on the r evolution of the material individual m, and
; Rr,mk is the Euclidean space distance between the material individual m and the material individual k; Gr represents the universal gravitation constant of the matter individual in the r evolution, and its expression is shown in Equation (12):
(12)
where, G0 is the gravitational coefficient of individual matter at the beginning of evolution; θ is the algorithm control parameter, generally take θ = 20; w is the maximum value of the algorithm evolution algebra. On dimension j, the resultant force of gravitational force on material individual m is
:
(13)
where, dj is a random number evenly distributed within the interval (0, 1).
3) Calculation of individual acceleration
According to Newton’s second law, the acceleration of material individual m in the r evolution on dimension j is defined as follows:
(14)
where
.
4) Speed and location of material individual renewal
In each evolutionary process of the algorithm, material individuals according to Formula (14) and Formula (15) respectively update velocity
and position
, and their specific mathematical expressions are as follows:
(15)
(16)
2.3. Improved Cuckoo Algorithm (GASCS)
Based on the limitations of CS algorithm, the GASCS algorithm with gravitational acceleration mechanism is proposed in this paper. The algorithm is based on the optimal solution found by the current search, Levy Flight random walk and preferences of individual random walk update location and host nests by combination of gravitational acceleration, the direction of the next evolution and best lair, and mutation probability method is adopted to guide the host nest move along the direction of the global optimal solution, and then to search the global optimal solution.
The execution steps of the GASCS algorithm are shown below.
Step 1. Initialization of the algorithm: the population is N host nests, the spatial dimension of the optimization problem is D, the maximum evolutionary algebra is W, the discovery probability is pa, the universal gravitational coefficient at the initial time is G0, the control parameter of the algorithm is θ, the initial moving speed of the host nest is Vr,m, where the evolutionary algebra r = 1.
Step 2. Calculate the randomized host nest location
corresponds to the fitness function value
.
Step 3. Calculate Gr by formula (12), at the same time, calculate the current optimal value
and the worst value
by formula (9) and formula (10), and the corresponding optimal solution Xr,gb.
Step 4. According to formula (7) and formula (8), calculate the mass of host nest qr,m, Mr,m.
Step 5. Calculate the gravitational force
and acceleration
of the host nest of the current evolutionary algebra according to formula (13) and formula (14).
Step 6. The Levy flight random walk of formula (4) is used to generate a new host nest, and the candidate solution
is discarded according to the discovery probability Pa
Step 7. Using the preferred random walk of formula (5) to generate a new host nest and replace the abandoned candidate solution in step 6.
Step 8. Generate the fitness value of the function
corresponding to the candidate solution
by probability mutation method.
Step 9. Calculate the fitness value of the function
corresponding to the candidate solution
generated by the population in step 8, and update the current optimal value
and the worst value
and the corresponding optimal solution
.
Step 10. If the termination condition of the algorithm is satisfied, the optimal value and solution of the current evolution are output, and the algorithm is stopped; otherwise, go to step 3 and continue with the algorithm.
3. Optimized Scheduling Model
The optimal dispatching of power system is based on the balance between the power supply and the demand load, which not only meets the minimum power generation cost of the system, but also makes the emission of pollution gas meet the standard.
1) Economic scheduling objectives:
(17)
In the formula, N represents the number of thermal power units; ai, bi and ci are the cost coefficients of generating units respectively; Pi is unit output; f1 represents the objective function of economic scheduling.
2) Environmental treatment objectives:
(18)
(19)
where αi, βi, γi and ξ are emission coefficients of pollutants respectively; f2 represents the environmental scheduling objective function. The following multi-objective optimal scheduling model is obtained by combining the two objective functions and constraint conditions:
(20)
(21)
(22)
In the formula, H (Pi) and G (Pi) are respectively the equality and inequality constraints of the scheduling model; Y (x) is the integrated objective function.
4. The Analysis of Simulation
Select the IEEE6 cell for a 30-node system. Different algorithms were used to analyze and compare the models. The 24 h period was used for calculation. The parameters of unit operation, emission coefficient and line power loss were shown in Literature [10], and the upper and lower limits of output of unit G1 - G6 and the system demand load were shown in Literature [11]. Keeping the parameter conditions fixed, MOPOS algorithm, NSGA algorithm, multi-objective cuckoo algorithm and its improved algorithm were respectively used to further analyze the above examples. Assuming that the population size was n = 200, the maximum number of iterations was t = 600, and the threshold value of the execution of communication was 0.6, the iteration process was shown in Figure 2. As can be seen from the iteration curves in Figure 1, compared with other algorithms, the iterations of the improved cuckoo algorithm are greatly reduced. The key is the introduction of AC operator, dynamic parameters and non-controlled sorting, which leads to the poor search efficiency of the algorithm
There is a change in convergence velocity. It takes 80 iterations for NSGA algorithm to reach the convergence state, and 72, 61 and 48 iterations for MOPOS algorithm, multi-objective cuckoo algorithm and its improved algorithm, respectively. The improved cuckoo algorithm improves the convergence speed and optimization ability.
After the completion of the iteration, the optimal Pareto boundary obtained by NSGA algorithm, MOPOS algorithm, multi-objective cuckoo algorithm and the improved multi-objective cuckoo algorithm is shown in Figures 3-6.
As can be seen from Figure 2 to Figure 5, when the demand load of the regional power grid is determined, the cost of power generation is inversely proportional to pollutant emission, and the two balance each other. Through comparison, it can be seen that the first three algorithms did not search for the optimal
Pareto peak, and the slope of the optimal Pareto peak obtained earlier in Figure 2 & Figure 3 was too large. However, the latter algorithm is too small, and the slope in the middle part of Figure 4 fluctuates to a certain extent. The latter algorithm is intermittent, while the improved algorithm can obtain the smooth and integrated optimal Pareto front. It can be seen that the improved algorithm has a good effect on solving multi-objective optimization problems.
5. Conclusion
Cuckoo algorithm is a new intelligent optimization algorithm, which has the advantages of strong generality, fewer control parameters, fast algorithm execution, etc., and has become a hot topic of research by scholars at present. However, this algorithm still has some limitations, such as the imbalance between global search and local search, which leads to the local extremum optimization, slow search speed and low convergence precision. In this paper, we treat the cuckoo nest as a mass entity, and use the law of universal gravitation and Newton’s second law to analyze the Levy in the cuckoo algorithm. Flight random walk and preferences random walk optimization between individual gravitation is used to accelerate the search, effectively balance the cuckoo global search ability and local exploitation ability of the algorithm, avoid algorithm execution period into local extreme value point and the hysteresis phenomenon, improve the global search efficiency and convergence precision of the algorithm. The performance simulation of a 30-node 2IEEE6 unit system is carried out by using the optimization algorithm. The results show that the proposed GASCS algorithm has better global optimization performance, better robustness, faster search speed and higher convergence accuracy compared with other improved intelligent optimization algorithms.