Fault processing method and device, storage medium, program product and energy supply system

By constructing a fault optimization model in the energy supply system, optimizing the relationship between energy production and penalty resource quantity, and determining fault handling strategies, the problem of inaccurate fault handling in the energy supply system is solved, and load supply and demand balance and resource optimization between the energy supply system and the user side are achieved.

CN121996478APending Publication Date: 2026-05-08CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD
Filing Date
2024-11-06
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing technologies lack precise fault handling in energy supply systems, resulting in the system's inability to meet user load demands and disrupting the load-demand balance.

Method used

By constructing a fault optimization model in the energy supply system, with the minimum comprehensive resource quantity as a constraint, fault handling strategies are determined, including target purchased energy data and target operating parameters of non-faulty equipment. The relationship between energy production and penalty resource quantity is optimized to achieve precise fault handling.

Benefits of technology

It improves the accuracy and reliability of fault handling, ensures the balance between the power supply system and the load demand on the user side, and reduces resource waste and carbon emissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996478A_ABST
    Figure CN121996478A_ABST
Patent Text Reader

Abstract

The invention relates to a fault processing method and device, a storage medium, a program product and an energy supply system. The method comprises the steps that under the condition that at least one piece of fault equipment exists in the energy supply system, a fault optimization model of the energy supply system is operated with the minimum comprehensive resource quantity of the energy supply system as a constraint condition, a fault processing strategy of the energy supply system is obtained, and fault processing is conducted on the energy supply system according to the fault processing strategy; the fault optimization model is used for representing a function relationship among the energy production resource quantity, the fault penalty resource quantity and the comprehensive resource quantity of the energy supply system. According to the method, the fault processing strategy enabling the comprehensive resource quantity of the energy supply system to be minimum is obtained by operating the fault optimization model, the model gives consideration to the influence of the fault penalty resource quantity on the comprehensive resource quantity, the adaptation degree between the obtained fault processing strategy and the actual scene requirement is improved, and the fault processing accuracy is correspondingly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply system fault handling technology, and in particular to a fault handling method, device, storage medium, program product, and power supply system. Background Technology

[0002] An energy supply system is an energy system that includes a variety of energy supply devices.

[0003] When there are faulty devices in the energy supply system, the energy load that the system can provide will be reduced, and the load supply and demand balance between the energy supply system and the user side will be broken, causing the energy supply system to be unable to meet the load demand of the user side. Therefore, it is necessary to handle the fault in the energy supply system in order to achieve a new load supply and demand balance.

[0004] However, the fault handling of the power supply system in the relevant technologies is not precise enough. Summary of the Invention

[0005] Therefore, it is necessary to provide a fault handling method, device, storage medium, program product, and power supply system to address the above-mentioned technical problems.

[0006] In a first aspect, embodiments of this application provide a fault handling method, the method comprising:

[0007] Given that there is at least one faulty device in the energy supply system, the fault optimization model of the energy supply system is run under the constraint of minimizing the total resource quantity of the energy supply system to obtain the fault handling strategy of the energy supply system. The fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and total resource quantity of the energy supply system.

[0008] According to the fault handling strategy, the power supply system is handled for faults.

[0009] In this embodiment, a fault optimization model is used to run, which characterizes the functional relationship between the energy production resources, fault penalty resources, and comprehensive resources of the energy supply system. This model obtains a fault handling strategy that minimizes the comprehensive resources of the energy supply system. The model takes into account the impact of fault penalty resources on comprehensive resources, improves the adaptability of the obtained fault handling strategy to the actual scenario requirements, and correspondingly improves the accuracy of fault handling.

[0010] In one embodiment, with the minimum overall resource quantity of the energy supply system as a constraint, a fault optimization model of the energy supply system is run to obtain a fault handling strategy for the energy supply system, including:

[0011] Multiple sets of input parameters are determined based on multiple candidate purchased energy data and multiple candidate operating parameters of each non-faulty device in the energy supply system; each set of input parameters includes candidate purchased energy data and candidate operating parameters of each non-faulty device.

[0012] Multiple sets of input parameters are input into the fault optimization model to solve for the target input parameters that minimize the overall resource quantity, and these parameters are used as the fault handling strategy.

[0013] In this embodiment, the fault optimization model is run to obtain the target input parameters that minimize the overall resource quantity, and these parameters are used as the fault handling strategy. This improves the data comprehensiveness of the obtained fault handling strategy and helps to improve the reliability of fault handling.

[0014] In one embodiment, the method further includes:

[0015] The total power of multiple candidate externally purchased electricity is determined according to the power supply constraints, and the total flow rate of multiple candidate externally purchased natural gas is determined according to the natural gas supply constraints.

[0016] The total power of multiple candidate purchased electricity and the total flow of multiple candidate purchased natural gas are used as multiple candidate purchased energy data for the energy supply system.

[0017] In this embodiment, multiple candidate external power totals are determined based on power constraints, and multiple candidate external natural gas total flows are determined based on natural gas supply constraints, which serve as multiple candidate external energy data for the energy supply system. This improves the reliability of the candidate external energy data and simultaneously enhances the effectiveness of the obtained fault handling strategy.

[0018] In one embodiment, the non-faulty devices include energy storage devices and other energy supply devices; the method further includes:

[0019] Based on the equipment power constraints, equipment variable operating condition constraints, and power balance constraints, determine multiple candidate power supplies for other power supply equipment;

[0020] Multiple candidate energy storage powers of the energy storage device are determined according to the energy storage capacity constraint, and multiple candidate energy release powers of the energy storage device are determined according to the energy release capacity constraint.

[0021] Multiple candidate power supplies from other energy supply devices, multiple candidate energy storage powers from energy storage devices, and multiple candidate energy release powers are used as multiple candidate operating parameters for non-faulty devices.

[0022] In this embodiment, multiple candidate power supplies for other power supply devices, as well as multiple candidate energy storage powers and multiple candidate energy release powers for energy storage devices, are determined based on various constraints. These serve as multiple candidate operating parameters for non-faulty devices, thereby improving the reliability of the candidate operating parameters and simultaneously enhancing the effectiveness of the obtained fault handling strategy.

[0023] In one embodiment, the power supply system is used to provide at least two forms of energy; the power of non-faulty devices in the power supply system that provide the same form of energy satisfies the same power balance constraint.

[0024] In this embodiment, the power of non-faulty devices providing the same form of energy satisfies the same power balance constraint, thereby achieving load supply and demand balance for different forms of energy and improving the reliability of the obtained candidate power supply.

[0025] In one embodiment, the power balance constraint includes the total power supplied by the equipment being equal to the user load power; the user load power is the difference between the user-side demand power and the user-side load power that can be reduced; wherein, the load power that can be reduced for different forms of energy in the power supply system satisfies the corresponding power reduction constraint.

[0026] In the embodiments of this application, satisfying the power balance constraints of different forms of energy can correspondingly improve the reliability of the obtained candidate power supply.

[0027] In one embodiment, the process of constructing the fault optimization model includes:

[0028] Expressions for obtaining energy production resource quantities and fault penalty resource quantities;

[0029] Based on the expressions for energy production resources and fault penalty resources, the expression for the comprehensive resource quantity is determined, thus obtaining the fault optimization model.

[0030] In this embodiment, an expression for a comprehensive resource quantity is constructed based on the expression for energy production resource quantity and the expression for fault penalty resource quantity, in order to construct a fault optimization model. This facilitates the subsequent development of a fault handling strategy based on the fault optimization model, enabling fault handling of the energy supply system and thereby improving the accuracy of fault handling.

[0031] In one embodiment, the expression for obtaining the amount of energy production resources includes:

[0032] An expression for determining the amount of power resources based on the unit power resource quantity and the total power supplied by electrical equipment in the non-faulty equipment of the power supply system;

[0033] An expression for determining the amount of natural gas resources based on the unit resource quantity of gas flow and the total natural gas flow of gas-consuming equipment in the non-faulty equipment of the energy supply system;

[0034] Based on the expressions for electricity resources and natural gas resources, generate an expression for energy production resources.

[0035] In this embodiment of the application, an expression for the energy production resources of an energy supply system that uses purchased energy, including electricity and natural gas, is obtained. This can improve the matching degree between the fault optimization model constructed based on the expression for the energy production resources and the energy supply system, thereby improving the fault handling effect.

[0036] In one embodiment, the fault penalty resource amount includes the reduction penalty resource amount resulting from reducing the load that can be reduced on the user side; the expression for obtaining the reduction penalty resource amount includes:

[0037] An expression for the load power that can be reduced from the various forms of energy provided by the energy supply system;

[0038] Based on the expressions for the load power that can be reduced for various forms of energy, and the unit penalty resource quantity for various forms of energy, the expression for the reduction penalty resource quantity is determined.

[0039] In this embodiment of the application, an expression for the amount of resource reduction penalty resulting from reducing the load that can be reduced on the user side is obtained, which helps to build a fault optimization model that is more adapted to the needs of the actual scenario, thereby improving the accuracy of fault handling.

[0040] In one embodiment, the fault penalty resource amount includes the carbon emission penalty resource amount generated by carbon emissions from purchased energy; the expression for obtaining the carbon emission penalty resource amount includes:

[0041] Obtain the expression for the carbon emission intensity of the energy supply system corresponding to the purchased energy;

[0042] The expression for the carbon emission penalty resource amount is determined based on the expression for carbon emission intensity and the expression for the unit intensity penalty resource amount.

[0043] In this embodiment of the application, an expression for the amount of carbon emission penalty resources generated by carbon emissions from purchased energy is obtained, which helps to build a fault optimization model that is more adapted to the needs of actual scenarios, thereby improving the accuracy of fault handling.

[0044] In one embodiment, obtaining the expression for the carbon emission intensity of the energy supply system corresponding to purchased energy includes:

[0045] An expression for determining the carbon emission intensity of electricity based on the total power supplied by electrical equipment in the non-faulty equipment of the energy supply system;

[0046] An expression for determining the carbon emission intensity of natural gas based on the total natural gas flow rate of gas-consuming equipment in the non-faulty equipment of the energy supply system;

[0047] Based on the expressions for the carbon emission intensity of electricity and the carbon emission intensity of natural gas, we obtain the expression for the carbon emission intensity of purchased energy.

[0048] In this embodiment, the carbon emission intensity of purchased energy is determined based on purchased electricity and purchased natural gas, taking into account the carbon emission impact of both electricity and natural gas, thus improving the accuracy of the obtained carbon emission intensity of purchased energy.

[0049] In one embodiment, the fault handling strategy includes target purchased energy data for the energy supply system and target operating parameters for each non-faulty device in the energy supply system; according to the fault handling strategy, fault handling is performed on the energy supply system, including:

[0050] Purchased energy is acquired based on target purchased energy data, and the operation of each non-faulty device is controlled according to the target operating parameters of each non-faulty device.

[0051] In this embodiment, the obtained fault handling strategy includes target purchased energy data and target operating parameters of each non-faulty device, thereby achieving comprehensive control over the internal and external energy supply system and improving the accuracy of fault handling.

[0052] In one embodiment, the fault handling strategy includes fault indication information; according to the fault handling strategy, fault handling is performed on the power supply system, including:

[0053] Issue a shutdown and maintenance command to control the power supply system to shut down.

[0054] In this embodiment of the application, when the fault handling strategy includes fault prompt information, a shutdown and maintenance command is issued in a timely manner to control the power supply system to stop, thereby improving the timeliness of the power supply system maintenance and enabling timely restoration of the supply and demand balance with the user side.

[0055] In one embodiment, the method further includes:

[0056] Acquire operational data from each energy supply device in the energy supply system;

[0057] The operating status of each power supply device is determined based on its operating data; the operating status includes fault or normal.

[0058] In this embodiment, the power supply equipment is determined to be faulty based on its operating data, thereby enabling the monitoring of its operating status and allowing for timely response to faulty equipment, thus improving the timeliness of fault handling.

[0059] Secondly, embodiments of this application also provide a fault handling apparatus, the apparatus comprising:

[0060] The strategy determination module is used to run the fault optimization model of the energy supply system under the constraint of minimizing the comprehensive resource quantity of the energy supply system when there is at least one faulty device in the energy supply system. The fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and comprehensive resource quantity of the energy supply system.

[0061] The fault handling module is used to handle faults in the power supply system according to the fault handling strategy.

[0062] Thirdly, embodiments of this application also provide a power supply system, including a control host and multiple power supply devices. The control host includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the fault handling steps provided in any of the above embodiments.

[0063] Fourthly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the fault handling provided in any of the above embodiments.

[0064] Fifthly, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps in fault handling provided in any of the above embodiments.

[0065] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0066] Figure 1 This is a structural block diagram of the power supply system in one embodiment;

[0067] Figure 2 This is a structural block diagram of the power supply system in another embodiment;

[0068] Figure 3 This is a flowchart illustrating a fault handling method in one embodiment;

[0069] Figure 4 This is a flowchart illustrating the fault handling strategy in one embodiment;

[0070] Figure 5 This is a schematic diagram of the process for obtaining candidate purchased energy data in one embodiment;

[0071] Figure 6 This is a flowchart illustrating the process of obtaining candidate working parameters in one embodiment;

[0072] Figure 7 This is a flowchart illustrating the process of constructing a fault optimization model in one embodiment;

[0073] Figure 8 This is a flowchart illustrating the process of obtaining an expression for the amount of energy production resources in one embodiment;

[0074] Figure 9 This is a flowchart illustrating the process of obtaining an expression for reducing the amount of penalty resources in one embodiment;

[0075] Figure 10 This is a flowchart illustrating the process of obtaining an expression for the amount of resources subject to carbon emission penalties in one embodiment.

[0076] Figure 11 This is a flowchart illustrating the process of obtaining the expression for carbon emission intensity in one embodiment;

[0077] Figure 12 This is a flowchart illustrating the process of monitoring the operating status of power supply equipment in one embodiment;

[0078] Figure 13 This is a flowchart illustrating a fault handling method in another embodiment;

[0079] Figure 14 This is a structural block diagram of a fault handling device in one embodiment. Detailed Implementation

[0080] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0081] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the term "comprising" and any variations thereof in the specification, claims and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0082] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0083] In the description of the embodiments of this application, the term "and / or" is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), unless otherwise explicitly specified.

[0084] An energy supply system is an energy system that includes a variety of energy supply devices.

[0085] Taking a comprehensive energy supply system that can provide multiple forms of energy (such as cooling, heating, and electricity) as an example, this energy supply system integrates different forms of energy to achieve coordinated optimization and efficient complementarity of multiple forms of energy flow and energy tiered utilization, so as to meet the regional load demand for electricity, heat, and cooling. It is of great significance for improving the proportion of renewable energy consumption and the comprehensive energy utilization efficiency, and is an important component of the new energy system.

[0086] When a fault occurs in the energy supply system, such as the failure of individual devices, the energy load that the system can provide will decrease, disrupting the load supply and demand balance between the energy supply system and the user side, causing the energy supply system to be unable to meet the load demand of the user side. In this case, the energy supply system will enter a fault handling process to address the fault and achieve a new load supply and demand balance.

[0087] In related technologies, when there are faulty devices in the energy supply system, the usual approach is to first isolate the failed devices, utilize the system's redundant capacity design, and maintain system operation through multi-energy transfer. The fault handling strategy is determined with the constraints of minimizing system transfer costs or the shortest fault handling response time, and the energy supply system is controlled according to this fault handling strategy to achieve a new supply-demand balance.

[0088] However, fault handling based on system transfer costs or fault response time cannot meet the needs of actual scenarios, resulting in insufficient precision in fault handling of power supply systems in related technologies.

[0089] The fault handling method provided in this application embodiment is applied to the power supply system. Therefore, before describing the fault handling method in detail, the power supply system provided in this application embodiment will be described first.

[0090] like Figure 1 As shown, in one embodiment, this application provides an energy supply system 100, including: a control host 110 and multiple energy supply devices 120.

[0091] The control host 110 can control the energy supply equipment 120 to provide energy according to the load demand on the user side. Multiple energy supply equipment 120 can provide different forms of energy to the user side, such as cooling, heating, and electricity, with the help of purchased energy, to meet the load demand of different forms of energy on the user side.

[0092] Optionally, the energy supply equipment 120 may be a renewable energy power generation device, an energy conversion device, or an energy storage device. For example, the renewable energy power generation device includes a photovoltaic power generation device, the energy conversion device includes at least one of a combined heat and power (CHP) unit, a gas boiler, an electric chiller unit, and an absorption chiller unit, and the energy storage device may include a battery or a thermal storage tank.

[0093] like Figure 2 As shown, a comprehensive energy supply system (control unit not shown) that can provide three forms of energy—cooling, heating, and electricity—is provided. This comprehensive energy supply system includes photovoltaic power generation equipment, CHP units, gas-fired boilers, thermal storage tanks, batteries, electric boilers, ice storage equipment, electric refrigeration units, and absorption chillers, to provide electrical load, cooling load, and heating load to the user side through purchased energy (purchased electricity and purchased natural gas shown in the figure).

[0094] The following details the fault handling method provided in the embodiments of this application, and applies it to... Figure 1 Taking the control host in the example as an example, in one embodiment, such as Figure 3 As shown, the provided fault handling method includes the following steps:

[0095] S310. When there is at least one faulty device in the energy supply system, the fault optimization model of the energy supply system is run under the constraint of minimizing the comprehensive resource quantity of the energy supply system to obtain the fault handling strategy of the energy supply system. The fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and comprehensive resource quantity of the energy supply system.

[0096] It should be noted that the energy supply system includes various types of energy supply equipment. These can be categorized by the form of energy provided: refrigeration equipment (providing cold energy), heating equipment (providing heat energy), and power supply equipment (providing electricity). They can also be categorized by whether they can store energy: energy storage equipment and other power supply equipment that cannot. A faulty device is a faulty energy supply device.

[0097] Among them, the energy production resource quantity represents the amount of resources consumed by purchased energy, the fault penalty resource quantity represents the amount of penalty resources generated by the operation of the energy supply system in accordance with the corresponding fault handling strategy, and the comprehensive resource quantity represents the total resource quantity formed by the consumed resource quantity and the penalty resource quantity, that is, the comprehensive resource quantity is equal to the sum of the energy production resource quantity and the fault penalty resource quantity.

[0098] Optionally, if at least one faulty device exists in the energy supply system, the control host can run a fault optimization model of the energy supply system to obtain a fault handling strategy for the energy supply system. Specifically, the control host can use the functional relationship represented by the fault optimization model as the objective function, with the minimum overall resource quantity as the constraint, to run the fault optimization model to solve the objective function, obtaining the target purchased energy data of the energy supply system and / or the target operating parameters of each non-faulty device in the energy supply system, and using these as the fault handling strategy for the energy supply system.

[0099] S320. According to the fault handling strategy, perform fault handling on the power supply system.

[0100] Optionally, after obtaining the fault handling strategy, the control host can control each non-faulty device in the energy supply system to work according to the fault handling strategy in order to handle the fault in the energy supply system and enable the energy supply system to reach a new supply and demand balance.

[0101] In this embodiment, when at least one faulty device exists in the energy supply system, a fault optimization model for the energy supply system is run under the constraint of minimizing the overall resource quantity of the energy supply system. This yields a fault handling strategy for the energy supply system, and fault handling is performed on the energy supply system according to the strategy. The fault optimization model characterizes the functional relationship between the energy production resource quantity, the fault penalty resource quantity, and the overall resource quantity of the energy supply system. In this method, by running the fault optimization model characterizing the functional relationship between the energy production resource quantity, the fault penalty resource quantity, and the overall resource quantity of the energy supply system, a fault handling strategy that minimizes the overall resource quantity of the energy supply system is obtained. The model takes into account the impact of the fault penalty resource quantity on the overall resource quantity, improving the adaptability of the obtained fault handling strategy to the actual scenario requirements, and correspondingly improving the accuracy of fault handling.

[0102] The fault handling strategy includes target purchased energy data for the power supply system and target operating parameters for each non-faulty device. Based on this, in one embodiment, such as... Figure 4 As shown, in S310 above, the energy supply system's overall resource quantity is minimized as a constraint. The fault optimization model of the energy supply system is run to obtain the fault handling strategy for the energy supply system, including:

[0103] S410. Determine multiple sets of input parameters based on multiple candidate purchased energy data of the energy supply system and multiple candidate operating parameters of each non-faulty device in the energy supply system; each set of input parameters includes candidate purchased energy data and candidate operating parameters of each non-faulty device.

[0104] Optionally, the control host can acquire multiple candidate purchased energy data and multiple candidate operating parameters of each non-faulty device in the energy supply system, and compile them into multiple sets of input parameters including candidate purchased energy data and candidate operating parameters of each non-faulty device.

[0105] S420. Input multiple sets of input parameters into the fault optimization model, solve for the target input parameters that minimize the overall resource quantity, and use them as the fault handling strategy.

[0106] Optionally, the control host can use multiple sets of input parameters as input variables for the fault optimization model, input and run the fault optimization model respectively to obtain the set of input parameters that minimizes the overall resource quantity, which serves as the target input parameter. The control host can directly determine the target input parameter as the fault handling strategy. The target input parameter includes the target purchased energy data that minimizes the overall resource quantity and the target operating parameters of each non-faulty device in the energy supply system.

[0107] In this embodiment, multiple sets of input parameters are determined based on multiple candidate purchased energy data and multiple candidate operating parameters of each non-faulty device in the energy supply system. These multiple sets of input parameters are then input into a fault optimization model to solve for the target input parameters that minimize the overall resource quantity, which serve as the fault handling strategy. Each set of input parameters includes candidate purchased energy data and candidate operating parameters of each non-faulty device. In this method, running the fault optimization model to obtain the target input parameters that minimize the overall resource quantity, and using them as the fault handling strategy, improves the data comprehensiveness of the obtained fault handling strategy and helps to improve the reliability of fault handling.

[0108] To obtain multiple candidate external energy purchase data, in one embodiment, such as Figure 5 As shown, the above method also includes:

[0109] S510. Determine the total power of multiple candidate purchased electricity according to the power power constraint conditions, and determine the total flow of multiple candidate purchased natural gas according to the natural gas supply constraint conditions.

[0110] The power supply constraint is a constraint on the total power output of purchased electricity. The natural gas supply constraint is a constraint on the total flow rate of purchased natural gas.

[0111] For example, power constraints include: Natural gas supply constraints include: . This represents the active power of external electricity input into the energy supply system, i.e., the total power of purchased electricity; This indicates the maximum permissible value of external active power. This indicates the volumetric flow rate of purchased natural gas, i.e., the total flow rate of purchased natural gas; This indicates the maximum permissible volumetric flow rate of purchased natural gas.

[0112] Optionally, the control host can read pre-stored power constraints and obtain multiple total purchased power values ​​that meet the power constraints, as multiple candidate total purchased power values ​​for the power supply system. Similarly, the control host can read pre-stored natural gas supply constraints and obtain multiple total purchased natural gas flow rates that meet the natural gas supply constraints, as multiple candidate total purchased natural gas flow rates for the power supply system.

[0113] For example, the control host can traverse the power values ​​within the power range corresponding to the power constraints as multiple candidate total purchased power of the power supply system, and traverse the flow values ​​within the gas volume flow range corresponding to the natural gas supply constraints as multiple candidate total purchased natural gas flow of the power supply system.

[0114] S520: The total power of multiple candidate purchased electricity and the total flow of multiple candidate purchased natural gas are used as multiple candidate purchased energy data for the energy supply system.

[0115] Optionally, the control host can directly use the total power of multiple candidate purchased electricity and the total flow of multiple candidate purchased natural gas as multiple candidate purchased energy data for the energy supply system.

[0116] In this embodiment, multiple candidate total purchased power outputs are determined based on power supply constraints, and multiple candidate total purchased natural gas flow rates are determined based on natural gas supply constraints. These multiple candidate total purchased power outputs and multiple candidate total purchased natural gas flow rates are then used as multiple candidate purchased energy data for the energy supply system. In this method, determining multiple candidate total purchased power outputs based on power supply constraints and multiple candidate total purchased natural gas flow rates based on natural gas supply constraints, and using them together as multiple candidate purchased energy data for the energy supply system, improves the reliability of the candidate purchased energy data and simultaneously enhances the effectiveness of the resulting fault handling strategy.

[0117] In cases where non-faulty equipment includes energy storage devices and other power supply devices, to obtain multiple candidate operating parameters, in one embodiment, such as Figure 6 As shown, the above method also includes:

[0118] S610. Determine multiple candidate power supplies for other power supply equipment based on equipment power constraints, equipment variable operating condition constraints, and power balance constraints.

[0119] Among them, the equipment power constraint is the constraint on the power of the power supply equipment, the equipment variable operating condition constraint is the constraint on the change in equipment power between adjacent time periods, and the power balance constraint is the power supply and demand constraint between the power supply system and the user side.

[0120] For example, the device power constraints include: The constraints for changing operating conditions of the equipment include: , . , and These represent the real-time power, minimum power, and maximum power of power supply device i at time t, respectively. It is the real-time power of the power supply device i at the previous time t-1; , These represent the power ramp-up and ramp-down rates of power supply device i, respectively; Δt is the time interval between adjacent times t and t-1, which can also be called a scheduling cycle.

[0121] Optionally, for each of the other power supply devices (non-energy storage devices) among the non-faulty devices, the control host can read the pre-stored equipment power constraints, equipment variable operating condition constraints, and power balance constraints corresponding to each other power supply device. For each other power supply device, multiple equipment powers that simultaneously meet the corresponding equipment power constraints, equipment variable operating condition constraints, and power balance constraints can be obtained as multiple candidate power supplies for that other power supply device.

[0122] S620. Determine multiple candidate energy storage powers of the energy storage device according to the energy storage capacity constraint, and determine multiple candidate energy release powers of the energy storage device according to the energy release capacity constraint.

[0123] Among them, the energy storage capacity constraint is a constraint on the energy storage power, and the energy release capacity constraint is a constraint on the energy release power.

[0124] For example, the energy storage capacity constraints include: Energy storage capacity constraints include: Furthermore, energy storage devices must also meet equipment capacity constraints:

[0125]

[0126]

[0127]

[0128] , and These represent the real-time capacity, minimum capacity, and maximum capacity of energy storage device j at time t, respectively. It is the real-time capacity of energy storage device j at the previous moment t-1; , These are the energy storage capacity and energy release capacity of energy storage device j, respectively. Δt represents the maximum charging and discharging power of energy storage device j; Δt is the time interval between adjacent times t and t-1, which can also be called a scheduling cycle.

[0129] Optionally, for each energy storage device in the non-faulty equipment, the control host can read the pre-stored energy storage capacity constraints and energy storage capacity constraints, and obtain multiple energy storage powers that meet the energy storage capacity constraints as multiple candidate energy storage powers of the energy storage device. Similarly, it can obtain multiple energy release powers that meet the energy release capacity constraints as multiple candidate energy release powers of the energy storage device.

[0130] S630. Multiple candidate power supplies of other power supply equipment, multiple candidate energy storage power and multiple candidate energy release power of energy storage equipment are used as multiple candidate operating parameters of non-faulty equipment.

[0131] Optionally, the control host can directly use multiple candidate power supplies of other power supply devices, multiple candidate energy storage powers of energy storage devices, and multiple candidate energy release powers as multiple candidate operating parameters of non-faulty devices.

[0132] In this embodiment, the non-faulty equipment includes energy storage equipment and other energy supply equipment. Multiple candidate energy supply powers are determined for the other energy supply equipment according to equipment power constraints, equipment variable operating condition constraints, and power balance constraints. Multiple candidate energy storage powers are determined for the energy storage equipment according to energy storage capacity constraints, and multiple candidate energy release powers are determined for the energy storage equipment according to energy release capacity constraints. These multiple candidate energy supply powers, multiple candidate energy storage powers, and multiple candidate energy release powers are then used as multiple candidate operating parameters for the non-faulty equipment. In the above method, multiple candidate energy supply powers for the other energy supply equipment, and multiple candidate energy storage powers and multiple candidate energy release powers for the energy storage equipment are determined based on multiple constraints to serve as multiple candidate operating parameters for the non-faulty equipment. This improves the reliability of the candidate operating parameters and simultaneously enhances the effectiveness of the obtained fault handling strategy.

[0133] The energy supply system is used to provide different forms of energy. In the case where the energy supply system is used to provide at least two forms of energy, in one embodiment, the power of non-faulty devices in the energy supply system that provide the same form of energy satisfies the same power balance constraint.

[0134] For example, taking a comprehensive energy supply system that provides energy in the form of cold, heat and electricity as an example, the power of non-faulty equipment that provides cold energy satisfies the cold power balance constraint, the power of non-faulty equipment that provides heat energy satisfies the heat power balance constraint, and the power of non-faulty equipment that provides electricity satisfies the electric power balance constraint.

[0135] In this embodiment, the energy supply system provides at least two forms of energy; the power of non-faulty devices providing the same form of energy in the energy supply system satisfies the same power balance constraint. In the above method, the power of non-faulty devices providing the same form of energy satisfies the same power balance constraint, achieving load supply and demand balance for different forms of energy, and correspondingly improving the reliability of the obtained candidate energy supply power.

[0136] Power balance constraints characterize the constraints on power supply and demand balance, including that the total power supplied by equipment equals the user load power. Based on this, in one embodiment, the user load power is the difference between the user-side demand power and the user-side load power that can be reduced.

[0137] In this context, the reducible load power of different forms of energy in the energy supply system satisfies the corresponding power reduction constraints. The user-side demand power is the actual demand power of the user side, the user-side reducible load power is the non-essential power that the user side can reduce, and the user load power is the remaining demand power after reducing the non-essential power that the user side can reduce from the actual demand power of the user side. In other words, the user load power is the difference between the user-side demand power and the user-side reducible load power.

[0138] Optionally, for Figure 2 The integrated energy supply system shown can provide energy in the form of cooling, heating, and electricity. The operating parameters of the non-faulty equipment in the system must meet the following power balance constraints:

[0139] Cold power balance constraints:

[0140] Thermal power balance constraints:

[0141] Electric power balance constraints:

[0142] Where P represents the power supply of the energy supply equipment; L represents the load power on the user side; the superscripts c, h, and e represent the forms of energy such as cold, heat, and electricity, respectively; the subscripts EP, AR, CS, CHP, GB, EB, HS, ES, PV, and E represent the total power of electric refrigeration units, absorption refrigeration units, ice storage equipment, combined heat and power units, gas boilers, electric boilers, thermal storage tanks, storage batteries, photovoltaic power generation equipment, and purchased electricity, respectively.

[0143] User-side load power can be reduced at time t. It also satisfies the following power range constraints:

[0144]

[0145]

[0146]

[0147] , , These are the lower limits of the reducible cooling, heating, and electrical load power; , , These represent the upper limits of the cooling, heating, and electrical loads that can be reduced, respectively. μ is a 0-1 state variable used to determine whether load reduction has occurred; a value of 1 indicates that load reduction has occurred, and a value of 0 indicates that load reduction has not occurred.

[0148] In this embodiment, the power balance constraint conditions include: the total power supplied by the equipment equals the user load power; the user load power is the difference between the user's demand power and the user's reducible load power; and the reducible load power of different forms of energy in the power supply system satisfies the corresponding reduction power constraint conditions. In the above method, satisfying the power balance constraint conditions for different forms of energy can correspondingly improve the reliability of the obtained candidate power supply.

[0149] The above method also includes the process of constructing a fault optimization model for the power supply system. In one embodiment, such as Figure 7 As shown, the process of constructing the fault optimization model includes:

[0150] S710, Expressions for obtaining energy production resources and expressions for fault penalty resources.

[0151] Optionally, the control host can obtain pre-stored expressions for the amount of energy production resources and the amount of fault penalty resources corresponding to the fault situation when at least one faulty device exists in the energy supply system. Alternatively, when at least one faulty device exists in the energy supply system, the control host can construct expressions for the amount of energy production resources and the amount of fault penalty resources based on the non-faulty devices in the energy supply system.

[0152] S720. Based on the expressions for energy production resources and fault penalty resources, determine the expression for the comprehensive resource quantity, and obtain the fault optimization model.

[0153] Optionally, after obtaining the expressions for energy production resources and fault penalty resources, the expressions for energy production resources and fault penalty resources can be summed to obtain the expression for comprehensive resources, and this expression for comprehensive resources can be used as the fault optimization model.

[0154] Among them, the amount of energy production resources representing the energy supply system Fault penalty resource amount and comprehensive resource quantity The fault optimization model based on the functional relationship between them can be expressed as:

[0155]

[0156] In this embodiment, an expression for the amount of energy production resources and the expression for the amount of resources penalized for faults are obtained, and an expression for the comprehensive resource quantity is determined based on these expressions to obtain a fault optimization model. In the above method, an expression for the comprehensive resource quantity is constructed based on the expressions for the amount of energy production resources and the expressions for the amount of resources penalized for faults, thereby constructing a fault optimization model. This facilitates the subsequent development of fault handling strategies based on the fault optimization model, enabling fault handling of the energy supply system and improving the accuracy of fault handling.

[0157] The amount of energy production resources is determined based on purchased energy. In one embodiment, where purchased energy includes electricity and natural gas, such as... Figure 8 As shown, the expression for obtaining the amount of energy production resources in S710 above includes:

[0158] S810. An expression for determining the amount of power resources based on the unit power resource quantity and the total power supplied by electrical equipment in the non-faulty equipment of the power supply system.

[0159] Among these, the non-faulty equipment refers to the power supply equipment that uses electricity as its direct energy source. The total power supplied by the power supply equipment is the sum of the power supplied by all power supply equipment at the same time. The amount of electricity resources represents the amount of resources consumed by purchased electricity.

[0160] Optionally, the control host can construct an expression for the total power supply of all electrical devices in the non-faulty equipment of the power supply system, and read the pre-stored power unit resource quantity, multiply the power unit resource quantity by the expression for the total power supply, and obtain an expression for the power resource quantity.

[0161] S820. An expression for determining the amount of natural gas resources based on the unit resource quantity of gas flow rate and the total natural gas flow rate of gas-using equipment in the non-faulty equipment of the energy supply system.

[0162] Among the non-faulty equipment, the gas-consuming equipment refers to the energy supply equipment that uses natural gas as its direct energy source. The total natural gas flow rate of the gas-consuming equipment is the sum of the volumetric natural gas flow rates of all gas-consuming equipment at the same time. The natural gas resource quantity represents the amount of purchased natural gas consumed.

[0163] Optionally, the control host can construct an expression for the total natural gas flow rate of all gas-consuming devices in the non-faulty equipment of the energy supply system, and read the pre-stored gas flow rate unit resource quantity, multiply the gas flow rate unit resource quantity by the expression for the total natural gas flow rate, and obtain an expression for the natural gas resource quantity.

[0164] S830. Based on the expressions for electricity resources and natural gas resources, generate an expression for energy production resources.

[0165] Optionally, after obtaining the expressions for the amount of electricity resources and the amount of natural gas resources, the control host can sum the expressions for the amount of electricity resources and the amount of natural gas resources to generate an expression for the amount of energy production resources.

[0166] Among them, energy production resources The expression is as follows:

[0167]

[0168] This represents the amount of electricity per unit of resource at time t, such as time-of-use pricing. This represents the total power supplied at time t; This represents the gas flow rate per unit of resource at time t, such as the price of natural gas per unit volume. This represents the total flow rate of natural gas at time t.

[0169] In this embodiment, an expression for the amount of electricity resources is determined based on the unit power resource quantity and the total power supplied by electrical equipment in the non-faulty equipment of the energy supply system. An expression for the amount of natural gas resources is determined based on the unit gas flow rate resource quantity and the total natural gas flow rate of gas-using equipment in the non-faulty equipment of the energy supply system. Then, based on the expressions for electricity resources and natural gas resources, an expression for the amount of energy production resources is generated. This method yields an expression for the amount of energy production resources for an energy supply system that uses purchased energy, including electricity and natural gas. This can improve the matching degree between the fault optimization model constructed based on this expression and the energy supply system, thereby improving the fault handling effect.

[0170] In one embodiment, where the fault penalty resource amount includes the reduction penalty resource amount resulting from reducing the load that can be reduced on the user side, such as Figure 9 As shown, the expression for obtaining the amount of resources to reduce penalties includes:

[0171] S910, An expression for obtaining the load power that can be reduced from the various forms of energy provided by the energy supply system.

[0172] Optionally, with Figure 2 Taking the integrated energy supply system shown as an example, the expressions for the reduction of load power on the user side for the three forms of energy—cooling, heating, and electricity—are as follows:

[0173]

[0174]

[0175]

[0176] , , These represent the initial load power at time t, i.e., the user-side demand power. , , denoted as the user-side load power that can be reduced at time t; μ is a 0-1 state variable used to determine whether load reduction has occurred, with a value of 1 indicating load reduction and a value of 0 indicating no load reduction; α is the load reduction ratio.

[0177] S920. Based on the expressions for the load power that can be reduced for various forms of energy and the unit penalty resource quantity for various forms of energy, determine the expression for the reduction penalty resource quantity.

[0178] Optionally, the control host can multiply the expression for the reduceable load power of each type of energy by the corresponding penalty resource amount per unit of energy and then sum them to obtain the expression for the reduction penalty resource amount. For example, continuing with the above example, regarding... Figure 2 The reduction of resources in the integrated energy supply system The expression is as follows:

[0179]

[0180] , , They are respectively in Constantly reduce the unit penalty resource amount of user load in the form of cold, heat and electricity.

[0181] In this embodiment, the fault penalty resource amount includes the reduction penalty resource amount resulting from reducing the load that can be reduced on the user side. By obtaining expressions for the reduceable load power of various forms of energy provided by the power supply system, and based on these expressions, along with the unit penalty resource amount for each form of energy, the expression for the reduction penalty resource amount is determined. This method yields an expression for the reduction penalty resource amount resulting from reducing the load that can be reduced on the user side, which helps to construct a fault optimization model that is more adapted to the needs of actual scenarios, thereby improving the accuracy of fault handling.

[0182] In cases where the fault penalty resource quantity includes the carbon emission penalty resource quantity resulting from carbon emissions from purchased energy, in one embodiment, such as Figure 10 As shown, the expression for obtaining the amount of resources subject to carbon emission penalties includes:

[0183] S1010, Obtain the expression for the carbon emission intensity of the energy supply system corresponding to the purchased energy.

[0184] Carbon emission intensity can be determined based on the amount of energy purchased from outside sources.

[0185] Optionally, the control host can directly obtain the pre-stored expression for the carbon emission intensity of the energy supply system corresponding to the purchased energy, or it can determine the expression for the carbon emission intensity of the purchased energy based on the amount of purchased energy.

[0186] S1020. Determine the expression for the carbon emission penalty resource amount based on the expression for carbon emission intensity and the unit intensity penalty resource amount.

[0187] Optionally, after obtaining the expression for the carbon emission intensity of the corresponding purchased energy, the host can read the unit intensity penalty resource amount, multiply the unit intensity penalty resource amount by the expression for carbon emission intensity, and obtain the expression for the carbon emission penalty resource amount.

[0188] Among them, carbon emission penalty resources The expression is as follows:

[0189]

[0190] In order to be in The amount of resources penalized per unit intensity at any given moment. This represents the carbon emission intensity of the energy supply system corresponding to purchased energy at time t.

[0191] It should be noted that the amount of resources penalized for faults... This also includes reducing the amount of punitive resources. and carbon emission penalties for resource quantity In this case, the fault optimization model can be expressed as:

[0192]

[0193] In this embodiment, the fault penalty resource amount includes the carbon emission penalty resource amount generated by carbon emissions from purchased energy. By obtaining the expression for the carbon emission intensity of the purchased energy corresponding to the energy supply system, the expression for the carbon emission penalty resource amount is determined based on the expression for carbon emission intensity and the unit intensity penalty resource amount. The above method yields an expression for the carbon emission penalty resource amount generated by carbon emissions from purchased energy, which helps to construct a fault optimization model more adapted to actual scenario requirements, thereby improving the accuracy of fault handling.

[0194] Purchased energy includes electricity and natural gas. Based on this, in one embodiment, such as... Figure 11 As shown, the expression for obtaining the carbon emission intensity of the energy supply system corresponding to the purchased energy in S1010 above includes:

[0195] S1110. An expression for determining the carbon emission intensity of electricity based on the total power supplied by electrical equipment in the non-faulty equipment of the power supply system.

[0196] Optionally, the control host can read the pre-stored electricity carbon emission factor and multiply the total power supplied by the electrical equipment in the non-faulty equipment of the power supply system with the electricity carbon emission factor to obtain an expression for the electricity carbon emission intensity.

[0197] S1120. An expression for determining the carbon emission intensity of natural gas based on the total natural gas flow rate of gas-using equipment in the non-faulty equipment of the energy supply system.

[0198] Optionally, the control host can read the pre-stored natural gas carbon emission factor and multiply the total natural gas flow rate of the gas-using equipment in the non-faulty equipment of the energy supply system with the natural gas carbon emission factor to obtain an expression for the natural gas carbon emission intensity.

[0199] S1130. Based on the expressions for the carbon emission intensity of electricity and the carbon emission intensity of natural gas, determine the expression for the carbon emission intensity of purchased energy.

[0200] Optionally, after obtaining the expressions for the carbon emission intensity of electricity and the carbon emission intensity of natural gas, the control host can sum the expressions for the amount of electricity resources and the amount of natural gas resources to generate an expression for the carbon emission intensity of purchased energy.

[0201] Among them, the carbon emission intensity of purchased energy The expression is as follows:

[0202]

[0203] and These represent the energy supply system in The carbon emission factors of electricity and natural gas at any given time.

[0204] Exemplarily, to be applied to Figure 2 Taking the integrated energy supply system in the example, the total natural gas flow rate at time t is... The sum of the natural gas volumetric flow rates of the gas-using equipment CHP unit and the gas-fired boiler, specifically satisfying the following relationship:

[0205]

[0206] In this embodiment, an expression for the carbon emission intensity of electricity is determined based on the total power supplied by electrical equipment in the non-faulty equipment of the energy supply system; an expression for the carbon emission intensity of natural gas is determined based on the total natural gas flow rate of gas-using equipment in the non-faulty equipment of the energy supply system; and an expression for the carbon emission intensity of purchased energy is generated based on the expressions for the carbon emission intensity of electricity and natural gas. In this method, the carbon emission intensity of purchased energy is determined based on purchased electricity and purchased natural gas, taking into account the carbon emission impact of both electricity and natural gas, thus improving the accuracy of the obtained carbon emission intensity of purchased energy.

[0207] In practical applications, fault handling strategies include target purchased energy data for the energy supply system and target operating parameters for each non-faulty device in the energy supply system. Based on this, in one embodiment, step S320, according to the fault handling strategy, performs fault handling on the energy supply system, including:

[0208] Purchased energy is acquired based on target purchased energy data, and the operation of each non-faulty device is controlled according to the target operating parameters of each non-faulty device.

[0209] For example, the target purchased energy data includes the target total power output and the target total natural gas flow rate. The non-faulty equipment includes energy storage equipment and other energy supply equipment. The target operating parameters of the non-faulty equipment include the target power output of other energy supply equipment, the target energy storage power and the target energy release power of the energy storage equipment.

[0210] Optionally, after obtaining the target purchased energy data and the fault handling strategies for each non-faulty device, the control host can acquire purchased energy according to the target purchased energy data and control the operation of each non-faulty device according to the target operating parameters of each non-faulty device. Continuing the above example, the control host can acquire purchased electricity according to the target total power, acquire purchased natural gas according to the target total natural gas flow, control other energy supply devices to operate at the corresponding target power, and control each energy storage device to store energy at the corresponding target power and release energy at the corresponding target power.

[0211] In this embodiment, the fault handling strategy includes target purchased energy data for the energy supply system and target operating parameters for each non-faulty device in the energy supply system. Purchased energy is acquired according to the target purchased energy data, and the operation of each non-faulty device is controlled according to its target operating parameters. The fault handling strategy obtained in the above method includes target purchased energy data and target operating parameters for each non-faulty device, thereby achieving comprehensive control over the energy supply system both internally and externally, and improving the accuracy of fault handling.

[0212] When the fault situation exceeds the system's fault handling capacity, the resulting fault handling strategy includes fault indication information. Based on this, in one embodiment, step S320, according to the fault handling strategy, performs fault handling on the power supply system, including:

[0213] Issue a shutdown and maintenance command to control the power supply system to shut down.

[0214] Among them, the fault indication information indicates that the current fault situation of the power supply system has exceeded the system's fault handling capacity and cannot be handled adaptively, requiring shutdown and manual intervention for maintenance.

[0215] Optionally, the control host runs a fault optimization model for the energy supply system, using the minimum overall resource quantity as a constraint. If the fault optimization model cannot find the purchased energy data and operating parameters of each non-faulty device that minimize the overall resource quantity, it outputs a fault handling strategy including fault indication information. The control host then sends shutdown and maintenance commands to each energy supply device in the energy supply system based on this fault handling strategy to control the entire energy supply system to shut down.

[0216] In this embodiment, the fault handling strategy includes fault indication information, and a shutdown and maintenance command is issued to control the power supply system to shut down. In the above method, upon receiving fault indication information as part of the fault handling strategy, a shutdown and maintenance command is promptly issued to control the power supply system to shut down, improving the timeliness of power supply system maintenance and enabling timely restoration of supply and demand balance with the user side.

[0217] The above method may also include a process for monitoring the operating status of each power supply device in the power supply system. In one embodiment, such as Figure 12 As shown, the above method also includes:

[0218] S1210. Obtain the operating data of each energy supply device in the energy supply system.

[0219] Optionally, the control host can periodically read at least one of the current, voltage, and power of each energy supply device in the energy supply system as the operating data of the corresponding energy supply device.

[0220] S1220. Determine the operating status of each power supply device based on its operating data; the operating status includes fault or normal.

[0221] Optionally, after obtaining the operating data of each power supply device, the control host can read the reference range of each operating parameter of the power supply device, compare the operating parameters with the corresponding reference range, and determine the operating status of the power supply device based on the comparison result. For example, if all operating parameters of the power supply device are within the corresponding reference range, the control host determines that the operating status of the power supply device is normal; conversely, if at least one operating parameter of the power supply device exceeds the corresponding reference range, the control host determines that the operating status of the power supply device is faulty, and the power supply device is a faulty device.

[0222] In this embodiment, the operating data of each power supply device in the power supply system is acquired, and the operating status of each power supply device is determined based on the operating data; the operating status includes fault or normal. In the above method, the power supply device is determined to be faulty based on its operating data, thereby realizing the monitoring of the operating status of the power supply device, so as to respond promptly to the situation of faulty device and improve the timeliness of fault handling.

[0223] To facilitate understanding by those skilled in the art, the fault handling method provided in this application is described in detail below, such as... Figure 13 As shown, the method may include:

[0224] S1301. Obtain the operating data of each energy supply device in the energy supply system;

[0225] S1302. Determine the operating status of each power supply device based on its operating data; the operating status includes fault or normal.

[0226] S1303. In the case of at least one faulty device in the energy supply system, determine the total power of multiple candidate externally purchased electricity according to the power power constraint condition, and determine the total flow of multiple candidate externally purchased natural gas according to the natural gas supply constraint condition.

[0227] S1304. Determine multiple candidate energy storage powers of energy storage devices in non-faulty equipment according to energy storage capacity constraints, and determine multiple candidate energy release powers of energy storage devices according to energy release capacity constraints.

[0228] S1305. Determine multiple candidate power supplies for other power supply equipment among the non-faulty equipment according to the equipment power constraints, equipment variable operating condition constraints, and power balance constraints.

[0229] S1306. Determine multiple sets of input parameters based on multiple candidate purchased energy data and multiple candidate operating parameters of each non-faulty device; each set of input parameters includes the total power of candidate purchased electricity, the total flow rate of candidate purchased natural gas, the candidate energy storage power and candidate energy release power of the energy storage device in the non-faulty device, and multiple candidate energy supply power of other energy supply devices in the non-faulty device;

[0230] S1307. Input multiple sets of input parameters into the fault optimization model, solve for the target input parameters that minimize the overall resource quantity, and use them as the fault handling strategy.

[0231] S1308. Obtain purchased energy according to the target total power of purchased electricity and the target total flow of purchased natural gas in the target input parameters; store energy according to the target energy storage power of the energy storage devices in each non-faulty device in the target input parameters; release energy according to the target energy release power of the energy storage devices in each non-faulty device in the target input parameters; and supply energy according to the target energy supply power of other energy supply devices in the target input parameters.

[0232] S1309. If the fault handling strategy includes fault indication information, issue a shutdown and maintenance command to control the power supply system to shut down.

[0233] It should be noted that the descriptions in S1301-S1309 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0234] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0235] In one embodiment, such as Figure 14 As shown, a fault handling device is provided, including: a strategy determination module 1401 and a fault handling module 1402; wherein:

[0236] The strategy determination module 1401 is used to run the fault optimization model of the energy supply system under the constraint of minimizing the comprehensive resource quantity of the energy supply system when there is at least one faulty device in the energy supply system, and obtain the fault handling strategy of the energy supply system. The fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and comprehensive resource quantity of the energy supply system.

[0237] The fault handling module 1402 is used to handle faults in the power supply system according to the fault handling strategy.

[0238] Each module in the aforementioned fault handling device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0239] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above fault handling methods.

[0240] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of any of the above-described fault handling methods.

[0241] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0242] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0243] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A fault handling method, characterized in that, The method includes: When there is at least one faulty device in the energy supply system, the fault optimization model of the energy supply system is run under the constraint of minimizing the total resource quantity of the energy supply system to obtain the fault handling strategy of the energy supply system; the fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and total resource quantity of the energy supply system. The power supply system is troubleshooted according to the fault handling strategy.

2. The method according to claim 1, characterized in that, The fault optimization model of the energy supply system is run under the constraint of minimizing the overall resource quantity of the energy supply system to obtain the fault handling strategy of the energy supply system, including: Multiple sets of input parameters are determined based on multiple candidate external energy purchase data of the energy supply system and multiple candidate operating parameters of each non-faulty device in the energy supply system; each set of input parameters includes candidate external energy purchase data and candidate operating parameters of each non-faulty device. The multiple sets of input parameters are respectively input into the fault optimization model to solve for the target input parameters that minimize the total resource quantity, and these parameters are used as the fault handling strategy.

3. The method according to claim 2, characterized in that, The method further includes: The total power of multiple candidate externally purchased electricity is determined according to the power supply constraints, and the total flow rate of multiple candidate externally purchased natural gas is determined according to the natural gas supply constraints. The total power of the multiple candidate purchased electricity and the total flow rate of the multiple candidate purchased natural gas are used as multiple candidate purchased energy data for the energy supply system.

4. The method according to claim 2, characterized in that, The non-faulty equipment includes energy storage devices and other energy supply devices; the method further includes: Based on the equipment power constraints, equipment variable operating condition constraints, and power balance constraints, determine multiple candidate power supplies for the other power supply equipment. The energy storage device is determined according to the energy storage capacity constraint, and the energy release capacity constraint is determined according to the energy release capacity constraint. The multiple candidate power supplies of the other power supply devices, the multiple candidate energy storage powers of the energy storage devices, and the multiple candidate energy release powers are used as multiple candidate operating parameters of the non-faulty devices.

5. The method according to claim 4, characterized in that, The energy supply system is used to provide at least two forms of energy; the power of non-faulty devices in the energy supply system that provide the same form of energy satisfies the same power balance constraint.

6. The method according to claim 5, characterized in that, The power balance constraint includes the total power supplied by the equipment being equal to the user load power; the user load power is the difference between the user-side demand power and the user-side load power that can be reduced; wherein, the load power that can be reduced for different forms of energy in the power supply system satisfies the corresponding power reduction constraint.

7. The method according to any one of claims 1-6, characterized in that, The process of constructing the fault optimization model includes: Obtain the expressions for the energy production resource quantity and the fault penalty resource quantity; The expression for the comprehensive resource quantity is determined based on the expression for the energy production resource quantity and the expression for the fault penalty resource quantity, thus obtaining the fault optimization model.

8. The method according to claim 7, characterized in that, The expression for obtaining the amount of energy production resources includes: An expression for determining the amount of power resources based on the unit power resource quantity and the total power supplied by electrical equipment in the non-faulty equipment of the power supply system; An expression for determining the amount of natural gas resources based on the unit resource quantity of gas flow rate and the total natural gas flow rate of gas-consuming equipment in the non-faulty equipment of the energy supply system; Based on the expressions for the electricity resources and the natural gas resources, an expression for the energy production resources is generated.

9. The method according to claim 7, characterized in that, The fault penalty resource amount includes the reduction penalty resource amount generated by reducing the load that can be reduced on the user side; The expression for obtaining the amount of reduced penalty resources includes: Obtain expressions for the load reduction capabilities of the various forms of energy provided by the energy supply system; Based on the expressions for the load reduction capacity of the various forms of energy and the unit penalty resource quantity of the various forms of energy, the expression for the reduction penalty resource quantity is determined.

10. The method according to claim 7, characterized in that, The fault penalty resource amount includes the carbon emission penalty resource amount generated by carbon emissions from purchased energy. The expression for obtaining the carbon emission penalty resource amount includes: Obtain the expression for the carbon emission intensity of the externally purchased energy corresponding to the energy supply system; The expression for the carbon emission penalty resource amount is determined based on the expression for carbon emission intensity and the unit intensity penalty resource amount.

11. The method according to claim 10, characterized in that, The expression for obtaining the carbon emission intensity of the energy supply system corresponding to the purchased energy includes: The expression for determining the carbon emission intensity of electricity is based on the total power supplied by electrical equipment in the non-faulty equipment of the energy supply system; The expression for determining the carbon emission intensity of natural gas is based on the total natural gas flow rate of gas-consuming equipment in the non-faulty equipment of the energy supply system; Based on the expressions for the carbon emission intensity of electricity and the carbon emission intensity of natural gas, an expression for the carbon emission intensity of purchased energy is generated.

12. The method according to any one of claims 1-6, characterized in that, The fault handling strategy includes target purchased energy data for the energy supply system and target operating parameters for each non-faulty device in the energy supply system; the fault handling of the energy supply system according to the fault handling strategy includes: Purchased energy is acquired according to the target purchased energy data, and the operation of each non-faulty device is controlled according to the target operating parameters of each non-faulty device.

13. The method according to any one of claims 1-6, characterized in that, The fault handling strategy includes fault indication information; the fault handling of the power supply system according to the fault handling strategy includes: Issue a shutdown and maintenance command to control the power supply system to shut down.

14. The method according to any one of claims 1-6, characterized in that, The method further includes: Obtain the operating data of each energy supply device in the energy supply system; The operating status of each energy supply device is determined based on its operating data; the operating status includes fault or normal.

15. A fault handling device, characterized in that, The device includes: The strategy determination module is used to run the fault optimization model of the energy supply system under the constraint of minimizing the comprehensive resource quantity of the energy supply system when there is at least one faulty device in the energy supply system, and to obtain the fault handling strategy of the energy supply system. The fault optimization model is used to characterize the functional relationship between the energy production resource quantity, fault penalty resource quantity and comprehensive resource quantity of the energy supply system. The fault handling module is used to handle faults in the power supply system according to the fault handling strategy.

16. An energy supply system, comprising a control host and a plurality of energy supply devices, wherein the control host includes a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 14.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.

18. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.