Power system dispatching scheme determination method and device, processor and storage medium

By improving the selection and crossover operators in the genetic algorithm, the problem that the genetic algorithm easily falls into the local optimal solution in power system dispatching is solved, a more efficient global search is achieved, and the reliability and economy of the power system are improved.

CN118674019APending Publication Date: 2024-09-20CHINA ENERGY LONGYUAN ENVIRONMENTAL PROTECTION CO LTD

Patent Information

Application Number
CN202410827004.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Genetic algorithms are prone to fall into local optimal solutions when determining the optimal dispatch plan of the power system, making it difficult to obtain the global optimal solution and affecting the reliability and economy of the power system.

Method used

By improving the selection operator and crossover operator, and introducing weighted coefficients and similarity thresholds, the diversity in the population can be balanced to avoid early convergence to the local optimal solution and ensure that the genetic algorithm can search for the global optimal solution more effectively.

Benefits of technology

It improves the search efficiency and accuracy of genetic algorithms in power system dispatching, helps find the optimal dispatching plan for the power system, improves renewable energy utilization, reduces carbon emissions and reduces energy costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674019A
    Figure CN118674019A
Patent Text Reader

Abstract

The invention provides a power system scheduling scheme determination method and device, a processor and a storage medium, and relates to the technical field of power system scheduling, and the method comprises the steps: determining an initial population, and taking the initial population as a current population; wherein each individual in the initial population represents a scheduling scheme of the power system; determining a fitness value corresponding to each individual in the current population; if at least one individual of which the corresponding fitness value meets a preset index condition exists in the current population, determining an optimal scheduling scheme of the power system according to the individual of which the corresponding fitness value meets the preset index condition, and ending the process; if the individuals of which the corresponding fitness values meet the preset index condition do not exist in the current population, determining a plurality of first individuals based on an improved selection operator according to the current population; and taking each first individual as an individual included in the first population, taking the first population as a current population, and determining an optimal scheduling scheme of the power system based on the current population.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power system dispatching, and in particular to a method for determining a power system dispatching scheme, a device for determining a power system dispatching scheme, a processor, and a storage medium. Background Art

[0002] Energy systems can promote the sustainable development of future energy by combining measures such as minimizing carbon emissions, integrating renewable energy, improving energy utilization and intelligent power systems. Among them, determining the power system dispatch plan is one of the necessary steps to build a sustainable energy system. It can promote the large-scale application of clean energy (such as wind energy and solar energy) to achieve the goal of sustainable development.

[0003] The power system includes generators, transformers, transmission lines, loads and other equipment. In determining the power system dispatch plan, genetic algorithms can be used to search for the dispatch plan and obtain the optimal dispatch plan, thereby achieving the goals of reducing system operating costs and improving system safety performance.

[0004] The key to determining the dispatching scheme of the power system is to find the optimal dispatching scheme, so as to ensure the economical, efficient, clean, sustainable, safe and stable operation of the power system. However, due to the weak local search ability of the genetic algorithm, it is easy to fall into the local optimum in the optimization process, and ultimately fail to obtain the global optimal solution, that is, the optimal dispatching scheme cannot be obtained. Therefore, it is necessary to improve the method of determining the dispatching scheme of the power system based on the genetic algorithm so that it can be well adapted to the operation and dispatching problems of the power system. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method for determining a power system scheduling plan, a power system scheduling plan determining device, a processor and a storage medium, so as to solve the problem that when using a genetic algorithm to determine the optimal scheduling plan of the power system, the genetic algorithm is prone to fall into a local optimal solution during the optimization process, resulting in difficulty in obtaining the optimal scheduling plan of the power system, affecting the reliability and economy of the power system.

[0006] In order to achieve the above-mentioned object, the first aspect of the present application provides a method for determining a power system dispatching scheme, the method comprising: Determine an initial population, and use the initial population as the current population; wherein the initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system; Determine the fitness value corresponding to each individual in the current population; If there is at least one individual in the current population whose corresponding fitness value meets the preset index condition, then the optimal dispatching scheme of the power system is determined according to the individual whose corresponding fitness value meets the preset index condition, and the process ends; If there is no individual in the current population whose corresponding fitness value meets the preset indicator conditions, multiple first individuals are determined according to the current population based on the improved selection operator; each first individual is taken as an individual included in the first population, the first population is taken as the current population, and the optimal scheduling plan of the power system is determined based on the current population.

[0007] In the embodiment of the present application, the calculation formula of the improved selection operator is:

[0008] in, Indicates the current population The probability of an individual being selected is , Respectively represent the , Individuals, , Respectively represent the , The fitness value corresponding to each individual is represents the total number of individuals in the current population, represents the weighting coefficient, , Respectively represent the current population and , The number of individuals that are similar to each other.

[0009] In the embodiment of the present application, the current population is The calculation formula for the number of individuals that are similar to each other is:

[0010] in, Indicates the current population Individual, function To determine and Are they similar? Function The expression is:

[0011] in, Indicates the current population The fitness value corresponding to each individual is Represents the similarity threshold. The calculation formula of the similarity threshold is:

[0012] in, , They respectively represent the maximum and minimum values ​​of the fitness values ​​corresponding to each individual in the current population.

[0013] In an embodiment of the present application, determining the optimal dispatching scheme of the power system based on the current population includes: Each individual in the current population is taken as a parent individual, and multiple child individuals corresponding to the current population are generated based on the improved crossover operator according to the parent individuals in the current population; Determine the fitness value of each offspring individual corresponding to the current population; If there is at least one offspring individual whose corresponding fitness value satisfies the preset index condition among the offspring individuals corresponding to the current population, the optimal dispatching scheme of the power system is determined according to the offspring individuals whose corresponding fitness values ​​satisfy the preset index conditions, and the process ends; If there is no offspring individual whose corresponding fitness value meets the preset index condition among the offspring individuals corresponding to the current population, a mutation operation is performed according to at least some of the offspring individuals corresponding to the current population to generate multiple second individuals, and each second individual is taken as an individual included in the second population to determine the fitness value corresponding to each individual in the second population; if there is at least one individual whose corresponding fitness value meets the preset index condition in the second population, the optimal scheduling plan of the power system is determined according to the individuals whose corresponding fitness values ​​meet the preset index condition, and the process is terminated; if there is no individual whose corresponding fitness value meets the preset index condition in the second population, it is determined whether to terminate the process according to the preset termination condition. If the preset termination condition is not met, the second population is taken as the current population, and the process returns to the step of determining the fitness value corresponding to each individual in the current population.

[0014] In the embodiment of the present application, the calculation formula of the improved crossover operator is:

[0015] in, represents the offspring individual, represents a random variable, represents the target individual in the current population, Indicates the parent individual with the largest corresponding fitness value in the current population.

[0016] In an embodiment of the present application, the preset termination condition includes that the number of repetitions of the step of determining the fitness value corresponding to each individual in the current population is greater than or equal to a preset cycle number threshold, and / or that the change of the fitness value corresponding to each individual in the second population is in a stable state; The second population also includes at least some of the parent individuals that gave rise to the second individual.

[0017] A second aspect of the present application provides a power system dispatching method, the method comprising: Determine the optimal dispatching plan for the power system by using the method for determining the dispatching plan for the power system as described in the first aspect; The power system is dispatched and operated according to the optimal dispatch plan of the power system.

[0018] A third aspect of the present application provides a device for determining a power system dispatching plan, the device comprising: An initial population determination module is used to determine an initial population and use the initial population as a current population; wherein the initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system; A fitness value determination module is used to determine the fitness value corresponding to each individual in the current population; A first scheduling scheme determination module is used to determine the optimal scheduling scheme of the power system according to the individuals whose corresponding fitness values ​​meet the preset index conditions when there is at least one individual whose corresponding fitness value meets the preset index conditions in the current population, and end the process; The second scheduling scheme determination module is used to determine multiple first individuals based on the current population and based on the improved selection operator when there is no individual whose corresponding fitness value meets the preset indicator conditions in the current population; each first individual is regarded as an individual included in the first population, the first population is regarded as the current population, and the optimal scheduling scheme of the power system is determined based on the current population.

[0019] A fourth aspect of the present application provides a processor configured to execute the above-mentioned method for determining a power system scheduling plan.

[0020] A fifth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned method for determining a power system dispatching plan.

[0021] The method, device, processor and storage medium for determining the dispatching scheme of the power system provided by the present application improve the selection operator in the genetic algorithm to more balancedly retain the diversity in the population and avoid the genetic algorithm from converging to the local optimal solution at an early stage, thereby solving the problem that when the genetic algorithm is used to determine the optimal dispatching scheme of the power system, the genetic algorithm is prone to fall into the local optimal solution during the optimization process, making it difficult to obtain the optimal dispatching scheme of the power system, affecting the reliability and economy of the power system. Dispatching operations based on the optimal dispatching scheme of the power system determined by the present application are helpful to improve the utilization rate of renewable energy, reduce carbon emissions, reduce energy costs and improve the reliability of the power system.

[0022] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings: Figure 1 A schematic diagram of a first process flow of a method for determining a power system dispatching scheme according to an embodiment of the present application is shown; Figure 2 A second flow chart of the method for determining a power system dispatching scheme according to an embodiment of the present application is schematically shown; Figure 3 A block diagram schematically shows a structure of a device for determining a power system dispatching scheme according to an embodiment of the present application; Figure 4 The internal structure diagram of the computer device according to the embodiment of the present application is schematically shown.

[0024] Description of Reference Numerals A01-processor; A02-network interface; A03-internal memory; A04-display screen; A05-input device; A06-non-volatile storage medium; B01-operating system; B02-computer program. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0026] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0027] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0028] In view of the problem that when genetic algorithms are used to determine the optimal scheduling plan of an electric power system in the related art, the genetic algorithms are prone to fall into local optimal solutions during the optimization process, which makes it difficult to obtain the optimal scheduling plan of the electric power system, affecting the reliability and economy of the electric power system, the present application provides a method, device, processor and storage medium for determining a scheduling plan for an electric power system. The method, device, processor and storage medium for determining a scheduling plan for an electric power system provided in the present application are described in detail below in conjunction with the accompanying drawings through specific embodiments and implementation methods.

[0029] Figure 1 The first flow chart of the method for determining a power system dispatching scheme according to an embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a method for determining a power system scheduling scheme is provided, the method comprising: Step 200: determine an initial population and use the initial population as the current population.

[0030] The initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system.

[0031] It should be understood that the population is one of the basic components of the genetic algorithm. The population is a collection of multiple individuals, and each individual in the population has a set of genes. In the power system scheduling problem, a gene can be encoded as certain key parameters of a scheduling plan, such as the output of the generator and the load distribution of the line. Multiple genes can together constitute a complete scheduling plan for an individual. Through the combination and change of genes, the genetic algorithm generates and optimizes individuals in the population, and can find the optimal scheduling plan for the power system. In this embodiment, the initial population is randomly generated.

[0032] As a specific implementation, step 200 specifically includes: Step 210, obtaining a plurality of historical indicator data of preset indicators for the power system.

[0033] Among them, each historical indicator data includes the parameter values ​​of various parameters corresponding to the preset indicators.

[0034] In this embodiment, the preset indicators include four specific indicators: carbon emissions, renewable energy utilization, energy cost, and system reliability. Of course, it is understandable that the specific indicators included in the preset indicators can also be added according to specific application scenarios to determine the optimal scheduling solution for the application scenario corresponding to the preset indicators.

[0035] Step 220, initializing each historical indicator data to obtain target indicator data.

[0036] This embodiment performs reasonable initialization processing on historical indicator data to ensure that all subsequent input data (i.e., encoded data) falls within the range that the genetic algorithm can process, thereby improving the search efficiency of the genetic algorithm and the quality of the results, that is, ensuring the effectiveness and performance of the genetic algorithm.

[0037] Step 230, genetically encodes each target indicator data to convert each parameter corresponding to the preset indicator into a genotype representation that can be operated by the genetic algorithm to obtain a plurality of encoded data.

[0038] Among them, the target indicator data may be genetically encoded using binary encoding, real number encoding, permutation encoding, etc. This embodiment does not specifically limit the encoding method for genetically encoding the target indicator data.

[0039] Step 240, randomly generate multiple individuals according to the respective coding data.

[0040] Specifically, each individual is a solution randomly generated based on the encoded data, and each solution represents a scheduling plan for the power system.

[0041] This embodiment combines the initial population based on historical indicator data, provides a data basis for determining the optimal dispatching plan of the power system, and ensures the feasibility of the optimal dispatching plan of the power system determined subsequently.

[0042] Step 400, determining the fitness value corresponding to each individual in the current population.

[0043] Specifically, for each individual in the current population, it is evaluated according to the pre-set evaluation criteria and its fitness value is calculated, that is, the quality of the power system dispatching plan represented by the individual is determined, so as to determine the optimal dispatching plan for the power system.

[0044] As a specific implementation, step 400 specifically includes: Step 410: For each individual in the current population, decode the individual to obtain decoding data corresponding to the individual.

[0045] In this embodiment, encoding and decoding are corresponding processes, and the two are matched to ensure that the genetic algorithm can correctly process the actual expression of the problem (i.e., the power system dispatching plan). Specifically, encoding is to convert the actual expression of the problem into an encoding form that can be processed by the genetic algorithm, and decoding is to convert the encoding form obtained in the genetic algorithm back to the actual expression of the problem.

[0046] Step 420: for each individual in the current population, determine the fitness value corresponding to the individual according to the decoded data corresponding to the individual by using a preset fitness function.

[0047] In this embodiment, the preset fitness function comprehensively considers the specific indicators included in the above preset indicators to obtain a single value corresponding to each individual in the current population, that is, the fitness value. Specifically, for each individual in the current population, the decoded data corresponding to the individual is substituted into the preset fitness function to obtain the fitness value corresponding to the individual.

[0048] It should be noted that, when the target to be optimized (i.e., the above-mentioned specific indicators) is clearly defined, designing a suitable fitness function is an existing technology and will not be described in detail here.

[0049] This embodiment converts the optimization objective of the problem into a mathematical form by using the preset fitness function, so that the genetic algorithm can use mathematical methods to quickly and effectively search the solution space and find the optimization solution that meets specific requirements, that is, find the optimal scheduling plan for the power system.

[0050] Step 600: If there is at least one individual in the current population whose corresponding fitness value satisfies the preset index condition, the optimal dispatching plan of the power system is determined according to the individual whose corresponding fitness value satisfies the preset index condition, and the process ends.

[0051] The preset indicator condition is specifically that the fitness value is greater than or equal to a preset fitness threshold.

[0052] As a specific implementation, step 600 specifically includes: Step 610: If there is at least one individual in the current population whose corresponding fitness value satisfies the preset indicator condition, the target indicator data corresponding to the individual with the largest corresponding fitness value is determined as the optimal dispatching scheme of the power system.

[0053] In this embodiment, when there are individuals in the current population whose corresponding fitness values ​​meet the preset indicator conditions, the individual with the highest fitness value among the individuals is selected as the optimal solution of the genetic algorithm, that is, the optimal scheduling plan for the power system. This can not only improve the search efficiency and convergence speed of the genetic algorithm, but also ensure that the solution found by the genetic algorithm is of high quality and practicality.

[0054] Step 800: If there is no individual in the current population whose corresponding fitness value meets the preset indicator condition, multiple first individuals are determined according to the current population based on the improved selection operator; each first individual is taken as an individual included in the first population, and the first population is taken as the current population, and the optimal scheduling plan of the power system is determined based on the current population.

[0055] Among them, the selection operator plays an important role in screening individuals and retaining excellent individuals in the genetic algorithm. Specifically, the selection operator promotes the evolution of the genetic algorithm towards a better solution by increasing the probability of individuals with high fitness in the population being selected as the parents of the next generation. However, due to the fact that traditional selection operators (such as roulette selection) may cause the genetic algorithm to converge to the local optimal solution in the early stage, and fail to conduct global search effectively, and ultimately fail to obtain the global optimal solution. To this end, this embodiment improves the selection operator to solve the problem that when using a genetic algorithm to determine the optimal dispatching scheme of the power system, the genetic algorithm is prone to fall into the local optimal solution during the optimization process, resulting in difficulty in obtaining the optimal dispatching scheme of the power system, affecting the reliability and economy of the power system.

[0056] The selection operator is a formula that determines the probability of an individual being selected based on its corresponding fitness value. In this embodiment, the calculation formula of the improved selection operator is:

[0057] in, Indicates the current population The probability of an individual being selected is , Respectively represent the , Individuals, , Respectively represent the , The fitness value corresponding to each individual is represents the total number of individuals in the current population, represents the weighting coefficient (constant), , Respectively represent the current population and , The number of individuals that are similar to each other.

[0058] This embodiment introduces a weighting coefficient and the number of individuals similar to the individual in the current population when determining the probability of each individual in the current population being selected as the parent of the next generation, so as to retain the diversity in the population in a more balanced manner and avoid the genetic algorithm from converging to a local optimal solution early.

[0059] For the current population individuals, in the current population The number of individuals similar to each other The calculation formula is:

[0060] in, Indicates the current population Individual, function To determine and Are they similar? Function The expression is:

[0061] in, Indicates the current population The fitness value corresponding to each individual is Represents the similarity threshold.

[0062] In this embodiment, the calculation formula of the similarity threshold is:

[0063] in, , They respectively represent the maximum and minimum values ​​of the fitness values ​​corresponding to each individual in the current population.

[0064] During the iterative process of the genetic algorithm, as the number of iterations increases, the differences between the individuals left behind will become smaller and smaller. If the similarity threshold remains unchanged, this may cause the convergence speed of the genetic algorithm to decrease, and even affect the efficiency of the genetic algorithm and the final output results. Since the fitness value reflects the degree of superiority of an individual in the solution space, this embodiment associates the setting of the similarity threshold during the iteration process with the fitness value corresponding to the individual in the current population, making it a variable, so as to avoid affecting the convergence speed of the genetic algorithm due to the fixed similarity threshold.

[0065] As a specific implementation, in step 800, according to the current population, based on the improved selection operator, a plurality of first individuals are determined, specifically including: Step 810: Based on the probability of each individual in the current population being selected and a first preset quantity threshold, a selection operation is performed on the individuals in the current population to obtain multiple first individuals.

[0066] The number of first individuals obtained according to the current population is the first preset number threshold, and each first individual is an individual in the current population.

[0067] It is understandable that when there is no individual whose corresponding fitness value satisfies the preset index condition in the current population, it is necessary to select an individual in the current population as the parent of the next generation (i.e., the first individual) to find the optimal solution. When selecting the first individual, an individual with a high corresponding fitness value has a greater chance of being selected. In this embodiment, after the selection operation is completed, the selected individual is used as the parent of the crossover operation to generate offspring individuals to form the next generation population.

[0068] As a specific implementation, in step 800, determining the optimal dispatching scheme of the power system based on the current population specifically includes: Step 821, taking each individual in the current population as a parent individual, and generating a plurality of child individuals corresponding to the current population based on the improved crossover operator according to the parent individuals in the current population.

[0069] Among them, the crossover operator is used to perform a crossover operation on two parent individuals to generate one or more offspring individuals. The crossover operation is the core operation of the genetic algorithm and is also a key step in whether the population can obtain the optimal solution. This embodiment is based on the improved crossover operator. By performing a crossover operation on the parent individuals, the genes of the parent individuals are combined, that is, the chromosomes of the parent are exchanged, so as to generate multiple offspring individuals corresponding to the current population, so as to explore new solution space areas and improve the diversity and adaptability of the population.

[0070] In this embodiment, the calculation formula of the improved crossover operator is:

[0071] in, represents the offspring individual, represents a random variable, represents the target individual in the current population, Indicates the parent individual with the largest corresponding fitness value in the current population.

[0072] Specifically, the value of the random variable is 0 or 1; the target individual in the current population is the parent individual with a larger fitness value among the two parent individuals obtained through competition based on the probability of each parent individual being selected in the current population. The target individual can be expressed as:

[0073] in, , They represent the two parent individuals obtained through competition in the current population. , Represents the parent individuals , parent individual The corresponding fitness value.

[0074] This embodiment controls the number of crossover operations by setting the number of competitions (i.e., controlling the number of times the target individual is generated). Based on the competition strategy, this embodiment allows the better parent genes to undergo crossover operations in order to obtain better offspring, thereby improving the convergence speed of the genetic algorithm.

[0075] Step 822, determining the fitness value corresponding to each offspring individual corresponding to the current population.

[0076] In this embodiment, the implementation method of step 822 is similar to the implementation method of step 400, which will not be repeated here.

[0077] Step 823, if there is at least one offspring individual whose corresponding fitness value meets the preset index condition among the offspring individuals corresponding to the current population, then determine the optimal scheduling plan for the power system based on the offspring individuals whose corresponding fitness values ​​meet the preset index conditions, and end the process.

[0078] In this embodiment, the implementation method of step 823 is similar to the implementation method of step 600, which will not be repeated here.

[0079] Step 824, if there is no offspring individual whose corresponding fitness value meets the preset index condition among the offspring individuals corresponding to the current population, a mutation operation is performed according to at least part of the offspring individuals corresponding to the current population to generate multiple second individuals, and each second individual is taken as an individual included in the second population to determine the fitness value corresponding to each individual in the second population; if there is at least one individual whose corresponding fitness value meets the preset index condition in the second population, the optimal scheduling plan of the power system is determined according to the individuals whose corresponding fitness values ​​meet the preset index condition, and the process is terminated; if there is no individual whose corresponding fitness value meets the preset index condition in the second population, it is determined whether to terminate the process according to the preset termination condition. If the preset termination condition is not met, the second population is taken as the current population and the process returns to step 400.

[0080] The preset termination condition includes that the number of times step 400 is repeatedly executed is greater than or equal to a preset cycle number threshold, and / or the change of the fitness value corresponding to each individual in the second population is in a stable state.

[0081] Specifically, when the number of times the step 400 is repeated reaches the preset cycle number threshold, it indicates that the genetic algorithm has had enough opportunities to search and optimize, and further iteration will not significantly improve the results. At this time, the evolution and evaluation process can be stopped, that is, the process is terminated. When the change in the fitness value corresponding to each individual in the second population is in a stable state, it indicates that the genetic algorithm gradually finds and stays on an optimal or near-optimal solution during the iteration process. In this embodiment, the specific manifestation of the change in the fitness value corresponding to each individual in the second population being in a stable state (i.e., converging to a certain stable level) includes: after multiple iterations of the genetic algorithm, the calculated fitness value no longer changes significantly, or the magnitude of the change gradually decreases.

[0082] In this embodiment, in step 824, when there is no individual in the second population whose corresponding fitness value satisfies the preset indicator condition, when it is determined to terminate the process according to the preset termination condition, any individual included in the second population is decoded to obtain target decoded data, and the target decoded data is determined as the optimal scheduling plan for the power system, and the process is terminated.

[0083] In this embodiment, when the mutation operation is performed on at least part of the offspring individuals corresponding to the current population, the mutation operation is performed on the offspring individuals according to a preset mutation probability.

[0084] This embodiment performs mutation operations on at least part of the offspring individuals of the current population through the preset mutation probability, which can maintain diversity in the genetic algorithm, enhance global search capabilities, and help avoid falling into the problem of local optimal solutions, thereby improving the efficiency and accuracy of the genetic algorithm. Specifically, the preset mutation probability is a value between 0 and 1, which represents the probability of each individual being selected for mutation in each iteration. By setting a suitable preset mutation probability, it is possible to ensure that the diversity of the population is maintained during the execution of the genetic algorithm, thereby avoiding premature convergence to the local optimal solution, and enabling the genetic algorithm to explore in a wider search space to find a better solution, that is, to find a better scheduling solution.

[0085] Figure 2 The second flow chart of the method for determining a power system dispatching scheme according to an embodiment of the present application is schematically shown. Figure 2As shown, for the initial population, if there is at least one individual in the initial population whose corresponding fitness value meets the preset index conditions, the optimal scheduling plan of the power system is determined based on the individuals whose corresponding fitness values ​​meet the preset index conditions, and the process ends. If there is no individual whose corresponding fitness value satisfies the preset index condition in the initial population, the initial population is used as the current population, and selection and crossover operations are performed on the individuals contained therein based on the improved selection operator and the improved crossover operator, and the fitness value corresponding to the new individual (that is, the individual generated after the selection and crossover operations of the initial population) is calculated again, and whether the preset index condition is met is determined based on the fitness value corresponding to each new individual. When there is a new individual whose corresponding fitness value satisfies the preset index condition, the iteration is stopped and the optimal solution is output, that is, the optimal scheduling plan of the power system is output. When there is no new individual whose corresponding fitness value satisfies the preset index condition, a mutation operation is performed on the new individual, that is, part of the gene values ​​of at least part of the new individuals are randomly changed to increase the population diversity, a new population is obtained, and then an iterative process is entered. In the iterative process, the optimal scheduling plan of the power system is determined based on the preset index condition and the preset termination condition.

[0086] Optionally, for the second population in the iterative process, the second population also includes at least some parent individuals that generate the second individual.

[0087] Since retaining at least some of the parent individuals helps to maintain the diversity of the population and avoid the population from converging to the local optimal solution too early, and the multiple parent individuals that generate the second individual may include some relatively excellent individuals or individuals with higher diversity, retaining at least some of the parent individuals can ensure that valuable information is not lost during the evolution process, especially when there are multiple local optimal solutions in the search space. At the same time, if all the parent individuals in the previous generation population are completely replaced, it may lead to premature convergence, that is, stagnation in a local area in the search space and inability to find the global optimal solution. Therefore, when determining the second population, this embodiment uses at least some of the parent individuals as individuals included in the second population.

[0088] As a specific implementation, during the iteration process, when determining the second population, in addition to taking each second individual as an individual included in the second population, the parent individual with the largest corresponding fitness value among the parent individuals of the second individual will also be generated, and / or multiple parent individuals will be randomly selected from the parent individuals that generated the second individual as individuals included in the second population, so as to balance the use of excellent solutions and the maintenance of population diversity during the optimization process of the genetic algorithm, so as to promote more efficient and comprehensive search.

[0089] It is not difficult to see that the method for determining the power system scheduling scheme provided in this embodiment improves the selection operator, that is, when determining the probability of each individual in the current population being selected as the parent of the next generation, a weighting coefficient and the number of individuals similar to the individual in the current population are introduced to more balanced retain the diversity in the population and avoid the genetic algorithm from converging to the local optimal solution early, thereby solving the problem that when using the genetic algorithm to determine the optimal scheduling scheme of the power system, the genetic algorithm is prone to fall into the local optimal solution during the optimization process, resulting in difficulty in obtaining the optimal scheduling scheme of the power system, affecting the reliability and economy of the power system.

[0090] Figure 1 FIG. 1 is a flow chart of a method for determining a power system dispatching scheme in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0091] In one embodiment of the present application, a power system scheduling method is provided, the method comprising: The method for determining a power system dispatching plan described in the above embodiment is used to determine the optimal dispatching plan for the power system.

[0092] The power system is dispatched and operated according to the optimal dispatch plan of the power system.

[0093] Specifically, the optimal scheduling of power systems has always been one of the most important issues in the power field, and genetic algorithms have strong adaptability and global search capabilities. They can generate new individuals based on individuals with high fitness, such as selection, crossover, and mutation, and thus gradually approach the global optimal solution through multiple rounds of iterative search. In this context, scheduling operations based on the optimal scheduling plan for the power system determined by the improved genetic algorithm of the above-mentioned embodiment will help improve the utilization rate of renewable energy, reduce carbon emissions, reduce energy costs, and improve the reliability of the power system.

[0094] Figure 3 The structure block diagram of the power system dispatching scheme determination device according to the embodiment of the present application is schematically shown. Figure 3As shown, in one embodiment of the present application, a device for determining a power system scheduling scheme is provided, the device for determining a power system scheduling scheme comprises an initial population determination module, a fitness value determination module, a first scheduling scheme determination module, and a second scheduling scheme determination module, wherein: The initial population determination module is used to determine an initial population and use the initial population as the current population. The initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system.

[0095] The fitness value determination module is used to determine the fitness value corresponding to each individual in the current population.

[0096] The first scheduling scheme determination module is used to determine the optimal scheduling scheme of the power system according to the individuals whose corresponding fitness values ​​meet the preset indicator conditions when there is at least one individual in the current population whose corresponding fitness value meets the preset indicator conditions, and end the process.

[0097] The second scheduling scheme determination module is used to determine multiple first individuals based on the current population and based on an improved selection operator when there is no individual whose corresponding fitness value meets the preset indicator condition in the current population; take each first individual as an individual included in the first population, take the first population as the current population, and determine the optimal scheduling scheme for the power system based on the current population.

[0098] In this embodiment, the calculation formula of the improved selection operator is:

[0099] in, Indicates the current population The probability of an individual being selected is , Respectively represent the , Individuals, , Respectively represent the , The fitness value corresponding to each individual is represents the total number of individuals in the current population, represents the weighting coefficient, , Respectively represent the current population and , The number of individuals that are similar to each other.

[0100] In this embodiment, the current population is The calculation formula for the number of individuals that are similar to each other is:

[0101] in, Indicates the current population Individual, function To determine and Are they similar? Function The expression is:

[0102] in, Indicates the current population The fitness value corresponding to each individual is Represents the similarity threshold. The calculation formula of the similarity threshold is:

[0103] in, , They respectively represent the maximum and minimum values ​​of the fitness values ​​corresponding to each individual in the current population.

[0104] In this embodiment, the second scheduling scheme determining module includes: The crossover operation unit is used to take each individual in the current population as a parent individual, and generate multiple child individuals corresponding to the current population based on the improved crossover operator according to the parent individuals in the current population.

[0105] The fitness value determination unit is used to determine the fitness value corresponding to each offspring individual corresponding to the current population.

[0106] The first judgment unit is used to determine the optimal scheduling plan of the power system according to the offspring individuals whose corresponding fitness values ​​meet the preset indicator conditions when there is at least one offspring individual whose corresponding fitness value meets the preset indicator conditions among the offspring individuals corresponding to the current population, and end the process.

[0107] The second judgment unit is used to perform a mutation operation on at least part of the offspring individuals corresponding to the current population to generate multiple second individuals when there is no offspring individual whose corresponding fitness value meets the preset index condition among the offspring individuals corresponding to the current population, and to take each second individual as an individual included in the second population to determine the fitness value corresponding to each individual in the second population; if there is at least one individual whose corresponding fitness value meets the preset index condition in the second population, then determine the optimal dispatching plan of the power system according to the individuals whose corresponding fitness value meets the preset index condition, and end the process; if there is no individual whose corresponding fitness value meets the preset index condition in the second population, determine whether to end the process according to the preset termination condition, and if the preset termination condition is not met, take the second population as the current population and return to execute the fitness value determination module.

[0108] In this embodiment, the calculation formula of the improved crossover operator is:

[0109] in, represents the offspring individual, represents a random variable, represents the target individual in the current population, Indicates the parent individual with the largest corresponding fitness value in the current population.

[0110] In this embodiment, the preset termination condition includes that the number of repeated executions of the step of determining the fitness value corresponding to each individual in the current population is greater than or equal to a preset cycle number threshold, and / or that the change in the fitness value corresponding to each individual in the second population is in a stable state.

[0111] In this embodiment, the second population also includes at least some of the parent individuals that generate the second individual.

[0112] In this embodiment, the power system scheduling scheme determination device includes a processor and a memory. The initial population determination module, the fitness value determination module, the first scheduling scheme determination module and the second scheduling scheme determination module are all stored in the memory as program units, and the processor executes the above program modules stored in the memory to implement corresponding functions.

[0113] The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the above-mentioned power system dispatching scheme determination method is implemented by adjusting kernel parameters.

[0114] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0115] An embodiment of the present application provides a processor configured to execute the above-mentioned method for determining a power system scheduling plan.

[0116] An embodiment of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configures the processor to execute the above-mentioned method for determining a power system dispatching plan.

[0117] Figure 4 The internal structure diagram of the computer device of the embodiment of the present application is schematically shown. Figure 4 As shown, in one embodiment of the present application, a computer device is provided, which may be a terminal. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a method for determining a power system dispatching scheme is implemented. The display screen A04 of the computer device may be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0118] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0119] In one embodiment, the power system dispatching scheme determination device provided in the present application can be implemented in the form of a computer program. Figure 4The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the power system dispatching scheme determination device, for example, Figure 3 The initial population determination module, fitness value determination module, first scheduling scheme determination module and second scheduling scheme determination module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the power system scheduling scheme determination method of each embodiment of the present application described in this specification.

[0120] Figure 4 The computer device shown can be Figure 3 The initial population determination module in the power system dispatching scheme determination device shown executes step 200, the fitness value determination module executes step 400, the first dispatching scheme determination module executes step 600 and the second dispatching scheme determination module executes step 800.

[0121] The present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: Determine an initial population, and use the initial population as the current population; wherein the initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system; Determine the fitness value corresponding to each individual in the current population; If there is at least one individual in the current population whose corresponding fitness value meets the preset index condition, then the optimal dispatching scheme of the power system is determined according to the individual whose corresponding fitness value meets the preset index condition, and the process ends; If there is no individual in the current population whose corresponding fitness value meets the preset indicator conditions, multiple first individuals are determined according to the current population based on the improved selection operator; each first individual is taken as an individual included in the first population, the first population is taken as the current population, and the optimal scheduling plan of the power system is determined based on the current population.

[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0126] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0127] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0128] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0129] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0130] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for determining a power system dispatching plan, characterized in that: The method comprises: Determine an initial population, and use the initial population as the current population; wherein the initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system; Determine the fitness value corresponding to each individual in the current population; If there is at least one individual in the current population whose corresponding fitness value meets the preset index condition, then the optimal dispatching scheme of the power system is determined according to the individual whose corresponding fitness value meets the preset index condition, and the process ends; If there is no individual in the current population whose corresponding fitness value meets the preset indicator conditions, multiple first individuals are determined according to the current population based on the improved selection operator; each first individual is taken as an individual included in the first population, the first population is taken as the current population, and the optimal scheduling plan of the power system is determined based on the current population.

2. The method according to claim 1, characterized in that: The calculation formula of the improved selection operator is: in, Indicates the current population The probability of an individual being selected is , Respectively represent the , Individuals, , Respectively represent the , The fitness value corresponding to each individual is represents the total number of individuals in the current population, represents the weighting coefficient, , Respectively represent the current population and , The number of individuals that are similar to each other.

3. The method according to claim 2, characterized in that The current population The calculation formula for the number of individuals that are similar to each other is: in, Indicates the current population Individual, function To determine and Are they similar? Function The expression is: in, Indicates the current population The fitness value corresponding to each individual is Represents the similarity threshold. The calculation formula of the similarity threshold is: in, , They respectively represent the maximum and minimum values ​​of the fitness values ​​corresponding to each individual in the current population.

4. The method according to any one of claims 1 to 3, characterized in that The determining of the optimal dispatching scheme of the power system based on the current population includes: Each individual in the current population is taken as a parent individual, and multiple child individuals corresponding to the current population are generated based on the improved crossover operator according to the parent individuals in the current population; Determine the fitness value of each offspring individual corresponding to the current population; If there is at least one offspring individual whose corresponding fitness value satisfies the preset index condition among the offspring individuals corresponding to the current population, the optimal dispatching scheme of the power system is determined according to the offspring individuals whose corresponding fitness values ​​satisfy the preset index conditions, and the process ends; If there is no offspring individual whose corresponding fitness value meets the preset index condition among the offspring individuals corresponding to the current population, a mutation operation is performed according to at least some of the offspring individuals corresponding to the current population to generate multiple second individuals, and each second individual is taken as an individual included in the second population to determine the fitness value corresponding to each individual in the second population; if there is at least one individual whose corresponding fitness value meets the preset index condition in the second population, the optimal scheduling plan of the power system is determined according to the individuals whose corresponding fitness values ​​meet the preset index condition, and the process is terminated; if there is no individual whose corresponding fitness value meets the preset index condition in the second population, it is determined whether to terminate the process according to the preset termination condition. If the preset termination condition is not met, the second population is taken as the current population, and the process returns to the step of determining the fitness value corresponding to each individual in the current population.

5. The method according to claim 4, characterized in that The calculation formula of the improved crossover operator is: in, represents the offspring individual, represents a random variable, represents the target individual in the current population, Indicates the parent individual with the largest corresponding fitness value in the current population.

6. The method according to claim 4, characterized in that The preset termination conditions include: The number of repetitions of the step of determining the fitness value corresponding to each individual in the current population is greater than or equal to a preset cycle number threshold, and / or the change of the fitness value corresponding to each individual in the second population is in a stable state; The second population also includes at least some of the parent individuals that gave rise to the second individual.

7. A power system dispatching method, characterized in that: The method comprises: Determine the optimal dispatching plan of the power system by using the method described in any one of claims 1 to 6; The power system is dispatched and operated according to the optimal dispatch plan of the power system.

8. A device for determining a power system dispatching plan, characterized in that: The device comprises: An initial population determination module is used to determine an initial population and use the initial population as a current population; wherein the initial population includes a plurality of individuals, each of which represents a scheduling scheme of the power system; A fitness value determination module is used to determine the fitness value corresponding to each individual in the current population; A first scheduling scheme determination module is used to determine the optimal scheduling scheme of the power system according to the individuals whose corresponding fitness values ​​meet the preset index conditions when there is at least one individual whose corresponding fitness value meets the preset index conditions in the current population, and end the process; The second scheduling scheme determination module is used to determine multiple first individuals based on the current population and based on the improved selection operator when there is no individual whose corresponding fitness value meets the preset indicator conditions in the current population; each first individual is regarded as an individual included in the first population, the first population is regarded as the current population, and the optimal scheduling scheme of the power system is determined based on the current population.

9. A processor, characterized in that: The method is configured to execute the method for determining a power system dispatch plan according to any one of claims 1 to 6.

10. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the method for determining a power system dispatch plan according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • High voltage insulator numerical optimization method based on small population real-coded genetic algorithm

    CN108875187A

  • System and method for efficiently controlling robot

    CN109910010A

  • Extended black start scheme determination method and device and electronic equipment

    CN110148972A

  • Cloud data center load optimization scheduling method supporting electric power big data

    CN112926785A

  • Power system scheduling method based on genetic algorithm

    CN114282807A

Cited By

  • Data transmission method and device based on hierarchical genetic algorithm, equipment and medium

    CN120602559A