TMCnet News

Method of Reservoir Optimal Operation Based on Improved Simulated Annealing Genetic Algorithm [Sensors & Transducers (Canada)]
[April 22, 2014]

Method of Reservoir Optimal Operation Based on Improved Simulated Annealing Genetic Algorithm [Sensors & Transducers (Canada)]


(Sensors & Transducers (Canada) Via Acquire Media NewsEdge) Abstract: According to the specific circumstances of Wanjiazhai Reservoir, establish a reservoir optimal scheduling nonlinear mathematical model with a maximum generation capacity target, this paper uses an improved simulated annealing genetic algorithm to solve the model. The algorithm is in view of the defects of the traditional simulated annealing genetic algorithm to improve the algorithm from three aspects: introducing the niche technology, using adaptive crossover and mutation strategy, using the elitist strategy during the selection. Through examples are calculated and compared with the traditional simulated annealing genetic algorithm, the improved algorithm effectively overcomes the stagnation phenomenon, to enhance the global search ability. Its optimization performance is better than that of the traditional simulated annealing genetic algorithm. Copyright © 2013 IFSA.



Keywords: Reservoir optimal operation, Simulated annealing genetic algorithm, Ecological niche, Adaptive, Optimal preservation.

(ProQuest: ... denotes formulae omitted.) 1. Introduction The development and utilization of water resources, has been around the world hot topic in the production and construction and scientific practice. Reservoir optimal operation is based on the specific running conditions of the reservoir, built with the goal of the reservoir maximizing benefit, with water balance, the power output as the constraint condition of optimization scheduling model, use optimization theory to determine the mode of operation of water resources reservoir [1], It is under the condition of that no change in the existing power equipment and the structure of the hydraulic structure of the hydropower station, using the optimization theory, modem control theory and system engineering method, develop the reservoir optimal scheduling plan and map optimization scheduling, combined with the runoff forecasting, and comprehensive utilization department of electric power system, the reservoir optimal control is applied, to increase capacity or increase the power output, utmost ground once the purpose of energy saving [2-4].


Since the 1980s, has developed a novel algorithm, such as genetic algorithm, ant colony algorithm, particle swarm optimization (PSO), artificial immune algorithm and the hybrid optimization strategy, etc., which developed by simulation or reveal certain natural phenomena and processes, often referred to the intelligent optimization algorithm [5]. As the production of intelligent bionic algorithm, provides a new way for reservoir optimal operation. Among them, the genetic algorithm because of its excellent global search ability and implicit parallel computing feature characteristics, and is considered to be the superior reservoir optimal operation algorithm [6-8]. But local optimization ability of genetic algorithm is poorer, prone to premature phenomenon.

The traditional simulated annealing genetic algorithm is based on the basic genetic algorithm, in its search process into the simulated annealing algorithm with a method of optimization idea. Although the traditional simulated annealing genetic algorithm is through ideas of the integration to realize the complementary advantages of the algorithm, achieved the purpose of improve the algorithm performance [9]. But it's in evolution obviously lack of history information communication and feedback between populations, and population evolution of the reference standard, so in a short period of time not only easy to cause the evolution direction deviating from the theory of the defect of the target, and can cause within the limited search time may miss out on the optimum solution. Aiming at the defects of the traditional simulated annealing genetic algorithm, an improved algorithm, the algorithm is to introduce niche technology, adaptive crossover and mutation strategy and optimal preservation strategy. Using its single reservoir optimal scheduling calculations, and compare the optimization results with the result of the traditional simulated annealing genetic algorithm, to illustrate the feasibility and optimization of the algorithm.

2. Improved Simulated Annealing Genetic Algorithm Based on the defect analysis of the traditional simulated annealing genetic algorithm, this paper proposed an improved simulated annealing genetic algorithm, the idea of niche genetic algorithm is used to the choice of operation, through similar individuals in the population selection probability of uneven distribution, thus effectively avoid algorithm falls into local optimum and improve the search early lack of effective gene; using an improved adaptive crossover and mutation probability of combining the algorithms to improve the speed of evolution algorithm; using the optimal preservation strategy, at every stage of the evolutionary keep the best individual, to guide direction of the evolution of algorithm.

1) Niche technology.

The population of each generation as composed by a number of subgroups, Selected from each subgroup some better individuals to form a new group, then in this group, and other groups, constantly evolve a new population, adopting mechanism of sharing mechanisms or exclude or complete selection operation, this is called niche technology. The mechanism of the third option with most, the idea is the fitness of the individuals in a population is adjusted by sharing degree. After the adjustment of individual fitness is f : ... (1) ... (2) where mi is the number of niches, dij is the Hamming distance between two bodies.

Based on Niche Genetic Algorithm technique is the basic idea [10]: First, according to formula (2) to calculate the population of two Hamming distance between two individuals, if the distance is less than the threshold set distance, and then the two fitness comparison. In order to set the threshold within a distance of only a fine individual existence, out of which as soon as lower fitness of the individual, the measures imposed on the latter is a stronger penalty function, to increase its evolution probability of being eliminated. This approach enables individuals evenly dispersed throughout the solution space to ensure that the diversity of the population, thus achieving a Niche Genetic Algorithm.

2) Adaptive crossover and mutation probability.

For Srinvivas [11] and Ren Ziwu [12], who proposed two adaptive genetic algorithm shortcomings, this paper uses a new adaptive genetic algorithm [13] pc and pm is calculated as follows: ... (3) ... (4) From the above formula, we can see that the algorithm is the use of population maximum fitness fmax , minimum fitness fmin and average fitness favg these three variables to measure the concentration of fitness of the population. Wherein, fmax and fmin reflects the proximity of the concentration of the entire population, the closer the adaptation level also represents more concentrated, genetic algorithms may be more easily into local optimum; favg and fmax within proximity of fitness of the population reflects distribution, the closer, the more concentrated reflect the generation of individual.

3) Optimal preservation strategy.

In the evolution of the population, selection, crossover and mutation operation will produce more and better performance of the individual, but the failure to take effective measures, these individuals will also be destroyed by these operations, resulting in the operating efficiency of the genetic algorithm and convergence reduced. Survival of the fittest operation using the optimal preservation strategies to avoid the destruction of the best individual occurrence, the basic idea is: the best individual in the current population does not participate in the crossover and mutation operators, and it's directly into the offspring population, Adopting this strategy can be preserved throughout the optimal individual, have to make random process.

Improved simulated annealing genetic algorithm process: Step 1: Parameter Initialization: Including annealing coefficient a, Initial temperature ta , Accuracy requirements E, Population size M, Penalty factor, etc.

Step 2: The population size M which is randomly generated and satisfy the constraints is the initial population P0(t); Step 3: Calculate the fitness of the population, and its descending order, the best performance of the individual and its corresponding optimal solution stored in the centralized optimal solution; Step 4: Termination condition is determined, if satisfied, then stop operations, and the current results as the optimal results; if not met, tum Step 5.

Step 5: Niche operation selection process: M individuals are obtained by Step 2, calculate the Hamming distance of between two individuals' fitness value, the formula (5) below: ... (5) where / is the individual fitness value; k is the number of decision variables.

When dß < L (where L is the distance threshold value Hamming distance), the comparison of the size of f(i,k) and f(j,k), where / is the smaller of the individual by applying a penalty function fmin(Xj.Xj) ~ Epensity * Step 6: Use genetic algorithm in selection, crossover and mutation operation, etc. In this paper: - Roulette wheel selection is carried out on the population P0(t) firstly, then uses the optimal preservation strategy - Crossover operation (this article uses single-point crossover) is according to the improved adaptive crossover probability, generate populations.

- The mutation operation(this article uses the arithmetic variation) is according to the improved adaptive mutation probability pm to generate population P2(t).

Step 7: To do simulated annealing operation for population P2 (t), to do local optimization, to obtain a new scale of m groups P3(t) ; cool down tk+] = a(tk) ,k = k + l ; Step 8: Pi(t) and P2(t) merge to form a new group, and its fitness sorting, updating the individual of P3(t), and go to Step 3.

3. Reservoir Optimal Operation Based on Improved Simulated Annealing Genetic Algorithm 3.1. Mathematical Model of Hydropower Station Reservoir Optimal Operation For long-term deterministic optimal operation of single reservoir, with the optimal criterion of maximizing the power generation scheduling period to establish mathematical model. Scheduling period can be divided into T, that is, for each period for the sum capacity is the largest.

The objective can be seen as follows: ... (6) where E is the total generating capacity in optimal scheduling period, Et is the generating capacity on the time t, N, is the average output on the time t, At is the number of hours in the time t, T is the total time of the hydropower operation calculation.

Constraints of the model set includes reservoir storage capacity constraint, hydropower station output constraint, reservoir discharged flow constraint, reservoir water balance constraint, boundary constraint and nonnegative variable constraint.

1) Reservoir storage capacity constraint.

V . <v<V r t.min - r t - r iwax *. (7) where Vtmin is the allowed minimum reservoir capacity on the time t, Vt max is the allowed maximum reservoir capacity on the time t.

2) Hydropower station output constraint.

Eft,min - - Ntn (8) where Nt min and Ntmax are the minimum and maximum output respectively, which hydropower station allowed on the time t.

3) Reservoir discharged flow constraint 9t,min - 9t - dt.max > (9) where qtmin and qtmax are the minimum and maximum discharge on the time t respectively.

4) Reservoir water balance constraint.

Vt+1=Vt+QrAt-qrAt-Wt, (10) where Vt is the reservoir storage capacity at the beginning of time Vt+1 is reservoir storage capacity at the end of the t period. Q, is the average inbound flow on the time t . qt - At is the outflow water on the time t , qt is the average outflow on the time t , At is the size of time at t period, Wt is the reservoir seepage and evaporation resulting in an average water loss.

5) Boundary constraint.

... (11) where Vinitial is the storage capacity which the reservoir water level corresponds at the beginning of scheduling, Vfinish is the storage capacity which the reservoir water level at the end of scheduling. For many years scheduling reservoir, Vfinish conditions are generally no restrictions, for other regulation performance of the reservoir at the end of scheduling, boundary conditions may be restricted.

6) Nonnegative variable constraint.

All of the above decision variables are nonnegative variables.

3.2. Algorithm Implementation A key part for solving the problem of reservoir optimal operation is to solve the model. Because reservoir optimal scheduling problem with nonlinear, multi-constraint, etc., it basically uses the mathematical model which also has these characteristics, this paper used the previous section model and the simulated annealing algorithm to optimize scheduling is calculated. Selecting three years including wet years, the water level, the dry years to calculate, calculate their generating capacity, and then calculate their average E , E (kW-h) is a multi-year average annual generation capacity of hydropower. Ë is calculated as follows: E-(Ej +EU + Em )/ 3 (12) where Ei, Eu, EIU is the wet year, the water level, the dry years generating capacity, kW-h.

In the dispatching of hydropower station, asking questions of solution in each period is during the period of the reservoir control the value of the initial control water level. Since hydropower use of water depends on the reservoir water level changes and inflow. So for hydropower optimal scheduling SAGA can be understood to meet the operational level in the relevant constraints, Randomly selected m groups of water level change sequence (Zj, z\,..., z\) ,...,(Z(TM), Z(TM).... ,Z(TM) ). In serial, m is the population size, n is the number of periods. To meet the given constraints, using predetermined algorithm criteria iteration until the termination condition is satisfied the algorithm, the optimal solution output.

1) Encoding and decoding.

Due to some multidimensional, precision continuous function optimization problem, binary code will have slow speed optimization and solution accuracy under the control of the encoding string length such as faults, so this article using the decimal coding for optimal operation of hydropower station is simulated annealing genetic algorithm research.

The order of time, using the decimal encoding, time t allow reservoir is divided into m equal parts ... (13) Z^ are the reservoir water level to allow the minimum and maximum value at t time respectively, the accuracy of coding allows for a.

So chromosomal gene can be used to represent integers A, Individual vectors (gene) is the true value of the reservoir water level, the corresponding decoding formula: (14) If the calculated optimal scheduling time for the month, then each chromosome contains 12 vectors. If the water level in a certain period known maximum, minimum, respectively, 680 and 690, a = 0.1 Then according to the formula(14), calculate the changes in water level between 100, the chromosome (1, 31, ..., 101), on behalf of the corresponding water level value (680, 683, ...,690).

2) Fitness function.

This paper directly makes the objective function as the fitness function to evaluate the merits of the individual.

3) Genetic operations.

a) Selecting operation is a key link of the genetic algorithm "survival of the fittest". The most widely used method of choice is roulette method. Its advantage is to give choices to the low fitness of the individual, but its disadvantage is the high fitness individuals that also have the chance to be eliminated. And the optimal preservation strategy evolution model is by far the best individual instead of the worst in the group, the strategy is an important guarantee condition of convergence, it can ensure the optimal individuals obtained so far over genetic operation such as crossover and mutation, smoothly into the next generation [14]. But because of its probability factor in population expanded rapidly in the large and easy to cause local early convergence. Therefore, the combination of both can obtain good effect.

b) Crossover operation is the salient feature of genetic algorithm with other evolutionary algorithms. It is the main method to generate new individual. In the role of genetic algorithm it cannot be ignored. Cross with one point crossover operator, crossover probability adopts adaptive method selected, calculated as formula (3).

c) Mutation operation has two main functions: One is to maintain the diversity of population; then it is to improve the local search ability of the algorithm. Mutation operator USES the arithmetic, mutation probability is also selected by the adaptive mode, calculated as formula (4).

4. Application and Analyses The tasks of Wan Jiazhai Reservoir include mainly water supply combined with power generation peaking, at the same time both flood control, ice prevention effect, etc. [15]. The total reservoir capacity is 8.96 billion m3,regulating capacity is 4.45 billion m3, the normal water level is 977.00 m, the highest water level is 980.00 m, the coefficient of output power takes 8.3, guaranteed output is 185 MW, power plant design guaranteed rate is 90 %, installed capacity is 1080 MW, average annual energy output is 27.5 billion kW-h. In this paper, set the initial level as the decision variable, aim to calculate the sequence of the reservoir water level which satisfies the constraints, to make maximum reservoir generating capacity. Here take the normal flow year for example that to describe briefly the solution process of model. The final results of improved simulated annealing genetic algorithm optimization scheduling are shown in Table 1.

It can be seen from Table 1, the initial and the final water level are meeting the upper and lower limits. The output value of each month is also within the control range. Therefore, the results meet the requirements. After the optimization scheduling the annual generation capacity is 29.2388 billion kW-h.

Use the same model and method for reservoir of the wet year and dry year runoff in case to optimize dispatch, to get station reservoir average annual output of hydroelectric power, as shown in Table 2.

In this paper, this improved algorithm solves the construction of the reservoir optimal scheduling model and gets annual average generating capacity of 28.5355 billion kW-h. The conventional scheduling mean annual generation capacity of 2.75 billion kW-h, the year after dispatching generating capacity increased 1.0355 billion kW-h, annual generation capacity increased 3.77 %, so based on improved simulated annealing genetic algorithm optimization scheduling result has important practical significance. In order to verify the effectiveness of the algorithm, the paper has adopted the traditional simulated annealing genetic algorithm optimization operation of reservoir, its objective function and constraints are unchanged. The results are shown in Table 3.

It can be seen from Table 3, the initial and the final water level are meeting the upper and lower limits. The output value of each month is also within the control range. Therefore, the results meet the requirements. After the optimization scheduling the annual generation capacity is 29.1387 billion kW-h.

Use the same model and method for reservoir of the wet year and dry year runoff in case to optimize dispatch, to get station reservoir average annual output of hydroelectric power, as shown in Table 4.

Compare the simulation results of two algorithms, we can get the conclusions as follows: 1) From multiple runs of the program, we can see that ISAGA is proposed in this paper improves the ability of global optimization and convergence speed, the introduction of the Niche technology and adaptive crossover and mutation probability, to ensure the diversity of population better, the latter and the optimal preservation strategy also ensure the convergence of the algorithm and make the evolutionary process directed. Compared with traditional simulated annealing genetic algorithm, the improved algorithm proposed in this paper is more efficient and its solution process is more stable.

2) Examples show that the improved algorithm can converge quickly to the optimal value, and its optimal value is superior to the traditional algorithm. The convergence speed of the improved algorithm is fast, and its optimization effect is better than the traditional algorithm.

5. Conclusions Improved simulated annealing genetic algorithm proposed in this paper, by the niche technologies for similar individuals' uneven distribution s of selection probability, to increase the diversity of population, to prevent effectively the algorithm from falling into local trap, to improve the performance of global convergence; to improve the evolution speed of the algorithm by the adaptive crossover and mutation operation; using good chromosomes template by the optimal preservation strategy, so that the individual in the iterative process effectively inherits the excellent characteristics of parent, to avoid the loss of the optimal solution, to ensure that the direction of the search process to accelerate to the optimal approach. The algorithm can be used to solve some non-convex, non-linear and discrete optimization problems. In this paper, it is applied to the optimal operation of reservoirs, the simulation test results show that the ISAGA has strong robustness, high search efficiency and good global astringency, used for reservoir optimization scheduling is feasible and effective. How to create a theoretical guidance to select the most reasonable parameters, in order to further improve the search efficiency, which will be the next stage of the research work.

Acknowledgements This study is supported by the National Natural Science Foundation of China (No. 51179047).

References [1] . Wu Xuewen, The study of considering ecological chaotic optimization dispatching of multi-objective Hydropower Station reservoir, China Water Power Press, 2011, pp. 1-2.

[2] . Yong Chuan, Hydroelectric system optimal control, Huazhong University Press, Wuhan, 1993.

[3] . Ye Bing, Hydraulic Calculation, China Water Power Press, Beijing, 1995.

[4] . Li Yu Xin, Hydropower economic operation, China Electric Power Press, Beijing, 1999.

[5] . Wang Dajiang, Cairui Ying etc., Swarm intelligence optimization algorithm, Computer Knowledge and Technology, 2010.

[6] . Ma Guang-Wen, Wang Li, Hydropower optimal scheduling FP genetic algorithm, Hydroelectric Engineering, 55, 4, 1996, pp. 21-28.

[7] . Chang Jian-Xia, Huang Qiang, Wang Yimin, Hydropower reservoir optimal scheduling several Method, Hydroelectric Energy Science, 18, 3, 2000, pp. 19-22.

[8] . Chang Jian-Xia, Huang Qiang, Wang Yimin, Based on improved genetic algorithm Optimization of hydropower station, Hydroelectric Engineering, 74, 3,2001, pp. 85-90.

[9] . Yang Yu, Xing Qingsong, etc., With elitist strategy niche genetic annealing algorithm and its application, China Mechanical Engineering, 23, 5,2012.

[10] . Genetic Algorithms Introduction .51 CTO Niche Technology blog.

[11] . Srinvivas M., Patnailk L. M., Adaptive probabilities of crossover and mutation in genetic algorithms, IEEE Transaction on System, Man and Cybernetics, 24, 4, 1994, pp. 656-667.

[12] . Ziwu Ren, Ye San, Adaptive genetic algorithm and applied research in system identification, System Simulation, 1,2006.

[13] . Wang Lei, Shen Ting-Zhi, etc., An improved adaptive genetic algorithm, Systems Engineering and Electronics, 24, 5,2002.

[14] . Chen Lihua, Mei Yadong, etc., Improved genetic algorithm and its reservoir optimal scheduling problem, Hydraulic Science, 39, 5, 2005.

[15] . Shang Zeyu, On objective management of Wanjiazhai Key Water Control Project Construction, Shanxi Water Resources, 1999.

1Chenming Li, 2Baohua Xu, 1Hongmin Gao, 1Xueying Yin, 1Lizhong Xu 1 College of Computer and Information Engineering, Hohai University, Nanjing 211100, P. R. China 2 Yangtze River Estuary Survey Bureau of Hydrology and Water Resource CWRC, Ministry of Water Resources, Shanghai 200136, P. R. China *Tel.: +86 25 58099112, fax: +86 25 58099136 *E-mail: [email protected], [email protected] Received: 1 August 2013 /Accepted: 25 October 2013 /Published: 30 November 2013 (c) 2013 International Frequency Sensor Association

[ Back To TMCnet.com's Homepage ]