Standby carbon meter system optimal configuration method and device for electric power carbon metering
By building the objective function with the lowest cost of backup carbon meter layout and multi-faceted constraints, the layout of the carbon meter system is optimized, and the problem of failure of the carbon metering system is solved, and the efficient, economical carbon metering and low-carbon transformation of the power system is achieved.
Patent Information
- Application Number
- CN202510335514.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-11
AI Technical Summary
Because the electricity-used carbon metering theory has adjacent characteristics, a carbon meter failure causes the entire system to fail, and there is a lack of effective backup carbon meter system configuration methods.
By constructing the objective function with the lowest cost of spare carbon table layout, and solving the problem of minimum number of table layouts in combination with multiple constraints, the layout location and quantity of carbon table system is optimized to ensure the integrity and economicality of the carbon metering function of the power system.
On the premise of ensuring the integrity of carbon metrology functions, it effectively reduces the construction cost of backup carbon meter systems, avoids resource waste, improves metrology accuracy and system stability, and provides scientific, economical and accurate solutions for the low-carbon transformation of the power industry.
Smart Images

Figure CN120296916A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of low-carbon power technology and carbon metering technology, and particularly relates to an optimization configuration method and device for a standby carbon meter system for power carbon metering. Background Art
[0002] In related technologies, the carbon emission flow tracking method has a relatively complete theoretical system and rich practical experience in power carbon emission calculation. Among them, the carbon meter system for real-time and accurate power consumption carbon metering has received attention. It consists of a carbon meter, an electric carbon platform, and a communication link, and can measure information on the source side, grid side, and user side to obtain the distribution of carbon emission flows and indirect carbon emissions.
[0003] However, in related technologies, power consumption carbon metering is based on the carbon emission flow theory, which has an adjacency characteristic. This may cause the carbon metering function of the entire system to fail when a certain carbon meter malfunctions. Therefore, there is an urgent need for a standby carbon meter system, which can ensure continuous and accurate metering when the original carbon meter fails. However, the configuration of the standby carbon meter needs to consider many factors systematically. The embodiments of this application provide solutions to these problems. Summary of the Invention
[0004] This application provides an optimization configuration method and device for a standby carbon meter system for power carbon metering to solve the problem in related technologies that due to the adjacency characteristic of the power consumption carbon metering theory, the carbon metering function of the entire system fails when a certain carbon meter malfunctions.
[0005] The first aspect embodiment of this application provides an optimization configuration method for a standby carbon meter system for power carbon metering, including the following steps: generating an objective function with the lowest layout cost of the standby carbon meter, and based on the layout position meeting the system conditions, realizing the metering feasibility of the power system, and generating constraint conditions for non-redundant metering, solving the problem of the minimum number of layout of the standby carbon meter system to determine the number of layout of the standby carbon meter; generating an optimized layout plan for the standby carbon meter device with the minimum metering error according to the number of layout of the standby carbon meter and the network loss existing in the actual operation of the power system.
[0006] Through the above technical solutions, the embodiments of this application can construct an objective function with the lowest layout cost of the standby carbon meter and solve the problem of the minimum number of layout by combining various constraint conditions. It can effectively reduce the construction cost of the standby carbon meter system and avoid unnecessary resource waste on the premise of ensuring the integrity of the power system carbon metering function. Secondly, on the basis of determining the minimum number of layout, considering the network loss to further optimize the layout plan to achieve the minimum metering error, which can not only improve the accuracy of carbon metering, provide strong support for the accurate accounting of power system carbon emissions, but also ensure the stability and reliability of the system operation, provide a scientific, economic and accurate solution for the carbon metering work in the process of the low-carbon transformation of the power industry, contribute to the sustainable development of the power industry, and meet the increasingly strict carbon emission management requirements.
[0007] Optionally, in an embodiment of the present application, the objective function is as follows:
[0008] min(∑ i,j∈B c ij u ij +∑ i∈B,g∈G c ig u ig +∑ i∈B,d∈D c id u id ),
[0009] where B is the system node, G is the system unit, D is the system load set, i and j are the nodes in the power system, u ij is a binary variable indicating whether a network-side carbon meter is installed (when u ij equals 0, it means that no network-side spare carbon meter is installed on the i side of the branch ij, or there is no branch connecting nodes i and j), u ig is a binary variable indicating whether a source-side carbon meter is installed (when u ig equals 1, it means that a network-side spare carbon meter is installed on the i side of the branch ij), u id is a binary variable indicating whether a load-side carbon meter is installed (when u ig and u id equal 0, it means that no spare carbon meter is configured for the corresponding unit and load or there is no node i, and when they equal 1, it means that a spare carbon meter is configured), c ij is the configuration cost of the corresponding network-side carbon meter, c ig is the configuration cost of the corresponding source-side carbon meter, c id is the configuration cost of the corresponding load-side carbon meter.
[0010] Through the above technical solution, the embodiment of the present application can accurately optimize the configuration of the spare carbon meter system from the perspective of economic cost by clearly aiming at minimizing the sum of the installation costs of the network-side, source-side, and load-side carbon meters. Using binary variables to clearly define whether carbon meters are installed on each side simply and intuitively reflects the meter installation decision-making situation, facilitating calculation and analysis. Considering multiple factors such as system nodes, units, and load sets comprehensively, the objective function fully covers the key elements of the power system, providing an accurate and effective basis for subsequent solving the minimum number of installed carbon meters in the spare carbon meter system. This helps to minimize costs to the greatest extent while meeting the carbon metering requirements of the power system, improving the economy and rationality of the entire spare carbon meter system configuration, and thus promoting the more efficient and economic development of the power industry in carbon metering.
[0011] Optionally, in an embodiment of the present application, the constraint conditions include at least one of the meter installation position constraint, the complete metering requirement constraint, and the non-redundant metering constraint.
[0012] Through the above technical solutions, the embodiments of the present application can ensure that the arrangement of carbon meters conforms to the actual connection relationship and operating conditions of the power system, making the installation positions of carbon meters reasonable and guaranteeing their effective operation. The existence of the complete metering requirement constraint can ensure that the standby carbon meter system can accurately measure the carbon emission information at all points in all links of the power system under any working conditions, without missing any key data, thereby providing a comprehensive and reliable basis for carbon emission management. The non-redundant metering constraint effectively avoids excessive meter arrangement, reduces unnecessary equipment investment and resource waste, and improves the economy and efficiency of system configuration while ensuring the metering function. Combining these constraint conditions makes the optimal configuration of the standby carbon meter system more scientific and accurate, meeting both the requirements of metering accuracy and taking into account cost control and the actual operation needs of the system, strongly promoting the high-quality development of carbon metering work in the power industry.
[0013] Optionally, in an embodiment of the present application, the expression of the meter arrangement position constraint is:
[0014]
[0015] where L ge,ig is a binary coefficient reflecting the unit connection relationship, L line,ij is a binary coefficient reflecting the branch connection relationship, L load,id is a binary coefficient reflecting the load connection relationship (when L line,ij is 1, it means there is a branch connection between nodes ij, otherwise there is no branch connection, L ge,ig and L load,id are similar), u ij is a binary variable indicating whether a carbon meter is arranged on the grid side, u ig is a binary variable indicating whether a carbon meter is arranged on the source side, u id is a binary variable indicating whether a carbon meter is arranged on the load side.
[0016] Through the above technical solutions, the embodiments of the present application can construct accurate constraint conditions by introducing binary coefficients reflecting the unit, branch, and load connection relationships and cleverly combining them with binary variables indicating whether carbon meters are arranged on each side. This way can clearly and accurately limit the arrangement positions of carbon meters, ensuring that carbon meters are arranged only when the corresponding connection relationships are satisfied.
[0017] Optionally, in an embodiment of the present application, the expression of the complete metering requirement constraint is:
[0018] ∑ i∈B,g∈G u ig = G,
[0019] ∑ i,j∈B u ij + ∑ i∈B,j∈D u id≥ l + D - B,
[0020] where l is the number of branches of the system, D is the number of loads of the system, G is the number of generator sets of the system, and B is the number of nodes of the system.
[0021] Through the above technical solution, the embodiment of the present application can enable the standby carbon meter system to achieve complete coverage of carbon metering for all links of the power system under any circumstances, providing reliable data support for accurately grasping the carbon emission status of the power system and formulating effective emission reduction strategies, and strongly promoting the carbon metering management work in the low-carbon transformation process of the power industry.
[0022] Optionally, in an embodiment of the present application, the expression of the non-redundant metering constraint is:
[0023] u ij + u ji ≤ 1, i ∈ B, j ∈ B,
[0024] ∑ j∈B u ij + ∑ g∈D u ig + ∑ d∈D u id ≤ ∑ j∈B L line,ij + ∑ g∈G L ge,ig + ∑ d∈D L load,id - 1, i ∈ B,
[0025] where u ij is a binary variable indicating whether a carbon meter is installed on the grid side, u ig is a binary variable indicating whether a carbon meter is installed on the source side, u id is a binary variable indicating whether a carbon meter is installed on the load side, L ge,ig is a binary coefficient reflecting the connection relationship of the generator sets, L line,ij is a binary coefficient reflecting the connection relationship of the branches, L load,id is a binary coefficient reflecting the connection relationship of the loads.
[0026] Through the above technical solution, on the one hand, the embodiments of the present application can ensure that unnecessary grid-side carbon meters are not arranged at both ends of the branch circuit, avoiding resource waste and data confusion caused by repeated metering. On the other hand, considering the connection relationships among the branch circuit, the unit, and the load as well as the carbon meter arrangement, the number of carbon meters arranged at each node and its related connection parts is restricted as a whole, enabling the carbon meter configuration to reach the most streamlined state on the premise of meeting the metering requirements. This constraint mechanism ensures the accuracy of carbon metering in the power system while minimizing the construction and operation costs of the standby carbon meter system, improving the economy and operation efficiency of the system, contributing to optimizing the carbon metering resource allocation in the power industry, and promoting low-carbon development.
[0027] The second aspect of the embodiments of the present application provides an optimized configuration device for a standby carbon meter system for power carbon metering, including: a meter layout module, configured to generate an objective function with the lowest cost of arranging standby carbon meters, and based on the meter layout positions meeting the system conditions, realizing the metering feasibility of the power system, and having no redundant metering to generate constraint conditions, solve the problem of the minimum number of meters arranged in the standby carbon meter system to determine the number of standby carbon meters arranged; an optimization module, configured to, on the basis of the minimum number of standby carbon meters arranged, consider the line losses existing in the actual operation of the power system, and generate an optimized layout plan for the standby carbon meter device with the minimum metering error based on the number of standby carbon meters arranged.
[0028] Through the above technical solution, the embodiments of the present application can construct an objective function with the lowest cost of arranging standby carbon meters and solve the problem of the minimum number of meters arranged by combining multiple constraint conditions, which can effectively reduce the construction cost of the standby carbon meter system and avoid unnecessary resource waste on the premise of ensuring the functional integrity of carbon metering in the power system. Secondly, on the basis of determining the minimum number of meters arranged, considering the line losses to further optimize the layout plan to achieve the minimum metering error can not only improve the accuracy of carbon metering and provide strong support for the accurate accounting of carbon emissions in the power system, but also ensure the stability and reliability of the system operation, provide a scientific, economic, and accurate solution for the carbon metering work in the process of low-carbon transformation of the power industry, contribute to promoting the sustainable development of the power industry, and meet the increasingly strict carbon emission management requirements.
[0029] Optionally, in an embodiment of the present application, the objective function is:
[0030] min(∑ i,j∈B c ij u ij +∑ i∈B,g∈G c ig u ig +∑ i∈B,d∈D c id u id ),
[0031] Among them, B is the system node, G is the system unit, D is the system load set, i and j are the nodes in the power system, and u ij is a binary variable indicating whether a network-side carbon meter is installed (when u ij equals 0, it means that no network-side spare carbon meter is installed on the i side of the branch ij, or there is no branch connecting nodes i and j), u ig is a binary variable indicating whether a source-side carbon meter is installed (when u ig equals 1, it means that a network-side spare carbon meter is installed on the i side of the branch ij), u id is a binary variable indicating whether a load-side carbon meter is installed (u ig and u id equals 0 means that the corresponding unit and load do not configure spare carbon meters or there is no node i, and equals 1 means that spare carbon meters are configured), c ij is the configuration cost of the corresponding network-side carbon meter, c ig is the configuration cost of the corresponding source-side carbon meter, c id is the configuration cost of the corresponding load-side carbon meter.
[0032] Through the above technical solution, the embodiment of the present application can accurately optimize the configuration of the spare carbon meter system from the perspective of economic cost by clearly aiming at minimizing the sum of the installation costs of network-side, source-side and load-side carbon meters. Using binary variables to clearly define whether carbon meters are installed on each side concisely and intuitively reflects the meter installation decision-making situation, facilitating calculation and analysis. Considering multiple factors such as system nodes, units and load sets comprehensively, the objective function fully covers the key elements of the power system, providing an accurate and effective basis for solving the minimum number of installed carbon meters in the spare carbon meter system, helping to minimize costs to the greatest extent while meeting the carbon measurement requirements of the power system, improving the economy and rationality of the entire spare carbon meter system configuration, and thus promoting the more efficient and economic development of the power industry in carbon measurement.
[0033] Optionally, in an embodiment of the present application, the constraint conditions include at least one of meter installation location constraint, complete metering requirement constraint, and non-redundant metering constraint.
[0034] Through the above technical solutions, the embodiments of the present application can ensure that the arrangement of carbon meters conforms to the actual connection relationship and operating conditions of the power system, making the installation positions of carbon meters reasonable and ensuring their effective operation. The existence of the complete metering requirement constraint can ensure that the standby carbon meter system can accurately measure the carbon emission information at all points in all links of the power system under any working conditions, without missing any key data, thereby providing a comprehensive and reliable basis for carbon emission management. The non-redundant metering constraint effectively avoids excessive meter arrangement, reduces unnecessary equipment investment and resource waste, and improves the economy and efficiency of system configuration while ensuring the metering function. Combining these constraint conditions makes the optimal configuration of the standby carbon meter system more scientific and accurate, meeting both the requirements of metering accuracy and taking into account cost control and the actual operating needs of the system, strongly promoting the high-quality development of carbon metering work in the power industry.
[0035] Optionally, in an embodiment of the present application, the expression of the meter arrangement position constraint is:
[0036]
[0037] wherein, L ge,ig is a binary coefficient reflecting the unit connection relationship, L line,ij is a binary coefficient reflecting the branch connection relationship, L load,id is a binary coefficient reflecting the load connection relationship (when L line,ij is 1, it means there is a branch connection between nodes ij, otherwise there is no branch connection, L ge,ig and L load,id are similar), u ij is a binary variable indicating whether a carbon meter is arranged on the grid side, u ig is a binary variable indicating whether a carbon meter is arranged on the source side, u id is a binary variable indicating whether a carbon meter is arranged on the load side.
[0038] Through the above technical solutions, the embodiments of the present application can introduce binary coefficients reflecting the unit, branch, and load connection relationships, and cleverly combine them with binary variables indicating whether carbon meters are arranged on each side to construct accurate constraint conditions. This way can clearly and accurately limit the arrangement positions of carbon meters, ensuring that carbon meters are arranged only when the corresponding connection relationships are met.
[0039] Optionally, in an embodiment of the present application, the expression of the complete metering requirement constraint is:
[0040] ∑ i∈B,g∈G u ig =G,
[0041] ∑ i,j∈B u ij +∑ i∈B,j∈D u id≥l + D - B,
[0042] where l is the number of branches of the system, D is the number of loads of the system, G is the number of generator sets of the system, and B is the number of nodes of the system.
[0043] Through the above technical solution, the embodiment of the present application can enable the standby carbon meter system to achieve complete coverage of carbon metering for all links of the power system under any circumstances, providing reliable data support for accurately grasping the carbon emission status of the power system and formulating effective emission reduction strategies, and strongly promoting the carbon metering management work in the low-carbon transformation process of the power industry.
[0044] Optionally, in an embodiment of the present application, the expression of the non-redundant metering constraint is:
[0045] u ij + u ji ≤ 1, i ∈ B, j ∈ B,
[0046] ∑ j∈B u ij + ∑ g∈D u ig + ∑ d∈D u id ≤ ∑ j∈B L line,ij + ∑ g∈G L ge,ig + ∑ d∈D L load,id - 1, i ∈ B,
[0047] where u ij is a binary variable indicating whether a carbon meter is installed on the grid side, u ig is a binary variable indicating whether a carbon meter is installed on the source side, u id is a binary variable indicating whether a carbon meter is installed on the load side, L ge,ig is a binary coefficient reflecting the connection relationship of the generator sets, L line,ij is a binary coefficient reflecting the connection relationship of the branches, L load,id is a binary coefficient reflecting the connection relationship of the loads.
[0048] Through the above technical solutions, on the one hand, the embodiments of the present application can ensure that unnecessary grid-side carbon meters are not arranged at both ends of the branch circuit, avoiding resource waste and data chaos caused by repeated metering. On the other hand, considering the connection relationships among the branch circuit, the unit, and the load as well as the carbon meter arrangement, the number of carbon meters arranged at each node and its related connection parts is restricted as a whole, enabling the carbon meter configuration to reach the most streamlined state on the premise of meeting the metering requirements. This constraint mechanism maximally reduces the construction and operation costs of the standby carbon meter system while ensuring the accuracy of carbon metering in the power system, improves the economy and operation efficiency of the system, helps optimize the carbon metering resource allocation in the power industry, and promotes low-carbon development.
[0049] The third aspect of the embodiments of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the program to implement the method for optimizing the configuration of the standby carbon meter system for power carbon metering as described in the above embodiments.
[0050] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the method for optimizing the configuration of the standby carbon meter system for power carbon metering as described above.
[0051] The fifth aspect of the embodiments of the present application provides a computer program product including a computer program, which when executed, is used to implement the method for optimizing the configuration of the standby carbon meter system for power carbon metering as described above.
[0052] The embodiments of the present application construct an objective function with the lowest cost of arranging standby carbon meters and combine various constraint conditions, which can not only reduce the construction cost and avoid resource waste on the premise of ensuring the complete carbon metering function of the power system, but also consider the network loss to optimize the meter placement scheme on the basis of determining the minimum number of meters arranged, improve the metering accuracy, and ensure the stability and reliability of the system, providing a scientific and accurate solution for the low-carbon transformation of the power industry; the objective function starts from optimizing the economic cost configuration, clearly defines the meter placement decision with binary variables, and comprehensively considers system elements to provide a basis for solving the minimum number of meters arranged, enhancing the economy and rationality of the system; the meter placement position constraint ensures the reasonable and effective arrangement of carbon meters, the complete metering requirement constraint guarantees the accurate and comprehensive metering of all links, and the non-redundant metering constraint avoids excessive meter placement. The three together make the optimization configuration more scientific and accurate, meet various requirements, and promote the high-quality development of carbon metering; at the same time, using binary coefficients to construct constraint conditions accurately limits the carbon meter placement position, realizes the complete coverage of carbon metering in all links, provides data support for emission reduction strategies, effectively avoids repeated metering at both ends of the branch circuit and overall redundancy, reduces costs, improves economy and operation efficiency, optimizes resource allocation, and promotes low-carbon development.
[0053] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings
[0054] The above-mentioned and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of embodiments in conjunction with the drawings, where:
[0055] Figure 1 It is a flowchart of an optimized configuration method for a standby carbon meter system for power carbon metering according to an embodiment of the present application;
[0056] Figure 2 It is a topology diagram of the PJM5-node system according to a specific embodiment of the present application;
[0057] Figure 3 It is a schematic diagram of a meter layout scheme with priority output according to a specific embodiment of the present application;
[0058] Figure 4 It is a schematic diagram of an optimal input scheme according to a specific embodiment of the present application;
[0059] Figure 5 It is a schematic diagram of an optimal output scheme according to a specific embodiment of the present application;
[0060] Figure 6 It is a schematic diagram for comparing a partial standby carbon meter layout scheme and the mean absolute percentage error according to a specific embodiment of the present application;
[0061] Figure 7 It is a schematic structural diagram of an optimized configuration device for a standby carbon meter system for power carbon metering according to an embodiment of the present application;
[0062] Figure 8 It is a schematic structural diagram of an electronic device according to an embodiment of the present application. Detailed Description of the Embodiments
[0063] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present application and should not be construed as limiting the present application.
[0064] The following describes an optimized configuration method and device for a standby carbon meter system for power carbon metering with reference to the accompanying drawings. In the related art mentioned in the above background art, due to the adjacency characteristic of the electricity carbon metering theory, a fault in a certain carbon meter causes the entire system's carbon metering function to fail. The present application provides an optimized configuration method for a standby carbon meter system for power carbon metering. In this method, the objective function can be constructed with the lowest layout cost of the standby carbon meter, and the problem of the minimum number of meters to be laid can be solved by combining various constraint conditions, which can effectively reduce the construction cost of the standby carbon meter system and avoid unnecessary resource waste on the premise of ensuring the integrity of the power system's carbon metering function. Secondly, on the basis of determining the minimum number of meters to be laid, considering the network loss to further optimize the meter layout plan to minimize the measurement error, which can not only improve the accuracy of carbon metering and provide strong support for the accurate accounting of carbon emissions in the power system, but also ensure the stability and reliability of the system operation, and provide a scientific, economic and accurate solution for the carbon metering work in the process of the low-carbon transformation of the power industry, which helps to promote the sustainable development of the power industry and meet the increasingly strict requirements for carbon emission management. Thus, the problem in the related art that a fault in a certain carbon meter causes the entire system's carbon metering function to fail due to the adjacency characteristic of the electricity carbon metering theory is solved.
[0065] Specifically, Figure 1 is a schematic flowchart of an optimized configuration method for a standby carbon meter system for power carbon metering provided by an embodiment of the present application.
[0066] As Figure 1 shown, the optimized configuration method for the standby carbon meter system for power carbon metering includes the following steps:
[0067] In step S101, the objective function is generated with the lowest layout cost of the standby carbon meter, and based on the layout position meeting the system conditions, realizing the metering feasibility of the power system and no redundant metering to generate constraint conditions, the problem of the minimum number of meters to be laid in the standby carbon meter system is solved to determine the number of meters to be laid for the standby carbon meter.
[0068] It can be understood that step S101 is to solve the optimization problem of the number of carbon meters. In the optimization problem, the objective function is a mathematical expression used to measure the pros and cons of decision variables. Taking the lowest layout cost of the standby carbon meter as the objective function is to perform mathematical operations on the variables related to the carbon meter layout (such as including but not limited to whether to install a meter at each position) to obtain a value representing the total cost, and solve the combination of decision variables that minimizes this value through an optimization algorithm, so as to determine the optimal meter layout plan.
[0069] Optionally, in an embodiment of the present application, the objective function is:
[0070] min(∑ i,j∈B c ij yij +∑ i∈B,g∈G c ig u ig +∑ i∈B,d∈D c id u id ) (1)
[0071] where B is the system node, G is the system unit, D is the system load set, and u ij is the binary variable indicating whether the network-side carbon meter is installed, u ig is the binary variable indicating whether the source-side carbon meter is installed, u id is the binary variable indicating whether the load-side carbon meter is installed, and i, j are the nodes in the power system. u ij equals 0 indicating that no network-side spare carbon meter is installed on the i side of the branch ij, or there is no branch connecting nodes i and j; u ig equals 1 indicating that a network-side spare carbon meter is installed on the i side of the branch ij; u ig and u id equals 0 indicating that no spare carbon meter is configured for the corresponding unit and load or there is no node i, and equals 1 indicating that a spare carbon meter is configured; c ij c ig c id are the configuration costs of the corresponding network-side carbon meter, source-side carbon meter, and load-side carbon meter.
[0072] In the actual execution process, the constraint conditions corresponding to this function include at least one of the meter installation position constraint, complete metering requirement constraint, and non-redundant metering constraint.
[0073] The meter installation constraint is used to ensure:
[0074] 1) Only when the unit g is at node i can a source-side carbon meter be configured at the corresponding position;
[0075] 2) Only when there is a line between ij can network-side spare carbon meters be configured at both ends of the line;
[0076] 3) Only when the load d is at node i can a load-side carbon meter be configured at the corresponding position.
[0077] Specifically, the expression of the meter installation position constraint is:
[0078]
[0079] where L ge,ig is the binary coefficient reflecting the unit connection relationship, L line,ij is the binary coefficient reflecting the branch connection relationship, L load,id is the binary coefficient reflecting the load connection relationship, L line,ijWhen it is 1, it indicates that there is a branch connection between nodes ij; otherwise, there is no branch connection, L ge,ig and L load,id are similar.
[0080] The complete metering requirement constraint is used to ensure that the metering of carbon emission information at each point in all links of the power system can be achieved without network loss error in the meter layout plan of the spare carbon meter for the spare carbon meter. The expression of the complete metering requirement constraint is:
[0081] ∑ i∈B,g∈G u ig = G (3)
[0082] ∑ i,j∈B u ij + ∑ i∈B,j∈D u id ≥ l + D - B (4)
[0083] Among them, l is the number of branches in the system, D is the number of loads in the system, G is the number of generator sets in the system, and B is the number of nodes in the system. Equation (3) is used to ensure that all source-side carbon meters in the system have spare carbon meters, and Equation (4) is used to ensure that the network-side carbon meters and load-side carbon meters configured in the system can achieve the metering of indirect carbon emission information at each node in the entire power system.
[0084] Furthermore, to minimize the number of meters laid, the non-redundant metering constraint is set. The expression of the non-redundant metering constraint is:
[0085] u ij + u ji ≤ 1, i ∈ B, j ∈ B (5)
[0086] ∑ j∈B u ij + ∑ g∈D u ig + ∑ d∈D u id ≤ ∑ j∈B L line,ij + ∑ g∈G L ge,ig + ∑ d∈D L load,id - 1, i ∈ B (6)
[0087] The problem of optimizing the cost of the spare carbon meter is a mixed-integer linear optimization problem. When the carbon meter configuration cost at each location is equal, there are multiple solutions to this problem, and each obtained result is a spare carbon meter configuration plan that meets the full positive metering requirements. Therefore, if we want to obtain the optimal configuration plan for the spare carbon meter system, we need to further explore the problem of optimizing the carbon meter layout with the minimum error.
[0088] In the embodiments of the present application, the objective function can comprehensively consider the costs of carbon metering on the grid side, the source side, and the load side, clarify the metering situation on each side with binary variables, and combine elements such as system nodes, units, and loads to provide an accurate basis for determining the minimum number of meters to be installed, which is conducive to cost reduction; the metering position constraint is based on the connection relationship coefficients of units, branches, and loads to ensure the reasonable layout of carbon meters; the complete metering requirement constraint guarantees the metering of carbon emission information in all links and provides a reliable basis for management; the non-redundant metering constraint avoids excessive meter installation, improves economy and efficiency. Overall, it makes the optimal configuration of the spare carbon meter system scientific and accurate, takes into account both cost and metering accuracy, meets the needs of the low-carbon transformation of the power system, promotes the high-quality development of carbon metering work, and has multiple solutions when the costs are equal, providing a direction for further optimization.
[0089] In step S102, an optimal layout plan of the spare carbon meter device with the minimum metering error is generated according to the number of spare carbon meters to be installed and the line losses existing in the actual operation of the power system.
[0090] It can be understood that the configuration of the spare carbon meter system not only has the complete carbon metering ability of the power system, can realize the metering of the direct and indirect carbon emissions of the power system, but also meets the appropriate economic cost and controllable metering error. Therefore, the result of step S101 can be further used as a constraint condition, and the minimum system carbon metering error can be used as the objective function, so that the optimal layout plan of the spare carbon meter system meets the lowest economic cost and the minimum metering error on the basis of the complete carbon metering requirements, and then outputs the layout plan of the spare carbon meters.
[0091] In the actual execution process, an optimal layout model of the spare carbon meter is constructed. The model aims to find a layout plan that minimizes the metering error of the power carbon emission factor, uses the average absolute error of the metering results of the typical day carbon emission factor as the optimization objective, and takes the minimum number of meters to be installed and the carbon emission factor calculation as the constraint conditions.
[0092] Specifically, the constraint formula for the minimum number of meters to be installed is as follows:
[0093]
[0094] where T is the set of all moments within a typical day, e i and e′ i are respectively the measured value and the theoretical value of the carbon emission factor at node i, t is the number of time periods of the typical day, and b is the number of system nodes. The theoretical value is obtained by solving the theoretical value of the power flow data in combination with the carbon emission flow theory.
[0095] It should be noted that the constraint for the minimum number of meters to be installed is that in the optimal layout problem, the total number of grid-side carbon meters and load-side carbon meters to be installed is equal to the optimization result of the minimum number of spare carbon meters, and the formula is as follows:
[0096] ∑i,j∈B u ij +∑ i∈B,d∈D u id =n op (8)
[0097] where n op is the minimum number of meters installed on the grid side and load side that can achieve the carbon metering function and is output by the minimum standby carbon meter cost determination method.
[0098] Furthermore, the constraints for calculating the carbon emission factor mainly include obtaining the power flow information of each line under the current carbon emission point layout scheme according to the above formula. Obtaining the power flow information of the line under the current metering result, generating an initial power flow distribution matrix P B,t,0 , and complementing the missing items in matrix P according to the node power balance characteristics by combining the fact that the power flows at both ends of the line are approximately equal. According to P B,t =-P ij , i,j∈B to complement the missing items in matrix P ji , and finally determine whether the information of matrix P B,t is completely complemented. If not, repeat the above steps until P B,t is output after being complemented. B,t .
[0099] Even further, calculate the power carbon emission factors of each time period of the whole system according to the calculation results of the above steps. The formula is as follows:
[0100]
[0101] where E B,t is the matrix of node carbon emission factors of the system at time period t, and the element is the metering result e i of the carbon emission factors of each node of the system at this time period, P N,t is the matrix of node active power fluxes of the system at time period t. This matrix is a B-order diagonal matrix, representing the direction of power flow downward and the absolute value of the active power flow into each node. Among them, the diagonal term P N,ii,t is the active power flux at node i, and C G,t is the matrix of carbon emissions of generator sets of the system at time period t. The elements in this matrix are determined by the metering results of the carbon meters on the source side.
[0102] The following verifies the optimized configuration method of the standby carbon meter system for power carbon metering proposed in this application by combining the system operation situation of the PJM5-node system at a typical moment.
[0103] The topology diagram of the PJM5-node system is as Figure 2As shown in the figure, there are a total of 4 units and 3 loads in the system. At a typical moment, the system is operating stably. Only the output power of the unit at node 1 reaches the rated maximum power. The measured data of the active power at the inlets and outlets of each branch, the active power output of the units, the loads, and the carbon emission factors are shown in Tables 1 and 2.
[0104] Table 1
[0105]
[0106] Table 2
[0107]
[0108] Nodes 1 and 4 in the system are coal-fired units with carbon emission factors of 0.75 kgCO2 / kw·h and 1 kgCO2 / kw·h respectively. Nodes 3 and 5 are new energy generating units with carbon emission factors of 0 and 0.3 kgCO2 / kw·h respectively. It is assumed that the configuration costs of single carbon meters on the grid side and the load side are equal.
[0109] According to the carbon flow theory and the actual conditions of the carbon meter system layout, a total of 19 carbon meters need to be arranged in the carbon meter system of this system, including 4 source-side carbon meters and 15 grid-side and load-side carbon meters. The layout of the standby carbon meter system should ensure the layout of the source-side carbon meters, achieve the basic metering function and have a lower cost.
[0110] In this embodiment, the CPLEX solver is used to solve the problem of the minimum number of carbon meters in the standby carbon meter system. The layout plan preferentially output by the CPLEX solver is as Figure 3 shown. Under the conditions of meeting the layout position constraints, the complete carbon metering constraints, and the non-redundant metering constraints, considering that the costs of configuring carbon meters at each place in the system are basically the same, the minimum number of carbon meters required to achieve the carbon potential metering of all nodes in the system is 8, that is, 4 source-side carbon meters and 4 grid-side and load-side carbon meters.
[0111] It should be noted that according to the characteristics of the power system and the working principle of the carbon meter system, the minimum layout plan of the standby carbon meter system is not unique. There may be a total of
[0112] Furthermore, on the basis of the minimum layout plan, the discrete particle swarm algorithm is selected to further solve the optimal layout problem of the standby carbon meter system. Under the conditions of meeting the metering requirements and the lowest layout cost, the optimal layout plan of the standby carbon meter with the smallest metering error is obtained.
[0113] For this embodiment, the population size of the discrete particle swarm algorithm is set to 20 particles, and it iterates 200 times. The historical optimal value and its corresponding backup carbon meter layout scheme are output. After 100 runs, the algorithm outputs two optimal results (the mean absolute error results are basically the same), as Figure 4 and Figure 5 shown.
[0114] There are slight differences in the above-mentioned meter layout positions at the marked points in the figure, but the carbon measurement errors of each node at the typical moments of the 5-node PJM system for the two layout schemes are basically the same. The error results are shown in Table 3, and the calculated average absolute percentage error is less than 0.02%. Table 3 is as follows:
[0115] Table 3
[0116]
[0117] A comparison of some feasible backup carbon meter layout schemes and their error rates is as Figure 6 shown, where Scheme (a) is the optimal layout scheme solved by the discrete particle swarm algorithm, and the mean absolute percentage error is significantly less than that of other feasibility. At the same time, by combining data such as the carbon emission factor of the generator set and the system line loss, it can be found that on the premise of meeting the constraints of the meter layout position and measurement requirements, laying meters near positions with larger carbon emission factors and larger line losses is more likely to obtain smaller measurement errors.
[0118] The embodiment of the present application can take the minimum system carbon measurement error as the goal, and use the mean absolute error of the measurement results of the carbon emission factor on the typical day to effectively improve the measurement accuracy and provide more accurate data for the carbon emission accounting of the power system. The minimum meter layout quantity constraint ensures that the total number of meters on the grid side and the load side is optimal when optimizing the meter layout, neither adding redundant carbon meters to cause waste nor compromising the integrity of the measurement function. The carbon emission factor calculation constraint calculates the carbon emission factors of electric power for each period through a rigorous process, fully considering factors such as line power flow information, node power balance, and carbon emissions of generator sets, making the calculation results more in line with the actual operating conditions. Generally speaking, this scheme can achieve the lowest economic cost and the smallest measurement error on the premise of meeting the complete carbon measurement requirements, effectively promoting the more scientific and efficient operation of the backup carbon meter system in the power system and contributing to the low-carbon development of the power industry.
[0119] The optimal configuration method of the spare carbon meter system for power carbon metering proposed according to the embodiments of the present application constructs an objective function by minimizing the meter installation cost of the spare carbon meter, and solves the problem of the minimum number of meter installations by combining various constraint conditions. It can effectively reduce the construction cost of the spare carbon meter system and avoid unnecessary resource waste on the premise of ensuring the integrity of the carbon metering function of the power system. Secondly, on the basis of determining the minimum number of meter installations, considering the network loss to further optimize the meter installation plan to minimize the measurement error can not only improve the accuracy of carbon metering, provide strong support for the accurate accounting of carbon emissions in the power system, but also ensure the stability and reliability of the system operation, provide a scientific, economical and accurate solution for the carbon metering work in the process of the low-carbon transformation of the power industry, contribute to the sustainable development of the power industry, and meet the increasingly strict requirements for carbon emission management.
[0120] Secondly, the optimal configuration device of the spare carbon meter system for power carbon metering proposed according to the embodiments of the present application is described with reference to the accompanying drawings.
[0121] Figure 7 It is a block diagram of the optimal configuration device of the spare carbon meter system for power carbon metering according to the embodiments of the present application.
[0122] As Figure 7 shown, the optimal configuration device 10 of the spare carbon meter system for power carbon metering includes: a meter installation module 100 and an optimization module 200.
[0123] Specifically, the meter installation module 100 is used to generate an objective function with the lowest meter installation cost of the spare carbon meter, and solve the problem of the minimum number of meter installations of the spare carbon meter system based on the meter installation position meeting the system conditions, realizing the metering feasibility of the power system and generating constraint conditions for non-redundant metering, so as to determine the number of meter installations of the spare carbon meter.
[0124] The optimization module 200 is used to generate an optimized meter installation plan for the spare carbon meter device with the minimum measurement error according to the number of meter installations of the spare carbon meter and the network loss existing in the actual operation of the power system.
[0125] Optionally, in an embodiment of the present application, the objective function is:
[0126] min(∑ i,j∈B c ij u ij +∑ i∈B,g∈G c ig u ig +∑ i∈B,d∈D c id u id ),
[0127] where B is the system node, G is the system unit, D is the system load set, i, j are the nodes in the power system, u ijis a binary variable indicating whether a network-side carbon meter is installed (u ij When it is equal to 0, it means that no network-side spare carbon meter is installed on the i side of the branch ij, or there is no branch connecting nodes i and j), u ig is a binary variable indicating whether a source-side carbon meter is installed (u ig When it is equal to 1, it means that a network-side spare carbon meter is installed on the i side of the branch ij), u id is a binary variable indicating whether a load-side carbon meter is installed (u ig and u id When it is equal to 0, it means that no spare carbon meter is configured for the corresponding unit and load, or there is no node i; when it is equal to 1, it means that a spare carbon meter is configured), c ij is the configuration cost of the corresponding network-side carbon meter, c ig is the configuration cost of the corresponding source-side carbon meter, c id is the configuration cost of the corresponding load-side carbon meter.
[0128] Optionally, in an embodiment of the present application, the constraint conditions include at least one of a meter installation position constraint, a complete metering requirement constraint, and a non-redundant metering constraint.
[0129] Optionally, in an embodiment of the present application, the expression of the meter installation position constraint is:
[0130]
[0131] where L ge,ig is a binary coefficient reflecting the unit connection relationship, L line,ij is a binary coefficient reflecting the branch connection relationship, L load,id is a binary coefficient reflecting the load connection relationship (when L line,ij is 1, it means that there is a branch connection between nodes ij; otherwise, there is no branch connection, and L ge,ig and L load,id are similar), u ij is a binary variable indicating whether a network-side carbon meter is installed, u ig is a binary variable indicating whether a source-side carbon meter is installed, u id is a binary variable indicating whether a load-side carbon meter is installed.
[0132] Optionally, in an embodiment of the present application, the expression of the complete metering requirement constraint is:
[0133] ∑ i∈B,g∈G u ig = G,
[0134] ∑ i,j∈B u ij + ∑ i∈B,j∈D u id ≥ l + D - B,
[0135] Among them, l is the number of branches of the system, D is the number of loads of the system, G is the number of generator sets of the system, and B is the number of nodes of the system.
[0136] Optionally, in an embodiment of the present application, the expression of the non-redundant measurement constraint is:
[0137] u ij + u ji ≤ 1, i ∈ B, j ∈ B,
[0138] ∑ j∈B u ij + ∑ g∈D u ig + ∑ d∈D u id ≤ ∑ j∈B L line,ij + ∑ g∈G L ge,ig + ∑ d∈D L load,id - 1, i ∈ B,
[0139] Among them, u ij is a binary variable indicating whether a carbon meter is installed on the grid side, u ig is a binary variable indicating whether a carbon meter is installed on the source side, u id is a binary variable indicating whether a carbon meter is installed on the load side, L ge,ig is a binary coefficient reflecting the unit connection relationship, L line,ij is a binary coefficient reflecting the branch connection relationship, L load,id is a binary coefficient reflecting the load connection relationship.
[0140] It should be noted that the foregoing explanation of the embodiment of the optimization configuration method for the standby carbon meter system for power carbon metering also applies to the optimization configuration device for the standby carbon meter system for power carbon metering in this embodiment, and will not be repeated here.
[0141] According to the optimization configuration device for the standby carbon meter system for power carbon metering proposed in the embodiments of the present application, by constructing an objective function with the lowest installation cost of the standby carbon meter and solving the problem of the minimum number of installed meters in combination with various constraint conditions, it is possible to effectively reduce the construction cost of the standby carbon meter system and avoid unnecessary resource waste on the premise of ensuring the integrity of the carbon metering function of the power system. Secondly, on the basis of determining the minimum number of installed meters, considering the network loss to further optimize the meter placement scheme to achieve the minimum measurement error, which can not only improve the accuracy of carbon metering, provide strong support for the accurate accounting of carbon emissions in the power system, but also ensure the stability and reliability of the system operation, provide a scientific, economic and accurate solution for the carbon metering work in the process of the low-carbon transformation of the power industry, contribute to the sustainable development of the power industry, and meet the increasingly strict carbon emission management requirements.
[0142] Figure 8 This is a schematic structural diagram of the electronic device provided by the embodiment of the present application. The electronic device may include:
[0143] A memory 801, a processor 802, and a computer program stored on the memory 801 and executable on the processor 802.
[0144] When the processor 802 executes the program, it implements the optimized configuration method of the standby carbon meter system for power carbon metering provided in the above embodiment.
[0145] Further, the electronic device further includes:
[0146] A communication interface 803 for communication between the memory 801 and the processor 802.
[0147] The memory 801 is used to store a computer program executable on the processor 802.
[0148] The memory 801 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0149] If the memory 801, the processor 802, and the communication interface 803 are implemented independently, the communication interface 803, the memory 801, and the processor 802 can be interconnected through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 8 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0150] Optionally, in a specific implementation, if the memory 801, the processor 802, and the communication interface 803 are integrated on a chip, the memory 801, the processor 802, and the communication interface 803 can communicate with each other through an internal interface.
[0151] The processor 802 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0152] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above method for optimizing the configuration of the standby carbon meter system for power carbon metering is implemented.
[0153] The embodiments of the present application also provide a computer program product, including a computer program, which is used to implement the above method for optimizing the configuration of the standby carbon meter system for power carbon metering when the computer program is executed.
[0154] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, without conflict, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0155] In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless otherwise specifically defined.
[0156] Any process or method description in the flowchart or described in other ways herein may be understood to represent a module, segment, or part of code including one or N executable instructions for implementing a customized logical function or process. The scope of the preferred embodiments of the present application includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed, which should be understood by those skilled in the art of the embodiments of the present application.
[0157] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definable sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or used in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in combination with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion (electronic device) having one or N wirings, a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.
[0158] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or a combination of the following techniques known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0159] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0160] In addition, each functional unit in various embodiments of the present application may be integrated into a processing module, may exist physically alone for each unit, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0161] The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disc, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. An optimization configuration method for a spare carbon meter system for power carbon metering, characterized in that, Including the following steps: Generate an objective function with the lowest cost of the standby carbon meter layout, and based on the layout position meeting the system conditions, realizing the metering feasibility of the power system and no redundant metering to generate constraint conditions, solve the problem of the minimum number of layout of the standby carbon meter system to determine the number of layout of the standby carbon meter; According to the number of layout of the standby carbon meter and the network loss existing in the actual operation of the power system, generate an optimized layout plan of the standby carbon meter device with the minimum metering error.
2. The method according to claim 1, characterized in that, The objective function is: Among them, B is the system node, G is the system unit, D is the system load set, i and j are the nodes in the power system, and u ij is a binary variable indicating whether a grid-side carbon meter is installed (when u ij equals 0, it means that no grid-side spare carbon meter is installed on the i side of the branch ij, or there is no branch connecting nodes i and j), u ig is a binary variable indicating whether a source-side carbon meter is installed (when u ig equals 1, it means that a grid-side spare carbon meter is installed on the i side of the branch ij), u id is a binary variable indicating whether a load-side carbon meter is installed (u ig and u id equals 0 indicates that no spare carbon meter is configured for the corresponding unit and load, or node i does not exist, and equals 1 indicates that a spare carbon meter is configured), c ij is the configuration cost of the corresponding grid-side carbon meter, c ig is the configuration cost of the corresponding source-side carbon meter, c id is the configuration cost of the corresponding load-side carbon meter.
3. The method according to claim 1, wherein The constraint conditions include at least one of layout position constraint, complete metering requirement constraint, and no redundant metering constraint.
4. The method according to claim 3, wherein The expression of the layout position constraint is: Among them, L ge,ig is the binary coefficient reflecting the unit connection relationship, L line,ij is the binary coefficient reflecting the branch connection relationship, L load,id is the binary coefficient reflecting the load connection relationship (when L line,ij is 1, it means there is a branch connection between nodes ij, otherwise there is no branch connection, L ge,ig and L load,id are similar), u ij is the binary variable indicating whether the carbon meter is installed on the grid side, u ig is the binary variable indicating whether the carbon meter is installed on the source side, u id is the binary variable indicating whether the carbon meter is installed on the load side.
5. The method according to claim 3, characterized in that The expression of the complete metering requirement constraint is: ∑ i∈B,g∈G u ig = G, ∑ i,j∈B u ij +∑ i∈B,j∈D u id ≥l + D - B, Where, l is the number of branches of the system, D is the number of loads of the system, G is the number of generator sets of the system, and B is the number of nodes of the system.
6. The method according to claim 3, wherein The expression of the no redundant metering constraint is: u ij +u ji ≤1, i ∈ B, j ∈ B ∑ j∈B u ij +∑ g∈D u ig +∑ d∈D u id ≤∑ j∈B L line,ij +∑ g∈G L ge,ig +∑ d∈D L load,id -1, i ∈ B Among them, u ij is the binary variable indicating whether the carbon meter is installed on the grid side, u ig is the binary variable indicating whether the carbon meter is installed on the source side, u id is the binary variable indicating whether the carbon meter is installed on the load side, L ge,dg is the binary coefficient reflecting the unit connection relationship, L line,ij is the binary coefficient reflecting the branch connection relationship, L load,id is the binary coefficient reflecting the load connection relationship.
7. An optimized configuration device for a spare carbon meter system for power carbon metering, characterized in that, Including: A layout module, which is used to generate an objective function with the lowest cost of the standby carbon meter layout, and based on the layout position meeting the system conditions, realizing the metering feasibility of the power system and no redundant metering to generate constraint conditions, solve the problem of the minimum number of layout of the standby carbon meter system to determine the number of layout of the standby carbon meter; An optimization module, which is used to consider the network loss existing in the actual operation of the power system on the basis of the minimum number of layout of the standby carbon meter, and generate an optimized layout plan of the standby carbon meter device with the minimum metering error based on the number of layout of the standby carbon meter.
8. The device according to claim 7, characterized in that The expression of the layout position constraint is: Among them, L ge,ig is the binary coefficient reflecting the unit connection relationship, L line,ij is the binary coefficient reflecting the branch connection relationship, L load,id is the binary coefficient reflecting the load connection relationship (when L line,ij is 1, it means there is a branch connection between nodes ij, otherwise there is no branch connection, L ge,ig and L load,id are similar), u ij is the binary variable indicating whether the carbon meter is installed on the grid side, u ig is the binary variable indicating whether the carbon meter is installed on the source side, u id is the binary variable indicating whether the carbon meter is installed on the load side.
9. An electronic device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the optimized configuration method of the standby carbon meter system for power carbon metering according to any one of claims 1-6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to be used to implement the optimized configuration method of the standby carbon meter system for power carbon metering according to any one of claims 1-6.
11. A computer program product, comprising a computer program, characterized in that, The computer program is executed to be used to implement the optimized configuration method of the standby carbon meter system for power carbon metering according to any one of claims 1-6.