The disclosure relates to a solution for controlling a heating system, which belongs to the field of operation and control technologies for a combined heat and power system.
There is uncertainty in parameters for modeling and controlling the heating system.
For example, the flow capacity of the pipeline, which also refers to the resistance coefficient, will change due to various factors. It needs to calculate the actual resistance coefficient through an empirical formula during modeling and controlling the heating system because the actual resistance coefficient is often different from the corresponding value given by the manufacturer, for example, the resistance coefficient may change due to variations in various factors such as pipeline operating time, pipeline diameter, pipeline material, heating medium, and inner wall corrosion. This uncertainty poses a challenge to the process of modeling and controlling the heating system.
For another example, the heat dissipation coefficient in modeling and controlling the heating system also employs the empirical value. However, the actual heat dissipation coefficient is affected by the environment, which becomes another important source of uncertainty, and is also not conducive to the process of modeling and controlling the heating system.
According to a first aspect of embodiments of the disclosure, there is provided a method for controlling a heating system. The method includes: establishing an objective function and constraints for estimating system parameters of the heating system, in which the heating system includes nodes, pipelines and equivalent branches, the equivalent branch is configured to represent a heating resource or a heating load in the heating system, the system parameters include a resistance coefficient of each of the pipelines and equivalent branches, and a heat dissipation coefficient of each of the pipelines; solving the objective function based on the constraints to obtain the system parameters; modeling the heating system based on the obtained system parameters to obtain control parameters of the heating system; and controlling the heating system based on the control parameters.
According to a second aspect of embodiments of the disclosure, there is provided an apparatus for controlling a heating system. The apparatus includes a processor; and a memory for storing instructions executable by the processor. The processor is configured to carry out the above method.
According to a third aspect of embodiments of the disclosure, there is provided a non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a terminal, causes the terminal to perform the above method.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and, together with the description, explain the principles of the disclosure.
The disclosure provides a solution for controlling a heating system, which calculates system parameters of the heating system such as the resistance coefficient of pipelines, heating resources, and heating loads, and the heat dissipation coefficient of the pipelines, and models and further controls the heating system based on the calculated system parameters. The system parameters are calculated in the disclosure by considering dynamic characteristics of the pipelines in the heating system and moving horizon estimation of a continuous dynamic adjustment process of the heating system, which are more accurate for modeling and controlling the heating system.
At block 101, an objective function and constraints for estimating system parameters of the heating system are established, in which the heating system includes nodes, pipelines and equivalent branches; the equivalent branch is configured to represent a heating resource or a heating load in the heating system; the system parameters include a resistance coefficient of each of the pipelines and equivalent branches; and a heat dissipation coefficient of each of the pipelines.
At block 102, the objective function is solved based on the constraints to obtain the system parameters.
At block 103, the heating system is modeled based on the obtained system parameters to obtain control parameters of the heating system.
At block 104, the heating system is controlled based on the control parameters.
The solution will be described in detail as follows.
(1) Operation data of the heating system may be obtained from a data collection and monitoring center in the heating system. The operation data may range from moment t1 to moment tn, and have an interval of Δt. The operation data may include: a pressure H of each node in the heating system, a flow m of a branch between any two nodes (the branch between any two nodes herein is the pipeline or the equivalent branch), a head end temperature Tf and a tail end temperature Tt of the branch between any two nodes, and a thermal power ϕq of a connecting branch (the connecting branch herein is the equivalent branch), in which a heating source and a heating load in the heating system each is equivalent to the connecting branch, and the superscript q represents the connecting branch, and the superscript p represents hereafter the pipeline.
The interval of Δt is preset, which is an integer multiple of the sampling interval.
The operation data forms the column vector zh of observed values of n moments.
(2) The discrete difference form of internal temperature states of each pipeline in the heating system is established.
For the pipelines numbered as b=1, 2, 3, . . . , Y in the heating system, each pipeline is divided into Zb segments based on a volume of length Δx. The internal state points in each pipeline are numbered as i=0, 1, 2, 3, . . . , Zb. To ensure the stability of the discrete difference form, the value of Δx needs to satisfy a Courant-Friedrichs-Lewy condition, namely:
where,
r represents a grid ratio of the discrete difference form,
mp(t) represents a flow through the pipeline at moment t,
ρ represents a density of a heating medium, which is obtained from a fluid physical parameter table,
S represents a cross sectional area of the branch in the heating system, which is obtained from the corresponding pipeline manual.
(3) The parameters may be estimated under constant flow control using the moving horizon estimation method.
(3-1) The state variables from moment t1 to moment tn may be divided into s time windows, in which each time window includes state information of I moments, i.e., I=n/s.
(3-2) For moment t in any time window, all the variables to be estimated in the heating system form a column vector xh(t), and the column vector xh(t) includes a state column vector xstate(t) and a parameter column vector xpara. The state column vector xstate(t) includes a flow m(t) of each of the pipelines and equivalent branches in the heating system, a pressure H(t) of each node in the heating system, and temperatures Tib(t), i=0, 1, 2, . . . , Zb of each of the pipelines in the heating system. The parameter column vector xpara includes a resistance coefficient K(t) of each of the pipelines and equivalent branches, and a heat dissipation coefficient λp of each pipeline, in which the superscript p represents the branch including a water supply branch and a water return branch.
(3-3) A measurement function ƒ (x) is established for describing the relationship between state variables, parameter variables and the corresponding observed values.
ƒ (x)=ƒ (xh(t)), ƒ (xh(t)) is a load flow equation of the heating system.
The load flow equation of the heating system may include a branch pressure loss equation and a branch thermal power equation:
A
T
H(t)=ΔH(t)−Hp(t),
ϕq(t)=Cpmq(t)(Tƒq(t)−Ttq(t)),
where,
AT represents a transposition of a node-branch association matrix A,
ΔH (t) represents a column vector formed by a pressure loss of each of the pipelines and equivalent branches in the heating system at moment t, in which ΔH (t)=K·m(t)·|m(t)|, and K represents a column vector formed by a resistance coefficient of each of the pipelines and equivalent branches in the heating system,
Hp(t) represents a column vector formed by a pump head of each of the pipelines and equivalent branches in the heating system at moment t, in which Hp(t)=a(mp(t))2+bmp(t)+c, a, b, and c are pump parameters and obtained from the product nameplate, mp(t) represents a flow of the branch where the pump is located,
ϕq(t) represents the thermal power of the connecting branch at moment t, in which the superscript q represents the connecting branch, the thermal power of the heating source is positive, and the thermal power of the heating load is positive,
Cp represents a specific heat capacity of the heating medium, which is obtained from the fluid physical parameter table,
mq(t) represents a flow of the connecting branch at moment t,
Tƒq(t) represents a head end temperature of the connecting branch at moment t, and
Ttq(t) represents a tail end temperature of the connecting branch at moment t.
(4) An objective function for estimating steady-state parameters of the heating system may be established based on operating data obtained at (1) as follows:
where,
W represents a covariance matrix of the observed values,
the superscript T represents a matrix transposition,
J(xh(t)) represents an expression of the objective function,
D represents a time window, and
I represents a size of the time window.
(5) Constraints under constant flow control of the heating system may be established, which are denoted as c(xh(t)).
The constraints may include the following.
(5-1) A flow continuity constraint for all nodes in the heating system may be expressed in the following matrix form:
AM(t)=0
where,
M(t) represents a column vector formed by the flow of all pipelines and equivalent branches,
the water supply branch and the water return branch are uniformly equivalent to the ordinary branch denoted by the superscript p,
the connecting branch is equivalent to the special branch denoted by the superscript q,
M(t) is denoted as:
where,
Mp(t) represents a column sub vector formed by the flow of all ordinary branch at moment t,
Mq(t) represents a column sub vector formed by the flow of all special branch at moment t.
(5-2) A temperature mixing constraint for all nodes in the heating system may be expressed in the following formula of:
(Σmout(t))Tn(t)=Σ(min(t)Tin(t))
where,
mout(t) represents a flow of the branch where the heating medium flows out of a corresponding node at moment t,
min(t) represents a flow of the branch where the heating medium flows into the corresponding node at moment t,
Tn(t) represents a temperature of the heating medium of different branches after mixing at the corresponding node at moment t,
Tin(t) represents a temperature of the heating medium of different branches before mixing at the corresponding node at moment t,
The tail end temperatures Tout(t) of different branches may replace the Tin(t). Therefore, the temperature mixing constraint for all nodes in the heating system may be expressed by the following matrix form:
diag(AƒM(t))Tn(t)=At diag(M(t))Tout(t)
where,
Aƒ represents a positive node-branch association matrix,
At represents a negative node-branch association matrix,
diag(.) represents a diagonal, namely:
N represents the number of the nodes in the heating system,
B represents the number of the pipelines and equivalent branches in the heating system.
(5-3) A temperature transfer relationship constraint for the temperature state variables inside the pipeline may be expressed in the following formula of:
where,
Ti+1b(t) represents a temperature of a pipeline numbered as b at a state point i at moment t+1,
Ta represents an ambient temperature,
Tib(t) represents a temperature of a pipeline numbered as b at a state point i at moment t,
T0b(t) represents a temperature of a pipeline numbered as b at a head end at moment t,
TZ
l represents a length of the branch in the heating system,
λ represents a heat dissipation coefficient of the ordinary branch, i.e., the pipeline in the heating system, which is the quantity to be estimated.
At the same time, for the first time window, a value of t may include t2, t3, . . . , t1. For a subsequent nth time window, a value of t may include t1+nI, t2+nI, t3+nI, . . . , t1+nI.
(6) Any one of a trust region reflective algorithm, an active set algorithm, an interior point method or a sequence quadratic programming algorithm (SQP) may be employed to solve the optimization problem including the objective function of the above (4) and the constraints at the above (5) under the maximum number of iterations and the given iteration accuracy.
The fmincon function can choose four optimization algorithms to solve the problem, and xpara is a estimated result of the parameters of the heating system within a time window.
(7) s time windows may traverse and actions at (4)-(6) are repeated. Then for a continuous quality adjustment operation process, a set of s estimated results may be obtained, i.e., xpara,1, xpara,2, . . . , xpara,s.
The average of the set of s estimated results may be obtained to obtain the final estimation result, namely:
The method in the disclosure has the following advantages.
The method is based on the principle of rolling time domain estimation, and establishes a method for estimating the dynamic system parameters of the heating system, which comprehensively considers the resistance coefficient (pipe inner wall roughness) in hydraulic conditions and the heat dissipation coefficient in thermal conditions. The dynamic transfer process is modeled, taking into account the delay effect in the heating system. The method may obtain more accurate parameters. Furthermore, the method can also accurately describe the temperature distribution of pipelines in the heating system, which is impossible for steady state parameter estimation and steady state estimation.
As illustrated in
The memory 202 is a non-transitory computer-readable storage medium according to the disclosure. The memory stores instructions executable by at least one processor, so that the at least one processor executes the above method. The non-transitory computer-readable storage medium of the disclosure stores computer instructions that are configured to cause a computer to execute the method (the method as illustrated in
As the non-transitory computer-readable storage medium, the memory 202 is configured to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions/modules corresponding to the above method. The processor 201 executes various functional applications and data processing of the computer by running non-transitory software programs, instructions, and modules stored in the memory 202, that is, implementing the above method in the foregoing embodiment of
The memory 202 may include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function. The storage data area may store data created according to the use of the computer, and the like. In addition, the memory 202 may include a high-speed random-access memory, and a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 202 may optionally include a memory remotely disposed with respect to the processor 201, and these remote memories may be connected to the computer through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
The computer may further include an input device 203 and an output device 204. The processor 201, the memory 202, the input device 203, and the output device 204 may be connected through a bus or in other manners. In
The input device 203 may receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the computer, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, an indication rod, one or more mouse buttons, trackballs, joysticks and other input devices. The output device 204 may include a display device, an auxiliary lighting device (for example, an LED), a haptic feedback device (for example, a vibration motor), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
Various embodiments of the systems and technologies described herein may be implemented in digital electronic circuit systems, integrated circuit systems, application specific integrated circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may be implemented in one or more computer programs, which may be executed and/or interpreted on a programmable system including at least one programmable processor. The programmable processor may be dedicated or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
These computing programs (also known as programs, software, software applications, or code) include machine instructions of a programmable processor and may utilize high-level processes and/or object-oriented programming languages, and/or assembly/machine languages to implement these calculation procedures. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and/or device used to provide machine instructions and/or data to a programmable processor (for example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and/or data to a programmable processor.
In order to provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (e.g., a Cathode Ray Tube (CRT) or a Liquid Crystal Display (LCD) monitor for displaying information to a user); and a keyboard and pointing device (such as a mouse or trackball) through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user. For example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or haptic feedback), and the input from the user may be received in any form (including acoustic input, voice input, or tactile input).
The systems and technologies described herein can be implemented in a computing system that includes background components (for example, a data server), or a computing system that includes middleware components (for example, an application server), or a computing system that includes front-end components (For example, a user computer with a graphical user interface or a web browser, through which the user can interact with the implementation of the systems and technologies described herein), or include such background components, intermediate computing components, or any combination of front-end components. The components of the system may be interconnected by any form or medium of digital data communication (egg, a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, which is no limited herein.
The foregoing specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations, and substitutions may be made according to design requirements and other factors. Any modification, equivalent replacement and improvement made within the spirit and principle of this disclosure shall be included in the protection scope of this disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201810805229.0 | Jul 2018 | CN | national |
This application is a continuation of International Application No. PCT/CN2018/112619 filed on Oct. 30, 2018, which claims priority to Chinese Patent Application No. 201810805229.0 filed on Jul. 20, 2018, the entire contents of which are incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/112619 | Oct 2018 | US |
Child | 17152041 | US |