Collaborative optimization method, system, equipment and storage medium for electric and heating networks and building user

12381391 ยท 2025-08-05

Assignee

Inventors

Cpc classification

International classification

Abstract

A collaborative optimization method for an Electric and Heating Networks (EHN) and a building user includes: establishing a coordinated optimization scheduling framework of the EHN and a building in a park; based on the coordinated optimization scheduling framework, constructing an optimal thermal power flow scheduling model of the EHN, and constructing a building model to simulate thermal characteristics and energy consumption of the building; based on the optimal thermal power flow scheduling model and the building model, taking the lowest operation cost of EHN and the lowest heat consumption of building user as a goal, constructing a collaborative optimization model of the EHN and the building user; outputting a collaborative optimization scheme of the optimal thermal power flow scheduling of the EHN and the heat consumption of the building user through the collaborative optimization model of the EHN and the building user.

Claims

1. A collaborative optimization method for an Electric and Heating Networks (EHN) and a building user, comprising: establishing a coordinated optimization scheduling framework of the EHN and a building in a park; based on the coordinated optimization scheduling framework, constructing an optimal thermal power flow scheduling model of the EHN, and constructing a building model to simulate thermal characteristics and energy consumption of the building; based on the optimal thermal power flow scheduling model and the building model, taking a lowest operation cost of the EHN and a lowest heat consumption of the building user as a goal, constructing a collaborative optimization model of the EHN and the building user; and outputting a collaborative optimization scheme of an optimal thermal power flow scheduling of the EHN and a heat consumption of the building user through the collaborative optimization model of the EHN and the building user to a controller for controlling a heating radiator, a combined heat and power (CHP) unit and a heat pump based on the collaborative optimization scheme; wherein the optimal thermal power flow scheduling model comprises a hydraulic model, a thermal model, a heat exchanger model, a radiator model and a capacity and energy conversion equipment model; constraints of the hydraulic model comprise a node net flow constraint and a head loss constraint, wherein: a node net flow is according to an energy conservation law, each heating network node satisfies following rules:
m.sub.q=m.sub.inm.sub.out(1); wherein m.sub.in and m.sub.out represent pipeline flow entering and flowing out of a Heating Network respectively, and m.sub.q is a node net flow in the Heating Network; a node net flow equation of the hydraulic model is obtained from Equation (1):
A{dot over (m)}={dot over (m)}.sub.q(2); wherein m is a pipeline flow in the Heating Network, {dot over (m)} represents a matrix of m, {dot over (m)}.sub.q represents a matrix of m.sub.q, and A is a correlation matrix of a node and a pipeline, and an element is defined as: { + 1 , A flow direction is from the pipeline to the node . - 1 , The flow direction is from the node to the pipeline . 0 , There is no connection between the node and the pipeline . ( 3 ) a pressure change per unit distance caused by pipeline friction is called head loss, a circulating pressure equation represents a sum of the head loss of a network loop, and a sum of the circulating pressure in an entire network is zero:
h.sub.f=0(4); wherein h.sub.f is a pipeline pressure loss scalar in the network loop;
h.sub.f=Km|m|(5); wherein K is a resistance coefficient of a network pipeline, and K is mainly determined by a pipeline diameter; K = 8 L f D 5 2 2 g ; ( 6 ) wherein L is a pipeline length, D is the pipeline diameter, is a water density, g is an acceleration of gravity, f is a friction coefficient and is determined according to Reynolds number; from Equation (4) and Equation (5), a head loss equation in the hydraulic model is obtained:
Bh.sub.f=BK{dot over (m)}|{dot over (m)}|=0(7); wherein h.sub.f represents a head pressure loss vector; B is a correlation matrix of the network loop and a branch, and an element of the B is defined as: { + 1 , A branch flow direcction is the same as the loop definition direction . - 1 , The branch flow direction is opposite to the loop definition direction . 0 , The branch does not belong to the loop . ; ( 8 ) constraints of the thermal model comprise a node flow conservation constraint, a pipeline heat dissipation constraint, and an energy conservation constraint of heat source and load, wherein: a node flow conservation: if a flow of multiple pipelines flows into a same node, then a node temperature is a mixing temperature T.sub.j.sup.out of an injected flow of each pipeline; according to the energy conservation law, an outlet temperature of water supply/backwater at any node multiplied by a total outlet flow is equal to a sum of a product of all inlet temperatures and corresponding flows:
T.sub.i:i.fwdarw.jm.sub.ijT.sub.ij.sup.in=(.sub.j:j.fwdarw.km.sub.jk)T.sub.j.sup.out(9); as shown in Equation (9), for any node j, i represents different inlets to the node j, and k represents different outlets to the node j, in the Equation (9), T.sub.j.sup.out is a water supply (backwater) temperature at a node outlet, m.sub.ij is the pipeline flow of the node i into the node j, m.sub.jk represents the pipeline flow of the node j into the node k, and T.sub.ij.sup.in is the water supply (backwater) temperature at the node inlet, a number of node inlets is determined by a topology of a Heat Pipeline Network; an inlet temperature of the node is transported from a previous node i, and the water has experienced loss between a pipeline section i.fwdarw.j; a pipeline heat dissipation: the Heat Pipeline Network dissipates heat to a surrounding environment during transmission, a temperature loss is related to an ambient temperature, a heat transfer coefficient and other factors, for the pipeline between any nodes i.fwdarw.j: T i j out = ( T i j i n - T a ) e - i j L i j c p m i j + T a ; ( 10 ) wherein T.sub.ij.sup.in and T.sub.ij.sup.out represent temperatures of first and last nodes of the pipeline, T.sup.a is an external ambient temperature, .sub.ij is the heat transfer coefficient of the pipeline, c.sub.p is a specific heat capacity of water, L.sub.ij is the pipeline length, m.sub.ij is the pipeline flow of the node i into the node j; an energy conservation of a heat source and a load: for a heat source node and a heat load node, a heat capacity/heat load needs to establish an energy conservation constraint with a temperature difference between the water supply and the backwater, as shown in Equation (11) and Equation (12):
H.sub.i.sup.Source=c.sub.pm.sub.i(T.sub.i.sup.sT.sub.i.sup.r)(11);
H.sub.j.sup.Load=c.sub.pm.sub.j(T.sub.j.sup.sT.sub.j.sup.r)(12); in the equation, H.sub.i.sup.Source is a capacity of the heat source node, H.sub.j.sup.Load represents a consumption load of the load node, and mi is a pipeline flow directly connected to the heat source; m.sub.j is a pipeline flow directly connected to the load; T.sub.i.sup.s is a water supply temperature of the Heating Network of the heat source node; T.sub.j.sup.s is a backwater temperature of the Heating Network of the heat source node; Tis is a water supply temperature of the Heating Network of the heat load node; T.sub.j.sup.r is a backwater temperature of the Heating Network of the heat load node; constraints of the heat exchanger model comprise a heat balance constraint of a heat exchanger, wherein: a water supply temperature of a secondary side pipeline network T.sub.g2 of the heat exchanger is obtained according to a heat balance equation of the heat exchanger: c p G 1 ( T g 1 - T h 1 ) = c p G 2 ( T g 2 - T h 2 ) + c p G 2 d T g 2 dt ; ( 13 ) in the equation, c.sub.p is a specific heat capacity of water; G.sub.1 is a primary side flow of the heat exchanger; T.sub.g1 is a primary side water supply temperature; T.sub.h1 is a primary side backwater temperature; G.sub.2 is a secondary side flow of the heat exchanger; T.sub.g2 is a secondary side water supply temperature; T.sub.h2 is a secondary side backwater temperature, and t represents a time of water temperature change; the primary side water supply temperature of the heat exchanger is obtained by Equation (14):
H.sub.load=c.sub.pG.sub.1.Math.(T.sub.g1T.sub.h1)(14); H.sub.load represents a primary side heat supply of a water heater; constraints of the radiator model comprise a heat constraint released by a radiator, wherein: there is a following relationship between an indoor temperature T.sub.r and an average temperature T.sub.p of the heating radiator:
Q=aF.Math..Math.(T.sub.pT.sub.r).sup.1+b(15); in the equation, Q is a heat released by the radiator, and a, b, , F are radiator's own parameters; an average temperature transmitted by a secondary pipeline network is as follows: T p = ( T g 2 + T h 2 ) / 2 T g 2 / T g 1 1.7 ( 16 ) T p = T g 2 - T h 2 ln T g 2 - T r T h 2 - T r T g 2 / T g 1 > 1.7 ; a relative flow is used to characterize an action of a control valve, and is expressed as: G 2 _ = Q 2 Q 2 s .Math. T g 2 s - T h 2 s T g 2 - T h 2 ; ( 17 ) Q.sub.2 is an actual heat load of a user; Q.sub.2s is a design heat load of the user; T.sub.g2s is a design water supply temperature of the user; T.sub.h2s is a design backwater temperature of the user; constraints of the capacity and energy conversion equipment model comprise energy conversion constraints of the combined heat and power (CHP) unit and the heat pump, wherein: there is energy conversion efficiency between the CHP unit and the heat pump, the equation is as follows:
P.sub.chp=.sub.eP.sub.e(20);
H.sub.chp=.sub.hP.sub.g(21);
H.sub.hp=.sub.hpP.sub.hp(22); an unit capacity is related to energy consumption and production efficiency, P.sub.e is a purchase of an electricity of the EHN (kW) per hour, P.sub.g is a purchase of a natural gas of the EHN (kW) per hour; P.sub.chp and H.sub.chp are an electricity and a heat produced by the CHP unit per hour, H.sub.hp is a heat output by the heat pump unit (kW) per hour; .sub.e and .sub.h are efficiency of producing the electricity and the heat of the CHP unit, and .sub.hp is the efficiency of outputting the heat of the heat pump unit; P.sub.hp is an electricity consumed by a heat pump per hour.

2. The collaborative optimization method for the EHN and the building user according to claim 1, wherein constraints of the building model comprise a heat balance constraint of a wall in a heating zone of the building and a heat balance constraint of an indoor air in the heating zone of the building, wherein: a relationship between an outdoor temperature, a thermal gain of the heating zone and a wall temperature is expressed by a Resistor-Capacitor (RC) model of the node with the wall and the heating zone, a heat balance equation of the wall in the heating zone is: { C 1 , 2 w dT 1 , 2 w dt = T 1 T 1 , 2 w R 1 , 2 w + T 2 - T 1 , 2 w R 1 , 2 w + r 1 , 2 1 , 2 A 1 , 2 w Q 1 , 2 ra d C 1 , 3 w dT 1 , 3 w dt = T 1 T 1 , 3 w R 1 , 3 w + T 3 - T 1 , 3 w R 1 , 3 w + r 1 , 3 1 , 3 A 1 , 3 w Q 1 , 3 ra d C 1 , 4 w dT 1 , 4 w dt = T 1 T 1 , 4 w R 1 , 4 w + T 4 - T 1 , 4 w R 1 , 4 w + r 1 , 4 1 , 4 A 1 , 4 w Q 1 , 4 ra d C 1 , 5 w dT 1 , 5 w dt = T 1 T 1 , 5 w R 1 , 5 w + T 5 - T 1 , 5 w R 1 , 5 w + r 1 , 5 1 , 5 A 1 , 5 w Q 1 , 5 ra d ; ( 18 ) wherein T.sub.1,2.sup.w, T.sub.1,3.sup.w, T.sub.1,4.sup.w and T.sub.1,5.sup.w are temperatures of four wall nodes, indicating that the temperature of the wall around the heating zone; T.sub.1 is a node temperature of the heating zone and represents the indoor temperature of the heating zone, T.sub.2-T.sub.5 is a temperature of an adjacent heating zone or the outdoor temperature; r.sub.1,2 is taken 1 when the wall or roof is exposed to sunlight, otherwise 0; .sub.1,2 represents a heat absorption rate of the wall, A.sub.1,2.sup.w represents a surface area of the wall, and Q.sub.1,2.sup.rad is a light intensity corresponding to the wall in a corresponding direction; a heat balance of the indoor air in the heating zone is expressed as: C 1 r dT 1 r dt = .Math. j = 2 5 T 1 , j w - T 1 r R 1 , j w + .Math. T out - T 1 r R 1 , j win + Q 1 load + Q 1 i n t + 1 , j win A 1 , j win Q 1 win ; ( 19 ) C.sub.1.sup.r represents a specific heat capacity of the indoor air, T.sub.1.sup.r represents an indoor temperature of a room, T.sub.1,j represents a corresponding wall temperature, T.sup.out represents an outdoor ambient temperature, R.sub.1,j.sup.w represents a thermal resistance of the wall, R.sub.1,j.sup.win represents a thermal resistance of a window, Q.sub.1.sup.load represents an indoor thermal load, Q.sub.1.sup.int represents an indoor internal heat gain, comprising a heat dissipation of human body and a heat dissipation of electrical appliance, .sub.1,j.sup.win represents a light transmittance of the window, A.sub.1,j.sup.win represents a surface area of the window, and Q.sub.1.sup.win represents a light intensity accepted by the window.

3. The collaborative optimization method for the EHN and the building user according to claim 2, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.r.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

4. The collaborative optimization method for the EHN and the building user according to claim 1, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.r.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

5. The collaborative optimization method for the EHN and the building user according to claim 4, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest heat consumption of the building user comprise: a user strategy constraint and a radiator property constraint, wherein: an objective function is set to: F ( t ) = min ( .Math. t = I 2 4 Q t l o a d .Math. t ) ; ( 31 ) wherein Q.sub.t.sup.load represents a heat load of a heating consumer; t represents a scheduling time; the user strategy constraint:
T.sub.t.sup.r=T.sub.t.sup.adj,t(35); in the equation, T.sub.t.sup.r represents the indoor temperature at time t, T.sub.t.sup.adj represents the indoor temperature of an adjacent room at time t; the radiator property constraint:
0G.sub.21(36);
T.sub.minT.sub.h2T.sub.h2s(37); in the equation, T.sub.min represents a minimum temperature of the secondary side backwater temperature of the radiator.

6. A collaborative optimization equipment for an EHN and a building user, comprising: a processor and a memory; wherein the memory is used to store a computer program, and the processor calls the computer program stored in the memory to perform the collaborative optimization method for the EHN and the building user according to claim 1.

7. The collaborative optimization equipment for the EHN and the building user according to claim 6, wherein constraints of the building model comprise a heat balance constraint of a wall in a heating zone of the building and a heat balance constraint of an indoor air in the heating zone of the building, wherein: a relationship between an outdoor temperature, a thermal gain of the heating zone and a wall temperature is expressed by an RC model of the node with the wall and the heating zone, a heat balance equation of the wall in the heating zone is: { C 1 , 2 w dt 1 , 2 w dt = T 1 - T 1 , 2 w R 1 , 2 w + T 2 - T 1 , 2 w R 1 , 2 w + r 1 , 2 1 , 2 A 1 , 2 w Q 1 , 2 r a d C 1 , 3 w d T 1 , 3 w dt = T 1 - T 1 , 3 w R 1 , 3 w + T 3 - T 1 , 3 w R 1 , 3 w + r 1 , 3 1 , 3 A 1 , 3 w Q 1 , 3 r a d C 1 , 4 w d T 1 , 4 w dt = T 1 - T 1 , 4 w R 1 , 4 w + T 4 - T 1 , 4 w R 1 , 4 w + r 1 , 4 1 , 4 A 1 , 4 w Q 1 , 4 r a d C 1 , 5 w d T 1 , 5 w dt = T 1 - T 1 , 5 w R 1 , 5 w + T 5 - T 1 , 5 w R 1 , 5 w + r 1 , 5 1 , 5 A 1 , 5 w Q 1 , 5 r a d ; ( 18 ) wherein T.sub.1,2.sup.w, T.sub.1,3.sup.w, T.sub.1,4.sup.w and T.sub.1,5.sup.w are temperatures of four wall nodes, indicating that the temperature of the wall around the heating zone; T.sub.1 is a node temperature of the heating zone and represents the indoor temperature of the heating zone, T.sub.2-T.sub.5 is a temperature of an adjacent heating zone or the outdoor temperature; r.sub.1,2 is taken 1 when the wall or roof is exposed to sunlight, otherwise 0; .sub.1,2 represents a heat absorption rate of the wall, A.sub.1,2.sup.w represents a surface area of the wall, and Q.sub.1,2.sup.rad is a light intensity corresponding to the wall in a corresponding direction; a heat balance of the indoor air in the heating zone is expressed as: C 1 r dT 1 r dt = .Math. j = 2 5 T 1 , j w - T 1 r R 1 , j w + .Math. T out - T 1 r R 1 , j win + Q 1 load + Q 1 i n t + 1 , j win A 1 , j win Q 1 win ( 19 ) C.sub.1.sup.r represents a specific heat capacity of the indoor air, T.sub.1.sup.r represents an indoor temperature of a room, T.sub.1,j.sup.w represents a corresponding wall temperature, T.sup.out represents an outdoor ambient temperature, R.sub.1,j.sup.w represents a thermal resistance of the wall, R.sub.1,j.sup.win represents a thermal resistance of a window, Q.sub.1.sup.load represents an indoor thermal load, Q.sub.1.sup.int represents an indoor internal heat gain, comprising a heat dissipation of human body and a heat dissipation of electrical appliance, .sub.1,j.sup.win represents a light transmittance of the window, A.sub.1,j.sup.win represents a surface area of the window, and Q.sub.1.sup.win represents a light intensity accepted by the window.

8. The collaborative optimization equipment for the EHN and the building user according to claim 6, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.r.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

9. The collaborative optimization equipment for the EHN and the building user according to claim 8, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest heat consumption of the building user comprise: a user strategy constraint and a radiator property constraint, wherein: an objective function is set to: F ( t ) = min ( .Math. t = 1 2 4 Q t l o a d .Math. t ) ; ( 31 ) wherein Q.sub.t.sup.load represents a heat load of a heating consumer; t represents a scheduling time; the user strategy constraint:
T.sub.t.sup.r=T.sub.t.sup.adj,t(35); in the equation, TE represents the indoor temperature at time t, Tad) represents the indoor temperature of an adjacent room at time t; the radiator property constraint:
0G.sub.21(36);
T.sub.minT.sub.h2T.sub.h2s(37); in the equation, T.sub.min represents a minimum temperature of the secondary side backwater temperature of the radiator.

10. A computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the collaborative optimization method for the EHN and the building user according to claim 1.

11. The computer readable storage medium according to claim 10, wherein constraints of the building model comprise a heat balance constraint of a wall in a heating zone of the building and a heat balance constraint of an indoor air in the heating zone of the building, wherein: a relationship between an outdoor temperature, a thermal gain of the heating zone and a wall temperature is expressed by an RC model of the node with the wall and the heating zone, a heat balance equation of the wall in the heating zone is: { C 1 , 2 w dt 1 , 2 w dt = T 1 - T 1 , 2 w R 1 , 2 w + T 2 - T 1 , 2 w R 1 , 2 w + r 1 , 2 1 , 2 A 1 , 2 w Q 1 , 2 r a d C 1 , 3 w d T 1 , 3 w dt = T 1 - T 1 , 3 w R 1 , 3 w + T 3 - T 1 , 3 w R 1 , 3 w + r 1 , 3 1 , 3 A 1 , 3 w Q 1 , 3 r a d C 1 , 4 w d T 1 , 4 w dt = T 1 - T 1 , 4 w R 1 , 4 w + T 4 - T 1 , 4 w R 1 , 4 w + r 1 , 4 1 , 4 A 1 , 4 w Q 1 , 4 r a d C 1 , 5 w d T 1 , 5 w dt = T 1 - T 1 , 5 w R 1 , 5 w + T 5 - T 1 , 5 w R 1 , 5 w + r 1 , 5 1 , 5 A 1 , 5 w Q 1 , 5 r a d ; ( 18 ) wherein T.sub.1,2.sup.w, T.sub.1,3.sup.w, T.sub.1,4.sup.w and T.sub.1,5.sup.w are temperatures of four wall nodes, indicating that the temperature of the wall around the heating zone; T.sub.1 is a node temperature of the heating zone and represents the indoor temperature of the heating zone, T.sub.2-T.sub.5 is a temperature of an adjacent heating zone or the outdoor temperature; r.sub.1,2 is taken 1 when the wall or roof is exposed to sunlight, otherwise 0; .sub.1,2 represents a heat absorption rate of the wall, A.sub.1,2.sup.w represents a surface area of the wall, and Q.sub.1,2.sup.rad is a light intensity corresponding to the wall in a corresponding direction; a heat balance of the indoor air in the heating zone is expressed as: C 1 r dT 1 r dt = .Math. j = 2 5 T 1 , j w - T 1 r R 1 , j w + .Math. T out - T 1 r R 1 , j win + Q 1 load + Q 1 i n t + 1 , j win A 1 , j win Q 1 win ( 19 ) C.sub.1.sup.r represents a specific heat capacity of the indoor air, T.sub.1.sup.r represents an indoor temperature of a room, T.sub.1,j.sup.w represents a corresponding wall temperature, T.sup.out represents an outdoor ambient temperature, R.sub.1,j.sup.w represents a thermal resistance of the wall, R.sub.1,j.sup.win represents a thermal resistance of a window, Q.sub.1.sup.load represents an indoor thermal load, Q.sub.1.sup.int represents an indoor internal heat gain, comprising a heat dissipation of human body and a heat dissipation of electrical appliance, Twin represents a light transmittance of the window, A.sub.1,j.sup.win represents a surface area of the window, and Q.sub.1.sup.win represents a light intensity accepted by the window.

12. The computer readable storage medium according to claim 10, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.r.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

13. The computer readable storage medium according to claim 12, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest heat consumption of the building user comprise: a user strategy constraint and a radiator property constraint, wherein: an objective function is set to: F ( t ) = min ( .Math. t = 1 2 4 Q t l o a d .Math. t ) ; ( 31 ) wherein Q.sub.t.sup.load represents a heat load of a heating consumer; t represents a scheduling time; the user strategy constraint:
T.sub.t.sup.r=T.sub.t.sup.adj,t(35); in the equation, T.sub.t.sup.r represents the indoor temperature at time t, T.sub.t.sup.adj represents the indoor temperature of an adjacent room at time t; the radiator property constraint:
0G.sub.21(36);
T.sub.minT.sub.h2T.sub.h2s(37); in the equation, T.sub.min represents a minimum temperature of the secondary side backwater temperature of the radiator.

14. A collaborative optimization system for an EHN and a building user, comprising: an establishing processor, wherein the establishing processor is used to establish a coordinated optimization scheduling framework of the EHN and a building in a park; a first construction processor, wherein the first construction processor is used to construct an optimal thermal power flow scheduling model of the EHN and construct a building model to simulate thermal characteristics and energy consumption of the building based on the coordinated optimization scheduling framework; a second construction processor, wherein the second construction processor is used to construct a collaborative optimization model of the EHN and the building user based on the optimal thermal power flow scheduling model and the building model, and taking a lowest operation cost of the EHN and a lowest heat consumption of the building user as a goal; and an outputting processor, wherein the outputting processor is used to output a collaborative optimization scheme of an optimal thermal power flow scheduling of the EHN and a heat consumption of the building user through the collaborative optimization model of the EHN and the building user to a controller for controlling a heating radiator, a combined heat and power (CHP) unit and a heat pump based on the collaborative optimization scheme; wherein the optimal thermal power flow scheduling model comprises a hydraulic model, a thermal model, a heat exchanger model, a radiator model and a capacity and energy conversion equipment model; constraints of the hydraulic model comprise a node net flow constraint and a head loss constraint, wherein: a node net flow is according to an energy conservation law, each heating network node satisfies following rules:
m.sub.q=m.sub.inm.sub.out(1); wherein m.sub.in and m.sub.out represent pipeline flow entering and flowing out of a Heating Network respectively, and m.sub.q is a node net flow in the Heating Network; a node net flow equation of the hydraulic model is obtained from Equation (1):
A{dot over (m)}={dot over (m)}.sub.q(2); wherein m is a pipeline flow in the Heating Network, {dot over (m)} represents a matrix of m, {dot over (m)}.sub.q represents a matrix of m.sub.q, and A is a correlation matrix of a node and a pipeline, and an element is defined as: { + 1 , A flow direction i s f r o m t h e p i p e l i n e t o t h e n o d e . - 1 , The flow d i r e c t i o n i s f r o m t h e n o d e t o t h e p i p e l i n e . 0 , There is n o c o n n e c t i o n b e t w e e n t h e n o d e a n d t h e p i p e l i n e . ; ( 3 ) a pressure change per unit distance caused by pipeline friction is called head loss, a circulating pressure equation represents a sum of the head loss of a network loop, and a sum of the circulating pressure in an entire network is zero:
h.sub.f=0(4); wherein h.sub.f is a pipeline pressure loss scalar in the network loop;
h.sub.f=Km|m|(5); wherein K is a resistance coefficient of a network pipeline, and K is mainly determined by a pipeline diameter; K = 8 L f D 5 2 2 g ; ( 6 ) wherein L is a pipeline length, D is the pipeline diameter, is a water density, g is an acceleration of gravity, f is a friction coefficient and is determined according to Reynolds number; from Equation (4) and Equation (5), a head loss equation in the hydraulic model is obtained:
Bh.sub.f=BK{dot over (m)}|{dot over (m)}|=0(7); wherein h.sub.f represents a head pressure loss vector; B is a correlation matrix of the network loop and a branch, and an element of the B is defined as: { + 1 , A branch flow direction is the same as the loop definition direction . - 1 , The branch flow direction is opposite to the loop definition direction . 0 , The branch does not belong to the loop . ; ( 8 ) constraints of the thermal model comprise a node flow conservation constraint, a pipeline heat dissipation constraint, and an energy conservation constraint of heat source and load, wherein: a node flow conservation: if a flow of multiple pipelines flows into a same node, then a node temperature is a mixing temperature T.sub.j.sup.out of an injected flow of each pipeline; according to the energy conservation law, an outlet temperature of water supply/backwater at any node multiplied by a total outlet flow is equal to a sum of a product of all inlet temperatures and corresponding flows:
.sub.i:i.fwdarw.jm.sub.ijT.sub.ij.sup.in=(.sub.j:j.fwdarw.km.sub.jk)T.sub.j.sup.out(9); as shown in Equation (9), for any node j, i represents different inlets to the node j, and k represents different outlets to the node j, in the Equation (9), T.sub.j.sup.out is a water supply (backwater) temperature at a node outlet, m.sub.ij is the pipeline flow of the node i into the node j, m.sub.jk represents the pipeline flow of the node j into the node k, and T.sub.ij.sup.in is the water supply (backwater) temperature at the node inlet, a number of node inlets is determined by a topology of a Heat Pipeline Network; an inlet temperature of the node is transported from a previous node i, and the water has experienced loss between a pipeline section i.fwdarw.j; a pipeline heat dissipation: the Heat Pipeline Network dissipates heat to a surrounding environment during transmission, a temperature loss is related to an ambient temperature, a heat transfer coefficient and other factors, for the pipeline between any nodes i.fwdarw.j: T i j out = ( T i j i n - T a ) e - i j L i j c p m i j + T a ; ( 10 ) wherein T.sub.ij.sup.in and T.sub.ij.sup.out represent temperatures of first and last nodes of the pipeline, T.sup.a is an external ambient temperature, .sub.ij is the heat transfer coefficient of the pipeline, c.sub.p is a specific heat capacity of water, L.sub.ij is the pipeline length, m.sub.ij is the pipeline flow of the node i into the node j; an energy conservation of a heat source and a load: for a heat source node and a heat load node, a heat capacity/heat load needs to establish an energy conservation constraint with a temperature difference between the water supply and the backwater, as shown in Equation (11) and Equation (12):
H.sub.i.sup.Source=c.sub.pm.sub.i(T.sub.i.sup.sT.sub.i.sup.r)(11);
H.sub.j.sup.Load=c.sub.pm.sub.j(T.sub.j.sup.sT.sub.j.sup.r)(12); in the equation, H.sub.i.sup.Source is a capacity of the heat source node, H.sub.j.sup.Load represents a consumption load of the load node, and mi is a pipeline flow directly connected to the heat source; m.sub.j is a pipeline flow directly connected to the load; T.sub.i.sup.s is a water supply temperature of the Heating Network of the heat source node; T.sub.j.sup.s is a backwater temperature of the Heating Network of the heat source node; T.sub.j.sup.s is a water supply temperature of the Heating Network of the heat load node; T.sub.j.sup.r is a backwater temperature of the Heating Network of the heat load node; constraints of the heat exchanger model comprise a heat balance constraint of a heat exchanger, wherein: a water supply temperature of a secondary side pipeline network T.sub.g2 of the heat exchanger is obtained according to a heat balance equation of the heat exchanger: c p G 1 ( T g 1 - T h 1 ) = c p G 2 ( T g 2 - T h 2 ) + c p G 2 d T g 2 dt ; ( 13 ) in the equation, c.sub.p is a specific heat capacity of water; G.sub.1 is a primary side flow of the heat exchanger; T.sub.g1 is a primary side water supply temperature; T.sub.h1 is a primary side backwater temperature; G.sub.2 is a secondary side flow of the heat exchanger; T.sub.g2 is a secondary side water supply temperature; T.sub.h2 is a secondary side backwater temperature, and t represents a time of water temperature change; the primary side water supply temperature of the heat exchanger is obtained by Equation (14):
H.sub.load=c.sub.pG.sub.1.Math.(T.sub.g1T.sub.h1)(14); H.sub.load represents a primary side heat supply of a water heater; constraints of the radiator model comprise a heat constraint released by a radiator, wherein: there is a following relationship between an indoor temperature T.sub.r and an average temperature T.sub.p of the heating radiator:
Q=aF.Math..Math.(T.sub.pT.sub.r).sup.1+b(15); in the equation, Q is a heat released by the radiator, and a, b, , F are radiator's own parameters; an average temperature transmitted by a secondary pipeline network is as follows: T p = ( T g 2 + T h 2 ) / 2 T g 2 / T g 1 1.7 ( 16 ) T p = T g 2 - T h 2 ln T g 2 - T r T h 2 - T r T g 2 / T g 1 > 1.7 ; a relative flow is used to characterize an action of a control valve, and is expressed as: G 2 _ = Q 2 Q 2 s .Math. T g 2 s - T h 2 s T g 2 - T h 2 ; ( 17 ) Q.sub.2 is an actual heat load of a user; Q.sub.2s is a design heat load of the user; T.sub.g2s is a design water supply temperature of the user; T.sub.h2s is a design backwater temperature of the user; constraints of the capacity and energy conversion equipment model comprise energy conversion constraints of the combined heat and power (CHP) unit and the heat pump, wherein: there is energy conversion efficiency between the CHP unit and the heat pump, the equation is as follows:
P.sub.chp=.sub.eP.sub.e(20);
H.sub.chp=.sub.hP.sub.g(21);
H.sub.hp=.sub.hpP.sub.hp(22); an unit capacity is related to energy consumption and production efficiency, P.sub.e is a purchase of an electricity of the EHN (kW) per hour, P.sub.g is a purchase of a natural gas of the EHN (kW) per hour; P.sub.chp and H.sub.chp are an electricity and a heat produced by the CHP unit per hour, H.sub.hp is a heat output by the heat pump unit (kW) per hour; .sub.e and .sub.h are efficiency of producing the electricity and the heat of the CHP unit, and .sub.hp is the efficiency of outputting the heat of the heat pump unit; P.sub.hp is an electricity consumed by a heat pump per hour.

15. The collaborative optimization system for the EHN and the building user according to claim 14, wherein constraints of the building model comprise a heat balance constraint of a wall in a heating zone of the building and a heat balance constraint of an indoor air in the heating zone of the building, wherein: a relationship between an outdoor temperature, a thermal gain of the heating zone and a wall temperature is expressed by an RC model of the node with the wall and the heating zone, a heat balance equation of the wall in the heating zone is: { C 1 , 2 w dt 1 , 2 w dt = T 1 - T 1 , 2 w R 1 , 2 w + T 2 - T 1 , 2 w R 1 , 2 w + r 1 , 2 1 , 2 A 1 , 2 w Q 1 , 2 r a d C 1 , 3 w d T 1 , 3 w dt = T 1 - T 1 , 3 w R 1 , 3 w + T 3 - T 1 , 3 w R 1 , 3 w + r 1 , 3 1 , 3 A 1 , 3 w Q 1 , 3 r a d C 1 , 4 w d T 1 , 4 w dt = T 1 - T 1 , 4 w R 1 , 4 w + T 4 - T 1 , 4 w R 1 , 4 w + r 1 , 4 1 , 4 A 1 , 4 w Q 1 , 4 r a d C 1 , 5 w d T 1 , 5 w dt = T 1 - T 1 , 5 w R 1 , 5 w + T 5 - T 1 , 5 w R 1 , 5 w + r 1 , 5 1 , 5 A 1 , 5 w Q 1 , 5 r a d ; ( 18 ) wherein T.sub.1,2.sup.w, T.sub.1,3.sup.w, T.sub.1,4.sup.w and T.sub.1,5.sup.w are temperatures of four wall nodes, indicating that the temperature of the wall around the heating zone; T.sub.1 is a node temperature of the heating zone and represents the indoor temperature of the heating zone, T.sub.2-T.sub.5 is a temperature of an adjacent heating zone or the outdoor temperature; r.sub.1,2 is taken 1 when the wall or roof is exposed to sunlight, otherwise 0; .sub.1,2 represents a heat absorption rate of the wall, A.sub.1,2.sup.w represents a surface area of the wall, and Q.sub.1,2.sup.rad is a light intensity corresponding to the wall in a corresponding direction; a heat balance of the indoor air in the heating zone is expressed as: C 1 r d T 1 r dt = .Math. j = 2 5 T 1 , j w - T 1 r R 1 , j w + .Math. T o u t - T 1 r R 1 , j w i n + Q 1 load + Q 1 i n t + 1 , j w i n A 1 , j w i n Q 1 w i n ; ( 19 ) C.sub.1.sup.r represents a specific heat capacity of the indoor air, T.sub.1.sup.r represents an indoor temperature of a room, T.sub.1,j.sup.w represents a corresponding wall temperature, T.sup.out represents an outdoor ambient temperature, R.sub.1,j.sup.w represents a thermal resistance of the wall, R.sub.1,j.sup.win represents a thermal resistance of a window, Q.sub.1.sup.load represents an indoor thermal load, Q.sub.1.sup.int represents an indoor internal heat gain, comprising a heat dissipation of human body and a heat dissipation of electrical appliance, .sub.1,j.sup.win represents a light transmittance of the window, A.sub.1,j.sup.win represents a surface area of the window, and Q.sub.1.sup.win represents a light intensity accepted by the window.

16. The collaborative optimization system for the EHN and the building user according to claim 15, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.r.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

17. The collaborative optimization system for the EHN and the building user according to claim 14, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest operating cost of the EHN comprise: an electricity balance constraint, a heat balance constraint, an energy purchase constraint and a node water temperature constraint, wherein: an objective function is set to:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); wherein C.sub.e,t and C.sub.g,t represent price of an electricity and a natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of the electricity and the natural gas of the EHN per hour; electricity balance: P e + P c h p = P h p + P l o a d ( 24 ) P c h p = e P g ; heat balance: H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ; restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28); restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30); in the equation, T.sub.s.sup.min is a minimum value of a node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is a maximum value of the node water supply temperature; T.sub.s.sup.min is a minimum value of a node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is a maximum value of the node backwater temperature.

18. The collaborative optimization system for the EHN and the building user according to claim 17, wherein in the collaborative optimization model of the EHN and the building user, constraints corresponding to the goal of the lowest heat consumption of the building user comprise: a user strategy constraint and a radiator property constraint, wherein: an objective function is set to: F ( t ) = min ( .Math. t = 1 2 4 Q t l o a d .Math. t ) ; ( 31 ) wherein Q.sub.t.sup.load represents a heat load of a heating consumer; t represents a scheduling time; the user strategy constraint:
T.sub.t.sup.r=T.sub.t.sup.adj,t(35); in the equation, T.sub.t.sup.r represents the indoor temperature at time t, T.sub.t.sup.adj represents the indoor temperature of an adjacent room at time t; the radiator property constraint:
0G.sub.21(36);
T.sub.minT.sub.h2T.sub.h2s(37); in the equation, T.sub.min represents a minimum temperature of the secondary side backwater temperature of the radiator.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The drawings here are incorporated into the instruction and form part of the instruction, showing the embodiments in line with this patent, and are used together with the instruction to explain the principle of this patent. Obviously, the drawings in the following description are only some of the embodiments disclosed in this paper. For ordinary technicians in this field, other drawings can be obtained according to these drawings without paying creative labor.

(2) FIG. 1 is a flow chart of the collaborative optimization method for EHN and building user of this embodiment.

(3) FIG. 2 is an integrated schematic diagram of EHN and building user in the park in this embodiment.

(4) FIG. 3 is a schematic diagram of the coordinated optimization embodiment of EHN and building user in the park in this embodiment.

(5) FIG. 4 is a schematic diagram of the four-direction light intensity change of the building in the typical day in this embodiment;

(6) FIG. 5 is a schematic diagram of energy price change in the typical day in this embodiment;

(7) FIG. 6 is a schematic diagram of the electricity and natural gas purchases of EHN in the typical day in this embodiment;

(8) FIG. 7 is a schematic diagram of the relationship between the heat capacity and load of different equipment in this embodiment;

(9) FIG. 8 is a schematic diagram of the indoor and outdoor temperature and the relative flow of the radiator in Scenario I in this embodiment.

(10) FIG. 9 is a schematic diagram of the indoor and outdoor temperature and the relative flow of the radiator in Scenario II in this embodiment.

(11) FIG. 10 is a block diagram of the collaborative optimization method of EHN and building user of this embodiment.

(12) FIG. 11 is a structural diagram of the collaborative optimization equipment of EHN and building user of this embodiment.

DETAILED DESCRIPTION OF THE EMBODIMENTS

(13) Now we will refer to the drawings to describe the embodiments more comprehensively. However, the embodiments can be implemented in many forms and should not be understood as limited to the embodiments described here; by contrast, the provision of these embodiments makes this patent more comprehensive and complete, and conveys the idea of the embodiments to technicians in the field in a comprehensive manner. The features, structures or characteristics described can be combined in one or more implementations in any appropriate way. In the following description, many specific details are provided to give a full understanding of the implementation of this patent. However, technicians in this field will realize that one or more of the specific details described can be omitted by practicing this open technical solution, or other methods, components, devices, steps, etc. can be used. In other cases, any aspect of this patent may be obscured by not showing or describing in detail the well-known technical schemes in order to avoid that the sauce is better than the fish.

(14) In addition, the drawings here are only schematic diagrams of this patent and are not necessarily drawn in proportion. The same tags in the diagram represent the same or similar parts, thus the repeated descriptions of them are omitted. Some of the block diagrams shown in the drawings are functional entities that do not necessarily have to correspond to physically or logically independent entities. These functional entities can be implemented in software form, either in one or more hardware units or integrated circuit, or in different networks and/or processor devices and/or microcontroller devices.

(15) The flow chart shown in the drawing is only an example description, not all steps must be included. For example, some steps can also be decomposed, and some steps can be merged or partially merged, so the order of actual execution may change according to the actual situation.

(16) The terms first, second, etc. in the specification and claim of this application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or precedence. It should be understood that the data used in this way can be interchanged under appropriate circumstance so that the embodiments of this application described here, for example, can be implemented in the order other than those illustrated or described here.

(17) In addition, the terms include and have and any deformation of them are intended to cover non-exclusive inclusion, for example, the process, method, system, product or device that contains a series of steps or sub-modules do not have to be limited to those steps or sub-modules that are clearly listed, but may include other steps or sub-modules that are not clearly listed or are inherent to these process, method, product or device.

(18) FIG. 1 is one of the flow charts of the collaborative optimization method for Electric and Heating Networks (EHN) and building user in this embodiment. As shown in FIG. 1, the embodiment of this patent provides a collaborative optimization method for EHN and building user, including: S1, establishing a coordinated optimization scheduling framework of EHN and building in the park; S2, based on the coordinated optimization scheduling framework, constructing an optimal thermal power flow scheduling model of EHN, and constructing a building model to simulate thermal characteristics and energy consumption of the building; S3, based on the optimal thermal power flow scheduling model and the building model, taking the lowest operation cost of EHN and the lowest heat consumption of building user as a goal, constructing a collaborative optimization model of EHN and building user; S4, outputting a collaborative optimization scheme of the optimal thermal power flow scheduling of the EHN and the heat consumption of the building user through the collaborative optimization model of EHN and building user; This embodiment provides a collaborative optimization method for EHN and building user in the park based on the consideration of multi-taste energy cascade utilization. It can be applied to the actual business scenario of collaborative optimization management of the EHN and participation in load demand management. The method includes the following steps: S1, establishing a coordinated optimization scheduling framework of EHN and building in the park; S2, constructing an optimal thermal power flow scheduling model including the combined heat and power (CHP) unit, the heat exchange station and the heat pump; constructing a building model to simulate the thermal characteristics and energy consumption of the building, exemplarily, using the thermal resistance-heat capacity (R-C) network to model the thermal characteristics of the building, so as to further consider the thermal inertia of the building and the autonomous adjustment of the radiator. S3, from the perspective of EHN, minimizing the operation cost of EHN and the heat cost of building user while meeting the heat load. S4, from the perspective of user, adjusting the heating amount by using the electric control valve, so as to meet the individual needs of the user and reduce the user's heat cost.

(19) FIG. 2 shows the coordinated optimization scheduling framework of EHN and building in the park. Wherein it shows energy production and conversion equipment: heat pump and CHP unit are connected to the distribution network, heating distribution network and natural gas distribution network, so as to jointly provide electricity and heat loads for multi-energy system.

(20) Specifically, the optimal thermal power flow scheduling model includes the hydraulic model, the thermal model, the heat exchanger model, the radiator model and the capacity and energy conversion equipment model.

(21) The constraints of the hydraulic model include the node net flow constraint and the head loss constraint.

(22) The constraints of the thermal model include the node flow conservation constraint, the pipeline heat dissipation constraint, and the energy conservation constraint of heat source and load.

(23) The constraint of the heat exchanger model include the heat balance constraint of the heat exchanger; The constraints of the radiator model include the heat constraint released by the radiator; The constraints of the capacity and energy conversion equipment model include energy conversion constraints of CHP unit and heat pump.

(24) Specifically, the constraints of the building model include the heat balance constraint of the wall in the heating zone of the building and the heat balance constraint of the indoor air in the heating zone of the building.

(25) In this embodiment, the mathematical model of the collaborative optimization problem between the EHN and the building user in the park considering the multi-taste energy cascade utilization includes five parts: the hydraulic model, the thermal model, the heat exchanger model, the radiator model, the capacity and energy conversion equipment model:

(26) The constraints of the hydraulic model:

(27) The hydraulic model includes the node net flow equation and the head loss equation.

(28) The node net flow is according to the energy conservation law, each heating network node satisfies the following rules:
m.sub.q=m.sub.inm.sub.out(1); Wherein m.sub.in and m.sub.out represent the pipeline flow entering and flowing out of the Heating Network respectively, m.sub.q is the node net flow in the Heating Network.

(29) The node net flow equation of the hydraulic model can be obtained from Equation (1):
A{dot over (m)}={dot over (m)}.sub.q(2);

(30) Wherein m is the pipeline flow in the Heating Network, {dot over (m)} represents the matrix of m, {dot over (m)}.sub.q represents the matrix of m.sub.q, and A is the correlation matrix of the node and the pipeline, the element is defined as:

(31) ( 3 ) { + 1 , The flow direction is from the pipeline to the node . - 1 , The flow direction is from the node to the pipeline . 0 , There is no connection between the node and the piepline . ; (2) The pressure change per unit distance caused by pipeline friction is called head loss, the circulating pressure equation represents the sum of the head loss of the network loop, and the sum of the circulating pressure in the entire network is zero:
h.sub.f=0(4);

(32) Wherein h.sub.f is the pipeline pressure loss scalar in the loop.
h.sub.f=Km|m|(5);

(33) Wherein K is the resistance coefficient of the network pipeline, which is mainly determined by the pipeline diameter.

(34) K = 8 L f D 5 2 2 g ; ( 6 )

(35) Wherein L is the pipeline length, D is the pipeline diameter, is the water density, g is the acceleration of gravity, f is the friction coefficient, which is determined according to the Reynolds number.

(36) From Equation (4) and Equation (5), the head loss equation in the hydraulic model is obtained:
Bh.sub.f=BK{dot over (m)}|{dot over (m)}|=0(7); Wherein h.sub.f represents the head pressure loss vector; B is the correlation matrix of the loop and the branch, and the element of the B is defined as:

(37) ( 8 ) { + 1 , The branch direction is the same as the loop definition direction . - 1 , The branch flow direction is opposite to the loop definition direction . 0 , The branch does not belong to the loop . ;

(38) The constraints of the thermal model:

(39) (1) Node Flow Conservation:

(40) If the flow of multiple pipelines flows into the same node, the node temperature is the mixing temperature T.sub.j.sup.out of the injected flow of each pipeline.

(41) According to the energy conservation law, the outlet temperature of water supply/backwater at any node multiplied by the total outlet flow must be equal to the sum of the product of all inlet temperatures and corresponding flows:
.sub.i:i.fwdarw.jm.sub.ijT.sub.ij.sup.in=(.sub.j:j.fwdarw.km.sub.jk)T.sub.j.sup.out(9);

(42) As shown in Equation (9), for any node j, i represents different inlets to the node j, and k represents different outlets to the node j. In the Equation (9), T.sub.j.sup.out is the water supply (backwater) temperature at the outlet of the node, m.sub.ij is the pipeline flow of the node i into the node j, m.sub.jk represents the pipeline flow of the node j into the node k, and T.sub.ij.sup.in is the water supply (backwater) temperature at the node inlet, the number of node inlets is determined by the topology of the Heat Pipeline Network. The inlet temperature of the node is transported from the previous node i, and the water has experienced loss between the pipeline section i.fwdarw.j.

(43) (2) Pipeline Heat Dissipation:

(44) The Heat Pipeline Network will dissipate heat to the surrounding environment during transmission, the temperature loss is related to the ambient temperature, heat transfer coefficient and other factors, for the pipeline between any nodes i.fwdarw.j:

(45) T i j out = ( T i j i n - T a ) e - i j L i j c P m i j + T a ; ( 10 )

(46) Wherein T.sub.ij.sup.in and T.sub.ij.sup.out represent the temperature of the first and last nodes of the pipeline, T.sup.a is the external ambient temperature, .sub.ij is the heat transfer coefficient of the pipeline, c.sub.p is the specific heat capacity of water, L.sub.ij is the pipeline length, m.sub.ij is the pipeline flow of the node i into the node j.

(47) (3) Energy Conservation of Heat Source and Load:

(48) For the heat source node and the heat load node, the heat capacity/heat load need to establish an energy conservation constraint with the temperature difference between the water supply and backwater, as shown in Equation (11) and Equation (12):
H.sub.i.sup.Source=c.sub.pm.sub.i(T.sub.i.sup.sT.sub.i.sup.r)(11);
H.sub.j.sup.Load=c.sub.pm.sub.j(T.sub.j.sup.sT.sub.j.sup.r)(12);

(49) In the equation, H.sub.i.sup.Source is the output of the heat source node, H.sub.j.sup.Load represents the consumption load of the load node, and mi is the pipeline flow directly connected to the heat source; m.sub.j is the pipeline flow directly connected to the direct load; T.sub.i.sup.s is the water supply temperature of the Heating Network of heat source node; T.sub.j.sup.s is the backwater temperature of the Heating Network of the heat source node; T.sub.j.sup.s is the water supply temperature of the Heating Network of the heat load node; T.sub.j.sup.r is the backwater temperature of the Heating Network of the heat load node;

(50) The constraints of the heat exchanger model:

(51) The water supply temperature of the secondary side pipeline network of the heat exchanger can be obtained according to the heat balance equation of the heat exchanger:

(52) c p G 1 ( T g 1 - T h 1 ) = c p G 2 ( T g 2 - T h 2 ) + c p G 2 d T g 2 dt ; ( 13 )

(53) In the equation, c.sub.p is the specific heat capacity of water; G.sub.1 is the primary side flow of heat exchanger; T.sub.g1 is the primary side water supply temperature; T.sub.h1 is the primary side backwater temperature; G.sub.2 is the secondary side flow of the heat exchanger; T.sub.g2 is the secondary side water supply temperature; T.sub.h2 is the secondary side backwater temperature, and t represents the time of water temperature change.

(54) The primary side water supply temperature of the heat exchanger can be obtained by Equation (14):
H.sub.load=c.sub.pG.sub.1.Math.(T.sub.g1T.sub.h1)(14); H.sub.load represents the primary side heat supply of the water heater; The constraints of the radiator model:

(55) There is the following relationship between indoor temperature T.sub.r and average temperature T.sub.p of heating radiator:
Q=aF.Math..Math.(T.sub.pT.sub.r).sup.1+b(15);

(56) In the equation, Q is the heat released by the radiator, a, b, , F are the radiator's own parameters.

(57) The average temperature transmitted by the secondary pipeline network:

(58) T p = ( T g 2 + T h 2 ) / 2 T g 2 / T g 1 1.7 T p = T g 2 - T h 2 ln T g 2 - T h 2 T h 2 - T r T g 2 / T g 1 > 1.7 ; ( 16 )

(59) The relative flow is used to characterize the action of the control valve, which can be expressed as:

(60) G 2 _ = Q 2 Q 2 s .Math. T g 2 s - T h 2 s T g 2 - T h 2 ; ( 17 )

(61) Q.sub.2 is the actual heat load of the user; Q.sub.2s is the design heat load of the user; T.sub.g2s is the design water supply temperature of the user; T.sub.h2s is the design backwater temperature of the user;

(62) The constraints of the building user model:

(63) The relationship between the outdoor temperature, the thermal gain of the heating zone and the wall temperature can be expressed by the Resistor-Capacitor (RC) model of the node with wall and heating zone. The heat balance Equation of the wall in the heating zone is:

(64) { C 1 , 2 w dT 1 , 2 w dt = T 1 T 1 , 2 w R 1 , 2 w + T 2 - T 1 , 2 w R 1 , 2 w + r 1 , 2 1 , 2 A 1 , 2 w Q 1 , 2 ra d C 1 , 3 w dT 1 , 3 w dt = T 1 T 1 , 3 w R 1 , 3 w + T 3 - T 1 , 3 w R 1 , 3 w + r 1 , 3 1 , 3 A 1 , 3 w Q 1 , 3 ra d C 1 , 4 w dT 1 , 4 w dt = T 1 T 1 , 4 w R 1 , 4 w + T 4 - T 1 , 4 w R 1 , 4 w + r 1 , 4 1 , 4 A 1 , 4 w Q 1 , 4 ra d C 1 , 5 w dT 1 , 5 w dt = T 1 T 1 , 5 w R 1 , 5 w + T 5 - T 1 , 5 w R 1 , 5 w + r 1 , 5 1 , 5 A 1 , 5 w Q 1 , 5 ra d ; ( 18 )

(65) Wherein T.sub.1,2.sup.w, T.sub.1,3.sup.w, are the temperatures of the four wall nodes, indicating that the temperature of the wall around the area; T.sub.1 is the node temperature of the heating zone, which represents the indoor temperature of the heating zone, T.sub.2T.sub.5 is the temperature of the adjacent heating zone or the outdoor temperature. r.sub.1,2 is taken 1 when the wall or roof is exposed to sunlight, otherwise 0; .sub.1,2 represents the heat absorption rate of the wall, A.sub.1,2.sup.w represents the surface area of the wall, and Q.sub.1,2.sup.rad is the light intensity corresponding to the wall in the corresponding direction.

(66) The heat balance of indoor air in the heating zone can be expressed as:

(67) C 1 r dT 1 r dt = .Math. j = 2 5 T 1 , j w - T 1 r R 1 , j w + .Math. T out - T 1 r R 1 , j win + Q 1 load + Q 1 i n t + 1 , j win A 1 , j win Q 1 win ; ( 19 )

(68) C.sub.1.sup.r represents the specific heat capacity of the room air, T.sub.1.sup.r represents the indoor temperature of the room, T.sub.1,j.sup.w represents the corresponding wall temperature, T.sup.out represents the outdoor ambient temperature, R.sub.1,j.sup.w represents the thermal resistance of the wall, R.sub.1,j.sup.win represents the thermal resistance of the window, Q.sub.1.sup.load represents the indoor thermal load, Q.sub.1.sup.int represents the indoor internal heat gain, such as heat dissipation of human body, heat dissipation of electrical appliance, etc., .sub.1,j.sup.win represents the light transmittance of the window, A.sub.1,j.sup.win represents the surface area of the window, and Q.sub.1.sup.win represents the light intensity accepted by the window.

(69) The constraints of the capacity and energy conversion equipment model:

(70) EHN purchases electricity and natural gas from the superior Electric Network and Natural Gas Pipeline Network, and produces electricity and heat to supply building user through CHP unit and heat pump. Wherein the purchased natural gas is used for CHP, and the purchased electricity and part of the electricity produced by CHP are used for heat pump. There is energy conversion efficiency between CHP unit and heat pump.
P.sub.chp=.sub.eP.sub.e(20);
H.sub.chp=.sub.hP.sub.g(21);
H.sub.hp=.sub.hpP.sub.hp(22); The unit capacity is related to energy consumption and production efficiency. P.sub.e is the purchase of electricity of EHN (kW) per hour, P.sub.g is the purchase of natural gas of EHN (kW) per hour; P.sub.chp and H.sub.chp are the electricity and heat produced by the CHP unit per hour, H.sub.hp is the heat output by the heat pump unit (kW) per hour; .sub.e and .sub.h are efficiency of producing the electricity and the heat of the CHP unit, and .sub.hp is the efficiency of outputting the heat of the heat pump unit P.sub.hp is the electricity consumed by the heat pump per hour.

(71) Specifically, in the collaborative optimization model of EHN and building user, the constraints corresponding to the goal of the lowest operating cost of EHN include: the electricity balance constraint, the heat balance constraint, the energy purchase constraint and the node water temperature constraint.

(72) Specifically, in the collaborative optimization model of EHN and building user, the constraints corresponding to the goal of the lowest heat consumption of building user include: the user strategy constraint and the radiator property constraint.

(73) From the perspective of EHN, this embodiment further minimizes the operating cost of EHN while satisfying the heat load:

(74) The objective function (the economic cost of EHN is composed of the cost of the electricity purchased from the superior Electric Network and the cost of natural gas purchased from the Natural Gas Pipeline Network) is:
F(t)=min.sub.t(C.sub.e,tP.sub.e+C.sub.g,t+P.sub.g)(23); Wherein C.sub.e,t and C.sub.g,t represent the price of electricity and natural gas at time t, P.sub.e and P.sub.g represent the purchase (kW) of electricity and natural gas of EHN per hour.

(75) The constraints (for any time t, there are the following constraints):

(76) Electricity balance:

(77) 0 P e + P chp = P h p + P load ( 24 ) P chp = e P g ;

(78) Heat balance:

(79) H c h p + H h p = H load ( 25 ) H c h p = h P g H h p = h p P h p ;

(80) The restriction of energy purchase:
0P.sub.hpP.sub.hp.sup.max(26);
0P.sub.eP.sub.hp.sup.max
0P.sub.gP.sub.chp.sup.max/.sub.e(27);
P.sub.chpP.sub.load(28);

(81) The restriction of the node water temperature:
T.sub.s.sup.minT.sub.s,iT.sub.s.sup.max(29);
T.sub.r.sup.minT.sub.r,iT.sub.r.sup.max(30);

(82) In the equation, T.sub.s.sup.min is the minimum value of the node water supply temperature; T.sub.s,i is the node water supply temperature; T.sub.s.sup.max is the maximum value of the node water supply temperature; T.sub.r.sup.min is the minimum value of the node backwater temperature; T.sub.r,i is the node supply water temperature; T.sub.r.sup.max is the maximum value of the node backwater temperature.

(83) From the perspective of user, the heating volume is adjusted through the electric control valve to meet the individual needs of the user and reduce the heat cost of the user:

(84) The objective function (the goal of the heating consumer is to minimize the heating consumption under satisfying the heating temperature demand required by the user):

(85) F ( t ) = min ( .Math. t = I 2 4 Q t l o a d .Math. t ) ; ( 31 )

(86) Q.sub.t.sup.load represents the heat load of heating consumer; in this embodiment, the scheduling time At is 1h, assuming that the heat price sold by EHN is unchanged.

(87) The constraints include:

(88) The user strategy constraint:
T.sub.t.sup.r=T.sub.t.sup.adj,t(35);

(89) In the equation, T.sub.t.sup.r represents the indoor temperature at time t, T.sub.t.sup.adj represents the indoor temperature of adjacent room at time t.

(90) The radiator property constraint
0G.sub.21(36);
T.sub.minT.sub.h2T.sub.h2s(37);

(91) In the equation, T.sub.min represents the minimum temperature of the secondary side backwater temperature of the radiator;

(92) In the above Equation, the subscript t represents the variable at time t, and the subscript t+1 represents the variable at time t+1. Therefore, when setting the constraint of the optimization problem, it is necessary to set the initial condition and then iterate to obtain the 24-hour constraint.

(93) In order to illustrate the application of the invention in the actual business scenario such as the EHN and the optimal management of building user in the park, this embodiment provides a test example that uses the present invention. The test example is shown in FIG. 3, wherein H1 is the heat source node, nodes H2 and H3 have backwater mixing, nodes H4, H5 and H6 have heat and electricity loads, and a heat exchanger is installed at the load node. The Roman numerals I to V indicate the pipeline numbers of the Heat Pipeline Network. The pipeline I connects the heat source, and the pipelines IV and V have loads.

(94) The remaining parameters of the building and EHN are shown in Table 1 to Table 8.

(95) TABLE-US-00001 TABLE 1 Operating parameters of CHP unit. Maximum Maximum Heat Electricity heat electricity production production capacity capacity efficiency efficiency Rated H.sub.chp.sup.max p.sub.chp.sup.max .sub.h .sub.e power 8 MW 6 MW 0.4 0.3 20 MW

(96) TABLE-US-00002 TABLE 2 Operating parameters of four heat pump units. Maximum heat Single Efficiency of capacity rated heat pump H.sub.hp.sup.max power .sub.hp 6.08 MW 380 kW 4

(97) TABLE-US-00003 TABLE 3 Parameters of Heat Pipeline Network. The The labels of the The first The last Length Diameter Flow heat transfer pipelines node node (m) (m) Roughness (kg/h) coefficient I 1 2 1000 0.8 0.0005 55.059524 0.12 II 2 3 1000 0.8 0.0005 33.041667 0.12 III 3 4 1000 0.8 0.0005 14.684524 0.12 IV 2 5 800 0.8 0.0005 22.02381 0.12 V 3 6 800 0.8 0.0005 18.357143 0.12

(98) TABLE-US-00004 TABLE 4 Node parameters of the Heat Network. Minimum Maximum Minimum Maximum Node water supply water supply backwater backwater parameters temperature temperature temperature temperature Values 70 C. 100 C. 40 C. 60 C.

(99) TABLE-US-00005 TABLE 5 Connected load number of EHN nodes. EHN nodes E1, H5 E2, H6 E2, H4 Number of connected 12 10 8 buildings

(100) TABLE-US-00006 TABLE 6 Thermal resistance parameters of building R-C model Thermal Thermal Thermal Thermal Thermal resistance resistance resistance resistance resistance of Wall 1 of Wall 2 of Wall 3 of Wall 4 of window R.sub.1.sup.w R.sub.2.sup.w R.sub.3.sup.w R.sub.4.sup.w R.sup.win (K/W) (K/W) (K/W) (K/W) (K/W) 0.06 0.08 0.06 0.06 0.02

(101) TABLE-US-00007 TABLE 7 Heat capacity parameters of building R-C model. Heat Heat Heat Heat Heat capacity capacity capacity capacity capacity of Wall 1 of Wall 2 of Wall 3 of Wall 4 of room C.sub.1.sup.w C.sub.2.sup.w C.sub.3.sup.w C.sub.4.sup.w C.sup.r (J/K) (J/K) (J/K ) (J/K) (J/K) 79000 2600000 79000 79000 25000

(102) TABLE-US-00008 TABLE 8 Other parameters of the building. Surface of the Surface of the Surface area of The set target window wall the radiator temperature A.sup.win(m.sup.2) A.sup.wall(m.sup.2) K(m.sup.2) T.sub.adj( C.) 4 24 10 22

(103) The environmental parameters are shown in FIG. 4, the light intensity changes on the east and west sides of the building in a typical day are consistent. Therefore, the indicator lines on the east and west sides are used in FIG. 4 to describe the light intensity changes in the east and west directions.

(104) From the perspective of EHN, when meeting the heat load and further minimizing the operating cost of EHN, the optimization result show that:

(105) From FIG. 5 and FIG. 6, when the electricity price is high, the purchase of electricity of EHN is significantly reduced, and no electricity is purchased during the peak period of electricity price, and the corresponding purchase of gas is significantly increased. Due to the high heat load at night and the low relative electricity price, the use of high-efficiency heat pump as the main heat source can not only save cost, but also consume the excess electricity produced by the CHP unit.

(106) Most of the electricity purchased and produced is used for the user's electricity load consumption, and a small part drives the heat pump to produce heat. Due to the high day-to-day electricity price and the constant natural gas price, most of the electricity consumption comes from the electricity produced by CHP unit rather than from direct purchase. Thanks to the high efficiency of the heat pump, the electricity consumed by the heat pump is very small compared with the whole. During the nighttime when the electricity price is reduced, the electricity consumption of the heat pump increases significantly, EHN will tend to use the heat pump as the main source of heat production at night.

(107) It can be seen from FIG. 7 that in the low electricity price stage, the capacity of the heat pump accounts for more than half of the total. In the peak stage of the electricity price, the capacity of the heat pump is significantly lower than that of the CHP unit. EHN will tend to choose to use relatively cheap natural gas to generate heat through the CHP unit. The period when the heat pump capacity decreases is also the day when the user's heat load is low, but in general, the heat capacity distribution is less affected by the user's heat load.

(108) When the EHN operator's minimum cost of purchasing electricity and natural gas is the optimal goal, the total scheduling cost of the energy station operator is shown in Table 9.

(109) TABLE-US-00009 TABLE 9 Optimal scheduling total cost. Total scheduling cost EHN equipment (/day) 1 CHP and 4 heat pumps 63645.9

(110) From the perspective of user, the heating volume is adjusted by the electric control valve to meet the individual needs of the user and reduce the heat cost of the user. The optimization results of Scenario I with fixed room temperature and Scenario II with unfixed room temperature show that:

(111) In Scenario I, considering the needs of a single user's room, it is set to keep the indoor temperature constant at 22 C. The relative flow of the radiator is shown in FIG. 8, in the daytime, the temperature difference between indoor and outdoor is lower than that at night, and the relative flow of the radiator is significantly reduced. At night, the temperature difference between indoor and outdoor is large, and a large amount of heating is required, and the relative flow rate of the radiator is obviously increased. In the period ear night, due to the heat in the daytime, the light outside the building decreases slowly, it can be seen that the slope of the relative flow growth of the radiator is significantly lower than the slope of the morning period.

(112) In Scenario II, the user closes the indoor constant temperature setting of the radiator during the day from 9:00 to 17:00. During the period of closing the constant temperature control, the indoor temperature drops to 15.9 C. at 11:00. The relative flow of the radiator is shown in FIG. 9, Scenario II can reduce the relative flow of the radiator to 0 when there is no heating demand during the day, that is, the radiator is in a completely non-working state. In particular, due to the upper limit of the radiator's radiation power, in order to restore a constant room temperature of 22 C.s after 17:00, the radiator needs to work at full load for more than 6 hours during the daytime without heating.

(113) Comparing the total heat consumption of the user's room in a day under different scenarios, that is, the sum of the heat supply of the four radiators, the results are shown in Table 10. The heat consumption generated by the user's manual adjustment is lower than the constant temperature without adjustment. It can be inferred that if the user actively adjusts the temperature more frequently, the heat consumption can be further reduced.

(114) TABLE-US-00010 TABLE 10 Heat consumption of user under different heating strategies. Total heat consumption of user Heating strategy (kWh/day) Scenario I 138.79 Scenario II 126.6061

(115) From the above optimization results, it can be seen that from the perspective of EHN and building user, while meeting the heat load, the operation cost of EHN and the heat cost of building user are further reduced to the maximum extent.

(116) FIG. 10 is a block diagram of a collaborative optimization method for EHN and building user in this patent. As shown in FIG. 10, this patent provides a collaborative optimization method for EHN and building user, including: The establishing unit 10, which is used to establish the coordinated optimization scheduling framework of EHN and building in the park; The first construction unit 20, which is used to construct the optimal thermal power flow scheduling model of the EHN and construct the building model to simulate thermal characteristics and energy consumption of the building based on the coordinated optimization scheduling framework; The second construction unit 30, which is used to construct the collaborative optimization model of EHN based on the optimal thermal power flow scheduling model and the building model, and taking the lowest operation cost of EHN and the lowest heat consumption of building user as the goal; The outputting unit 40, which is used to output the collaborative optimization scheme of the optimal thermal power flow scheduling of the EHN and the heat consumption of the building user through the collaborative optimization model of EHN and building user; Specifically, the optimal thermal power flow scheduling model includes the hydraulic model, the thermal model, the heat exchanger model, the radiator model, and the capacity and energy conversion equipment model.

(117) The constraints of the hydraulic model include the node net flow constraint and the head loss constraint.

(118) The constraints of the thermal model include the node flow conservation constraint, the pipeline heat dissipation constraint, and the energy conservation constraint of heat source and load.

(119) The constraints of the heat exchanger model include the heat balance constraint of the heat exchanger; The constraints of the radiator model include the heat constraint released by the radiator; The constraints of the capacity and energy conversion equipment model include energy conversion constraints of the CHP unit and the heat pump.

(120) Specifically, the constraints of the building model include the heat balance constraint of the wall in the heating zone of the building and the heat balance constraint of the indoor air in the heating zone of the building.

(121) Specifically, in the collaborative optimization model of EHN and building user, the constraints corresponding to the goal of the lowest operating cost of EHN include: the electricity balance constraint, the heat balance constraint, the energy purchase constraint and the node water temperature constraint.

(122) Specifically, in the collaborative optimization model of EHN and building user, the constraints corresponding to the goal of the lowest heat consumption of building user include: the user strategy constraint and the radiator property constraint.

(123) FIG. 11 is a structural diagram of the collaborative optimization method and equipment for EHN and building user. As shown in FIG. 11, corresponding to the collaborative optimization method for EHN and building user provided above, the invention also provides a collaborative optimization equipment for EHN and building user. Since the embodiment of the equipment is similar to the embodiment of the above method, the description is relatively simple, for similar parts, please refer to the instruction in the above embodiment of the method, the equipment described below is only schematic. The equipment can include: processor 1, memory 2 and communication bus (i.e., the bus of the above equipment) and search engine, wherein processor 1 and memory 2 communicate with each other through the communication bus, and they communicate with the outside through the communication interface. Processor 1 can call the logic instruction in memory 2 to perform the collaborative optimization method for EHN and building user.

(124) In addition, the logic instruction in the above memory 2 can be stored in a computer-readable storage medium when it can be implemented in the form of software functional unit and sold or used as an independent product. Based on this understanding, essentially, the technical scheme of the invention or the part that contributes to the existing technology or the part of the technical scheme can be reflected in the form of a software product, and this computer software product is stored in a storage medium, including a number of instructions to enable a computer device (can be a personal computer, server, or network device, etc.) to perform all or part of the steps of each embodiment method of the invention. The aforementioned storage media include: memory chip, U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

(125) On the other hand, the embodiment of the invention also provides a processor-readable storage medium, on which a computer program 3 is stored. When the computer program 3 is executed by processor 1, it is implemented to perform the collaborative optimization method for EHN and building user provided by the above embodiments.

(126) The processor-readable storage medium can be available medium or data storage device that processor 1 can access, including magnetic memory (such as floppy disk, hard disk, tape, magneto-optical disk (MO)), optical memory (such as CD, DVD, BD, HVD), and semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state disk (SSD)).

(127) The above is only the preferred implementation method of this patent, the protection scope of this patent is not limited to the above embodiments. All technical solutions belonging to this patent idea belong to the protection scope of this patent. It should be pointed out that for ordinary technical personnel in this technical field, some improvements and modifications without deviating from the principle of this patent should be regarded as the protection scope of this patent.