An optimization scheduling method for water-photovoltaic complementary system based on multi-objective whale algorithm

Through the multi-objective whale algorithm optimization scheduling method, the problem of multi-objective optimization scheduling of the water-light complementary system is solved, the diversity and search efficiency of the scheduling plan are improved, and efficient scheduling of the reservoir is achieved.

CN118333345BActive Publication Date: 2024-09-10GUIZHOU QIANYUAN POWER CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410756196.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-10
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

It is difficult to efficiently perform multi-objective optimal dispatch of water-solar hybrid systems with existing technology, and multiple dispatch objectives such as power generation effects, flood control, shipping, ecology and water supply need to be considered.

Method used

An optimal scheduling method based on the multi-objective whale algorithm is used to generate and update the population and optimize the upstream water level of the reservoir through initializing the population, non-dominated sorting, crossover mutation operation and cultural algorithm to achieve the optimization of the multi-objective function.

Benefits of technology

It improves the diversity and search efficiency of reservoir scheduling plans, avoids the algorithm falling into local optimality, quickly determines the optimal solution set, and achieves efficient multi-objective optimal scheduling of water-light complementary systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333345B
    Figure CN118333345B
Patent Text Reader

Abstract

The present application belongs to the field of hydropower energy optimization, and specifically discloses a method for optimizing and scheduling a water-photovoltaic complementary system based on a multi-objective whale algorithm, comprising: using a constraint condition set as a solution space, generating an initial population by initializing a multi-objective function, the multi-objective function being used to characterize multiple optimization objectives of the water-photovoltaic complementary system, the constraint condition set being used to characterize multiple constraints of the water-photovoltaic complementary system, and individuals in the population being used to characterize the upstream water level of each reservoir; based on the multi-objective function, calculating the fitness of individuals in the initial population and obtaining a non-dominated sorting result of the initial population; based on the non-dominated sorting result of the initial population, screening out non-inferior solutions from the initial population and putting them into an archive set; based on the fitness of individuals in the population to be updated, continuously iterating and updating the population until an end condition is met, so as to quickly determine the optimal solution set as a scheduling reference plan for the water-photovoltaic complementary system, and realize efficient execution of multi-objective optimization scheduling for the water-photovoltaic complementary system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of hydropower energy optimization, and more specifically, to an optimization scheduling method for a water-photovoltaic complementary system based on a multi-objective whale algorithm. Background Art

[0002] As a reservoir scheduling method, reservoir optimization scheduling can utilize the reservoir's storage capacity while ensuring the safety of the project. In actual scheduling, in addition to the power generation effect target, the reservoir also needs to consider multiple scheduling targets such as flood control, shipping, ecology, and water supply. For the water-solar complementary system, how to efficiently perform multi-objective optimization scheduling is a technical problem that needs to be solved in this field. Summary of the invention

[0003] In view of the defects of the prior art, the purpose of this application is to achieve efficient execution of multi-objective optimization scheduling.

[0004] To achieve the above-mentioned purpose, in a first aspect, the present application provides an optimization scheduling method for a water-photovoltaic complementary system based on a multi-objective whale algorithm, comprising: taking a constraint set as a solution space, generating an initial population by initializing a multi-objective function, the multi-objective function is used to characterize multiple optimization objectives of the water-photovoltaic complementary system, the constraint set is used to characterize multiple constraints of the water-photovoltaic complementary system, and the individuals in the population are used to characterize the upstream water level of each reservoir; based on the multi-objective function, calculating the fitness of individuals in the initial population and obtaining a non-dominated sorting result of the initial population; based on the non-dominated sorting result of the initial population, screening out non-inferior solutions from the initial population and putting them into an archive set; based on the fitness of individuals in the population to be updated, continuously iterating and updating the population until the end condition is met, and the initial population in the first round of iteration is used as the population to be updated;

[0005] The iterative updating of the population includes: based on the fitness of the individuals in the population to be updated, updating the positions of the individuals in the population through the whale optimization algorithm to obtain the population after the individual positions are updated, and performing a crossover mutation operation on the population after the individual positions are updated to obtain a new generation population; merging the new generation population and the population after the individual positions are updated to obtain a merged population, and based on the non-dominated sorting result of the merged population, determining the next generation population, and the next generation population is used as the population to be updated in the next round of iteration; based on the non-dominated sorting result of the merged population, updating the archive set; judging whether the end condition is met, if so, outputting the archive set as the optimal solution set, otherwise continuing to iteratively update the population, and the individuals in the optimal solution set are used as the reservoir scheduling reference plan of the water-photovoltaic complementary system.

[0006] In a possible implementation, the non-dominated sorting result is used to represent multiple levels and individuals included in each level, and the multiple levels are determined by non-dominated sorting;

[0007] The step of determining the next generation population based on the non-dominated sorting result of the merged population comprises:

[0008] Clearing the next generation population of individuals;

[0009] Based on the order among the multiple levels, traverse layer by layer starting from the first level, and put the individuals in the traversed levels into the next generation population until the total number of individuals in the next generation population reaches the preset population size, and the individuals in the first level are solutions that are not dominated by the current solution.

[0010] In a possible implementation, placing individuals in the traversed level into the next generation population includes:

[0011] Determine the difference in the number of individuals between the preset population size and the total number of individuals in the next generation population;

[0012] Compare the difference in the number of individuals with the number of individuals in the traversed level;

[0013] When the difference in the number of individuals is less than the number of individuals in the traversed level, the traversed level is determined as the critical level, and the difference in the number of individuals is used as the selection number to randomly select individuals from the critical level and put them into the next generation population.

[0014] In a possible implementation, the step of taking the individual number difference as the selection number and randomly selecting individuals from the critical level and putting them into the next generation population includes:

[0015] Based on the population to be updated, determining the minimum target value of each dimension in the population to be updated, and constructing a standardized hyperplane based on the minimum target value of each dimension;

[0016] On the standardized hyperplane, construct a set of reference points with uniform spatial distribution;

[0017] Determine the individuals associated with each reference point by analyzing the distance between the individuals in the critical level and the reference lines corresponding to each reference point;

[0018] Sort the reference points in order from the smallest to the largest number of associated individuals to determine the reference point order;

[0019] Based on the reference point sorting, each reference point is traversed, and an individual is randomly selected from the individuals associated with the traversed reference point and placed into the next generation population, until the number of individuals randomly selected from the critical level reaches the individual number difference.

[0020] In a possible implementation, performing a crossover mutation operation on the population after the individual positions are updated to obtain a new generation of population includes:

[0021] Determine the cross-variance coefficient corresponding to each individual;

[0022] Based on the population after the individual positions are updated and the crossover variation coefficients corresponding to each individual, the new generation population is generated through the crossover variation strategy of the differential evolution algorithm DE.

[0023] In a possible implementation, updating the archive set based on the non-dominated sorting result of the merged population includes:

[0024] Based on the non-dominated sorting result of the merged population, non-inferior individuals are selected from the merged population and included in the archive set, and dominated individuals are deleted from the archive set.

[0025] In a possible implementation, after deleting the dominated individual from the archive set, the method further includes:

[0026] If the number of individuals in the archive set is greater than a specified value, the individuals in the archive set are deleted through a truncation operation to control the number of individuals in the archive set to be less than or equal to the specified value.

[0027] In a possible implementation, the multi-objective function includes: a first objective function and a second objective function, wherein the first objective function takes maximizing power generation as an optimization objective, and the second objective function takes maximizing the minimum output in a time period as an optimization objective.

[0028] In one possible implementation, the constraint set includes one or more of the following constraints: water balance constraint, water level constraint, downstream flow constraint, hydropower station output constraint, photovoltaic output power constraint and transmission channel constraint.

[0029] In a second aspect, the present application also provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0030] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art:

[0031] By combining the whale optimization algorithm with crossover mutation, a new generation of population can be generated (individuals in the population are used to characterize the upstream water level of each reservoir, and individuals can be used as a reservoir scheduling plan). The reservoir scheduling plan is optimized in a population evolutionary way, the population diversity is increased (that is, the diversity of reservoir scheduling plans is increased), the search range is expanded, and the algorithm is prevented from falling into local optimality. Then, the knowledge of the multi-objective optimization problem to be solved is extracted from the evolving population (the archive set is updated according to the results of the fast non-dominated sorting, and the archive set is used as situational knowledge). The evolution process of the population is controlled based on this knowledge (the archive set is output or the next round of iteration is executed), thereby improving the search efficiency of the optimal reservoir scheduling plan, being able to quickly determine the optimal solution set, and the individuals in the optimal solution set are used as the scheduling reference plan for the water-photovoltaic complementary system, so as to realize efficient execution of multi-objective optimization scheduling for the water-photovoltaic complementary system. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of a method for optimizing scheduling of a water-photovoltaic complementary system based on a multi-objective whale algorithm provided in an embodiment of the present application;

[0033] Figure 2 It is a schematic diagram of the process of iteratively updating the population provided in an embodiment of the present application;

[0034] Figure 3 It is a schematic diagram of a non-inferior solution set in a flood year provided in an embodiment of the present application;

[0035] Figure 4 Schematic diagram of a non-inferior solution set for a normal water year provided in an embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of a non-inferior solution set in a dry year provided in an embodiment of the present application;

[0037] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of objects. For example, a first objective function and a second objective function are used to distinguish different objective functions rather than to describe a specific order of objective functions.

[0040] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0041] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0042] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.

[0043] Figure 1 is a flow chart of a method for optimizing scheduling of a water-photovoltaic complementary system based on a multi-objective whale algorithm provided in an embodiment of the present application, such as Figure 1 As shown, the execution subject of the method may be an electronic device, such as a server, etc. The method includes the following steps S101 to S104.

[0044] Step S101, taking the constraint condition set as the solution space, generating an initial population by initializing a multi-objective function (the initial population represents a set of initial reservoir scheduling schemes), the multi-objective function is used to characterize multiple optimization objectives of the water-photovoltaic complementary system, the constraint condition set is used to characterize multiple constraints of the water-photovoltaic complementary system, and the individuals in the population (one individual represents a reservoir scheduling scheme) are used to characterize the upstream water level of each reservoir.

[0045] Specifically, the multi-objective function includes: a first objective function and a second objective function, the first objective function takes the maximization of power generation as the optimization goal, and the second objective function takes the maximization of the minimum output in the time period as the optimization goal. The constraint condition set includes one or more of the following constraints: water balance constraint condition, water level constraint condition, downstream flow constraint condition, hydropower station output constraint condition, photovoltaic output power constraint condition and transmission channel constraint condition.

[0046] In one possible implementation, a model can be established (establishing a multi-objective function and a set of constraints) to comprehensively consider the maximum and minimum output maximization of the total power generation of the water-solar complementary system as the target planning model.

[0047] The hydro-photovoltaic complementary system is an energy system that uses hydropower and photovoltaic energy to complement each other. In this system, hydropower and photovoltaic energy can be flexibly adjusted and complemented according to different seasons and weather conditions.

[0048] The first objective function takes maximizing power generation as the optimization goal, and its calculation formula is as follows:

[0049] ;

[0050] In the formula, represents the photovoltaic output of the i-th transmission channel during period t, in 10,000 kW; represents the hydropower output of the i-th transmission channel during period t, in 10,000 kW; is the photovoltaic energy assessment coefficient of the i-th transmission channel (for example, the photovoltaic energy assessment coefficient can be determined by statistically analyzing the historical photovoltaic electricity prices and determining the average photovoltaic electricity price, in which case the unit can be RMB), is the hydropower energy assessment coefficient of the ith transmission channel (for example, the average hydropower price can be determined by statistically analyzing historical hydropower electricity prices as the hydropower energy assessment coefficient, in which case the unit can be yuan).

[0051] The second objective function takes the maximization of the minimum output in the time period as the optimization goal, and its calculation formula is as follows:

[0052] ;

[0053] In the formula, is the output value of the complementary system in period t, in 10,000 kW.

[0054] The calculation formula of water balance constraint is as follows:

[0055] ;

[0056] In the formula, is the final storage capacity of the reservoir in period t; is the initial storage capacity of the reservoir in period t; is the average inflow into the reservoir during period t, is the average outflow of the reservoir in period t; is the time period length of period t.

[0057] The calculation formula of water level constraint is as follows:

[0058] ;

[0059] In the formula, is the upstream water level of the i-th hydropower station in the t-th period, is the maximum upstream water level constraint of the hydropower station in the corresponding period, It is the constraint of the minimum upstream water level of the hydropower station in the corresponding period.

[0060] The calculation formula of the downstream flow constraint condition is as follows:

[0061] ;

[0062] In the formula, is the total discharge flow of the i-th hydropower station in the t-th period, that is, the power generation flow and abandoned water flow sum; and They respectively represent the upper and lower limits of the total discharge flow of the corresponding hydropower station in the corresponding period.

[0063] The calculation formula of the hydropower station output constraint condition is as follows:

[0064] ;

[0065] In the formula, is the power output of the i-th hydropower station in the t-th period. Each hydropower station has a corresponding transmission channel. is the maximum output constraint of the i-th hydropower station in period t, is the minimum output constraint of the i-th hydropower station in period t.

[0066] The calculation formula of photovoltaic output power constraint is as follows:

[0067] ;

[0068] In the formula, is the output power of the photovoltaic power plant in the system in the tth period, is the minimum power that the photovoltaic power generation site in the system can output, It is the maximum power that the photovoltaic power generation site in the system can output.

[0069] The calculation formula of the outbound channel constraint condition is as follows:

[0070] ;

[0071] In the formula, is the capacity limit of the i-th outbound channel at time t.

[0072] Step S102, based on the multi-objective function, calculate the fitness of individuals in the initial population and obtain the non-dominated sorting result of the initial population (the fast non-dominated sorting algorithm in NSGA-Ⅱ can be used to obtain the non-dominated sorting result).

[0073] Specifically, the individual fitness in the initial population, that is, the objective function value, is calculated. When calculating the individual fitness, the degree of individual violation of the constraint is calculated according to the constraint conditions, and a fast non-dominated sorting is performed. For the dominance relationship, the feasible solution dominates the infeasible solution. When they are both infeasible solutions, the solution with a smaller degree of violation of the constraint dominates the solution with a larger degree of violation of the constraint.

[0074] It can be understood that the individual fitness can characterize the fitness between the individual and multiple optimization objectives of the water-photovoltaic complementary system, and can be used to evaluate the quality of the individual as a reference scheme for reservoir scheduling of the water-photovoltaic complementary system.

[0075] Step S103: Based on the non-dominated sorting result of the initial population, non-inferior solutions are screened out from the initial population and put into an archive set.

[0076] Step S104, based on the fitness of individuals in the population to be updated, continuously iterate and update the population until the end condition is met, and the initial population in the first round of iteration is used as the population to be updated.

[0077] Specifically, Figure 2 is a schematic diagram of the process of iteratively updating the population provided in the embodiment of the present application, such as Figure 2 As shown, iterative updating of the population includes the following steps S201 to S204.

[0078] S201, based on the fitness of individuals in the population to be updated, the positions of individuals in the population are updated through the whale optimization algorithm (that is, the upstream water level represented by the individuals in the updated population), the population after the individual positions are updated is obtained, and a crossover mutation operation is performed on the population after the individual positions are updated to obtain a new generation of population (the individuals in the new generation of population represent a new reservoir scheduling plan).

[0079] Exemplarily, the specific process of "performing a crossover mutation operation on the population after updating the individual positions to obtain a new generation of population" is illustrated by an example: determining the crossover variation coefficient corresponding to each individual; based on the population after updating the individual positions and the crossover variation coefficient corresponding to each individual, a new generation of population is generated through the crossover mutation strategy of the differential evolution algorithm DE.

[0080] It is understandable that by introducing the cultural algorithm and combining it with the whale algorithm, the improved whale algorithm has a faster convergence speed and better solution set distribution. The main idea of ​​the cultural algorithm is to extract the knowledge of the problem to be solved from the evolving population and feed back this knowledge to guide the evolution of the population, thereby improving the search efficiency of the algorithm. The improved whale algorithm using the crossover mutation strategy of the differential evolution algorithm (DE) is used as the core, that is, after the original whale algorithm's shrinking encirclement, bubble net attack and random search strategies are used to update the individual position, the mutation strategy of the adaptive differential evolution algorithm is used to achieve individual mutation, and then crossover is performed, which can increase the population diversity, expand the search range, and avoid the algorithm from falling into the local optimum. The cultural algorithm has two important characteristics, namely population space and belief space.

[0081] The population space and belief space are explained below.

[0082] (1) Population space;

[0083] The population space undertakes the important task of population renewal. In the improved whale algorithm, the multi-objective whale algorithm is used as an update mechanism to generate a new generation of population.

[0084] (2) Faith space;

[0085] Two knowledge structures are defined in the belief space, namely situational knowledge and normative knowledge.

[0086] The external population that stores the optimal solution set is called the archive set, which is the contextual knowledge of the improved whale algorithm. After each round of population space update, all non-inferior solutions in the population space are placed in the archive set, and the archive set is updated again to always keep only non-inferior solutions in the archive set. To prevent local optimality, the upper limit of the archive set is preset. When the number of individuals in the archive set exceeds the upper limit, the archive set is controlled by truncation operation. The principle of truncation operation is to sort the solution set and calculate the distance between each individual, eliminating the solution set with a close distance.

[0087] The improved whale algorithm adopts the crossover mutation strategy of the differential evolution algorithm (DE), so the canonical knowledge consists of N groups of crossover mutation coefficients of the differential evolution algorithm (scaling factor F and crossover probability CR). When the algorithm is initialized, all parameters F and CR are randomly generated within a reasonable range, and each group of parameters and Corresponding to an individual i. Before the crossover mutation operation is performed on each individual, the new parameters will be generated as follows:

[0088] ;

[0089] ;

[0090] In the formula, are four independent random numbers between 0 and 1; and are the minimum and maximum values ​​of F; and are the minimum and maximum values ​​of CR; and is a threshold between 0 and 1.

[0091] It is understandable that F stands for scaling factor, which controls the amplitude of the mutation operation. In the differential evolution algorithm, the generation of new individuals is obtained by mutating individuals in the current population. The value range of F is usually between 0 and 2. A larger F value will cause a larger amplitude of mutation, which may explore the search space faster.

[0092] CR stands for crossover rate, which controls the probability of crossover operation. In differential evolution algorithm, crossover operation is used to generate offspring of new individuals. CR value range is usually between 0 and 1. Larger CR value will cause more individuals to perform crossover operation, which may better utilize the information in the population.

[0093] S202, merging the new generation population and the population after updating individual positions to obtain a merged population, and determining the next generation population based on the non-dominated sorting result of the merged population, and the next generation population is used as the population to be updated in the next round of iteration.

[0094] Specifically, the non-dominated sorting result is used to represent multiple levels and the individuals included in each level, and the multiple levels are determined by non-dominated sorting. Accordingly, "determining the next generation population based on the non-dominated sorting result of the merged population" specifically includes: clearing the individuals in the next generation population; based on the sorting between multiple levels, traversing layer by layer from the first level, and putting the individuals in the traversed levels into the next generation population until the total number of individuals in the next generation population reaches the preset population size, and the individuals in the first level are solutions that are not dominated by the current solution.

[0095] Optionally, the above-mentioned "putting individuals in the traversed level into the next generation population" specifically includes: determining the difference in the number of individuals between the preset population size and the total number of individuals in the next generation population; comparing the difference in the number of individuals with the number of individuals in the traversed level; when the difference in the number of individuals is less than the number of individuals in the traversed level, determining the traversed level as the critical level, and using the difference in the number of individuals as the selection number, randomly selecting individuals from the critical level and putting them into the next generation population.

[0096] It is understandable that the population size (that is, the group size) is limited. After being placed in several layers, if there is a layer of individuals in which only some individuals can be placed in the next generation population, then this layer is called the critical layer. If the sum of the numbers in the first several layers is exactly equal to the number of individuals in the next generation population, then there is no critical layer.

[0097] In a possible implementation, "using the difference in the number of individuals as the selection number, randomly selecting individuals from the critical level and placing them into the next generation population" specifically includes: determining the minimum target value of each dimension based on the population to be updated, and constructing a standardized hyperplane based on the minimum target value of each dimension (for example, constructing an ideal point of the population based on the minimum target value of each dimension, taking the ideal point as the target origin of the hyperplane, translating the current population (the population to be updated) based on the ideal point, and determining the extreme value points of each target dimension based on the translated population; constructing a standardized hyperplane based on the extreme value points of each target dimension); constructing a set of reference points with uniform spatial distribution on the standardized hyperplane; determining the individuals associated with each reference point by analyzing the distance between the individuals in the critical level and the reference lines corresponding to each reference point; sorting the reference points in order from small to large in number of associated individuals to determine the reference point sorting; traversing each reference point based on the reference point sorting, and randomly selecting an individual from the individuals associated with the traversed reference point and placing it into the next generation population, until the number of individuals randomly selected from the critical level reaches the difference in the number of individuals.

[0098] It can be understood that in the above implementation, by introducing the elite selection strategy based on reference points in the NSGA-III algorithm (supporting multi-objective mechanism) and combining it with the whale algorithm, the improved whale algorithm is suitable for complex multi-objective optimization scheduling. The elite selection strategy based on reference points mainly includes three parts: population adaptive standardization, reference point setting, association and individual retention operations.

[0099] It is worth noting that, compared with the traditional NSGA-III algorithm, the solution set of the improved whale algorithm proposed in the embodiment of the present application has a larger coverage range in the target space. Therefore, the improved whale algorithm can better obtain a non-dominated solution set compared with the NSGA-III algorithm, and is suitable for multi-objective optimization scheduling.

[0100] Exemplarily, population adaptive standardization, reference point setting, association and individual retention operations are described below.

[0101] (1) Population adaptive standardization;

[0102] Select current population The minimum target value of each dimension constitutes the ideal point of the population . Take the ideal point as the target origin of the hyperplane, and transform the current population according to the ideal point Translation, and then the maximum value of each target dimension coordinate Take the minimum value of the scalar function, and finally construct an M-dimensional linear hyperplane based on each extreme point. The relevant calculation formula is as follows:

[0103] ;

[0104] ;

[0105] ;

[0106] In the formula, represents the fitness value of target i, represents the fitness value of target i after translation, The n in represents normalization. is the unit direction vector of the coordinate axis, Represents the intercept of each dimension axis.

[0107] (2) Reference point setting;

[0108] After completing the construction of the standardized hyperplane, it is necessary to set reference points on the hyperplane. The boundary cross construction weight method in the NSGA-Ⅲ algorithm is used to construct a set of reference points with uniform spatial distribution. On the standardized hyperplane, the reference points are generated according to the following formula. If the target dimension is M, and each dimension target is evenly divided into p parts, then the number of reference points H generated is:

[0109] .

[0110] (3) association and individual retention operations;

[0111] After completing the reference point setting, an association operation is required, that is, to establish connections between individuals in the population (which can be a population composed of individuals in the critical layer) and the corresponding reference points. First, the line connecting the origin and each reference point is used as the reference line of each reference point in the target space; then, the distance between the individuals in the population (which can be a population composed of individuals in the critical layer) and the reference line is calculated, and the individuals closest to the reference line are connected to the corresponding reference points (the target space has multiple dimensions, and there may be individuals closest to the reference line on different two-dimensional planes. Therefore, through the association method of "connecting the individuals closest to the reference line with the corresponding reference points", one reference point can be associated with multiple individuals), that is, the individuals in the population are divided into different solution spaces according to the reference points, and the individuals associated with one reference point constitute a solution space. After the association operation, the individual retention operation is performed, and the algorithm records the number of individuals associated with reference point j. Then select the reference point with the least number of associated individuals. If there are multiple such reference points, randomly select one reference point. ,if , it means that there is no individual in the group associated with this reference point, and this reference point will no longer be considered in the remaining operations; if , it means that there are one or more individuals associated with the reference point, then one individual is randomly retained from these associated individuals to enter the next generation, and the random retention operation is performed until the number of individuals entering the next generation is equal to the size of the population. By introducing reference points and dividing the solution space, it can be ensured that the selected individuals can cover all areas of the target space while maintaining the diversity of the population, and can better handle complex multi-objective optimization problems, so that the improved whale algorithm can be applied to complex multi-objective optimization scheduling.

[0112] S203, updating the archive set based on the non-dominated sorting result of the merged population.

[0113] Specifically, based on the non-dominated sorting result of the merged population, non-inferior individuals are selected from the merged population to be included in the archive set, and dominated individuals are deleted from the archive set.

[0114] Optionally, after deleting the dominated individuals from the archive set, the size between the number of individuals in the archive set and the specified value can be determined. If the number of individuals in the archive set is greater than the specified value, the individuals in the archive set are deleted through a truncation operation to control the number of individuals in the archive set to be less than or equal to the specified value. The truncation operation deletes redundant individuals in the archive set, and the truncation operation can maintain the diversity of the archive set.

[0115] S204, determine whether the end condition is met, if so, output the archive set (i.e., situational knowledge) as the Pareto optimal solution set, otherwise continue to iteratively update the population, and the individuals in the optimal solution set are used as the reservoir scheduling reference scheme for the water-photovoltaic complementary system. Continuing to iteratively update the population can be returning to step S201, and continuing to execute steps S201 to S204.

[0116] Meeting the termination condition may be reaching a maximum number of iterations, convergence of fitness values, or reaching a preset target value, etc. The following is an exemplary description of "meeting the termination condition".

[0117] (1) Reaching the maximum number of iterations: Set a maximum number of iterations and stop the algorithm when it reaches this number to avoid an infinite loop.

[0118] (2) Fitness value convergence: Monitor the fitness value of the optimal solution in the population. When the fitness value no longer changes significantly within a certain range, the algorithm can be considered to have converged and the iteration can be stopped.

[0119] (3) Reaching the preset target value: Set a predefined target value. When the fitness value of the optimal solution reaches or approaches the target value, the algorithm can be stopped.

[0120] It is understandable that evolutionary algorithms based on swarm intelligence are widely used in multi-objective optimization scheduling. Compared with linear programming, nonlinear programming, dynamic programming and other planning optimization, evolutionary algorithms can overcome the "curse of dimensionality" problem to a certain extent because they can continuously optimize the decision space, and their inherent parallelism is particularly suitable for multi-objective optimization scheduling. However, traditional evolutionary algorithms often have shortcomings such as slow convergence, weak robustness, and premature convergence. When applied to the multi-objective scheduling problem of water-photovoltaic complementary systems, it is still necessary to improve their evolutionary strategies to improve their optimization performance.

[0121] The embodiment of the present application introduces a cultural algorithm and combines it with the whale algorithm, so that the improved whale algorithm has a faster convergence speed and better solution set distribution. By introducing the reference point-based elite selection strategy (supporting multi-objective mechanism) in the NSGA-III algorithm and combining it with the whale algorithm, the improved whale algorithm is suitable for complex multi-objective optimization scheduling. In the case of maximizing power generation and maximizing the minimum output during the period, the improved whale algorithm is used to efficiently search for reservoir scheduling plans, and a scheduling plan that can better coordinate the relationship between the power generation effect and the capacity effect of the water-photovoltaic complementary system is obtained.

[0122] The method for optimizing and scheduling a water-photovoltaic complementary system based on a multi-objective whale algorithm provided in an embodiment of the present application can generate a new generation of populations (individuals in the population are used to characterize the upstream water level of each reservoir, and the individuals can be used as a reservoir scheduling plan) by combining the whale optimization algorithm with crossover mutation, optimize the reservoir scheduling plan in a population evolution manner, increase population diversity (that is, increase the diversity of reservoir scheduling plans), expand the search range, and avoid the algorithm from falling into local optimality, and then extract knowledge of the multi-objective optimization problem to be solved from the evolved population (update the archive set according to the result of fast non-dominated sorting, and the archive set is used as situational knowledge), and control the evolution process of the population based on this knowledge (output the archive set or execute the next round of iteration), thereby improving the search efficiency of the optimal reservoir scheduling plan, being able to quickly determine the optimal solution set, and the individuals in the optimal solution set are used as a scheduling reference plan for the water-photovoltaic complementary system, so as to achieve efficient execution of multi-objective optimization scheduling for the water-photovoltaic complementary system.

[0123] The following is an illustrative description of the optimization scheduling method for the water-photovoltaic complementary system based on the multi-objective whale algorithm provided in this application in conjunction with the Beipanjiang water-photovoltaic complementary system.

[0124] (1) The scheduling cycle and calculation cycle are divided as follows:

[0125] The measured monthly runoff process, photovoltaic data and electricity price of the Beipanjiang cascade reservoirs in 2020 (flood year), 2022 (normal water year) and 2016 (dry year) were selected for the scheduling calculation of the water-photovoltaic complementary system. The scheduling cycle is annual, the scheduling step is monthly, the reservoir water level is the decision variable, and the photovoltaic power plant adopts the measured data in 2022.

[0126] (2) The parameters of the improved whale algorithm are set as follows:

[0127] The relevant parameters of the improved whale algorithm are set as follows: the population size is selected as 13, the archive set size is selected as 30 (correspondingly, the optimal solution set includes 30 reservoir operation reference schemes), the maximum number of iterations is 5000, the crossover probability CR is 0.75, and the scaling factor F is 0.05. The Pareto optimal solution is obtained through iterative calculation of the improved whale algorithm.

[0128] Table 1 Results of multi-objective optimization scheduling of the hydro-photovoltaic complementary system in the Beipanjiang River in a flood year

[0129]

[0130] Table 2 Results of multi-objective optimization scheduling of the hydro-photovoltaic hybrid system in Beipanjiang during normal water years

[0131]

[0132] Table 3 Multi-objective optimization scheduling results of the hydro-photovoltaic complementary system in the low-water year of Beipanjiang River

[0133]

[0134] The embodiment of the present application optimizes the scheduling of the Beipanjiang hydro-photovoltaic complementary system with the goal of power generation effect and output stability. The results of the multi-objective optimization scheduling of the Beipanjiang hydro-photovoltaic complementary system are shown in Tables 1 to 3. Figure 3 is a schematic diagram of a non-inferior solution set in a flood year provided in an embodiment of the present application, Figure 4 is a schematic diagram of a non-inferior solution set for a normal water year provided in an embodiment of the present application, Figure 5 is a schematic diagram of a non-inferior solution set in a dry year provided in an embodiment of the present application. Figure 3-5 On the one hand, the optimization scheduling result table demonstrates the effectiveness of the improved whale algorithm in complex multi-objective optimization scheduling. On the other hand, it can be seen from Tables 1 to 3 that with the increase of power generation effect, the minimum output tends to decrease as a whole, which shows that there is a negative correlation between the power generation effect and the minimum output in this model.

[0135] (3) Result analysis;

[0136] In order to further analyze the differences between various scheduling schemes, the embodiments of the present application respectively select two extreme schemes for three typical years of bumper harvests, normal harvests and droughts for comparison, among which Scheme 1 is the minimum output and maximum scheme, and Scheme 30 is the maximum power generation effect scheme. When the power generation effect is taken as the main goal, Scheme 30 can be selected as the scheduling scheme, and when the output stability is taken as the main goal, Scheme 1 can be selected as the scheduling scheme. Among them, the power generation effect of Scheme 30 in the flood year increased by 41.27 million yuan compared with Scheme 1, an increase of 1.32%. The minimum output of Scheme 1 increased by 167,623 kW compared with Scheme 30, an increase of 27.22%; the power generation effect in the normal water year increased by 22.72 million yuan compared with Scheme 1, an increase of 0.86%. The minimum output of Scheme 1 increased by 191,383 kW compared with Scheme 30, an increase of 30.48%; the power generation effect in the dry year increased by 46.83 million yuan compared with Scheme 1, an increase of 1.86%. The minimum output of Scheme 1 increased by 159,058 kW compared with Scheme 30, an increase of 26.43%.

[0137] Therefore, the water-photovoltaic complementary system optimization scheduling method based on the multi-objective whale algorithm proposed in the embodiment of the present application can efficiently search for reservoir scheduling solutions, and has a faster convergence speed and solution set distribution than traditional algorithms.

[0138] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device, Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device may include: a processor (Processor) 810, a communication interface (Communications Interface) 820, a memory (Memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the method in the above embodiment.

[0139] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0140] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0141] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0142] It is understandable that the processor in the embodiment of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0143] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0144] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0145] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0146] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for optimizing the scheduling of a water-photovoltaic complementary system based on a multi-objective whale algorithm, characterized in that: include: Taking the constraint condition set as the solution space, the initial population is generated by initializing the multi-objective function. The multi-objective function is used to characterize multiple optimization objectives of the water-photovoltaic complementary system. The constraint condition set is used to characterize multiple constraints of the water-photovoltaic complementary system. The individuals in the population are used to characterize the upstream water level of each reservoir. Based on the multi-objective function, calculating the fitness of individuals in the initial population and obtaining a non-dominated sorting result of the initial population; Based on the non-dominated sorting result of the initial population, non-inferior solutions are screened out from the initial population and put into an archive set; Based on the fitness of individuals in the population to be updated, the population is continuously updated iteratively until the end condition is met, and the initial population in the first round of iteration is used as the population to be updated; The iterative updating population includes: Based on the fitness of individuals in the population to be updated, the positions of individuals in the population are updated by using a whale optimization algorithm to obtain a population after the positions of the individuals are updated, and a crossover mutation operation is performed on the population after the positions of the individuals are updated to obtain a new generation of population; Merging the new generation population and the population after the individual positions are updated to obtain a merged population, and determining the next generation population based on the non-dominated sorting result of the merged population, and the next generation population is used as the population to be updated in the next round of iteration; Based on the non-dominated sorting result of the merged population, updating the archive set; Determine whether the end condition is met, if so, output the archive set as the optimal solution set, otherwise continue to iterate and update the population, and the individuals in the optimal solution set serve as the reservoir scheduling reference plan of the water-photovoltaic complementary system; The performing a crossover mutation operation on the population after the individual positions are updated to obtain a new generation of population includes: Determine the cross-variance coefficient corresponding to each individual; Based on the population after the individual positions are updated and the crossover variation coefficients corresponding to each individual, the new generation population is generated through the crossover variation strategy of the differential evolution algorithm DE; The crossover coefficient of variation includes a scaling factor F and a crossover probability CR; Before performing the crossover mutation operation on each individual, the scaling factor F and the crossover probability CR are also updated by the following formula: ; ; in, are four independent random numbers between 0 and 1; and are the minimum and maximum values ​​of F; and are the minimum and maximum values ​​of CR; and is a threshold between 0 and 1; and Subscript Indicates the number of the individual; The updating of the archive set based on the non-dominated sorting result of the merged population includes: Based on the non-dominated sorting result of the merged population, selecting non-inferior individuals from the merged population and entering them into the archive set, and deleting dominated individuals from the archive set; After deleting the dominated individual from the archive set, further comprising: If the number of individuals in the archive set is greater than the specified value, the individuals in the archive set are deleted by a truncation operation to control the number of individuals in the archive set to be less than or equal to the specified value; The multi-objective function includes: a first objective function and a second objective function, wherein the first objective function takes maximizing power generation as an optimization objective, and the second objective function takes maximizing the minimum output during a time period as an optimization objective; The constraint condition set includes: water balance constraint condition, water level constraint condition, downstream flow constraint condition, hydropower station output constraint condition, photovoltaic output power constraint condition and transmission channel constraint condition; The termination condition is any one of the following conditions: The maximum number of iterations has been reached; Or, the fitness values ​​of the individuals in the archive set converge.

2. According to claim 1, the optimization scheduling method of the water-photovoltaic complementary system based on the multi-objective whale algorithm is characterized in that: The non-dominated sorting result is used to represent multiple levels and individuals included in each level, and the multiple levels are determined by non-dominated sorting; The step of determining the next generation population based on the non-dominated sorting result of the merged population comprises: Clearing the next generation population of individuals; Based on the order among the multiple levels, traverse layer by layer starting from the first level, and put the individuals in the traversed levels into the next generation population until the total number of individuals in the next generation population reaches the preset population size, and the individuals in the first level are solutions that are not dominated by the current solution.

3. The method for optimizing and scheduling a water-photovoltaic complementary system based on a multi-objective whale algorithm according to claim 2 is characterized in that: The step of placing the individuals in the traversed levels into the next generation population comprises: Determine the difference in the number of individuals between the preset population size and the total number of individuals in the next generation population; Compare the difference in the number of individuals with the number of individuals in the traversed level; When the difference in the number of individuals is less than the number of individuals in the traversed level, the traversed level is determined as the critical level, and the difference in the number of individuals is used as the selection number to randomly select individuals from the critical level and put them into the next generation population.

4. The method for optimizing and scheduling a water-photovoltaic complementary system based on a multi-objective whale algorithm according to claim 3 is characterized in that: The step of taking the individual number difference as the selection number and randomly selecting individuals from the critical level and putting them into the next generation population comprises: Based on the population to be updated, determining the minimum target value of each dimension in the population to be updated, and constructing a standardized hyperplane based on the minimum target value of each dimension; On the standardized hyperplane, construct a set of reference points with uniform spatial distribution; Determine the individuals associated with each reference point by analyzing the distance between the individuals in the critical level and the reference lines corresponding to each reference point; Sort the reference points in order from the smallest to the largest number of associated individuals to determine the reference point order; Based on the reference point sorting, each reference point is traversed, and an individual is randomly selected from the individuals associated with the traversed reference point and placed into the next generation population, until the number of individuals randomly selected from the critical level reaches the individual number difference.

5. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 4.