Power planning method, device, electronic equipment and storage medium
Through the three-layer planning model, combined with energy storage planning, power supply configuration and grid design, the problems of unstable distributed energy output and insufficient correlation with planning goals in the existing technology are solved, and the optimal planning and stability of the power system are achieved. sex.
Patent Information
- Application Number
- CN202111331668.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-11
AI Technical Summary
Existing power planning methods fail to effectively consider the introduction of energy storage devices with unstable distributed energy output, resulting in a lack of hierarchy and correlation between planning objectives, making it difficult to build a reasonable new power system.
A three-layer planning model is used to set parameter information for the upper, middle and lower populations respectively, and the optimal energy storage planning, power supply configuration and grid configuration are determined through iterative solution, reflecting the hierarchy and correlation between each planning goal.
The best solution for power planning has been achieved, ensuring the stability and reliability of the power system, and meeting the requirements of carbon peak and carbon neutrality goals.
Smart Images

Figure CN113888051B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electric power engineering technology, and in particular to a method, device, electronic device and storage medium for electric power planning. Background Art
[0002] In response to the goals of carbon peak and carbon neutrality, my country has proposed measures to deepen the reform of the power system and build a new power system with new energy as the main body. After the large-scale grid connection of distributed generation (DG), its randomness, volatility and intermittency have posed greater challenges to the reliability of the power grid and higher requirements for the reasonable planning of the system. Existing planning methods often only consider the construction of the topological structure of the transmission grid or the access location and capacity of distributed energy, lack the introduction of energy storage devices for the instability of distributed energy output, and do not reflect the hierarchy and interconnection between the various planning objectives. Summary of the invention
[0003] The embodiments of the present application provide a power planning method, device, electronic device and storage medium, which can reflect the hierarchy and correlation between various planning objectives and obtain the best solution for power planning.
[0004] In a first aspect, an embodiment of the present application provides a power planning method, the method comprising:
[0005] Setting corresponding parameter information for the upper population, the middle population and the lower population and initializing them, the parameter information including the number of iterations and the population size, the population size including a preset number of particles corresponding to each layer of the population;
[0006] Determining an optimal energy storage plan for the lower population according to the lower target model and parameter information of the lower population;
[0007] Determining the optimal power supply configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population;
[0008] The optimal grid configuration for power planning is determined according to the optimal power supply configuration, the upper target model and the parameter information of the upper population.
[0009] In a second aspect, an embodiment of the present application provides a power planning device, the device comprising:
[0010] A parameter setting module, used to set corresponding parameter information for the upper population, the middle population and the lower population and initialize them, wherein the parameter information includes the number of iterations and the population size, and the population size includes a preset number of particles corresponding to each layer of the population;
[0011] An energy storage planning module, used to determine the optimal energy storage planning of the lower population according to the lower target model and parameter information of the lower population;
[0012] A power configuration module, used to determine the optimal power configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population;
[0013] A grid configuration module is used to determine the optimal grid configuration for power planning based on the optimal power supply configuration, the upper target model and the parameter information of the upper population.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] A storage device for storing one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the power planning method described in any embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the power planning method described in any embodiment of the present application is implemented.
[0019] The embodiments of the present application provide a method, device, electronic device and storage medium for power planning, which sets corresponding parameter information for the upper population, middle population and lower population and initializes them; determines the optimal energy storage planning of the lower population according to the lower target model and the parameter information of the lower population; determines the optimal power supply configuration of the middle population according to the optimal energy storage planning, the middle target model and the parameter information of the middle population; determines the optimal grid configuration of power planning according to the optimal power supply configuration, the upper target model and the parameter information of the upper population. The present application sets a three-layer planning model, which considers the three key elements of grid design, access to distributed energy and access to energy storage devices in AC and DC distribution networks, respectively, and can reflect the hierarchy and correlation between the planning objectives, and can obtain the best solution for power planning.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0022] Figure 1 A schematic diagram of a flow chart of a power planning method provided in an embodiment of the present application;
[0023] Figure 2 A three-layer planning model for an AC / DC distribution network provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of the structure of a power planning device provided in an embodiment of the present application;
[0025] Figure 4 It is a block diagram of an electronic device used to implement a power planning method in an embodiment of the present application. DETAILED DESCRIPTION
[0026] 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. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] Figure 1 A flow chart of a power planning method provided in an embodiment of the present application is provided. This embodiment can be applied to the situation where reasonable power planning is made for the expansion and transformation of the existing AC / DC distribution network, the access of distributed power sources, and the access of energy storage devices. A power planning method provided in this embodiment can be executed by a power planning device provided in an embodiment of the present application, which can be implemented by software and / or hardware and integrated in an electronic device that executes this method.
[0028] See also Figure 1 The method of this embodiment includes but is not limited to the following steps:
[0029] S110, setting corresponding parameter information for the upper population, the middle population and the lower population and initializing them.
[0030] The parameter information includes the number of iterations and the population size, and the population size includes a preset number of particles corresponding to each layer of the population.
[0031] In the embodiments of the present application, Figure 2This is a three-layer planning model for the AC / DC distribution network provided in this embodiment, which includes upper-layer planning, middle-layer planning, and lower-layer planning. The upper-layer planning uses the upgrading and expansion of the grid and the determination of the access nodes of the voltage source converter as decision variables, and is responsible for the global optimal decision; the middle-layer planning uses the configuration nodes and capacity and other parameters of the distributed power source as decision variables to make the best distributed power source access for the upper-layer grid scheme; the lower-layer planning uses the configuration nodes of the energy storage device and the time-segmented energy storage / discharge as decision variables to provide the optimal energy storage device access corresponding to the distributed power source configuration scheme of the middle layer. Therefore, the upper-layer planning constructs a multi-objective function optimization based on the global optimization of the system, the middle-layer planning constructs a multi-objective function optimization based on the maximization of the grid-connected effect of the distributed power source, and the lower-layer planning constructs a multi-objective function optimization based on the maximization of the grid-connected effect of the energy storage device.
[0032] In an embodiment of the present application, the number of iterations and the population size corresponding to the upper-layer population are configured for the upper-layer planning, the number of iterations and the population size corresponding to the middle-layer population are configured for the middle-layer planning, and the number of iterations and the population size corresponding to the lower-layer population are configured for the lower-layer planning. The population size includes a preset number of particles corresponding to each layer of population, and each particle in each layer of population corresponds to a planning scheme.
[0033] In the embodiment of the present application, in the process of solving the three-layer planning model, the independence of each layer of the model should be maintained. On the basis of the construction of the upper-level model, decisions are made on the target variables of the lower-level model, and the process is recursively performed layer by layer. After the optimal solution of the bottom layer is planned, the optimization target is iteratively solved as a parameter supplement to the upper-level model. After the optimal solution of this layer is planned, this process is iterated upward layer by layer to obtain the global optimal solution in the top-level model. In this way, each solution in the upper-level model will have a corresponding optimal lower-level planning solution, which ensures the coordinated combination between each level.
[0034] S120. Determine the optimal energy storage plan for the lower population according to the lower target model and parameter information of the lower population.
[0035] In the embodiment of the present application, the optimal energy storage plan of the lower population is obtained by calculation based on the constructed lower target model and the number of iterations and the population size of the configured lower population.
[0036] Specifically, the specific process of determining the optimal energy storage planning of the lower population according to the lower target model and the parameter information of the lower population in this step can be achieved through the following five sub-steps:
[0037] Step 1: For the current particle in the population size of the lower population, calculate the output probability of the current period under the current typical day corresponding to the current particle according to the lower target model.
[0038] In an embodiment of the present application, the method for predicting the output probability of a typical day is specifically as follows: the distributed energy output data is clustered and analyzed by the historical data of each season, and the cluster centers and output probabilities of several (such as 4 to 5) data sets are obtained, and then a probability prediction of the daily output curve of each season is made, and finally the typical daily curves and corresponding probabilities of each scenario of wind power and photovoltaic energy in the four seasons can be obtained.
[0039] In the embodiment of the present application, the current particle is selected from the population size of the lower population, generally starting from the particle numbered 1, and the current typical day and the current time period are selected according to the lower target model and the output probability prediction method of the typical day, generally starting from the typical day numbered 1 and the time period numbered 1, and the output probability corresponding to the current time period under the current typical day corresponding to the current particle is calculated. Among them, in this embodiment, the typical day is set to 16 days and the time period is set to 24 hours.
[0040] Step 2: Determine whether the lower target model meets the lower constraint conditions according to the output probability; if the lower target model does not meet the lower constraint conditions, determine the fitness of the lower population and store the fitness in the fitness array of the lower population, and then execute step 4.
[0041] In the embodiment of the present application, after calculating the output probability of the current time period under the current typical day corresponding to the current particle, it is then determined whether the lower-level target model meets the lower-level constraint conditions based on the output probability; if not, the fitness of the objective function is solved, and the solved fitness is stored in the fitness array, so that the fitness of the lower-level population that meets the preset requirements can be selected from the fitness array later. After calculating the fitness of the lower-level population corresponding to the current particle, it is also necessary to calculate the fitness of the lower-level population corresponding to the next particle of the current particle, and the specific process is as shown in step 4.
[0042] Step 3: If the lower target model satisfies the lower constraint conditions, determine whether the current time period exceeds the preset time period; when the current time period does not exceed the preset time period, take the next time period as the current time period and return to step 1; when the current time period exceeds the preset time period, determine whether the current typical day exceeds the preset typical day; when the current typical day does not exceed the preset typical day, take the next typical day as the current typical day and return to step 1; when the current typical day exceeds the preset typical day, determine the fitness of the lower population and store the fitness in the fitness array of the lower population.
[0043] In the embodiment of the present application, it is determined whether the lower-level target model satisfies the lower-level constraint conditions according to the output probability; if so, the output probability of the next time period under the current typical day corresponding to the current particle is calculated. If the output probabilities of all time periods under the current typical day are calculated, the output probability of the next typical day corresponding to the current particle is calculated. That is, the next typical day is taken as the current typical day, and step 1 is returned to repeat the execution; if the output probabilities of all typical days under the current particle are calculated, the fitness of the objective function is solved, and the solved fitness is stored in the fitness array, so that the fitness of the lower-level population that meets the preset requirements can be selected from the fitness array later.
[0044] Step 4: Determine whether the sequence number of the current particle exceeds the population size of the lower population. If not, take the next particle as the current particle and return to step 1. If so, determine the optimal energy storage plan of the lower population based on the fitness in the fitness array of the lower population.
[0045] In the embodiment of the present application, after calculating the fitness of the lower population corresponding to the current particle, it is necessary to calculate the fitness of the lower population corresponding to the next particle of the current particle, that is, take the next particle as the current particle, return to step 1 and repeat; if the fitness corresponding to all particles under the lower population is calculated, the optimal energy storage plan of the lower population is determined according to the fitness in the fitness array.
[0046] Step 5: After the above steps, it is necessary to determine whether the current number of iterations exceeds the number of iterations of the lower population. If not, update the particles in the population size of the lower population and return to step 1; if so, output the optimal energy storage plan calculated in step 4.
[0047] In another optional embodiment, the optimal energy storage plan of the lower population is determined according to the fitness in the fitness array, including: judging whether there is a dominance relationship between each particle in the population size of the lower population; if there is a dominance relationship, selecting the optimal fitness from the fitness array of the lower population according to the dominance relationship as the optimal energy storage plan of the lower population.
[0048] Optionally, the lower target model is constructed based on at least one factor of the annual investment in the energy storage device, the operation and maintenance costs, and the stability of the distributed power output.
[0049] Optionally, the lower-level constraint conditions include at least one of: an AC node power balance constraint, a DC node power balance constraint, a node voltage upper and lower limit constraint, a branch power limit constraint, and a capacity constraint.
[0050] S130, determining the optimal power supply configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population.
[0051] In an embodiment of the present application, the optimal energy storage plan of the lower population is calculated through the above step S120, and the optimal energy storage plan of the lower population is input into the middle-level target model. Then, combined with the number of iterations and the population size of the middle-level population, the optimal power supply configuration of the middle-level population can be determined.
[0052] Specifically, the specific process of determining the optimal power configuration of the middle-level population according to the optimal energy storage planning, the middle-level target model and the parameter information of the middle-level population can be achieved through the following three sub-steps:
[0053] Step 1: Select the current particle in the population size corresponding to the middle-level population, determine the fitness corresponding to the middle-level target model according to the optimal energy storage plan and the middle-level target model, and store the fitness in the fitness array of the middle-level population.
[0054] In an embodiment of the present application, a current particle is selected from the population size of the middle-level population, generally starting from the particle numbered 1, and the optimal energy storage plan is used as the input of the middle-level target model, input into the middle-level target model, and the fitness of the middle-level population corresponding to the current particle is determined, and the fitness is stored in the fitness array of the middle-level population, so that the fitness of the middle-level population that meets the preset requirements can be selected from the fitness array later.
[0055] Step 2: Determine whether the sequence number of the current particle exceeds the population size corresponding to the middle population. If not, take the next particle as the current particle and return to step 1. If so, determine the optimal value based on the fitness in the fitness array of the middle population.
[0056] In the embodiment of the present application, after calculating the fitness of the middle-level population corresponding to the current particle, it is necessary to calculate the fitness of the middle-level population corresponding to the next particle of the current particle, that is, take the next particle as the current particle, return to step 1 and repeat; if the fitness corresponding to all particles under the middle-level population is calculated, the optimal value of the middle-level population is determined according to the fitness in the fitness array.
[0057] Step 3: After the above steps, it is necessary to determine whether the current number of iterations exceeds the number of iterations corresponding to the middle population. If not, repeat step 1 according to the optimal value. If so, use the optimal value calculated in step 2 as the optimal power configuration.
[0058] Optionally, the middle-level target model is constructed based on at least one of the following factors: annual investment in distributed power generation, operation and maintenance costs, annual loss reduction of distributed power generation, and system voltage deviation.
[0059] S140, determining the optimal grid configuration for power planning according to the optimal power configuration, the upper target model and the parameter information of the upper population.
[0060] In an embodiment of the present application, the optimal power supply configuration of the middle-level population is calculated through the above-mentioned step S130, and the optimal power supply configuration of the middle-level population is input into the upper-level target model. Then, combined with the number of iterations and the population size of the upper-level population, the optimal grid configuration for power planning can be determined.
[0061] Specifically, the specific process of determining the optimal grid configuration of power planning according to the optimal power configuration, the upper target model and the parameter information of the upper population can be achieved through the following three sub-steps:
[0062] Step 1: Select the current particle in the population size corresponding to the upper population, determine the fitness corresponding to the upper target model according to the optimal power configuration and the upper target model, and store the fitness in the fitness array of the upper population.
[0063] In an embodiment of the present application, a current particle is selected from the population size of an upper population, generally starting from a particle numbered 1, and the optimal power configuration is used as an input to an upper target model, and input into the upper target model to determine the fitness of the upper population corresponding to the current particle, and the fitness is stored in a fitness array of the upper population, so that the fitness of the upper population that meets the preset requirements can be subsequently selected from the fitness array.
[0064] Step 2: Determine whether the sequence number of the current particle exceeds the population size corresponding to the upper population. If not, take the next particle as the current particle and return to step 1. If so, determine the optimal value based on the fitness in the fitness array of the upper population.
[0065] In the embodiment of the present application, after calculating the fitness of the upper population corresponding to the current particle, it is necessary to calculate the fitness of the upper population corresponding to the next particle of the current particle, that is, take the next particle as the current particle, return to step 1 and repeat; if the fitness corresponding to all particles under the upper population is calculated, the optimal value of the upper population is determined according to the fitness in the fitness array of the upper population.
[0066] Step 3: After the above steps, it is necessary to determine whether the current number of iterations exceeds the number of iterations corresponding to the upper population. If not, repeat step 1 according to the optimal value. If so, calculate the optimal value in step 2 as the optimal grid configuration for power planning.
[0067] Optionally, the upper target model is constructed based on at least one factor of annual economic cost, energy storage device investment and operation and maintenance cost, distributed power generation annual investment and operation and maintenance cost, line DC transformation cost, converter cost and system annual electricity purchase cost.
[0068] The technical solution provided in this embodiment sets corresponding parameter information for the upper population, middle population and lower population and initializes them; determines the optimal energy storage plan of the lower population according to the lower target model and the parameter information of the lower population; determines the optimal power supply configuration of the middle population according to the optimal energy storage plan, the middle target model and the parameter information of the middle population; determines the optimal grid configuration of the power planning according to the optimal power supply configuration, the upper target model and the parameter information of the upper population. This application sets a three-layer planning model, which considers the three key elements of grid design, access to distributed energy and access to energy storage devices in AC and DC distribution networks, respectively, and can reflect the hierarchy and correlation between the planning objectives, and can obtain the best solution for power planning.
[0069] Figure 3 A schematic diagram of a power planning device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the device 300 may include:
[0070] The parameter setting module 310 is used to set corresponding parameter information for the upper population, the middle population and the lower population and initialize them. The parameter information includes the number of iterations and the population size. The population size includes a preset number of particles corresponding to each layer of population.
[0071] The energy storage planning module 320 is used to determine the optimal energy storage planning of the lower population according to the lower target model and the parameter information of the lower population.
[0072] The power configuration module 330 is used to determine the optimal power configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population.
[0073] The grid configuration module 340 is used to determine the optimal grid configuration for power planning based on the optimal power supply configuration, the upper target model and the parameter information of the upper population.
[0074] Furthermore, the energy storage planning module 320 can be specifically used for: Step 1: for the current particle in the population size of the lower population, calculate the output probability of the current time period under the current typical day corresponding to the current particle according to the lower target model; Step 2: determine whether the lower target model meets the lower constraint conditions according to the output probability; if the lower target model does not meet the lower constraint conditions, determine the fitness of the lower population, and store the fitness in the fitness array of the lower population, and then execute step 4; Step 3: if the lower target model meets the lower constraint conditions, determine whether the current time period exceeds the preset time period; when the current time period does not exceed the preset time period, take the next time period as the current time period, and return to execute step 1; when the current time period exceeds the preset time period, confirm Determine whether the current typical day exceeds the preset typical day; when the current typical day does not exceed the preset typical day, take the next typical day as the current typical day, and return to execute step one; when the current typical day exceeds the preset typical day, determine the fitness of the lower population, and store the fitness in the fitness array of the lower population; Step 4: Determine whether the sequence number of the current particle exceeds the population size of the lower population, if not, take the next particle as the current particle, and return to execute step one, if so, determine the optimal energy storage plan of the lower population according to the fitness in the fitness array of the lower population; Step 5: Determine whether the current number of iterations exceeds the number of iterations of the lower population, if not, update the particles in the population size of the lower population, and return to execute step one; if so, output the optimal energy storage plan.
[0075] Furthermore, the energy storage planning module 320 can also be specifically used to determine whether there is a dominance relationship between each particle in the population size of the lower population; if there is a dominance relationship, then according to the dominance relationship, select the optimal fitness from the fitness array of the lower population as the optimal energy storage plan for the lower population.
[0076] Furthermore, the power configuration module 330 can be specifically used for: Step 1: Select the current particle from the population size corresponding to the middle-level population, and determine the fitness corresponding to the middle-level target model according to the optimal energy storage plan and the middle-level target model, and store the fitness in the fitness array of the middle-level population; Step 2: Determine whether the sequence number of the current particle exceeds the population size corresponding to the middle-level population. If not, take the next particle as the current particle and return to execute step 1. If so, determine the optimal value according to the fitness in the fitness array of the middle-level population; Step 3: Determine whether the current number of iterations exceeds the number of iterations corresponding to the middle-level population. If not, repeat step 1 according to the optimal value. If so, take the optimal value as the optimal power configuration.
[0077] Furthermore, the above-mentioned grid configuration module 340 can be specifically used for: Step 1: Select the current particle from the population size corresponding to the upper population, and determine the fitness corresponding to the upper target model according to the optimal power supply configuration and the upper target model, and store the fitness in the fitness array of the upper population; Step 2: Determine whether the sequence number of the current particle exceeds the population size corresponding to the upper population. If not, take the next particle as the current particle and return to execute step 1. If so, determine the optimal value according to the fitness in the fitness array of the upper population; Step 3: Determine whether the current number of iterations exceeds the number of iterations corresponding to the upper population. If not, repeat step 1 according to the optimal value. If so, take the optimal value as the optimal grid configuration of the power planning.
[0078] Optionally, the lower-level constraint conditions include: at least one of: an AC node power balance constraint, a DC node power balance constraint, a node voltage upper and lower limit constraint, a branch power limit constraint, and a capacity constraint.
[0079] Optionally, the lower-level target model is constructed based on at least one factor including the annual investment in energy storage devices, operation and maintenance costs, and stability of distributed power output; the middle-level target model is constructed based on at least one factor including the annual investment in distributed power sources, operation and maintenance costs, annual loss reduction of distributed power sources, and system voltage deviation; the upper-level target model is constructed based on at least one factor including annual economic costs, investment and operation and maintenance costs of energy storage devices, annual investment and operation and maintenance costs of distributed power sources, line DC transformation costs, converter costs, and annual electricity purchase costs of the system.
[0080] The power planning device provided in this embodiment can be applied to the power planning method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0081] Figure 4 is a block diagram of an electronic device used to implement a power planning method according to an embodiment of the present application, Figure 4 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application is shown. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application. The electronic device can typically be a smart phone, a tablet computer, a laptop computer, a vehicle-mounted terminal, a wearable device, etc.
[0082] like Figure 4As shown, the electronic device 400 is in the form of a general purpose computing device. The components of the electronic device 400 may include, but are not limited to: one or more processors or processing units 416, a memory 428, and a bus 418 connecting different system components (including the memory 428 and the processing unit 416).
[0083] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0084] The electronic device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 400, including volatile and non-volatile media, removable and non-removable media.
[0085] The memory 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The electronic device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 434 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 418 via one or more data medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0086] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in the memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 442 generally perform the functions and / or methods described in the embodiments of the present application.
[0087] The electronic device 400 may also communicate with one or more external devices 414 (e.g., keyboards, pointing devices, displays 424, etc.), one or more devices that enable a user to interact with the electronic device 400, and / or any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 422. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 420. Figure 4 As shown, the network adapter 420 communicates with other modules of the electronic device 400 via the bus 418. It should be understood that although Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0088] The processing unit 416 executes various functional applications and data processing by running the programs stored in the memory 428, such as implementing the power planning method provided in any embodiment of the present application.
[0089] The present application also provides a computer-readable storage medium on which a computer program (or computer-executable instructions) is stored. When the program is executed by a processor, it can be used to execute the power planning method provided in any of the above embodiments of the present application.
[0090] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, - but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0091] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0092] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0093] The computer program code for performing the operation of the embodiment of the application can be written in one or more programming languages or a combination thereof, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect to the Internet).
Claims
1. A power planning method, characterized in that: The method comprises: Setting corresponding parameter information for the upper population, the middle population and the lower population and initializing them, the parameter information including the number of iterations and the population size, the population size including a preset number of particles corresponding to each layer of the population; The optimal energy storage plan of the lower population is determined according to the lower target model and the parameter information of the lower population, including: step 1: for the current particle in the population scale of the lower population, the output probability of the current time period under the current typical day corresponding to the current particle is calculated according to the lower target model; step 2: judging whether the lower target model satisfies the lower constraint condition according to the output probability; if the lower target model does not satisfy the lower constraint condition, determining the fitness of the lower population, and storing the fitness in the fitness array of the lower population, and then executing step 4; step 3: If the lower target model satisfies the lower constraint condition, determine whether the current time period exceeds the preset time period; when the current time period does not exceed the preset time period, take the next time period as the current time period, and return to execute step one; when the current time period exceeds the preset time period, determine whether the current typical day exceeds the preset typical day; when the current typical day does not exceed the preset typical day, take the next typical day as the current typical day, and return to execute step one; when the current typical day exceeds the preset typical day, determine the fitness of the lower population, and store the fitness in the fitness array of the lower population; Step 4: Determine whether the sequence number of the current particle exceeds the population size of the lower population. If not, take the next particle as the current particle, and return to execute step one. If so, determine the optimal energy storage plan of the lower population according to the fitness in the fitness array of the lower population; Step 5: Determine whether the current number of iterations exceeds the number of iterations of the lower population; if not, update the particles in the population size of the lower population and return to step 1; if yes, output the optimal energy storage plan; Determine the optimal power supply configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population, including: Step 1: Select the current particle from the population size corresponding to the middle-level population, and determine the fitness corresponding to the middle-level target model according to the optimal energy storage plan and the middle-level target model, and store the fitness in the fitness array of the middle-level population; Step 2: Determine whether the sequence number of the current particle exceeds the population size corresponding to the middle-level population, if not, take the next particle as the current particle, and return to execute step 1, if so, determine the optimal value according to the fitness in the fitness array of the middle-level population; Step 3: Determine whether the current number of iterations exceeds the number of iterations corresponding to the middle-level population, if not, repeat step 1 according to the optimal value, if so, take the optimal value as the optimal power supply configuration; The optimal grid configuration of the power planning is determined according to the optimal power configuration, the upper target model and the parameter information of the upper population, including: step 1: selecting the current particle from the population size corresponding to the upper population, and determining the fitness corresponding to the upper target model according to the optimal power configuration and the upper target model, and storing the fitness in the fitness array of the upper population; step 2: judging whether the sequence number of the current particle exceeds the population size corresponding to the upper population, if not, taking the next particle as the current particle, and returning to execute step 1, if yes, determining the optimal value according to the fitness in the fitness array of the upper population; step 3: judging whether the current number of iterations exceeds the number of iterations corresponding to the upper population, if not, repeating step 1 according to the optimal value, if yes, taking the optimal value as the optimal grid configuration of the power planning.
2. The power planning method according to claim 1, characterized in that: The step of determining the optimal energy storage plan of the lower population according to the fitness in the fitness array of the lower population includes: Determining whether there is a dominance relationship between each particle in the population size of the lower population; If the dominating relationship exists, the optimal fitness is selected from the fitness array of the lower population according to the dominating relationship as the optimal energy storage plan of the lower population.
3. The power planning method according to claim 1, characterized in that: The lower-level constraint conditions include: at least one of: an AC node power balance constraint, a DC node power balance constraint, a node voltage upper and lower limit constraint, a branch power limit constraint, and a capacity constraint.
4. The power planning method according to claim 1, characterized in that: The lower target model is constructed based on the annual investment in energy storage devices, operation and maintenance costs, and at least one factor of the stability of distributed power output; the middle target model is constructed based on the annual investment in distributed power sources, operation and maintenance costs, the annual loss reduction of distributed power sources, and at least one factor of system voltage deviation; the upper target model is constructed based on at least one factor of annual economic costs, energy storage device investment and operation and maintenance costs, distributed power source annual investment and operation and maintenance costs, line DC transformation costs, converter costs, and annual power purchase costs of the system.
5. A power planning device, characterized in that: The device comprises: A parameter setting module, used to set corresponding parameter information for the upper population, the middle population and the lower population and initialize them, wherein the parameter information includes the number of iterations and the population size, and the population size includes a preset number of particles corresponding to each layer of the population; An energy storage planning module, used to determine the optimal energy storage planning of the lower population according to the lower target model and parameter information of the lower population; A power configuration module, used to determine the optimal power configuration of the middle-level population according to the optimal energy storage plan, the middle-level target model and the parameter information of the middle-level population; A grid configuration module, used to determine the optimal grid configuration of power planning according to the optimal power configuration, the upper target model and the parameter information of the upper population; The energy storage planning module is specifically used for step 1: for the current particle in the population size of the lower population, the output probability of the current time period under the current typical day corresponding to the current particle is calculated according to the lower target model; step 2: judging whether the lower target model satisfies the lower constraint condition according to the output probability; if the lower target model does not satisfy the lower constraint condition, determining the fitness of the lower population, and storing the fitness in the fitness array of the lower population, and then executing step 4; step 3: If the lower target model satisfies the lower constraint condition, determine whether the current time period exceeds the preset time period; when the current time period does not exceed the preset time period, take the next time period as the current time period, and return to execute step one; when the current time period exceeds the preset time period, determine whether the current typical day exceeds the preset typical day; when the current typical day does not exceed the preset typical day, take the next typical day as the current typical day, and return to execute step one; when the current typical day exceeds the preset typical day, determine the fitness of the lower population, and store the fitness in the fitness array of the lower population; Step 4: Determine whether the sequence number of the current particle exceeds the population size of the lower population. If not, take the next particle as the current particle, and return to execute step one. If so, determine the optimal energy storage plan of the lower population according to the fitness in the fitness array of the lower population; Step 5: Determine whether the current number of iterations exceeds the number of iterations of the lower population; if not, update the particles in the population size of the lower population and return to step 1; if yes, output the optimal energy storage plan; The power configuration module is specifically used for step 1: selecting a current particle from the population size corresponding to the middle-level population, and determining the fitness corresponding to the middle-level target model according to the optimal energy storage plan and the middle-level target model, and storing the fitness in the fitness array of the middle-level population; step 2: judging whether the sequence number of the current particle exceeds the population size corresponding to the middle-level population, if not, taking the next particle as the current particle, and returning to execute step 1, if so, determining the optimal value according to the fitness in the fitness array of the middle-level population; step 3: judging whether the current number of iterations exceeds the number of iterations corresponding to the middle-level population, if not, repeating step 1 according to the optimal value, if so, taking the optimal value as the optimal power configuration; The grid configuration module is specifically used for step 1: selecting a current particle from the population size corresponding to the upper population, and determining the fitness corresponding to the upper target model according to the optimal power configuration and the upper target model, and storing the fitness in the fitness array of the upper population; step 2: judging whether the sequence number of the current particle exceeds the population size corresponding to the upper population, if not, taking the next particle as the current particle, and returning to execute step 1, if so, determining the optimal value according to the fitness in the fitness array of the upper population; step 3: judging whether the current number of iterations exceeds the number of iterations corresponding to the upper population, if not, repeating step 1 according to the optimal value, and if so, taking the optimal value as the optimal grid configuration of the power planning.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the power planning method as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the power planning method as claimed in any one of claims 1 to 4 is implemented.
