A method and system for optimizing energy system network topology based on harmony search
Optimizing the energy system network topology through the harmony search algorithm solves the energy loss problem caused by only considering cost in the existing technology, and achieves more efficient energy system transmission.
Patent Information
- Application Number
- CN202411140242.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-20
AI Technical Summary
Existing energy system network topology optimization methods only consider cost factors, resulting in the selection of long-distance transmission lines, increasing energy loss and reducing system efficiency.
The energy system network topology optimization method based on harmony search is adopted. By obtaining the location information of energy stations and loads, adding ordinary nodes, hierarchical lines, setting different cross-sectional areas, combining energy loss and layout cost, the harmony search algorithm is used to optimize the network. topology.
Reduce the energy loss of the energy system during the transmission process, improve the efficiency of the energy system, comprehensively consider energy loss and layout costs, and achieve a better network topology.
Smart Images

Figure CN118656944B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for optimizing network topology of an energy system based on harmony search. Background Art
[0002] With the development of photovoltaic power generation, more and more clean energy systems containing photovoltaic power generation equipment have been applied, which makes the network topology of energy systems increasingly complex. Optimizing the network topology of energy systems can effectively improve the reliability and stability of energy systems, reduce the probability of failures, and enhance the system's ability to respond to emergencies. This is especially important for power systems, because the continuity of power supply directly affects social production and residents' lives.
[0003] Currently, energy system network topology optimization often focuses on selecting node addresses with minimal cost, that is, determining the location of each node in the energy system and then constructing transmission lines based on the node locations.
[0004] However, considering only the cost factor, although it helps to reduce the initial investment, it may lead to the selection of long-distance transmission lines, which may increase energy loss and reduce system efficiency. Summary of the invention
[0005] In order to solve the technical problem that the prior art only considers the cost factor, although it helps to reduce the initial investment, only considering the cost may lead to the selection of long-distance transmission lines, which may increase energy loss and reduce system efficiency, the present invention provides an energy system network topology optimization method and system based on harmonic search.
[0006] The technical solution provided by the embodiment of the present invention is as follows:
[0007] First aspect:
[0008] An energy system network topology optimization method based on harmony search is provided in an embodiment of the present invention, comprising:
[0009] S1: Obtain location information of energy stations and loads in the energy system;
[0010] S2: using the location information of the energy station as the energy point and the location information of the load as the load point, adding a plurality of common nodes between the energy point and the load point, and generating a plurality of energy system network topologies connecting the energy point and the load point, wherein the nodes of the energy system network topology include energy points, load points and common nodes;
[0011] S3: Classifying the lines in the energy system network topology according to the positional relationship between each line and the energy point and the load point;
[0012] S4: Set different cross-sectional areas for lines of different levels;
[0013] S5: Calculate the energy system layout cost under various energy system network topologies;
[0014] S6: Calculate the transmission power between nodes in various energy system network topologies;
[0015] S7: Calculate the energy loss of the energy system under various energy system network topologies based on the transmission power between each node;
[0016] S8: With the goal of reducing energy loss and layout cost of the energy system, the network topology of the energy system is optimized through the harmony search algorithm.
[0017] Second aspect:
[0018] An energy system network topology optimization system based on harmony search is provided in an embodiment of the present invention, comprising:
[0019] processor;
[0020] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the energy system network topology optimization method based on harmony search as described in the first aspect is implemented.
[0021] The third aspect:
[0022] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for optimizing the network topology of an energy system based on harmony search as described in the first aspect is implemented.
[0023] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0024] In the present invention, the two factors of energy loss and layout cost are comprehensively considered, with the goal of reducing the energy loss of the energy system and reducing the layout cost of the energy system. The network topology of the energy system is optimized through the harmonic search algorithm to reduce the energy loss of the energy system during transmission and improve the efficiency of the energy system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A schematic diagram of a flow chart of a method for optimizing energy system network topology based on harmony search provided by an embodiment of the present invention;
[0027] Figure 2 A schematic structural diagram of an energy system network topology optimization system based on harmony search provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0029] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0030] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0031] In the embodiments of the present invention, sometimes a subscript such as W1 may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings to be expressed are consistent.
[0032] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0033] Reference Manual Attached Figure 1 , showing a flow chart of an energy system network topology optimization method based on harmony search provided in an embodiment of the present invention.
[0034] The embodiment of the present invention provides an energy system network topology optimization method based on harmony search, which can be implemented by an energy system network topology optimization device based on harmony search, and the energy system network topology optimization device based on harmony search can be a terminal or a server. The processing flow of the energy system network topology optimization method based on harmony search can include the following steps:
[0035] S1: Obtain location information of energy stations and loads in the energy system.
[0036] S2: Using the location information of the energy station as the energy point and the location information of the load as the load point, multiple common nodes are added between the energy point and the load point to generate multiple energy system network topologies connecting the energy point and the load point.
[0037] Among them, the nodes of the energy system network topology include energy points, load points and ordinary nodes.
[0038] Specifically, obtain node information, connect all nodes, and generate a complete graph. The weight of each edge can be calculated based on distance or other cost factors. Extract a minimum spanning tree from the complete graph as the initial network topology. This can be achieved through Kruskal or Prim's algorithm. Remove the edges of the minimum spanning tree from the complete graph to form a candidate edge set. Select several edges from the candidate edge set and add them to the initial topology to form redundant paths, increasing the reliability and flexibility of the network. Generate a variety of different network topologies by randomly selecting different common nodes and candidate edges.
[0039] S3: Classify the lines in the energy system network topology according to the positional relationship between each line and the energy point and the load point.
[0040] In a possible implementation, S3 specifically includes sub-steps S301 to S303:
[0041] S301: Determine the line directly connected to the energy point as a primary line.
[0042] S302: Determine a line connecting two common nodes as a secondary line.
[0043] S303: The line directly connected to the load point is determined to be a third-level line.
[0044] S4: Set different cross-sectional areas for lines of different levels.
[0045] In a possible implementation, the cross-sectional area of the primary line is larger than the cross-sectional area of the secondary line, and the cross-sectional area of the secondary line is larger than the cross-sectional area of the tertiary line.
[0046] It should be noted that the primary lines are directly connected to the energy points. These lines transmit large power and heavy loads, and require a larger cross-sectional area to ensure stability and reliability. By increasing the cross-sectional area, the resistance of the line can be reduced, power loss can be reduced, and transmission efficiency can be improved. The secondary line connects two common nodes and plays a role in auxiliary transmission. The cross-sectional area is moderate and can provide the necessary redundancy to improve the reliability of the system. The tertiary lines connect the load points. The power transmitted by these lines is relatively small, and the cross-sectional area can be smaller, thus saving costs.
[0047] In the present invention, by grading the lines in the energy system network topology and setting different cross-sectional areas for lines of different levels, the reliability and safety of the system can be improved. At the same time, by grading and setting different cross-sectional areas, resources can be reasonably allocated and material and construction costs can be reduced under the premise of ensuring the safety and reliability of the system. Important lines use cables with large cross-sectional areas, while secondary lines and final lines use cables with smaller cross-sectional areas to avoid waste of resources.
[0048] S5: Calculate the energy system layout cost under various energy system network topologies.
[0049] In a possible implementation, the energy system deployment cost is specifically:
[0050]
[0051] in, C represents the energy system layout cost, l ij Representation Node i With Node j The length of the line between a ij Representation Node i With Node j The cross-sectional area of the line between c mat represents the unit cost of line materials, c ins represents the unit cost of line installation, N Represents the total number of nodes in the energy system.
[0052] In the present invention, the energy system layout cost mainly includes material cost and installation cost, ensuring a comprehensive layout cost assessment. By calculating the layout costs of different topologies, comparisons and selections can be made to help optimize the energy system network layout to minimize costs.
[0053] S6: Calculate the transmission power between nodes in various energy system network topologies.
[0054] In a possible implementation, S6 specifically includes sub-steps S601 to S603:
[0055] S601: Constructing the power flow equations:
[0056]
[0057] in, P i Representation Node i The power flow, P ij Representation Node i With Node j The transmission power between X ij Representation Node i With Node j The reactance between B ij Representation Node i With Node j The electrical susceptance between δ j Representation Node j The phase of δ i Representation Node i The phase of N Represents the total number of nodes in the energy system.
[0058] S602: For the power flow of each node in the energy system, the power flow equation is expressed in matrix form:
[0059] Among them, P represents the power flow matrix of the energy system, B represents the susceptance matrix, and δ represents the phase matrix.
[0060] S603: Solve the power flow equation to obtain the transmission power between each node.
[0061] Alternatively, an iterative method such as the Newton-Raphson method can be used for the solution.
[0062] Specifically, set the initial node voltages and phase angles. Calculate the power imbalance (the difference between actual power and target power). Construct a Jacobian matrix that represents the sensitivity of power changes to voltage and phase angle changes. Solve the linear equations to update the node voltages and phase angles. Repeat the above steps until the power imbalance is within an acceptable range (convergence). Once the phase angle δ , Electron B The solution is complete and the nodes can be calculated i With Node j The transmission power between P ij : .
[0063] In the present invention, by constructing and solving the power flow equation, the transmission power between each node in the energy system can be accurately calculated. The specific steps include initializing parameters, constructing the susceptance matrix, solving the power flow equation, and calculating the transmission power. This process provides basic data support for optimizing the network topology of the energy system and ensuring efficient and reliable operation of the system.
[0064] S7: Calculate the energy loss of the energy system under various energy system network topologies based on the transmission power between each node.
[0065] In a possible implementation, the energy loss of the energy system is specifically:
[0066]
[0067] in, E represents the energy loss of the energy system, N represents the total number of nodes in the energy system, e ij Representation Node i With Node j The energy loss between T represents the total observation time, express t Time Node i With Node j The power loss between express t Time Node i With Node j The transmission power between U Indicates the rated voltage of the energy system network. R ij Representation Node i With Node j The line resistance between ρ represents the line resistivity, l ij Representation Node i With Node j The length of the line between a ij Representation Node i With Node j The cross-sectional area of the line between.
[0068] S8: With the goal of reducing energy loss and layout cost of the energy system, the network topology of the energy system is optimized through the harmony search algorithm.
[0069] Among them, the network topology parameters of the energy system network topology include: the location of each node, the length of each line and the cross-sectional area.
[0070] Among them, the Harmony Search Algorithm (HS) is a heuristic optimization algorithm based on finding harmonious tones during music improvisation. The Harmony Search Algorithm imitates the process of musicians finding the best harmony by constantly adjusting the tones during improvisation.
[0071] In the present invention, the two factors of energy loss and layout cost are comprehensively considered, with the goal of reducing the energy loss of the energy system and reducing the layout cost of the energy system. The network topology of the energy system is optimized through the harmonic search algorithm to reduce the energy loss of the energy system during transmission and improve the efficiency of the energy system.
[0072] In a possible implementation, S8 specifically includes sub-steps S801 to S803:
[0073] S801: Construct an optimization objective function with the goal of reducing energy system energy loss and reducing energy system layout cost.
[0074] Optionally, the optimization objective function is specifically:
[0075]
[0076] in, f represents the optimization objective function, Y represents the energy system network topology scheme, E represents the energy loss of the energy system, C represents the energy system layout cost, α The weight coefficient representing the energy loss of the energy system.
[0077] Among them, technicians in this field can set the weight coefficient of energy loss of the energy system according to actual conditions. α The present invention does not limit the size.
[0078] In the present invention, energy loss and layout cost are combined in one optimization objective function to ensure comprehensive consideration of system performance and economy, reduce energy loss, and achieve comprehensive optimization of energy system network topology.
[0079] S802: Taking the inverse of the optimization objective function as the fitness function of the harmony search algorithm.
[0080] S803: With the goal of maximizing the fitness function, the optimal energy system network topology is determined through the harmony search algorithm, and the energy system network topology is optimized.
[0081] It should be noted that the traditional harmony search algorithm is prone to fall into a local optimal solution. The present invention improves the harmony search algorithm.
[0082] Optionally, S803 specifically includes:
[0083] Initialize the harmony memory. The harmony memory includes multiple harmonies. A harmony includes multiple components. Each harmony represents a feasible energy system network topology. Each component represents a network topology parameter. The network topology parameters include: the location of each node, the length of each line, and the cross-sectional area:
[0084]
[0085] in, HM Indicates the harmony memory bank, D represents the harmonic dimension, X i Indicates i A harmony, HMS Indicates the size of the harmony memory library. x ij Indicates i The first in harmony j Quantity, , D Represents the harmonic dimension.
[0086] Generate random numbers r 1. Determine the random number r Is 1 less than the probability of taking the value from the harmony memory? If so, randomly generate a new harmony from the harmony memory. Otherwise, generate a new harmony by random selection.
[0087] Optionally, randomly generating new harmonies through a harmony memory library is specifically as follows:
[0088]
[0089]
[0090] in, X new Indicates a new harmony, x new,j Indicates the first j Quantity, D represents the harmonic dimension, rand represents random selection, x ij Indicates i The first in harmony j Quantity, , HMS Indicates the size of the harmony memory library.
[0091] In the present invention, new solutions are randomly selected from the harmony memory library, which can effectively utilize the existing excellent solution information. The harmony memory library stores the currently found optimal or relatively optimal solutions, and the characteristics of these solutions can be used to accelerate the convergence to the global optimal solution. Randomly selecting different component combinations to generate new solutions helps to maintain the diversity of the population and avoid falling into the local optimum.
[0092] Optionally, generating new harmony by random selection is as follows:
[0093]
[0094] in, upper j Indicates j The upper boundary of the component, lower j Indicates j The lower boundary of the component.
[0095] In the present invention, by randomly selecting and generating new harmonies within the definition domain, the diversity of solutions can be effectively maintained, the search range can be expanded, the robustness of the algorithm can be improved, the feasibility of the solution can be guaranteed, and a balance between exploration and development can be provided. This method enables the harmony search algorithm to search the solution space more comprehensively, improves the possibility of finding the global optimal solution, and enhances the adaptability and practicality of the algorithm.
[0096] Optionally, the upper boundary and the lower boundary are specifically:
[0097]
[0098] in, Indicates j The quantity in t The upper bound at the iteration, Indicates j The quantity in t -The upper bound at 1 iteration, HM (: j ) indicates the first j Quantity, Indicates the first j The maximum value of the components, Indicates j The quantity in t The lower bound at the iteration, Indicates j The quantity in t -The lower bound at 1 iteration, Indicates the first j The minimum value of the components, TIndicates the total number of iterations.
[0099] It should be noted that in the early stages, a larger search range ensures diverse understanding; in the later stages, a smaller search range ensures refined understanding, thus balancing the needs of exploration and development.
[0100] In the present invention, by dynamically adjusting the upper and lower boundaries to generate new harmonies, the search efficiency and robustness of the harmony search algorithm can be effectively improved. The dynamically adjusted boundaries can not only smoothly transition from global search to local search and maintain the diversity of solutions, but also enhance the global and local search capabilities, avoid premature convergence, and ultimately improve the convergence speed of the algorithm and the possibility of finding the optimal solution. This method provides flexibility and adaptability for the optimization process, making the harmony search algorithm more efficient and reliable when dealing with complex optimization problems.
[0101] Generate random numbers when randomly generating new harmonies from the harmony memory r 2. Determine the random number r 2 is less than the pitch fine-tuning probability. If so, generate a new harmony through pitch fine-tuning. Otherwise, keep the harmony unchanged.
[0102] Optionally, generating a new harmony by fine-tuning the pitch is specifically as follows:
[0103]
[0104] in, Indicates the first chord in the new chord after the new chord is fine-tuned. j Quantity, x new,j Indicates the first j Quantity, BW Indicates fine-tuning bandwidth, r 3 represents a random number between -1 and 1, x best,j Indicates the harmony with the highest current fitness value. j Quantity, x worst,j Indicates the harmony with the lowest current fitness value. j A quantity.
[0105] In the present invention, the method of generating new harmony through pitch fine-tuning improves the local search capability, balances exploration and development, accelerates the convergence process, maintains the diversity of solutions, and provides greater flexibility and adaptability by combining the information of the optimal solution and the worst solution, using the adjustment of the fine-tuning bandwidth and random numbers. This method plays an important role in the harmony search algorithm, enabling the algorithm to search the solution space more effectively and find the optimal solution.
[0106] The generated new harmony is compared with the harmony with the lowest fitness value in the harmony memory library to determine whether the fitness value of the new harmony is greater than the fitness value of the harmony with the lowest fitness value in the harmony memory library. If so, the harmony with the lowest fitness value in the harmony memory library is replaced with the new harmony to update the harmony memory library. Otherwise, the harmony memory library remains unchanged.
[0107] Determine whether the current number of iterations has reached the maximum number of iterations. If so, output the energy system network topology represented by the harmony with the highest current fitness as the optimal energy system network topology. Otherwise, return to continue iterating.
[0108] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0109] In the present invention, the two factors of energy loss and layout cost are comprehensively considered, with the goal of reducing the energy loss of the energy system and reducing the layout cost of the energy system. The network topology of the energy system is optimized through the harmonic search algorithm to reduce the energy loss of the energy system during transmission and improve the efficiency of the energy system.
[0110] Reference Manual Attached Figure 2 , showing a structural schematic diagram of an energy system network topology optimization system based on harmonious search provided by the present invention.
[0111] The present invention further provides an energy system network topology optimization system 20 based on harmony search, which is applied to the above-mentioned energy system network topology optimization method based on harmony search, comprising:
[0112] Processor 201;
[0113] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the energy system network topology optimization method based on harmony search as described in the method embodiment is implemented.
[0114] The energy system network topology optimization system 20 based on harmony search provided by the present invention can execute the above-mentioned energy system network topology optimization method based on harmony search and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0115] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0116] In the present invention, the two factors of energy loss and layout cost are comprehensively considered, with the goal of reducing the energy loss of the energy system and reducing the layout cost of the energy system. The network topology of the energy system is optimized through the harmonic search algorithm to reduce the energy loss of the energy system during transmission and improve the efficiency of the energy system.
[0117] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0118] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile 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), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0119] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0120] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0121] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0122] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0123] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0124] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0125] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0128] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0129] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for optimizing the network topology of an energy system based on harmony search as described in the method embodiment is implemented.
[0130] A computer-readable storage medium provided by the present invention can implement the steps and effects of the energy system network topology optimization method based on harmony search in the above method embodiment. To avoid repetition, the present invention will not go into details.
[0131] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0132] In the present invention, the two factors of energy loss and layout cost are comprehensively considered, with the goal of reducing the energy loss of the energy system and reducing the layout cost of the energy system. The network topology of the energy system is optimized through the harmonic search algorithm to reduce the energy loss of the energy system during transmission and improve the efficiency of the energy system.
[0133] 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.
[0134] There are a few points to note:
[0135] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0136] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0137] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0138] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for optimizing energy system network topology based on harmony search, characterized in that: include: S1: Obtain location information of energy stations and loads in the energy system; S2: using the location information of the energy station as the energy point and the location information of the load as the load point, adding a plurality of common nodes between the energy point and the load point, and generating a plurality of energy system network topologies connecting the energy point and the load point, wherein the nodes of the energy system network topology include energy points, load points and common nodes; S3: Classifying the lines in the energy system network topology according to the positional relationship between each line and the energy point and the load point; S4: Set different cross-sectional areas for lines of different levels; S5: Calculate the energy system layout cost under various energy system network topologies; S6: Calculate the transmission power between nodes in various energy system network topologies; S7: Calculate the energy loss of the energy system under various energy system network topologies based on the transmission power between each node; S8: With the goal of reducing energy loss and layout cost of the energy system, the network topology of the energy system is optimized through the harmony search algorithm.
2. The method for optimizing energy system network topology based on harmony search according to claim 1 is characterized in that: The S3 specifically includes: S301: Determine the line directly connected to the energy point as a primary line; S302: Determine a line connecting two common nodes as a secondary line; S303: The line directly connected to the load point is determined to be a third-level line.
3. The energy system network topology optimization method based on harmony search according to claim 2 is characterized in that: The cross-sectional area of the primary circuit is greater than the cross-sectional area of the secondary circuit, and the cross-sectional area of the secondary circuit is greater than the cross-sectional area of the tertiary circuit.
4. The method for optimizing energy system network topology based on harmony search according to claim 1, characterized in that: The energy system layout cost is specifically: in, C represents the energy system layout cost, l ij Representation Node i With Node j The length of the line between a ij Representation Node i With Node j The cross-sectional area of the line between c mat represents the unit cost of line materials, c ins represents the unit cost of line installation, N Represents the total number of nodes in the energy system.
5. The method for optimizing energy system network topology based on harmony search according to claim 1, characterized in that: The S6 specifically includes: S601: Constructing the power flow equations: in, P i Representation Node i The power flow, P ij Representation Node i With Node j The transmission power between X ij Representation Node i With Node j The reactance between B ij Representation Node i With Node j The electrical susceptance between δ j Representation Node j The phase of δ i Representation Node i The phase of N represents the total number of nodes in the energy system; S602: For the power flow of each node in the energy system, the power flow equation is expressed in matrix form: Among them, P represents the power flow matrix of the energy system, B represents the susceptance matrix, and δ represents the phase matrix; S603: Solve the power flow equation to obtain the transmission power between each node.
6. The method for optimizing energy system network topology based on harmony search according to claim 1, characterized in that: The energy loss of the energy system is specifically: in, E represents the energy loss of the energy system, N represents the total number of nodes in the energy system, e ij Representation Node i With Node j The energy loss between T represents the total observation time, express t Time Node i With Node j The power loss between express t Time Node i With Node j The transmission power between U Indicates the rated voltage of the energy system network. R ij Representation Node i With Node j The line resistance between ρ represents the line resistivity, l ij Representation Node i With Node j The length of the line between a ij Representation Node i With Node j The cross-sectional area of the line between.
7. The energy system network topology optimization method based on harmony search according to claim 1 is characterized in that: The S8 specifically includes: S801: Construct an optimization objective function with the goal of reducing energy system energy loss and energy system layout cost; S802: Using the inverse of the optimization objective function as the fitness function of the harmony search algorithm; S803: With the goal of maximizing the fitness function, determine the optimal energy system network topology through a harmony search algorithm, and optimize the energy system network topology.
8. The method for optimizing energy system network topology based on harmony search according to claim 7 is characterized in that: The optimization objective function is specifically: in, f represents the optimization objective function, Y represents the energy system network topology scheme, E represents the energy loss of the energy system, C represents the energy system layout cost, α The weight coefficient representing the energy loss of the energy system.
9. The method for optimizing energy system network topology based on harmony search according to claim 7 is characterized in that: The S803 specifically includes: Initializing a harmony memory bank, wherein the harmony memory bank includes a plurality of harmonies, each harmony includes a plurality of components, each harmony represents a feasible energy system network topology, each component represents a network topology parameter, and the network topology parameter includes: the location of each node, the length of each line, and the cross-sectional area; Generate random numbers r 1. Determine the random number r Is 1 less than the probability of taking the value from the harmony memory? If so, a new harmony is randomly generated through the harmony memory; otherwise, a new harmony is generated through random selection; Generate random numbers when randomly generating new harmonies from the harmony memory r 2. Determine the random number r 2 is less than the pitch fine-tuning probability; if so, generate a new harmony through pitch fine-tuning; otherwise, keep the harmony unchanged; Compare the generated new harmony with the harmony with the lowest fitness value in the harmony memory bank to determine whether the fitness value of the new harmony is greater than the fitness value of the harmony with the lowest fitness value in the harmony memory bank; if so, use the new harmony to replace the harmony with the lowest fitness value in the harmony memory bank and update the harmony memory bank; otherwise, keep the harmony memory bank unchanged; Determine whether the current number of iterations has reached the maximum number of iterations; if so, output the energy system network topology represented by the harmony with the highest current fitness as the optimal energy system network topology; otherwise, return to continue iteration.
10. An energy system network topology optimization system based on harmony search, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the energy system network topology optimization method based on harmony search as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Wind power plant layout optimization method and optimization system and computer readable storage medium
CN111030179A
Offshore wind power cluster scheduling optimization method and device based on energy router
CN116169726A
Energy system optimization scheduling method based on harmony search algorithm
CN116663798A
Power grid total factor resource coordination control method and system
CN117117876A
Optimizing power flows using harmony search with machine learning
US20160125097A1
