Distributed power supply real-time scheduling method based on optimized particle swarm

By improving the particle swarm optimization algorithm and using multi-parameter real-time scheduling models and dynamic inertia factors, the problem of local optimal solutions in distributed power dispatching is solved, achieving rapid and accurate optimization of distributed power sources, and improving economy and environmental protection. .

CN118693828APending Publication Date: 2024-09-24SICHUAN REGIS GREEN ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410627077.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The traditional particle swarm algorithm easily falls into the local optimal solution in the optimal dispatch of distributed power sources, making it difficult to achieve fast, accurate economical and environmentally friendly dispatch.

Method used

By establishing a multi-parameter real-time scheduling model, the traditional particle swarm optimization algorithm is improved, and the linearly decreasing dynamic inertia factor and dynamic penalty function are used to iteratively optimize the particle swarm, improve the optimization capability of the algorithm, and achieve real-time scheduling of distributed power supplies.

Benefits of technology

It improves the timeliness of the algorithm, realizes fast and accurate optimization of distributed power sources, improves economy and environmental protection, and avoids falling into local optimal solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118693828A
    Figure CN118693828A
Patent Text Reader

Abstract

The invention discloses a distributed power supply real-time scheduling method based on an optimized particle swarm, and the method comprises the steps: obtaining a real-time scheduling target of a distributed power supply, and building a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target; improving a traditional particle swarm optimization algorithm based on the plurality of parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme; iterating each particle in the first particle swarm through an objective function to obtain a second particle swarm; and performing real-time scheduling on the distributed power supply by using the second particle swarm. Thus, the timeliness of the algorithm can be improved, the purpose of rapid and accurate optimization is achieved, and the economical efficiency and environmental protection of distributed power supply operation are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system operation control, and in particular to a distributed power source real-time scheduling method based on optimized particle swarm. Background Art

[0002] In recent years, due to the pressure of environmental protection and energy demand and the development of distributed power generation technology, distributed power sources have received more and more attention. However, distributed power sources have complex and diverse energy structures, power types and control methods. There are still many problems in how to properly manage the operation of distributed power sources in distributed power sources to achieve flexible, efficient, economical and environmentally friendly operation of distributed power sources. Therefore, the research on the optimal scheduling of distributed power sources has attracted the attention of many scholars. The research on the optimal scheduling of distributed power sources mainly involves two aspects: optimization scheduling model and optimization algorithm. Among them, the optimization scheduling model should fully consider the economy, environmental protection and reliability of distributed power sources; the optimization algorithm mainly involves two aspects: convergence speed and convergence accuracy. So far, domestic and foreign scholars have applied a variety of intelligent optimization algorithms to the research on the optimal scheduling of distributed power sources, such as biogeography algorithm, genetic algorithm, particle swarm algorithm, etc.; and combined with the characteristics of the optimal scheduling of distributed power sources, the convergence, accuracy and rapidity of intelligent optimization algorithms have been explored to a certain extent. With the continuous development of intelligent optimization algorithms, they have been applied in the field of distributed power optimization scheduling. At present, relevant scholars are still committed to studying optimization algorithms with good performance so that the optimal solution can be obtained more accurately and quickly. The particle swarm algorithm initializes the system as a set of random solutions and searches for the optimal value through iteration. It makes full use of its own experience and group experience to adjust the state of the particles themselves, and can effectively optimize the system parameters. The particle swarm algorithm has few parameters, simple programming, excellent optimization ability, and fast convergence speed. Therefore, the particle swarm algorithm is applied to the optimization scheduling of distributed power sources and has excellent performance. However, the traditional particle swarm algorithm is very easy to fall into the local optimal solution. Therefore, it is necessary to improve the traditional particle swarm algorithm so that it can be well adapted to the optimization scheduling problem of distributed power sources and improve the economy, environmental protection and reliability of distributed power sources. Summary of the invention

[0003] The purpose of this application is to provide a real-time scheduling method for distributed power sources based on optimized particle swarms, which can improve the timeliness of the algorithm, achieve the purpose of fast and accurate optimization, and realize the economy and environmental protection of distributed power supply operation.

[0004] To achieve the above objectives:

[0005] In a first aspect, an embodiment of the present application provides a distributed power supply real-time scheduling method based on optimized particle swarm, the method comprising:

[0006] Acquire the real-time scheduling target of the distributed power source, and establish a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target;

[0007] The traditional particle swarm optimization algorithm is improved based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme;

[0008] Iterate each particle in the first particle group through the objective function to obtain a second particle group;

[0009] The second particle swarm is used to perform real-time scheduling on the distributed power source.

[0010] In one embodiment, the acquiring the real-time scheduling target of the distributed power source and establishing a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target includes:

[0011] Construct the decision variable vector P at time t t , the decision variable vector P t Including the active power and charging and discharging power of each of the distributed power supply devices at time t;

[0012] Based on the decision variable vector from time t to the end time T of the day, the decision variable vector X of the multi-parameter quadratic programming model of the distributed power source is constructed. t ;X t =[P t ;P t+1 ;...;P T ];

[0013] Based on the decision variable vector X t , the objective function and constraints of the optimal power flow control, and construct a multi-parameter quadratic programming model for the optimal power generation cost of the distributed power source:

[0014]

[0015] g i (X t ,θ t )=0,h j (X t ,θ t )≤0;

[0016] Among them, minf(X t ,θ t ) is X t is a variable, with parameters θ t The optimal power generation cost function model, g i (X t ,θt ) is the equality constraint model, h j (X t ,θ t ) is the inequality constraint model, θ t is the parameter vector of the distributed power supply and demand capabilities; Q is the quadratic cost constant matrix, b is the primary cost constant vector, and c is the constant constant vector;

[0017] Based on the multi-parameter quadratic programming model, the model is solved to obtain a collective model of the optimal solution of the distributed power generation scheduling corresponding to the real-time parameters:

[0018]

[0019] Where k represents the total number of linear partitions; P t (θ t ) k It means that at time t, θ t is a parameter, and the corresponding decision variable value in the kth partition; W k With Y k A linear constant matrix and constant vector representing a linear function.

[0020] In one implementation, the constraints of each of the linear partitions satisfy:

[0021]

[0022] Among them, φ t represents the primary constraint constant matrix of the kth partition; Represents the constraint constant vector for the kth partition.

[0023] In one embodiment, the traditional particle swarm optimization algorithm is improved based on the multiple parameters of the real-time scheduling model to obtain an initial particle swarm, including: obtaining the system composition of the distributed power supply, the multiple parameters and the traditional particle swarm algorithm parameters to calculate the initial fitness value of the particle swarm; based on the initial fitness value, the traditional particle swarm optimization algorithm is adaptively adjusted to obtain the first particle swarm.

[0024] In one embodiment, evaluating and iterating each particle in the first particle group by using an objective function to obtain a second particle group includes:

[0025] The optimization ability of the first particle swarm is improved by linearly decreasing dynamic inertia factor. The specific formula is as follows:

[0026] ω=ω start -(ω start -ω end )n / N;

[0027] Where: start and ω end They represent the inertia weights at the beginning and end of the iteration respectively; n and N represent the current number of iterations and the maximum number of iterations respectively.

[0028] In one embodiment, the step of improving the optimization capability of the first particle swarm by linearly decreasing dynamic inertia factor includes:

[0029] The values ​​of learning factors c1 and c2 are dynamically changed according to the number of iterations to improve the algorithm's optimization ability. The specific formula is as follows:

[0030] c1=c 1e +(c 1f -c 1e )n / N, c2=c 2e +(c 2f -c 2e )n / N;

[0031] Where: c 1e 、c 1f and c 2e 、c 2f They represent the values ​​of c1 and c2 at the beginning and end of the iteration respectively.

[0032] In one embodiment, after evaluating and iterating each particle in the first particle group by using the objective function to obtain the second particle group, the method further includes:

[0033] Calculating the fitness value of the second particle group, and updating the individual optimal value and the group optimal value of the particles;

[0034] Specifically, it includes: implementing the dynamic penalty function as a penalty factor that decreases linearly with the number of iterations;

[0035] The double comparison method was implemented as follows:

[0036] fitness(i)=f(x);

[0037]

[0038] Where fitness(i) refers to the objective function value of the ith particle, voilation(i) refers to the violation degree of the power balance constraint of the ith particle. Given that the fitness value of an infeasible solution near the optimal solution is likely to be better than the fitness value of a feasible solution located inside the feasible domain, retaining a certain proportion of infeasible solution individuals in the population is very helpful for finding the optimal solution. Therefore, the following comparison criteria are adopted: First, a minimum violation limit value ε>0 is given; (a) When the violation degree values ​​of two particles are both less than or equal to ε, their fitness values ​​are compared, and the individual with the smaller fitness is superior; (b) When the violation degree values ​​of two particles are both greater than ε, the one with the smaller violation degree is superior. (c) When the violation degree values ​​of two particles, one is greater than ε and the other is less than or equal to ε, the one with the smaller violation degree is superior.

[0039] In a second aspect, an embodiment of the present application provides a distributed power supply real-time scheduling device based on optimized particle swarm, comprising:

[0040] A model building module, used for acquiring the real-time scheduling target of the distributed power source, and building a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target;

[0041] An algorithm improvement module, used for improving a traditional particle swarm optimization algorithm based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme;

[0042] A particle iteration module, used for iterating each particle in the first particle group through an objective function to obtain a second particle group;

[0043] A real-time scheduling module is used to utilize the second particle swarm to perform real-time scheduling on the distributed power source.

[0044] In a third aspect, the present application provides an electronic device, including: a processor;

[0045] a memory for storing instructions executable by the processor;

[0046] The processor is configured to execute the instructions to implement the distributed power source real-time scheduling method based on optimized particle swarm as described in any one of the first aspects.

[0047] In a fourth aspect, the present application provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor, the distributed power source real-time scheduling method based on optimized particle swarm as described in any one of the first aspects is implemented.

[0048] The embodiment of the present application provides a real-time scheduling method for distributed power based on optimized particle swarm, by establishing a real-time scheduling model, and adjusting the particle swarm in combination with multiple parameters of the real-time scheduling model and traditional particle swarm parameters, and then improving the optimization ability of the particle swarm through a linearly decreasing dynamic inertia factor and improving the optimization ability of the particle swarm again through multiple iterations to obtain a second particle swarm, i.e., an optimal particle swarm, and using the second particle swarm to perform real-time scheduling of the distributed power. It can improve the timeliness of the algorithm, achieve the purpose of fast and accurate optimization, and realize the economy and environmental protection of the operation of distributed power. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a flow chart of a distributed power real-time scheduling method based on optimized particle swarm provided in an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of the structure of a distributed power real-time scheduling device based on optimized particle swarm provided by an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0053] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0054] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.

[0055] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0056] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.

[0057] 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.

[0058] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0059] See also Figure 1 , is a flow chart of a distributed power real-time scheduling method based on optimized particle swarm provided in an embodiment of the present application. The distributed power real-time scheduling method based on optimized particle swarm can be executed by an electronic device provided in an embodiment of the present application. The electronic device can be implemented in software and / or hardware, such as a server, a computer and other electronic devices. In this embodiment, the execution subject of the distributed power real-time scheduling method based on optimized particle swarm is a server as an example. The distributed power real-time scheduling method based on optimized particle swarm provided in this embodiment includes:

[0060] Step S1, obtaining the real-time scheduling target of the distributed power source, and establishing a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target.

[0061] Here, the real-time dispatching objectives of distributed power sources may include reducing costs, improving efficiency, ensuring system stability, etc. It is understandable that after establishing the real-time dispatching model, the constraints of the model should also be clarified, such as the output limit of the power source, the power balance of the network, etc.

[0062] In one embodiment, the acquiring the real-time scheduling target of the distributed power source and establishing a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target includes:

[0063] Construct the decision variable vector P at time t t , the decision variable vector P t Including the active power and charging and discharging power of each of the distributed power supply devices at time t;

[0064] Based on the decision variable vector from time t to the end time T of the day, the decision variable vector X of the multi-parameter quadratic programming model of the distributed power source is constructed. t ;X t =[P t ;P t+1 ;...;P T ];

[0065] Based on the decision variable vector Xt, the objective function and constraints of the optimal power flow control, a multi-parameter quadratic programming model for the optimal power generation cost of the distributed power source is constructed:

[0066]

[0067] gi (X t ,θ t )=0,h j (X t ,θ t )≤0;

[0068] Among them, minf(X t ,θ t ) is X t is a variable, with parameters θ t The optimal power generation cost function model, g i (X t ,θ t ) is the equality constraint model, h j (X t ,θ t ) is the inequality constraint model, θ t is the parameter vector of the distributed power supply and demand capacity; Q is the quadratic cost constant matrix, b is the primary cost constant vector, and c is the constant constant vector. Specifically, the quadratic cost constant matrix Q, the primary cost constant vector b, and the constant constant vector c are all composed of the cost constants of each distributed power generation device and load device.

[0069] Based on the multi-parameter quadratic programming model, the model is solved to obtain a collective model of the optimal solution of the distributed power generation scheduling corresponding to the real-time parameters:

[0070]

[0071] Where k represents the total number of linear partitions; P t (θ t ) k It means that at time t, θ t is a parameter, and the corresponding decision variable value in the kth partition; W k With Y k A linear constant matrix and constant vector representing a linear function.

[0072] In one implementation, the constraints of each of the linear partitions satisfy:

[0073]

[0074] Among them, φ t represents the primary constraint constant matrix of the kth partition; Represents the constraint constant vector for the kth partition.

[0075] When the inverter control module of the distributed power source receives the linear function model and constraint condition model of the real-time dispatch optimal condition of the distributed power source, it can determine the partition number k where the optimal control strategy is located at this time according to the actual output power and actual load demand data of the renewable energy power generation equipment according to the constraint condition model, and according to the linear function model, the real-time parameter value θ t Bring into the corresponding k-th partition the decision variable vector model X t Finally, the optimal value of the decision variable is obtained.

[0076] Step S2, improving the traditional particle swarm optimization algorithm based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling solution.

[0077] Specifically, according to the characteristics and requirements of the real-time scheduling model, the key parameters in the original particle swarm optimization algorithm are adaptively adjusted to obtain the improved first particle swarm. For example, the particle speed update coefficient, individual and social learning factors, etc. can be dynamically adjusted according to the complexity and real-time requirements of the problem to improve the convergence speed of the algorithm and the quality of the solution. In addition, the real-time scheduling model may involve multiple objectives, such as minimizing costs, minimizing response time, and maximizing system stability. Therefore, when improving the algorithm, a multi-objective optimization strategy can be introduced so that the algorithm can consider multiple objectives at the same time and find a balanced solution that meets all objectives. Considering the dynamic nature of real-time scheduling, a dynamic update mechanism can be introduced into the algorithm so that the algorithm can dynamically adjust the search strategy according to changes in the system state. For example, when the system load changes, the algorithm can re-evaluate the fitness of the current solution and adjust the search direction and speed of the particles.

[0078] In one embodiment, the conventional particle swarm optimization algorithm is improved based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm, including:

[0079] The system composition of the distributed power source, the multiple parameters and the traditional particle swarm optimization algorithm are obtained to calculate the initial fitness value of the particle swarm; based on the initial fitness value, the traditional particle swarm optimization algorithm is adaptively adjusted to obtain the first particle swarm.

[0080] It can be understood that the distributed power system can include various power types (such as solar energy, wind energy, gas turbines, etc.), the characteristics of each power source (such as capacity, range of variation, cost, etc.) and the operating constraints of the system. In order to achieve real-time scheduling, it is necessary to consider all relevant parameters of the model, such as power demand, power price, environmental factors, system stability, etc. The basis of real-time scheduling decisions of these parameters can affect the selection and optimization of scheduling strategies. Using the above-determined system composition and parameters, each particle (that is, each potential scheduling scheme) is evaluated and its fitness value is calculated. The fitness value is usually determined based on the performance of the scheduling scheme, such as cost, efficiency, environmental impact, etc. Analyze the distribution and characteristics of the initial fitness value, and adaptively adjust the parameters of the particle swarm optimization algorithm based on this information. This may include adjusting the inertia weight, learning factor, etc. to improve the search efficiency of the algorithm and the quality of the solution. After adaptive adjustment, the particle swarm is regenerated or adjusted using the updated parameters, that is, the first particle swarm.

[0081] Step S3, iterating each particle in the first particle group through the objective function to obtain a second particle group.

[0082] Specifically, it includes: improving the optimization ability of the first particle group through a linearly decreasing dynamic inertia factor, and the specific formula is as follows:

[0083] ω=ω start -(ω start -ω end )n / N;

[0084] Where: start and ω end They represent the inertia weights at the beginning and end of the iteration respectively; n and N represent the current number of iterations and the maximum number of iterations respectively.

[0085] Furthermore, the step of improving the optimization capability of the first particle swarm by linearly decreasing dynamic inertia factor includes:

[0086] Dynamically change the values ​​of learning factors c1 and c2 according to the number of iterations to improve the algorithm's optimization ability. The specific formula is as follows: c1 = c 1e +(c 1f -c 1e )n / N, c2=c 2e +(c 2f -c 2e )n / N; where: c 1e 、c 1f and c 2e 、c 2f They represent the values ​​of c1 and c2 at the beginning and end of the iteration respectively.

[0087] Here, c1 and c2 represent the random acceleration of particles toward individual extreme values ​​and global extreme values. In the early stage of optimization, particles should be moved as much as possible in the entire search space, and in the later stage of optimization, the convergence rate to the optimal solution should be improved.

[0088] In one embodiment, after evaluating and iterating each particle in the first particle group by using the objective function to obtain the second particle group, the method further includes:

[0089] Calculating the fitness value of the second particle group, and updating the individual optimal value and the group optimal value of the particles;

[0090] Specifically, it includes: implementing the dynamic penalty function as a penalty factor that decreases linearly with the number of iterations;

[0091] The double comparison method was implemented as follows:

[0092] fitness(i)=f(x);

[0093]

[0094] Where fitness(i) refers to the objective function value of the ith particle, voilation(i) refers to the violation degree of the power balance constraint of the ith particle. Given that the fitness value of an infeasible solution near the optimal solution is likely to be better than the fitness value of a feasible solution located inside the feasible domain, retaining a certain proportion of infeasible solution individuals in the population is very helpful for finding the optimal solution. Therefore, the following comparison criteria are adopted: First, a minimum violation limit value ε>0 is given; (a) When the violation degree values ​​of two particles are both less than or equal to ε, their fitness values ​​are compared, and the individual with the smaller fitness is superior; (b) When the violation degree values ​​of two particles are both greater than ε, the one with the smaller violation degree is superior. (c) When the violation degree values ​​of two particles, one is greater than ε and the other is less than or equal to ε, the one with the smaller violation degree is superior.

[0095] Step S4: utilizing the second particle swarm to perform real-time scheduling on the distributed power source.

[0096] The embodiment of the present invention provides a real-time scheduling method for distributed power based on optimized particle swarm, by establishing a real-time scheduling model, and adjusting the particle swarm in combination with multiple parameters of the real-time scheduling model and traditional particle swarm parameters, and then improving the optimization ability of the particle swarm through a linearly decreasing dynamic inertia factor and improving the optimization ability of the particle swarm again through multiple iterations to obtain a second particle swarm, i.e., an optimal particle swarm, and using the second particle swarm to perform real-time scheduling on the distributed power. The timeliness of the algorithm can be improved, the purpose of fast and accurate optimization can be achieved, and the economy and environmental protection of the operation of distributed power can be realized.

[0097] Based on the same inventive concept as the above embodiments, the embodiments of the present invention provide a distributed power real-time scheduling device based on optimized particle swarm, such as Figure 2 As shown, the device comprises:

[0098] A model building module, used for acquiring the real-time scheduling target of the distributed power source, and building a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target;

[0099] An algorithm improvement module, used for improving a traditional particle swarm optimization algorithm based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme;

[0100] A particle iteration module, used for iterating each particle in the first particle group through an objective function to obtain a second particle group;

[0101] A real-time scheduling module is used to utilize the second particle swarm to perform real-time scheduling on the distributed power source.

[0102] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 3 The processor 310 shown in the figure is not used to indicate that the number of the processor 310 is one, but is only used to indicate the positional relationship of the processor 310 relative to other devices. In actual applications, the number of the processor 310 may be one or more; similarly, Figure 3 The memory 311 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 311 relative to other devices. In practical applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the above-mentioned distributed power real-time scheduling method based on optimized particle swarm is implemented.

[0103] The electronic device may also include: at least one network interface 312. The various components in the electronic device are coupled together via a bus system 313. It is understood that the bus system 313 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 313 is not used in the following examples. Figure 3 Various buses are labeled as bus system 313.

[0104] The memory 311 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory 311 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memory.

[0105] The memory 311 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0106] Based on the same inventive concept as the above embodiment, this embodiment further provides a computer-readable storage medium, in which a computer program is stored, and the computer-readable storage medium may be a magnetic random access memory (FRAM, ferromagneticrandomaccessmemory), a read-only memory (ROM, ReadOnlyMemory), a programmable read-only memory (PROM, ProgrammableRead-OnlyMemory), an erasable programmable read-only memory (EPROM, ErasableProgrammableRead-OnlyMemory), an electrically erasable programmable read-only memory (EEPROM, ElectricallyErasableProgrammableRead-OnlyMemory), a flash memory (FlashMemory), a magnetic surface memory, an optical disk, or a read-only optical disk (CD-ROM, CompactDiscRead-OnlyMemory) and other memories; or may be various devices including one or any combination of the above memories, such as a server, etc. When the instructions stored therein are executed by a processor, the real-time scheduling method of distributed power sources based on optimized particle swarms described in the above embodiment is implemented.

[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] In this document, the terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of elements other than those listed and may also include additional elements not expressly listed.

[0109] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A real-time scheduling method for distributed power sources based on optimized particle swarm, characterized in that: include: Acquire the real-time scheduling target of the distributed power source, and establish a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target; The traditional particle swarm optimization algorithm is improved based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme; Iterate each particle in the first particle group through the objective function to obtain a second particle group; The second particle swarm is used to perform real-time scheduling on the distributed power source.

2. The method according to claim 1, characterized in that The acquiring the real-time scheduling target of the distributed power source and establishing a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target includes: Construct the decision variable vector P at time t t , the decision variable vector P t Including the active power and charging and discharging power of each of the distributed power supply devices at time t; Based on the decision variable vector from time t to the end time T of the day, the decision variable vector X of the multi-parameter quadratic programming model of the distributed power source is constructed. t ;X t =[P t ;P t+1 ;...;P T ]; Based on the decision variable vector X t , the objective function and constraints of the optimal power flow control, and construct a multi-parameter quadratic programming model for the optimal power generation cost of the distributed power source: g i (X t ,the t )=0,h j (X t ,the t )≤0; Among them, minf(X t ,θ t ) is X t is a variable, with parameters θ t The optimal power generation cost function model, g i (X t ,θ t ) is the equality constraint model, h j (X t ,θ t ) is the inequality constraint model, θ t is the parameter vector of the distributed power supply and demand capabilities; Q is the quadratic cost constant matrix, b is the primary cost constant vector, and c is the constant constant vector; Based on the multi-parameter quadratic programming model, the model is solved to obtain a collective model of the optimal solution of the distributed power generation scheduling corresponding to the real-time parameters: Where k represents the total number of linear partitions; P t (θ t ) k It means that at time t, θ t is a parameter, and the corresponding decision variable value in the kth partition; W k With Y k A linear constant matrix and constant vector representing a linear function.

3. The method according to claim 1, characterized in that The constraints of each linear partition satisfy: Among them, φ t represents the primary constraint constant matrix of the kth partition; Represents the constraint constant vector for the kth partition.

4. The method according to claim 1, characterized in that: The method of improving the traditional particle swarm optimization algorithm based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm includes: Acquire the system composition of the distributed power source, the multiple parameters and the traditional particle swarm algorithm parameters to calculate the initial fitness value of the particle swarm; The traditional particle swarm optimization algorithm is adaptively adjusted based on the initial fitness value to obtain the first particle swarm.

5. The method according to claim 4, characterized in that The step of evaluating and iterating each particle in the first particle group by using an objective function to obtain a second particle group includes: The optimization ability of the first particle swarm is improved by linearly decreasing dynamic inertia factor. The specific formula is as follows: oh = oh start -(oh start -oh end )n / N; Where: start and ω end They represent the inertia weights at the beginning and end of the iteration respectively; n and N represent the current number of iterations and the maximum number of iterations respectively.

6. The method according to claim 5, characterized in that The method of improving the optimization capability of the first particle swarm by linearly decreasing dynamic inertia factor includes: The values ​​of learning factors c1 and c2 are dynamically changed according to the number of iterations to improve the algorithm's optimization ability. The specific formula is as follows: c1=c 1e +(c 1f -c 1e )n / N,c2=c 2e +(c 2f -c 2e )n / N; Where: c 1e 、c 1f and c 2e 、c 2f They represent the values ​​of c1 and c2 at the beginning and end of the iteration respectively.

7. The method according to claim 1, characterized in that After evaluating and iterating each particle in the first particle group by the objective function to obtain the second particle group, the method further includes: Calculating the fitness value of the second particle group, and updating the individual optimal value and the group optimal value of the particles; Specifically, it includes: implementing the dynamic penalty function as a penalty factor that decreases linearly with the number of iterations; The double comparison method was implemented as follows: fitness(i)=f(x); Where fitness(i) refers to the objective function value of the ith particle, voilation(i) refers to the violation degree of the power balance constraint of the ith particle. Given that the fitness value of an infeasible solution near the optimal solution is likely to be better than the fitness value of a feasible solution located inside the feasible domain, retaining a certain proportion of infeasible solution individuals in the population is very helpful for finding the optimal solution. Therefore, the following comparison criteria are adopted: First, a minimum violation limit value ε>0 is given; (a) When the violation degree values ​​of two particles are both less than or equal to ε, their fitness values ​​are compared, and the individual with the smaller fitness is superior; (b) When the violation degree values ​​of two particles are both greater than ε, the one with the smaller violation degree is superior. (c) When the violation degree values ​​of two particles, one is greater than ε and the other is less than or equal to ε, the one with the smaller violation degree is superior.

8. A distributed power real-time scheduling device based on optimized particle swarm, characterized in that: include: A model building module, used for acquiring the real-time scheduling target of the distributed power source, and building a multi-parameter real-time scheduling model of the scheduling target based on the real-time scheduling target; An algorithm improvement module, used for improving a traditional particle swarm optimization algorithm based on the multiple parameters of the real-time scheduling model to obtain a first particle swarm; each particle in the first particle swarm corresponds to a scheduling scheme; A particle iteration module, used for iterating each particle in the first particle group through an objective function to obtain a second particle group; A real-time scheduling module is used to utilize the second particle swarm to perform real-time scheduling on the distributed power source.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the distributed power source real-time scheduling method based on optimized particle swarm as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor, the distributed power source real-time scheduling method based on optimized particle swarm as described in any one of claims 1 to 7 is implemented.