Intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson

By introducing the event-triggered Newton-Raphson method and dynamic event-triggered communication strategy into energy control, combined with dual analysis and differential projection operation, the computational burden and network attack problems of the centralized control method are solved, and fast and accurate intra-network networking is achieved. time energy control and robustness improvement.

CN114911180BInactive Publication Date: 2024-09-20NORTHEASTERN UNIV CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210465587.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing energy control methods are based on centralized methods, resulting in heavy computational burden and high cost, and are unable to effectively respond to network attacks and coordinated attacks, making it difficult to achieve accurate intra-network and inter-network energy control and rapid response.

Method used

Adopt an intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson, through signal acquisition, data preprocessing, distributed microprocessors and communication units, combined with Newton's drop concept and dynamic event-triggered communication strategy, and use primal dual analysis , Taylor expansion and differential projection operation to realize energy control within and between networks, and detect and isolate network attacks.

Benefits of technology

It achieves fast convergence and high-accuracy energy control within and between networks, reduces communication overhead and bandwidth requirements, improves robustness, avoids global clock synchronization requirements, has strong adaptability, and can quickly respond to model changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114911180B
    Figure CN114911180B
Patent Text Reader

Abstract

The present invention provides an intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson, and relates to the field of energy control technology. The present invention embeds the Newton descent concept and dynamic event-triggered communication strategy into the design of a distributed optimization algorithm, and considers system interference such as network attacks, and realizes intra-network and inter-network energy control through various modules of the intra-network and inter-network energy control device through primal-dual analysis, Taylor expansion and differential projection operations. The present invention has the advantages of fast convergence speed, no special initialization conditions and asynchronous communication, and is more flexible and easy to implement. Each energy participant can quickly obtain its optimal operation and adaptively respond to model switching without resetting the global initial value, which can reduce communication interactions and significantly reduce the dependence on accurate continuous-time information transmission. It can also reduce communication overhead and bandwidth, etc., and clearly exclude the Zeno phenomenon, and has better robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy control, and in particular to an intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson. Background Art

[0002] Energy is the basic guarantee for human survival and development. The production and consumption of energy are mainly fossil energy such as coal and oil, which has caused serious environmental pollution. In addition, the consumption of fossil energy is increasing, and energy reserves are worrying. Developing a new type of efficient, sustainable and clean energy utilization system is one of the effective ways to solve the current world energy crisis and environmental pollution problems. Against this background, the Energy Internet came into being and set off a new wave of energy reform, which has received continuous attention and in-depth research and discussion from the global academic, industrial and even government departments. In addition, for the coordinated attacks and coordinated attacks from public networks, a robust method based on decentralized reputation gradient management has been proposed recently to detect and eliminate coordinated attacks. The Energy Internet has experienced rapid development for several years. As a new generation of energy utilization system, energy interconnection has important strategic significance in promoting national development and energy technology transformation.

[0003] Most of the existing energy control methods are based on centralized methods. This control method is highly dependent and uses a two-way communication structure to collect all information from each participant and interconnected lines. All computing tasks must be implemented in a centralized controller. As the scale of the EI system expands, the centralized controller faces huge computing burdens and costs. If the centralized controller fails, the optimal computing results cannot be obtained. For centralized computing methods, all computing tasks are implemented in a centralized controller, which has the problem of weakening privacy. Distributed is a new solution. The construction of energy control in the energy Internet requires consideration of the inherent mechanism, operating characteristics, multiple operating constraints, network constraints, mutual conversion process and coupling characteristics of multiple energy flows of each energy device and each energy network in the process of energy production, transmission and consumption. There is strong coupling in different energy networks, so the energy control problem is more complex and difficult in terms of modeling, algorithm design and theoretical analysis. As for coping with coordinated attacks and non-coordinated attacks from public networks, the existing solutions cannot be solved by distributed methods. Distributed information energy systems have two modes: island operation and grid-connected operation. Existing energy control methods are also unable to make accurate judgments and quick responses to control within and between networks, and have problems such as slow convergence and poor accuracy. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson in view of the deficiencies of the above-mentioned prior art, embed the Newton descent concept and dynamic event-triggered communication strategy into the design of distributed optimization algorithm, and consider system interference such as network attacks, and realize intra-network and inter-network energy control through primal-dual analysis, Taylor expansion and differential projection operations.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] On the one hand, the present invention provides an intra-network and inter-network energy control device based on event-triggered Newton-Raphson, including a signal acquisition unit, a data preprocessing and conversion unit, a distributed microprocessor, a display unit and a communication unit.

[0007] The signal acquisition unit includes a three-phase voltage sensor, a three-phase current sensor, a voltage and current phase angle sensor, a mass flow sensor, a temperature sensor, a pressure sensor and a gas flow sensor; the three-phase voltage Vin, three-phase current Iin and voltage and current phase angle theta (in) signals of the power grid are collected through the three-phase voltage sensor, the three-phase current sensor and the voltage and current phase angle sensor; the mass flow min signal and the water supply temperature TSin signal and the return water temperature TRin signal of the heat network are collected through the mass flow sensor and the temperature sensor; the node pressure Pin signal and the gas flow fin signal of the natural gas network are collected through the pressure sensor and the gas flow sensor. The signal acquisition unit transmits the collected signal to the data preprocessing and conversion unit as the input signal of the data preprocessing and conversion unit.

[0008] The data preprocessing and conversion unit includes a noise reduction filter processing module, a smoothing processing module and an A / D conversion module. The input signal of the data preprocessing and conversion unit is subjected to noise reduction by the noise reduction filter processing module, and the smoothing processing module outputs an output signal corresponding to the input after smoothing. The output signal after smoothing is used as the input of the A / D conversion module to complete the conversion from analog signal to digital signal, and then output to the input end of the distributed microprocessor.

[0009] The distributed microprocessor includes a module for solving information parameters within the network, a module for solving information parameters between networks, a network attack detection module and a data storage unit; the data storage unit is a data storage device and a pin data register provided by the distributed microprocessor, the data storage device is used to store data in the solving process and the control process, and the pin data register is used to store data input into the distributed microprocessor and data to be output by the distributed microprocessor in a short term; after receiving the information output by the data preprocessing and conversion unit, the module for solving information parameters within the network waits in the register provided in the pin, and when the dynamic event triggering mechanism within the network is satisfied, the distributed optimization algorithm within the network is started to be executed; after receiving the information between networks in the energy Internet sent by the energy router, the module for solving information parameters between networks waits in the register provided in the pin, and when the dynamic event triggering mechanism between networks is satisfied When the inter-network trigger mechanism and the intra-network trigger mechanism are satisfied at the same time, the intra-network optimization algorithm is executed first; after calculation by the two solving modules, the local optimal operation value is obtained, that is, the updated market energy price, the state of the energy body, the power, the heat energy and the Lagrange double multiplier of the gas, and then the local distributed energy equipment is controlled according to the calculation results; and the calculated data is stored in the data storage of the distributed microprocessor, and stored in the sending pin for sending; the distributed microprocessor is connected to the communication unit to exchange information with other energy bodies; in the process of information exchange, the network attack detection module is used to detect the coordinated attack and non-coordinated attack in the defense network attack for each computing unit, and the computing unit detected to be attacked by the network is immediately isolated. After the calculation is completed, the distributed microprocessor transmits the output signal to the display unit for display.

[0010] The display unit is used to display the current system operation mode, whether each energy individual device has converged to the optimal state, and the information interaction data within and between networks.

[0011] The communication unit includes a receiving module and a transmitting module; the receiving module includes a decryption module and a receiving serial interface; the transmitting module includes an encryption module and a transmitting serial interface; the market energy price of the energy body of the neighboring node, the state of the energy body, power, thermal energy and the Lagrange double multiplier of the gas are received through the receiving serial interface, and the data are decrypted in the decryption module and transmitted to the distributed microprocessor for network attack detection; at the moment of dynamic event triggering, the communication unit encrypts the market energy price, the state of the energy body, power, thermal energy and the Lagrange double multiplier of the gas after the local distributed optimization algorithm is calculated through the encryption module of the transmitting module, and sends it to the energy body of the neighboring node through the transmitting serial interface; the Beidou communication terminal is used for information exchange, and the SP3232 level conversion chip is used to realize the level conversion between the distributed microprocessor serial port and the Beidou serial port.

[0012] On the other hand, the present invention provides an intra-network and inter-network energy control method based on event-triggered Newton-Raphson, comprising the following steps:

[0013] S1. The signal acquisition unit collects relevant information of the energy body (EB) and the energy router (ER). The relevant information to be collected includes: the power, heat energy and gas output of the participants in each energy body, the load, and the power, heat energy, and gas exchange between energy body networks. The collected data is sent to the data storage unit of the distributed microprocessor after noise reduction, smoothing and A / D conversion by the data preprocessing and conversion unit.

[0014] S2. Based on the information collected and stored in S1, in the distributed microprocessor, under the established constraints, the unbalanced power, heat and gas of the i-th energy body at time step t are estimated, and the cost function is calculated.

[0015] S3. Establish an energy distribution model between energy bodies in distributed microprocessors. Through local energy router assets, each energy body can sell surplus energy to other energy bodies to obtain additional profits, or purchase deficit energy from other energy bodies to meet its internal energy needs.

[0016] S4. Perform multi-objective energy control in energy bodies in distributed microprocessors.

[0017] S5. Embed the Newton descent concept and dynamic event-triggered communication strategy into the design of the distributed optimization algorithm. Through primal-dual analysis, Taylor expansion and differential projection operations, the distributed dynamic event-triggered intra-network and inter-network Newton-Raphson algorithm is obtained and executed in the distributed microprocessors.

[0018] S6. During the information exchange process, the distributed microprocessor detects coordinated and non-coordinated attacks in the defense network for each computing unit, detects the computing unit that has been attacked by the network, and transmits information through Beidou communication. The computing unit that is detected to be attacked by the network is immediately isolated.

[0019] S7. For computing units that are not attacked by the network, each participant in the energy body dynamically exchanges information with its neighbors, and then the energy router dynamically exchanges information with its neighboring energy routers, and updates the power, heat and gas outputs of the participants in each energy body and the power, heat and gas exchange amounts of the energy routers.

[0020] S8, output market optimal energy price y* ij , each energy body completely converges to the optimal state x* ij, the optimal energy exchange between energy bodies to achieve optimal energy production and consumption These contents are displayed on the display unit, and each energy body controls the energy generation and transmission of its own energy body according to these data.

[0021] The beneficial effect of adopting the above technical solution is that: the intra-network and inter-network energy control device and method based on event-triggered Newton-Raphson provided by the present invention proposes a fully distributed multi-objective EMP model, which integrates the optimal energy generation / consumption planning of participants inside each energy body and the external energy distribution on the interconnected edge between any pair of energy bodies. The problem studied is further expressed as a distributed optimization problem containing many different types of coupled equality and inequality constraints. Among them, each participant or energy router only needs to know its local decision variables.

[0022] Compared with existing gradient-based and Newton-based distributed methods, the present invention has the advantages of fast convergence speed, no special initialization conditions, and asynchronous communication. Each energy participant can quickly obtain its optimal operation and adaptively respond to model switching without resetting the global initial value. At the same time, asynchronous communication can avoid the requirement of global clock synchronization, which is more flexible and easy to implement.

[0023] The main benefit of the event trigger mechanism proposed in the present invention is that it reduces communication interactions and significantly reduces the reliance on accurate continuous time information transmission. At the same time, it can also reduce communication overhead and bandwidth. In addition, the proposed trigger mechanism involves additional dynamic variables, which maintains longer inter-event times and explicitly excludes Zeno phenomena.

[0024] In the present invention, when the system or graph remains connected, the algorithm has better robustness to single or even several link failures. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of the structure of an intra-network and inter-network energy control device based on event-triggered Newton-Raphson provided in an embodiment of the present invention;

[0026] Figure 2 The circuit schematic diagram of the signal acquisition unit provided in the embodiment of the present invention; wherein, Figure (2a) is a power grid signal acquisition unit, Figure (2b) is a heat network signal acquisition unit, and Figure (2c) is a natural gas network signal acquisition unit;

[0027] Figure 3 A circuit schematic diagram of a data smoothing processing and conversion unit provided in an embodiment of the present invention;

[0028] Figure 4 A schematic diagram of a circuit of a distributed microprocessor provided by an embodiment of the present invention;

[0029] Figure 5 A circuit schematic diagram of a display unit provided by an embodiment of the present invention;

[0030] Figure 6 A circuit schematic diagram of a communication unit provided by an embodiment of the present invention;

[0031] Figure 7 A schematic diagram of a converter chip provided by an embodiment of the present invention;

[0032] Figure 8 A general flow chart of the intra-network and inter-network energy control method based on event-triggered Newton-Raphson provided in an embodiment of the present invention;

[0033] Fig. 9 A flow chart of a calculation module for solving a method for controlling energy in a distributed information energy system triggered by a dynamic event provided in an embodiment of the present invention;

[0034] Fig.10 An energy control flow chart for the distributed intra-network and inter-network information energy system to converge to an optimal state provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0036] like Figure 1 The intra-network and inter-network energy control device based on event-triggered Newton-Raphson shown includes a signal acquisition unit, a data preprocessing and conversion unit, a distributed microprocessor, a display unit and a communication unit.

[0037] like Figure 2 As shown, the signal acquisition unit collects the three-phase voltage Vin, three-phase current Iin and voltage and current phase angle theta (in) signals of the power grid through a three-phase voltage sensor, a three-phase current sensor and a voltage and current phase angle sensor, wherein the voltage and current phase angle sensor is composed of an LM393 voltage comparator and a 74HC36 logic inverter and its additional circuits. The mass flow min signal, the water supply temperature TSin signal and the return water temperature TRin signal of the heat network are collected through a mass flow sensor and a temperature sensor, wherein the mass flow sensor model is HQ-LUGB and the temperature sensor model is DS18B20. The node pressure Pin signal and the gas flow fin signal of the natural gas network are collected through a pressure sensor and a gas flow sensor, wherein the pressure sensor model is MPX4115 and the gas flow sensor model is LDR.

[0038] The signal acquisition unit transmits the collected signal to the data preprocessing and conversion unit as its input. Figure 3 As shown, it includes a noise reduction filter processing module, a smoothing processing module and an A / D conversion module. The noise reduction filter processing module is composed of a noise reduction filter circuit, the smoothing processing module includes a Butterworth fourth-order switched capacitor low-pass filter TLC04 and its corresponding circuit, and the A / D conversion module uses an ADC0832 converter. The input signals (Vin, Iin, theta (in), min, TSin, TRin, Pin, fin) of the data preprocessing and conversion unit are subjected to noise reduction by the noise reduction filter processing module, and the smoothing processing module outputs output signals (Vout, Iout, theta (out), mout, TSout, TRout, Pout, fout) corresponding to the input after smoothing. These smoothed output signals are used as the input of ADC0832, and the conversion from analog signals to digital signals is completed and then output. The output signal of the data preprocessing and conversion unit is D0.

[0039] The distributed microprocessor includes a module for solving network information parameters, a module for solving inter-network information parameters, a network attack detection module and a data storage unit; the data storage unit is a data register of the distributed microprocessor, which is used to store various data in the solving process and the control process, and then output. In this embodiment, the distributed microprocessor adopts a PIC16F877 (a) microprocessor, such as Figure 4As shown, it also has the function of data storage. The output signal D0 after preprocessing and conversion by the data preprocessing and conversion unit is transmitted to the RB port of the distributed microprocessor PIC16F877 (a), and the data is transmitted to the distributed microprocessor through the RB pin. The register in the pin stores the input data for a short period of time. When the dynamic event trigger mechanism in the network is met, the distributed microprocessor will start the module for solving the information parameter in the network to execute the distributed optimization algorithm in the network; the information between networks in the energy Internet will be sent to the distributed microprocessor by the energy router. The information between networks is the Lagrange double multiplier of power, heat energy and gas. This information is input into the distributed microprocessor through the RA port. The register in the pin stores the input data for a short period of time. When the dynamic event trigger mechanism between networks is met, the distributed optimization algorithm between networks is executed. When the trigger mechanism between networks and the trigger mechanism within the network are met at the same time, the optimization algorithm within the network is executed first. After the algorithm is executed, the calculated values ​​are the updated market energy price, the state of the energy body, the power, heat energy and the Lagrange double multiplier of the gas. These data are stored in the data memory RAM of the microprocessor PIC16F877 (a). The calculated data is transmitted to the assignment register PORTC of RD, and the TRISC register is set as output. After the calculation is completed, the distributed microprocessor PIC16F877 (a) will output signals RD0~RD7 to the display unit for display. The communication unit is connected to the distributed microprocessor through RC0~RC7, and data is exchanged through the serial port. After the distributed optimization algorithm is calculated, the updated market energy price, the state of the energy body, the power, heat energy and the Lagrange double multiplier of the gas will be transmitted to the sending module of the communication unit, and the above data will be sent to other energy bodies through the Beidou data communication terminal after encryption. The distributed microprocessor will transmit the state data of the energy body to the rectifier and inverter to control its operating state.

[0040] After each energy body receives information from other energy bodies, it will simultaneously perform a network attack detection in the microprocessor. During the calculation, it will call the data of the energy body state stored in the RAM, calculate the first consensus protocol and the second consensus protocol, and judge the network threshold. If the judgment result is below the threshold, the distributed microprocessor will isolate the computing unit that has been attacked by the network.

[0041] The display unit uses LCD1602 for display, such as Figure 5As shown. After executing the distributed energy control algorithm, the distributed microprocessor PIC16F877 (a) transmits the calculated output signals RD0-RD7 to the display unit, and the display unit LCD1602 will display the current system operation mode, whether each energy individual device converges to the optimal state, and the information exchange data between the network. Among them, the information exchange data between the network includes the power, heat and gas output of the energy body, and the power, heat and gas exchanged between the energy bodies.

[0042] The communication unit includes a receiving module and a transmitting module; the receiving module includes a decryption module and a receiving serial interface; the transmitting module includes an encryption module and a transmitting serial interface; the energy price of the market calculated at this moment, the state of the energy body, the power, heat energy and the Lagrange double multiplier data of the gas are received through the receiving serial interface, and the data are transmitted to the distributed microprocessor for network attack detection after decryption in the decryption module; the distributed microprocessor immediately isolates the computing unit detected to be attacked by the network. If there is no network attack, the distributed microprocessor will use the received market energy price, the state of the energy body, the power, heat energy and the Lagrange double multiplier data of the gas to calculate the distributed optimization algorithm, and transmit the updated market energy price, the state of the energy body, the power, heat energy and the Lagrange double multiplier data of the gas to the communication unit, encrypt and send it to the communication unit of other energy bodies. The communication unit is connected to the distributed microprocessor through an RS422 or RS232 communication interface to exchange serial port data. In this embodiment, the communication unit uses a Beidou data communication terminal for information interaction. The Beidou data communication terminal uses the Beidou / GPS integrated user terminal of Guoteng Electronics. The terminal integrates the two satellite positioning modes of Beidou and GPS, has the Beidou message communication function, and has good adaptability to the field environment. The communication unit will send local information to the neighboring node or receive neighboring node information from the neighboring node when the dynamic event is triggered, and use the SP3232 level conversion chip to realize the level conversion between the distributed microprocessor serial port and the Beidou serial port. Its hardware circuit is as follows Figure 6 As shown, each energy body is equipped with a Beidou data communication terminal. The interface circuit provides RS232 and RS422 standard communication interfaces. The antenna unit of the Beidou data communication terminal receives electromagnetic wave signals from space and provides them to the low-noise amplifier of the RF front end. At the same time, the transmission signal output by the RF power amplifier is sent out in the form of electromagnetic waves.

[0043] Distributed microprocessors control the Beidou data communication terminal and send the processed data to the Beidou satellite in the format of short messages; the Beidou satellite completes data transfer, receives data sent by the Beidou data communication terminal, and stores the transmitted data in the database. At the same time, it transmits data to the Beidou data communication terminal of the neighboring energy body, realizing the communication connection between the energy body and its neighboring nodes, generating information interaction.

[0044] Each energy body has a unique structure, some use direct current, some use alternating current. Through communication interaction, the energy distribution of each energy body will converge to the optimal solution. The converged optimal solution is used as a reference to control the inverter to achieve energy transmission. In this embodiment, the FAN7601 programmable control chip is used to drive the inverter to achieve energy transfer. The starting resistor plus the switching power supply are connected to the ① pin of FAN7601, and the driving pulse is output from the ⑥ pin to make the switch work in the switching state, so that the circuit can perform commutation in the green safety state. FAN7601 is as follows Figure 7 shown.

[0045] For each energy body (EB), various energy resources are integrated, including renewable generators (RGs), renewable heating devices (RHDs), fuel generators (FGs), fuel heating devices (FHDs), combined heat and power (CHP) generators, energy storage (ESs), heat storage (HSs), and gas suppliers (GSs).

[0046] The method for controlling energy between networks based on event-triggered Newton-Raphson is provided in this embodiment, and is implemented by using the above-mentioned device for controlling energy between networks based on event-triggered Newton-Raphson. The overall process is as follows: Figure 8 As shown, the specific method is described as follows.

[0047] S1. The signal acquisition unit collects relevant information of the energy body (EB) and the energy router (ER). The relevant information to be collected includes: the power, heat energy and gas output of the participants in each energy body, the load, and the power, heat energy, and gas exchange between energy body networks. The collected data is sent to the data storage unit of the distributed microprocessor after noise reduction, smoothing and A / D conversion by the data preprocessing and conversion unit.

[0048] S2. Based on the information collected and stored in S1, in the distributed microprocessor, under the established constraints, the unbalanced power, heat and gas of the i-th energy body at time step t are estimated, and the cost function is calculated.

[0049] S2.1. Estimate the unbalanced power, heat and gas of the i-th energy body at time step t in the distributed microprocessor.

[0050] At time step t, the unbalanced power of the i-th energy body is estimated by the following formula:

[0051]

[0052]

[0053] Δp i,t =p q -p l

[0054] Among them, p q Represents the power output, p l Represents the power load, Δp i,t represents the dispatchable power of the ith energy body at time step t, They represent the output power of the fuel generator, renewable generator, cogeneration, and electrical storage of the i-th energy body at time step t, respectively. They represent the power load that must be run and the power load that is planned to be run, respectively; β2 and β2 are the non-negative coefficients of cogeneration power and electricity storage. Assume charging as positive and discharging as negative.

[0055] At time step t, the unbalanced thermal energy of the i-th energy body is estimated by the following formula:

[0056]

[0057]

[0058] Δh i,t =h q -h l

[0059] Among them, h q Represents the output of heat energy, h l Indicates the heat load, Δh i,t represents the dispatchable thermal energy of the ith energy body at time step t, They represent the thermal energy output of the fuel heating equipment, renewable heating equipment, cogeneration, and thermal storage of the i-th energy body at time step t, respectively. They represent the heat load that must be run and the heat load that is planned to run, respectively; β2 and β2 are the non-negative coefficients of cogeneration heat energy and heat storage.

[0060] At time step t, the unbalanced gas of the i-th energy body is estimated by the following formula:

[0061]

[0062] Where, Δg i,trepresents the dispatchable gas of the i-th energy body at time step t; represents the gas output of the ith energy body at time step t; is the required operating gas load of the ith energy body at time step t; is the planned running gas load of the ith energy body at time step t.

[0063] The energy load of each energy body includes power load, thermal load and gas load. Each load can be divided into an equivalent required operating energy load and a dispatchable energy load.

[0064] S2.2. Each participant in the energy body makes decisions based on a set of local constraints, which are calculated in distributed microprocessors.

[0065] For electrical energy, the power energy constraints and ramp rate limits of the fuel generator are:

[0066]

[0067]

[0068] in, represents the ramp rate of the fuel generator for two consecutive time periods, They represent the upper and lower bounds of the fuel generator power of the i-th energy body respectively.

[0069] The trade-off constraints between optimality and omnipotence of renewable generators are as follows:

[0070]

[0071] Where b is the positive parameter of the renewable generator limitation equation, and They represent the upper and lower bounds of the renewable generator power of the i-th energy body respectively.

[0072] The constraints on electrical storage are:

[0073]

[0074]

[0075]

[0076] in, and Represent the maximum charge and discharge rates, Indicates the charge and discharge efficiency, Represents the state of charge of the electrical energy stored in the device, and R(·) is a function of the SOC range.

[0077] The limits of dispatchable power load are:

[0078]

[0079] in, is the maximum electrical power load.

[0080] The ratio of dispatchable electric power load is:

[0081]

[0082]

[0083] Among them, ψ represents the conversion ratio from SCM / h to MW. SCM / h is the unit for gas transportation, that is, cubic meters per hour. MW is megawatt, and this value is usually set to 1 / 84; γ i,g→p , γ i,g→h , γ i,h→g They represent the ratio of electricity to combined power and gas load, the ratio of heat to combined heat and gas load, and the ratio of electricity to combined power and gas load, respectively.

[0084] For thermal energy, the constraints for fuel heating equipment are as follows:

[0085]

[0086] Where a is the positive parameter of the fuel heating equipment limitation equation, Represent the upper and lower bounds of the thermal energy of the fuel heating equipment of the i-th energy body, Represents the ramp rate of a fuel heating plant over two consecutive time periods.

[0087] The trade-off constraints between optimality and feasibility of renewable heating equipment are as follows:

[0088]

[0089] Where c is the positive parameter of the constraint equation for the renewable heating plant, They represent the upper and lower bounds of the renewable heating equipment power of the i-th energy body respectively.

[0090] The constraints for thermal storage are:

[0091]

[0092]

[0093]

[0094] in, and Represent the maximum charge and discharge rates, Indicates the charge and discharge efficiency, represents the state of charge of the thermal energy stored in the device, R(·) is about Range function.

[0095] The limit of dispatchable heat load is:

[0096]

[0097] in, is the maximum heat load.

[0098] The ratio of dispatchable heat load is:

[0099]

[0100] Among them, γ i,g→h Represents the ratio of heat to combined heat and gas loads.

[0101] In the gas system, the relevant constraints are as follows.

[0102] Q(·) is about The monotonically increasing constraint function of the gas supplier is:

[0103]

[0104] in, They represent the lower and upper bounds of the gas output of the i-th energy body respectively.

[0105] The limits for gas load are:

[0106]

[0107] in, is the maximum gas load of the ith energy body at time step t.

[0108] The ratio of gas loading is:

[0109]

[0110]

[0111] in, represent the lower and upper bounds of the ratio of electricity to combined power and gas load, respectively, represent the lower and upper bounds of the ratio of heat to combined heat to gas load, respectively.

[0112] In the case of CHP in both the power system and the heat system, the local operating constraints are:

[0113]

[0114]

[0115] in, and is the coefficient of the κth linear inequality constraint determined by the feasible operating region of the CHP, is the ramp rate between two consecutive time steps of the CHP generator of the ith energy body;

[0116] S2.3: Propose the cost function required in the calculation process, as shown below.

[0117] The cost functions of fuel generators and fuel heating equipment and the cost function of combined heat and power are derived from the fuel cost:

[0118]

[0119]

[0120]

[0121] in, is a non-negative cost coefficient of the cost function for fuel generators; is a non-negative cost coefficient in the cost function for fuel heating equipment, is a non-negative cost coefficient for the cost function of cogeneration, are the time step t, the power and thermal energy of the cogeneration of the ith energy body.

[0122] Weighing optimality and power generation possibility, the cost functions of renewable generators and renewable heating equipment are:

[0123]

[0124]

[0125] in, and is a non-negative cost coefficient of the cost function for renewable generators; is the penalty coefficient of the cost function for renewable generators; and is a non-negative cost coefficient for the cost function for renewable heating equipment; is the penalty coefficient of the cost function for renewable heating equipment.

[0126] The cost functions for electrical storage and thermal storage are:

[0127]

[0128]

[0129] in, and is the cost coefficient of the cost function for electrical storage; and are the cost coefficients of the cost function for electrical and thermal storage.

[0130] The cost function for gas supply is:

[0131]

[0132] in, and is a non-negative cost coefficient for the gas supply cost function; is convex within the constraints.

[0133] The energy load utility function considering demand response is:

[0134]

[0135] in, and is the non-negative utility coefficient of the energy load effect function of demand response, and They represent controllable power, heat energy and gas load respectively.

[0136] The income / cost of selling / purchasing energy from other energy bodies is:

[0137]

[0138] in, and is the market settlement price; is a non-negative coefficient for the value of energy sold or purchased; and They represent the power, heat and gas exchanged in the energy network respectively.

[0139] S3. Establish and calculate the energy distribution model between energy bodies in distributed microprocessors. Through local energy router assets, each energy body can sell surplus energy to other energy bodies to obtain additional profits or purchase deficit energy from other energy bodies to meet its internal energy needs. Define three energy distribution diagrams corresponding to different physical links of power, heat and gas between energy bodies.

[0140] S3.1: The power profile is defined as

[0141]

[0142] Where N = {1, 2, ···, n} represents the node set of all energy routers, ε p ={1,2,···,E p} is the edge set representing the power exchange through the corresponding interconnected power lines, is the node-edge association matrix, where m∈N, e p ∈ε p ;

[0143]

[0144] S3.2: Add edge e p =The power exchange on (m, k) is defined as Among them, m and k both represent nodes; the delivery cost function is used to guide the system power distribution, which is modeled as:

[0145]

[0146] in, It is a function of the delivery cost. is the cost coefficient of the delivery cost function, are greater than 0. If Indicates that through the edge e p = (m, k) is from node m to node k; otherwise, This means that through the edge e p =(m,k) is from node k to node m. p =The maximum power transfer capability on (m,k) is defined as Therefore, the transmission line resistance constraint is

[0147] S3.3: If Node m is considered as a node with an outgoing rate Node; if Then node m is regarded as a node with an incoming rate The node of the node edge or node branch power flow balance constraint is modeled as:

[0148]

[0149] in, is the node-edge association matrix; ε1 and ε2 are the non-negative coefficients for the power flow balance constraints on node edges or node branches; χ p and p im They are and In addition, since the total power supply and demand of the system is balanced, the total value of the input power is equal to the total value of the output power, that is,

[0150] Based on steps S3.1, S3.2 and S3.3, the optimal power allocation problem between energy bodies is formulated as a dynamic network flow optimization problem with multiple source nodes and sink nodes. p The algebraic connectivity of is given by the Laplacian-O p O pT To ensure the feasibility of the solution, assume that G p is connected. This also means that O p O pT is symmetric, singular, and positive semidefinite.

[0151] S3.4: Similar power distribution definitions and models can be used for heat distribution and gas distribution. Construct the heat and gas distribution as G h =(N,ε h ,O h ) and G g =(N,ε g ,O g ), where ε h ={1,2,...E h}, ε g ={1,2,...E g}, E h The edge set representing the heat exchange of interconnected heat lines, E g The set of edges representing gas exchange in an interconnected gas network. and They are the node edge incidence matrix of the heat network and the node edge incidence matrix of the gas network respectively.

[0152] The node edge heat flow and air flow balance constraints and hot air duct blocking constraints that need to be satisfied are:

[0153]

[0154]

[0155] Among them, h im , g im are the values ​​of heat and gas exchange in the distributed grid, respectively; and The edge h and e g Maximum heat and gas transfer capacity.

[0156] S4. Energy control of multiple targets in the energy body in distributed microprocessors.

[0157] S4.1: Imagine an Energy Internet system (EI) with n energy entities. At the same time, each energy entity has m i Participants (i.e. renewable generators, fuel generators, renewable heating equipment, cogeneration, electrical storage, gas supply, and dispatchable energy loads, etc.) Find the optimal operation between energy bodies with maximum social welfare, optimal energy distribution and minimum transmission cost. The optimization objective is defined as follows:

[0158]

[0159] in, is the maximum profit value, is the minimum transportation cost, Obj is the optimization objective;

[0160] For electrical energy, As shown below:

[0161]

[0162] For thermal energy, As shown below:

[0163]

[0164] S4.2: Define x ij ∈R 3 is a three-dimensional vector consisting of the power, heat, and gas of the energy body participants, where i represents the energy body node and the i-th energy body is the i-th energy body node. Depending on the characteristics of the participants, some of these elements may be zero. Definition is a three-dimensional vector of power, heat, and gas that must be run by the i-th energy body j times. Convert the variables of each participant into x ij The form is as shown below;

[0165]

[0166] Among them, if x ij represents the controllable energy load, then B ij = -I3; otherwise, B ij =I3; where I3 is a three-dimensional unit matrix; Ω ij is a locally closed convex set constrained by local inequalities.

[0167] The cost function corresponding to the zero variable is set to any type of strongly convex function. In addition, the endoplasmic reticulum plays the role of exchanging energy and information with other endoplasmic reticulum. To estimate the value of exchange energy in the distributed energy network, that is, and Assign a dummy variable x to the energy router in the energy body ij , let j = 0. For x i0 Assign a strong convex cost function and set its bound to zero. Then, let W(x ij ) to represent the corresponding cost function or negative utility function, as shown below:

[0168]

[0169] S4.3: The objective function and its constraints are transformed into the following form:

[0170]

[0171]

[0172]

[0173]

[0174] in, and is a locally closed convex set determined by local inequality constraints.

[0175] S5. Embed the Newton descent concept and dynamic event-triggered communication strategy into the design of distributed optimization algorithm. Through primal-dual analysis, Taylor expansion and differential projection operation, a distributed dynamic event-triggered intra-network and inter-network Newton-Raphson algorithm is proposed, and the calculation of the algorithm is executed in the distributed microprocessor.

[0176] S5.1: The specific process is as follows Fig. 9 As shown, the algorithm does not require special initialization conditions. Input variable initial value W(x ij ), O p , O h , O g .

[0177] S5.2: In order to realize dynamic event triggering, dynamic event triggering mechanisms are set up within and between networks respectively.

[0178] The specific form of the dynamic event trigger mechanism within the network is as follows:

[0179]

[0180]

[0181] The specific form of the dynamic event triggering mechanism between networks is as follows:

[0182]

[0183]

[0184] Among them, θ 1,ij ,θ 2,ij ,θ 3,ij ,θ 4,ij ,θ 5,ij and v 1,i 、v 2,i 、v 3,i 、v 4,i 、v 5,i These are all positive parameters triggered by dynamic events. is the neighbor of node ij; t represents the event triggering time within the network, and T represents the event triggering time between networks; and Indicates the current trigger time and the next trigger time; in the formula and Refers to the trigger time and the time interval between events within the network; and Refers to the network trigger time and the trigger time interval; if the dynamic event trigger mechanism is not triggered, repeat step S5.2, otherwise execute step S5.3.

[0185] S5.3: Solving for x ij ,y ij 、z ij 、v ij and λ p,i , λ h,i , λ g,i , the solution formula is as follows:

[0186]

[0187]

[0188]

[0189]

[0190] First, x is calculated in the distributed microprocessors ij ,y ij 、z ij 、v ij The derivative of Participants in the energy body and energy routers dynamically exchange y with their neighbors ij 、z ij 、v ij , and update x in sequence ij ,y ij 、zij 、v ij According to the given formula, when When the calculation results of are all 0, it is considered that x ij ,y ij Converge to the optimal energy price y* in the output market ij And the optimal state x* of each energy body ij .

[0191]

[0192]

[0193]

[0194]

[0195]

[0196]

[0197] Next, the distributed microprocessors calculate Each energy router exchanges λ with its adjacent energy router through the Beidou data communication terminal p,i , h,i , g,i After exchanging data, each energy body updates in turn λ p,i , λ h,i , λ g,i .when When the calculated result is 0, λ p,i , λ h,i , λ g,i No transformation will occur, which is regarded as the optimal energy exchange between energy bodies to achieve optimal energy production and consumption.

[0198] Among them, y ij 、z ij 、v ij , p,i , h,i , g,i is the auxiliary variable of the design, represents the difference projection operator, is the Laplace operator, is the Milligan operator, where m i is the number of participants in the energy body.

[0199] S6. Detect computing units that are attacked by the network in the distributed microprocessor, and transmit information through Beidou communication. Immediately isolate the computing units that are detected to be attacked by the network.

[0200] S6.1. In the process of information exchange, considering the impact of network attacks, each computing unit needs to detect coordinated attacks and non-coordinated attacks in defense network attacks. In the defense network attack, the consensus protocol variables s and δ are introduced, and δ is defined as the first consensus protocol, as shown in the following formula:

[0201]

[0202] Among them, δ in δ(z+1) represents the column stack vector of incremental costs, which contains the incremental costs of cogeneration, pure power devices, and pure thermal devices, and z represents the zth iteration; μ is the convergence point coefficient of the first consensus agreement, which is a sufficiently small positive constant; F is the updated consensus matrix of the first consensus agreement, and ρ is the range coefficient.

[0203] s is the second consensus agreement, as shown below:

[0204]

[0205] Where s is the column stack vector of the local estimated energy mismatch; x is the column stack vector of the energy output; M is the updated consensus matrix of the second consensus agreement,

[0206] In the identification process, the first and second consensus agreements have certain ranges. If they are within the range, it is considered that there is no network attack. First, judge the second consensus agreement. If If the unit σ is found to have committed misconduct, the first consensus agreement will be made. Otherwise, the unit σ will be deemed to have committed misconduct. If , the unit σ is considered to have good behavior. Otherwise, the unit σ is considered to have bad behavior. If a unit does not exist, it is directly judged that the unit σ behaves improperly. is a reasonable bound on the energy mismatch of the local estimate of unit σ. is δ σ (z) The upper and lower bounds of the theoretical estimation range, δ σ (z) represents the result of the zth iteration of unit σ.

[0207] S6.2: Calculate the relevant judgment information. Calculate the reasonable bounds of the relevant information by using computing units other than the suspected attacked unit.

[0208] S6.2.1: For the calculation of the second consensus agreement s: In the next iteration, a reasonable bound on the energy mismatch of the local estimate of the unit σ is:

[0209]

[0210]

[0211] Among them, s l (z) represents the second consensus value of the zth iteration of the lth physical transmission line, S + (s l (z))、S-(s l (z)) represent s l (z); S(z,Q) is the detection threshold function determined by iterating z and Q, where Q is a common parameter representing the maximum value of the ramp rate limit of various energy devices;

[0212] S6.2.2: For the calculation of the first consensus agreement δ: In the next iteration, the rational bound on the incremental cost of electricity for unit σ is:

[0213]

[0214]

[0215] The selection of correlation coefficient in the formula is as follows:

[0216]

[0217]

[0218]

[0219]

[0220] Where l represents the physical transmission line, They represent the transmission lines when the first consensus agreement takes the upper and lower bounds, respectively. represents the computational unit to which the data output of unit σ is connected, and ω is the first consensus agreement restriction coefficient.

[0221] S6.3: The actual value s received σ (z) is compared with a reasonable bound of the local estimated energy mismatch of unit σ. If the behavior is good, go to step S6.4. Otherwise, unit σ is judged to be misbehaving and go to step S6.5.

[0222] S6.4: Determine whether the performance is normal.σ (z) is compared with the theoretical estimation range. If it is within the theoretical value range, the unit σ is judged to have good behavior; otherwise, the unit σ is judged to have bad behavior.

[0223] S6.5: Update the detection result variable d of unit σ σ (z):

[0224]

[0225] The updated detection result variables are sent to the adjacent computing units. σ (z), so that the neighboring units of the abnormal unit do not participate in the communication detection, but the misbehaving unit can still be identified and the isolation process can be activated.

[0226] S6.6: Isolation process under non-coordinated attack: The network attack only targets a certain computing unit.

[0227] S6.6.1: The counting rules are defined as:

[0228]

[0229] S6.6.2: Design a reputation value as a threshold for determining whether a unit is isolated:

[0230]

[0231] in, is a time-varying parameter called reputation coefficient, which is used to dynamically adjust the adaptation rate. When all units behave well, rep iσ (z) will always be e; when a misbehaving unit appears, rep iσ (z) < e. When the reputation values ​​of all communication lines connected to the abnormal unit fall below a threshold, the abnormal unit is disconnected from the communication network.

[0232] S6.7: Isolation process under coordinated attack: The public network launches a collusion attack on two or more computing units at the same time. S6.7.1: After the abnormal unit with bad behavior has been isolated through the relevant process of step S6.6, the connection information is recorded in the observation subnet and the link matrix is ​​updated: Where E' is the edge set of the observed network topology:

[0233] S6.7.2: Link matrix F(k) = [f ij ] n×nIf a non-zero element appears in the σth row of the link matrix, it means that the abnormally behaving unit σ is not completely isolated, that is, there is a collusion attack in the communication network. Unit c is easily judged as a collusion unit of σ and is considered to be a misbehaving unit. Then, the detection process in steps S6.2-S6.5 is repeated for unit c and the detection results are uploaded for the relevant isolation process in step S6.6.

[0234] S6.7.3: Repeat steps S6.7.1-S6.7.2 until all abnormal units are isolated.

[0235] S7. For computing units that are not attacked by the network, each participant in the energy body dynamically exchanges information with its neighbors through Beidou communication, and the information after the interaction is brought into the control algorithm in the distributed microprocessor for continuous calculation. Then the energy router dynamically exchanges energy with its neighboring energy routers, and updates the power, heat and gas output of the participants in each energy body and the power, heat and gas exchange volume of the energy router.

[0236] S7.1: For units that are not attacked by the network, each participant and energy router in the energy body exchanges information with its neighbors and updates data. The specific process is as follows Fig.10 shown.

[0237] S7.2: According to y ij 、z ij 、v ij , p,i , h,i , g,i Convergence: Determine whether each energy body has completely converged to the optimal state, whether the energy bodies have achieved optimal energy generation and consumption and optimal energy exchange. If the convergence conditions are met, execute step S8; otherwise, repeat steps S5.2, S5.3, S5.4 and S6.

[0238] S8, output market optimal energy price y* ij , each energy body completely converges to the optimal state x* ij and the optimal energy exchange between energy bodies to achieve optimal energy production and consumption The output data are displayed on the display unit, and the energy body controls the energy to continuously converge to the calculated optimal result. Each energy body controls the energy generation and transmission of the energy body according to the output data.

[0239] Here, the Newton descent direction not only embeds the calculation of the optimal operation of each participant, but also embeds the optimal energy distribution at the edges between energy bodies, which speeds up the convergence speed within and between networks.

[0240] Based on the global supply and demand constraints, the present invention designs the corresponding decision variables and objective functions of each participant in the energy body, and at the same time builds an energy distribution model for energy routers to exchange information. A new distributed dynamic event-triggered Newton-Raphson algorithm is proposed, which is designed using primal-dual analysis, Taylor expansion and differential projection operations. The present invention embeds a dynamic event-triggered communication strategy. By designing a dynamic trigger mechanism, if the triggering conditions are met, each energy participant can exchange information at discrete moments, and implement a continuous-time algorithm without the need for global time synchronization. The present invention not only embeds the Newton descent method to calculate the optimal operation of each participant, but also embeds the optimal energy distribution at the edges between energy bodies.

[0241] Compared with existing gradient-based and Newton-based distributed methods, the present invention has the advantages of fast convergence speed, no special initialization conditions and asynchronous communication. Each energy participant can quickly obtain its optimal operation and adaptively respond to model switching without resetting the global initial value. At the same time, asynchronous communication can avoid the requirement of global clock synchronization, which is more flexible and easy to implement. The main benefit of the event trigger mechanism proposed in the present invention is that it reduces communication interactions and significantly reduces the dependence on accurate continuous-time information transmission. At the same time, it can also reduce communication overhead and bandwidth. In addition, the proposed trigger mechanism involves additional dynamic variables, which maintains a longer inter-event time and explicitly excludes the Zeno phenomenon. In the present invention, the algorithm has better robustness to single or even several link failures when the system or graph remains connected.

[0242] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.

Claims

1. An intra-network and inter-network energy control device based on event-triggered Newton-Raphson. Features: The device includes a signal acquisition unit, a data preprocessing and conversion unit, a distributed microprocessor, a display unit and a communication unit; The signal acquisition unit includes a three-phase voltage sensor, a three-phase current sensor, a voltage and current phase angle sensor, a mass flow sensor, a temperature sensor, a pressure sensor and a gas flow sensor; the three-phase voltage Vin, the three-phase current Iin and the voltage and current phase angle theta (in) signals of the power grid are collected through the three-phase voltage sensor, the three-phase current sensor and the voltage and current phase angle sensor; the mass flow min signal and the water supply temperature TSin signal and the return water temperature TRin signal of the heat network are collected through the mass flow sensor and the temperature sensor; the node pressure Pin signal and the gas flow fin signal of the natural gas network are collected through the pressure sensor and the gas flow sensor; the signal acquisition unit transmits the collected signal to the data preprocessing and conversion unit as the input signal of the data preprocessing and conversion unit; The data preprocessing and conversion unit includes a noise reduction filter processing module, a smoothing processing module and an A / D conversion module; The input signal of the data preprocessing and conversion unit is subjected to noise reduction by the noise reduction filter processing module, and the smoothing processing module outputs an output signal corresponding to the input after smoothing. The output signal after smoothing is used as the input of the A / D conversion module to complete the conversion from analog signal to digital signal, and then output to the input end of the distributed microprocessor; The distributed microprocessor includes a module for solving information parameters within the network, a module for solving information parameters between networks, a network attack detection module and a data storage unit; the data storage unit is a data storage device and a pin data register provided by the distributed microprocessor, the data storage device is used to store data in the solving process and the control process, and the pin data register is used to store data input into the distributed microprocessor and data to be output by the distributed microprocessor in a short term; after receiving the information output by the data preprocessing and conversion unit, the module for solving information parameters within the network waits in the register prepared in the pin, and when the dynamic event triggering mechanism within the network is satisfied, the distributed optimization algorithm within the network is started to be executed; after receiving the information between networks in the energy Internet sent by the energy router, the module for solving information parameters between networks waits in the register prepared in the pin, and when the dynamic event triggering mechanism between networks is satisfied, the distributed optimization algorithm between networks is started to be executed. Optimization algorithm; when the inter-network trigger mechanism and the intra-network trigger mechanism are satisfied at the same time, the optimization algorithm in the network is executed first; after calculation by the two solving modules, the local optimal operation value is obtained, that is, the updated market energy price, the state of the energy body, the power, the heat energy and the Lagrange double multiplier of the gas, and then the local distributed energy equipment is controlled according to the calculation results; the calculated data is stored in the data storage of the distributed microprocessor, and stored in the sending pin for sending; the distributed microprocessor is connected to the communication unit to exchange information with other energy bodies; in the process of information exchange, the network attack detection module is used to detect the coordinated attack and non-cooperative attack in the defense network attack for each computing unit, and the computing unit detected to be attacked by the network is immediately isolated; after the calculation is completed, the distributed microprocessor transmits the output signal to the display unit for display; The display unit is used to display the current system operation mode, whether each energy individual device has converged to the optimal state, and the information interaction data within and between the networks; The communication unit includes a receiving module and a transmitting module; the receiving module includes a decryption module and a receiving serial interface; the transmitting module includes an encryption module and a transmitting serial interface; the energy price of the energy body of the neighboring node market, the state of the energy body, power, heat energy and Lagrange double multiplier data of the gas are received through the receiving serial interface, and the data are decrypted in the decryption module and transmitted to the distributed microprocessor for network attack detection; At the moment of dynamic event triggering, the communication unit encrypts the market energy price, the state of the energy body, power, thermal energy and Lagrange double multipliers of the gas updated after calculation by the local distributed optimization algorithm through the encryption module of the transmitting module, and sends it to the energy body of the neighboring node through the transmitting serial interface.

2. The intra-network and inter-network energy control device based on event-triggered Newton-Raphson according to claim 1, Features: The communication unit adopts Beidou communication terminal to exchange information, and uses SP3232 level conversion chip to realize level conversion between serial port of distributed microprocessor and serial port of Beidou communication terminal; distributed microprocessor controls Beidou data communication terminal, and sends various processed data information to Beidou satellite in the format of short message; Beidou satellite completes data transfer, receives data sent by Beidou data communication terminal, and stores the transmitted data in the database, and transmits data to Beidou data communication terminal of neighboring energy body at the same time, realizes communication connection between energy body and its neighboring nodes, and generates information interaction.

3. The intra-network and inter-network energy control device based on event-triggered Newton-Raphson according to claim 1, Features: The noise reduction filter processing module is composed of a noise reduction filter circuit, the smoothing processing module includes a Butterworth fourth-order switched capacitor low-pass filter TLC04 and its additional circuit, and the A / D conversion module uses an ADC0832 converter; The output signal of the data preprocessing and conversion unit is D0; The distributed microprocessor adopts the PIC16F877(a) microprocessor, and the output signal D0 of the data preprocessing and conversion unit is transmitted to the RB port of the distributed microprocessor PIC16F877(a); the distributed microprocessor PIC16F877(a) is connected to the communication unit through RC0~RC7; after the distributed microprocessor PIC16F877(a) completes the calculation, it will output signals RD0~RD7 to the display unit for display; The display unit uses LCD1602 for display; among the contents displayed by the display unit, the information exchange data within and between networks includes the power, heat energy and gas output of the energy body, and the power, heat and gas exchanged between the energy bodies.

4. A method for controlling energy within and between networks based on event-triggered Newton-Raphson. Features: The method is implemented by using the event-triggered Newton-Raphson intra-network and inter-network energy control device described in claim 1, and comprises the following steps: S1. The signal acquisition unit collects relevant information of the energy body and the energy router; the relevant information to be collected includes: the power, heat energy and gas output, load of the participants in each energy body, and the power, heat energy and gas exchange between energy body networks; the collected data is sent to the data storage unit of the distributed microprocessor after noise reduction, smoothing and A / D conversion by the data preprocessing and conversion unit; S2, based on the information collected and stored in S1, in the distributed microprocessor, under the established constraints, estimate the unbalanced power, heat and gas of the i-th energy body at time step t, and calculate the cost function; S3. Establish an energy distribution model between energy bodies in distributed microprocessors. Through local energy router assets, each energy body sells surplus energy to other energy bodies to obtain additional profits, or purchases deficit energy from other energy bodies to meet its internal energy needs. S4, multi-objective energy control in energy bodies in distributed microprocessors; S5, embedding the Newton descent concept and dynamic event triggered communication strategy into the design of distributed optimization algorithm; obtaining the distributed dynamic event triggered intra-network and inter-network Newton-Raphson algorithm through primal-dual analysis, Taylor expansion and differential projection operation, and executing the algorithm in distributed microprocessors; S6. During the information exchange process, the distributed microprocessor detects coordinated and non-coordinated attacks in the defense network attack on each computing unit, detects the computing unit under network attack, and transmits information through Beidou communication. The computing unit detected to be under network attack is immediately isolated; S7. For computing units that are not attacked by the network, each participant in the energy body dynamically exchanges information with its neighbors through Beidou communication. The information after the interaction is brought into the control algorithm in the distributed microprocessor for continuous calculation; then the energy router dynamically exchanges information with its neighboring energy routers, and updates the power, heat and gas output of the participants in each energy body and the power, heat and gas exchange volume of the energy router; S8, output market optimal energy price y* ij , each energy body completely converges to the optimal state x* ij and the optimal energy exchange between energy bodies to achieve optimal energy production and consumption The output data is displayed on the display unit, and each energy body controls the energy generation and transmission of the energy body according to the output data.

5. The method for controlling energy in and between networks based on event-triggered Newton-Raphson according to claim 4, Features: The specific method of step S2 is: S2.1, estimating the unbalanced power, heat energy and gas of the i-th energy body at time step t in the distributed microprocessor; At time step t, the unbalanced power of the i-th energy body is estimated by the following formula: Δp i,t =p q -p l Among them, p q Represents the power output, p l Represents the power load, Δp i,t represents the dispatchable power of the ith energy body at time step t, They represent the output power of the fuel generator, renewable generator, cogeneration, and electrical storage of the i-th energy body at time step t, respectively. They represent the power load that must be run and the power load that is planned to be run; β 2 , β 2 is the non-negative coefficient of CHP power and electricity storage; Assume charging as positive and discharging as negative; At time step t, the unbalanced thermal energy of the i-th energy body is estimated by the following formula: Δh i,t =h q -h l Among them, h q Represents the output of heat energy, h l Indicates the heat load, Δh i,t represents the dispatchable thermal energy of the ith energy body at time step t, They represent the thermal energy output of the fuel heating equipment, renewable heating equipment, cogeneration, and thermal storage of the i-th energy body at time step t, respectively. They represent the heat load that must be run and the heat load that is planned to run respectively; β 2 , β 2 is the non-negative coefficient of combined heat and power thermal energy and thermal storage; At time step t, the unbalanced gas of the i-th energy body is estimated by the following formula: Where, Δg i,t represents the dispatchable gas of the i-th energy body at time step t; represents the gas output of the ith energy body at time step t; is the required operating gas load of the ith energy body at time step t; is the planned operating gas load of the ith energy body at time step t; S2.2, each participant in the energy body makes decisions based on a set of local constraints, which are calculated in distributed microprocessors; For electrical energy, the power energy constraints and ramp rate limits of the fuel generator are: in, represents the ramp rate of the fuel generator for two consecutive time periods, They represent the upper and lower bounds of the fuel generator power of the i-th energy body respectively; The trade-off constraints between optimality and omnipotence of renewable generators are as follows: Where b is the positive parameter of the renewable generator limitation equation, and They represent the upper and lower bounds of the renewable generator power of the i-th energy body respectively; The constraints on electrical storage are: in, and Represent the maximum charge and discharge rates, Indicates the charge and discharge efficiency, Represents the state of charge of the electric energy stored in the device, R(·) is a function of the SOC range; The limits of dispatchable power load are: in, is the maximum electrical power load; The ratio of dispatchable electric power load is: Where ψ represents the conversion ratio from SCM / h to MW. SCM / h is the unit for gas transportation, i.e., cubic meters per hour, and MW is megawatts. i,g→p , γ i,g→h , γ i,h→g represent the ratio of electricity to combined power and gas load, the ratio of heat to combined heat and gas load, and the ratio of electricity to combined power and gas load, respectively; For thermal energy, the constraints for fuel heating equipment are as follows: Where a is the positive parameter of the fuel heating equipment limitation equation, Represent the upper and lower bounds of the thermal energy of the fuel heating equipment of the i-th energy body, represents the ramp rate of two consecutive time periods of the fuel heating equipment; The trade-off constraints between optimality and feasibility of renewable heating equipment are as follows: Where c is the positive parameter of the constraint equation for the renewable heating plant, represent the upper and lower bounds of the power of the renewable heating equipment of the i-th energy body; The constraints for thermal storage are: in, and Represent the maximum charge and discharge rates, Indicates the charge and discharge efficiency, represents the state of charge of the thermal energy stored in the device, R(·) is about Range functions; The limit of dispatchable heat load is: in, is the maximum heat load; The ratio of dispatchable heat load is: Among them, γ i,g→h represents the ratio of heat to combined heat and gas loads; In the gas system, the relevant constraints are as follows: The constraints on the gas supplier are: Among them, Q(·) is about A monotonically increasing constraint function, They represent the lower and upper bounds of the gas output of the i-th energy body respectively; The limits for gas load are: in, is the maximum gas load of the ith energy body at time step t; The ratio of gas loading is: in, represent the lower and upper bounds of the ratio of electricity to combined power and gas load, respectively, represent the lower and upper bounds of the ratio of heat to combined heat to gas load, respectively; In the case of CHP in both the power system and the heat system, the local operating constraints are: in, and is the coefficient of the κth linear inequality constraint determined by the feasible operating region of the CHP, is the ramp rate between two consecutive time steps of the CHP generator of the ith energy body; S2.3: Propose the cost function required in the calculation process; The cost functions of fuel generators and fuel heating equipment and the cost function of combined heat and power are derived from the fuel cost: in, is a non-negative cost coefficient for the cost function of the fuel generator; is a non-negative cost coefficient for the cost function of fuel heating equipment; is a non-negative cost coefficient for the cost function of CHP; They are the power and heat energy of the combined heat and power generation of the i-th energy body at time step t; The cost functions for renewable generators and renewable heating equipment are: in, and is a non-negative cost coefficient of the cost function for renewable generators; is the penalty coefficient of the cost function for renewable generators; and is a non-negative cost coefficient for the cost function for renewable heating equipment; is the penalty coefficient of the cost function for renewable heating equipment; The cost functions for electrical storage and thermal storage are: in, and is the cost coefficient of the cost function for electrical storage; and are the cost coefficients of the cost functions for electrical and thermal storage; The cost function for gas supply is: in, and is a non-negative cost coefficient for the gas supply cost function; It is convex within the constraints; The energy load utility function considering demand response is: in, and is the non-negative utility coefficient of the energy load effect function of demand response, and They represent the controllable power, heat energy and gas load respectively; The income / cost of selling / purchasing energy from other energy bodies is: in, and is the market settlement price; is a non-negative coefficient for the value of energy sold or purchased; and They represent the power, heat and gas exchanged in the energy network respectively.

6. The method for controlling energy in and between networks based on event-triggered Newton-Raphson according to claim 5, Features: The specific method of step S3 is: S3.1: The power profile is defined as: Where N = {1, 2, ···, n} represents the node set of all energy routers, ε p ={1,2,···,E p } is the edge set representing the power exchange through the corresponding interconnected power lines, is the node-edge association matrix, where m∈N, e p ∈ε p ; S3.2: Add edge e p =The power exchange on (m, k) is defined as Among them, m and k both represent nodes; the delivery cost function is used to guide the system power distribution, which is modeled as: in, It is a function of the delivery cost. is the cost coefficient of the delivery cost function, are greater than 0; if Indicates that through the edge e p = (m, k) is from node m to node k; otherwise, Then it means that through the edge e p =(m,k) is from node k to node m; edge e p =The maximum power transfer capability on (m, k) is defined as Therefore, the transmission line resistance constraint is S3.3: If Node m is considered as a node with an outgoing rate Node; if Then node m is regarded as a node with an incoming rate The node of the node edge or node branch power flow balance constraint is modeled as: in, is the node-edge association matrix; ε 1 , ε 2 is a non-negative coefficient for the power flow balance constraint on the node edge or node branch; p and p im They are and The total value of the input power is equal to the total value of the output power, that is, S3.4: Construct heat energy and gas distribution diagrams respectively G h =(N,ε h ,O h ) and G g =(N,ε g ,O g ), where ε h ={1,2,...E h }, ε g ={1,2,...E g }, E h The edge set representing the heat exchange of interconnected heat lines, E g The set of edges representing gas exchange in an interconnected gas network; and They are the node edge incidence matrix of the heat network and the node edge incidence matrix of the gas network respectively; The node edge heat flow and air flow balance constraints and hot air duct blocking constraints that need to be satisfied are: Among them, h im , g im are the values ​​of heat and gas exchange in the distributed grid, respectively; and The edge h and e g Maximum heat and gas transfer capacity.

7. The method for controlling energy in and out of a network based on event-triggered Newton-Raphson according to claim 6, Features: The specific method of step S4 is: S4.1: An energy internet system with n energy bodies, each of which has m i Participants, find the optimal operation between energy bodies with maximum social welfare, optimal energy allocation and minimum transmission cost. The optimization objective is defined as follows: in, is the maximum profit value, is the minimum transportation cost, Obj is the optimization objective; For electrical energy, As shown below: For thermal energy, As shown below: S4.2: Define x ij ∈R 3 is a three-dimensional vector consisting of the power, heat, and gas of the energy body participants; definition is a three-dimensional vector of power, heat, and gas that must be run by the i-th energy body j times; convert the variables of each participant into x ij The form is as shown below; Among them, if x ij represents the controllable energy load, then B ij =-I 3 Otherwise, B ij =I 3 ; Among them, I 3 is a three-dimensional identity matrix; Ω ij It is a locally closed convex set constrained by local inequalities; The cost function corresponding to the zero variable is set to any type of strongly convex function; to estimate the value of exchange energy in the distributed energy network, that is, and Assign a dummy variable x to the energy router in the energy body ij , let j = 0; for x i0 Assign a strong convex cost function and set its bound to zero; use W(x ij ) to represent the corresponding cost function or negative utility function, as shown below: S4.3: The objective function and its constraints are transformed into the following form: in, and is a locally closed convex set determined by local inequality constraints.

8. The method for controlling energy in and between networks based on event-triggered Newton-Raphson according to claim 7, Features: The specific method of step S5 is: S5.1: Input variable initial value W(x ij ), O p , O h , O g ; S5.2: Set up dynamic event triggering mechanisms within and between networks respectively; The specific form of the dynamic event trigger mechanism within the network is as follows: The specific form of the dynamic event triggering mechanism between networks is as follows: Among them, θ 1,ij ,θ 2,ij ,θ 3,ij ,θ 4,ij ,θ 5,ij and v 1,i 、v 2,i 、v 3,i 、v 4,i 、v 5,i These are all positive parameters triggered by dynamic events. is the neighbor of node ij; t represents the event triggering time within the network, and T represents the event triggering time between networks; and Indicates the current trigger time and the next trigger time; in the formula and Refers to the trigger time and the time interval between events within the network; and Refers to the network trigger time and the trigger time interval; if the dynamic event trigger mechanism is not triggered, repeat step S5.2, otherwise execute step S5.3; S5.3: Solving for x ij ,y ij 、z ij 、v ij and λ p,i , λ h,i , λ g,i , the solution formula is as follows: First, x is calculated in the distributed microprocessors ij ,y ij 、z ij 、v ij The derivative of Participants in the energy body and energy routers dynamically exchange y with their neighbors ij 、z ij 、v ij , and update x in sequence ij ,y ij 、z ij 、v ij ; According to the above solution formula, when When the calculation results of are all 0, it is considered that x ij ,y ij Converge to the optimal energy price y* in the output market ij And the optimal state x* of each energy body ij ; Next, the distributed microprocessor calculates the following formula Each energy router exchanges λ with its adjacent energy router through the Beidou data communication terminal p,i , h,i , g,i After exchanging data, each energy body updates in turn λ p,i , λ h,i , λ g,i ;when When the calculated result is 0, λ p,i , λ h,i , λ g,i No transformation will occur, which is regarded as the optimal energy exchange between energy bodies to achieve optimal energy production and consumption. Among them, y ij 、z ij 、v ij , p,i , h,i , g,i is the auxiliary variable of the design, represents the difference projection operator, is the Laplace operator, is the Milligan operator, where m i is the number of participants in the energy body.

9. The method for controlling energy in and between networks based on event-triggered Newton-Raphson according to claim 8, Features: The specific method of step S6 is: S6.

1. Introduce consensus protocol variables s and δ in the defense against network attacks, and define δ as the first consensus protocol, as shown in the following formula: Where δ in δ(z+1) represents the column stack vector of incremental cost, which contains the incremental cost of cogeneration, pure power plant, and pure thermal plant, and z represents the zth iteration; μ is the convergence point coefficient of the first consensus agreement, which is a sufficiently small positive constant; F is the updated consensus matrix of the first consensus agreement, and ρ is the range coefficient; s is the second consensus agreement, as shown below: Where s is the column stack vector of the local estimated energy mismatch; x is the column stack vector of the energy output; M is the updated consensus matrix of the second consensus agreement, During the identification process, if the first consensus agreement and the second consensus agreement are both within the set range, it is considered that no network attack has been received; first judge the second consensus agreement, if Then the first consensus agreement is judged for unit σ; otherwise, unit σ is directly considered to have misbehaved; if Then the unit σ is considered to have good behavior; otherwise, the unit σ is judged to be a bad behavior unit; If a unit does not exist, then the unit σ is directly judged to have behaved improperly; is a reasonable bound on the energy mismatch of the local estimate of unit σ; is δ σ (z) The upper and lower bounds of the theoretical estimation range, δ σ (z) represents the result of the zth iteration of unit σ; S6.2: Calculate the relevant judgment information, and calculate the reasonable bounds of the relevant information by using the calculation units other than the suspected attacked unit, as follows: S6.2.1: For the calculation of the second consensus agreement s: In the next iteration, a reasonable bound on the mismatch of the local estimated energy of the unit σ is: Among them, s l (z) represents the second consensus value of the zth iteration of the lth physical transmission line, S + (s l (z))、S-(s l (z)) represent s l (z); S(z,Q) is the detection threshold function determined by iterating z and Q, where Q is a common parameter representing the maximum value of the ramp rate limit of various energy devices; S6.2.2: For the calculation of the first consensus agreement δ: In the next iteration, the rational bound on the incremental cost of electricity for unit σ is: The selection of correlation coefficient in the formula is as follows: Where l represents the physical transmission line, They represent the transmission lines when the first consensus agreement takes the upper and lower bounds, respectively; represents the computational unit to which the data output of unit σ is connected, and ω is the first consensus agreement restriction coefficient; S6.3: The actual value s received σ (z) compare with the reasonable bound of the local estimated energy mismatch of unit σ, if the behavior is good, go to step S6.4, otherwise, unit σ is judged to be misbehaving and go to step S6.5; S6.4: Determine whether the performance is normal; σ (z) Compare with the theoretical estimation range. If it is within the theoretical value range, the unit σ is judged to have good behavior; otherwise, the unit σ is judged to have bad behavior; S6.5: Update the detection result variable d of unit σ σ (z): Send the updated detection result variables to adjacent computing units; S6.6: Isolation process under non-coordinated attack: The network attack targets only one computing unit; The counting rule is defined as: The reputation value is designed as a threshold for determining whether a unit is isolated: in, is a time-varying parameter called reputation coefficient, which is used to dynamically adjust the adaptation rate; when all units behave well, rep iσ (z) will always be e; when a misbehaving unit appears, rep iσ (z)<e; when the reputation value of all communication lines connected to the abnormal unit drops below the threshold, the abnormal unit is disconnected from the communication network; S6.7: Isolation process under coordinated attack: The public network launches a collusion attack on two or more computing units at the same time; S6.7.1: After the abnormal unit with bad behavior has been isolated through the relevant process of step S6.6, the connection information is recorded in the observation subnet and the link matrix is ​​updated: Where E' is the edge set of the observed network topology, S6.7.2: Link matrix F(k) = [f ij ] n×n , if there is a non-zero element in the σth row of the link matrix, it means that the abnormally behaving unit σ is not completely isolated, that is, there is a collusion attack in the communication network; unit c is easily judged as a collusion unit of σ and is considered to be a misbehaving unit, then the unit c repeats the detection process in steps S6.2-S6.5 and uploads the detection results to perform the relevant isolation process in step S6.6; S6.7.3: Repeat steps S6.7.1-S6.7.2 until all abnormal units are isolated.

10. The method for controlling energy in and between networks based on event-triggered Newton-Raphson according to claim 9, Features: The specific method of step S7 is: S7.1: For units that are not attacked by the network, each participant and energy router in the energy body exchanges information with its neighbors and updates data; S7.2: According to y ij 、z ij 、v ij , p,i , h,i , g,i Whether it converges, judge whether each energy body has completely converged to the optimal state, whether the energy bodies have achieved optimal energy generation and consumption and optimal energy exchange; if the convergence conditions are met, execute step S8; otherwise, repeat steps S5.2, S5.3, S5.4 and S6.