Method for operating a heat pump based on the thermal inertia of a building, heat pump and storage medium
By identifying the status of the heat pump terminal and building information, updating and verifying thermal characteristic parameters, and generating target thermal characteristic parameters for the model predictive controller, the problem of low control accuracy of existing heat pumps is solved, and efficient energy-saving control of heat pumps in complex scenarios is realized.
Patent Information
- Application Number
- CN202611515833.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing heat pump control methods rely on the accuracy of building thermal dynamic models, resulting in low control precision and easy energy waste.
By identifying the on/off state of the heat pump terminal, the original thermal characteristic parameters of the building are initialized, updated and verified, confidence levels are calculated, and target thermal characteristic parameters of the model predictive controller are generated, thereby improving the control accuracy of the heat pump.
It significantly improves the control accuracy of heat pumps in complex usage scenarios and enhances energy-saving performance.
Smart Images

Figure CN123174601A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of heat pumps, and in particular relates to a heat pump operation control method based on building thermal inertia, a heat pump, and a storage medium. Background Technology
[0002] Air source and ground source heat pumps are mainly used for building heating, and their control generally adopts model predictive controller (MPC). MPC largely depends on the accuracy of the building's thermal dynamic model.
[0003] Currently, during the operation of MPC, data such as indoor and outdoor temperatures and water supply temperatures are periodically collected, equivalent thermal characteristic parameters are identified online, and the thermal dynamic model of the building is covered. Control commands are then generated and rolled out according to a fixed prediction time domain.
[0004] However, using a set of thermal characteristic parameters to describe the thermal dynamics of a building results in a limited number of fitting operating conditions, causing the MPC to often deviate from the building's thermal inertia. This leads to lower control accuracy of the heat pump and a tendency to waste energy. Summary of the Invention
[0005] In view of this, the present invention provides a heat pump operation control method, a heat pump and a storage medium based on building thermal inertia, in order to improve the accuracy of fitting thermal characteristic parameters, improve the compatibility between MPC and building thermal inertia, and thus improve the control accuracy of the heat pump.
[0006] A first aspect of the present invention provides a heat pump operation control method based on building thermal inertia, wherein the heat pump deployed in the building is configured with multiple operating modes, each of which is configured with original thermal characteristic parameters, and the method includes: The operating mode of the heat pump application is identified based on the on / off state of the terminal in the heat pump, and used as the target mode; Initialize the original thermal characteristic parameters of the target mode based on the building information of the building; If initialization is completed, when the heat pump meets the preset update conditions, the original thermal characteristic parameters of the target mode are updated according to the temperature distribution information of the building and the heating capacity of the heat pump. If the update is completed, verify the physical validity of the original thermal characteristic parameters of the target mode; If the verification is successful, the confidence level is calculated for the original thermal characteristic parameters of the target mode based on the historical fluctuation data of the target mode. Based on the confidence level, the target thermal characteristic parameters of the model predictive controller are generated using the original thermal characteristic parameters of the target mode; The target thermal characteristic parameters are injected into the model predictive controller to perform control operations on the heat pump.
[0007] A second aspect of the present invention provides a heat pump operation control device based on building thermal inertia, wherein the heat pump deployed in the building is configured with multiple operating modes, each of which is configured with original thermal characteristic parameters, and the device includes: The operation mode recognition module is used to identify the operation mode of the heat pump application based on the on / off state of the terminal in the heat pump, and to select the target mode. A thermal characteristic parameter initialization module is used to initialize the original thermal characteristic parameters of the target mode based on the building information of the building. The thermal characteristic parameter update module is used to update the original thermal characteristic parameters of the target mode according to the temperature distribution information of the building and the heating capacity of the heat pump when the heat pump meets the preset update conditions after initialization is completed. The thermal characteristic parameter verification module is used to verify the physical validity of the original thermal characteristic parameters of the target mode if the update is completed. The confidence calculation module is used to calculate the confidence level of the original thermal characteristic parameters of the target mode based on the historical fluctuation data of the target mode if the verification is successful. A thermal characteristic parameter equivalent module is used to generate target thermal characteristic parameters of the model predictive controller based on the original thermal characteristic parameters of the target mode using the confidence level. The model predictive control module is used to inject the target thermal characteristic parameters into the model predictive controller to perform control operations on the heat pump.
[0008] A third aspect of the present invention provides a heat pump including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the heat pump operation control method based on building thermal inertia as described in the first aspect above.
[0009] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the heat pump operation control method based on building thermal inertia as described in the first aspect above.
[0010] The fifth aspect of the present invention provides a computer program product that, when run on a computer, causes the computer to execute the heat pump operation control method based on building thermal inertia as described in the first aspect above.
[0011] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: In this embodiment, the operating mode of the heat pump application is identified based on the on / off state of the terminal in the heat pump, which is then designated as the target mode. The original thermal characteristic parameters of the target mode are initialized based on the building information. If initialization is complete, the original thermal characteristic parameters of the target mode are updated based on the building's temperature distribution information and the heat pump's heating capacity when the heat pump meets preset update conditions. If the update is complete, the physical validity of the original thermal characteristic parameters of the target mode is verified. If the verification is successful, the confidence level of the original thermal characteristic parameters of the target mode is calculated based on historical fluctuation data. The target thermal characteristic parameters of the model predictive controller are generated using the original thermal characteristic parameters of the target mode based on the confidence level. The target thermal characteristic parameters are then injected into the model predictive controller to perform control operations on the heat pump. This embodiment significantly improves the control accuracy of the heat pump in complex usage scenarios by independently learning thermal characteristic parameters across multiple operating modes and performing knowledge transfer across operating modes, thereby improving the energy-saving effect of the heat pump. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of a heat pump operation control method based on building thermal inertia provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a heat pump operation control device based on building thermal inertia provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a heat pump provided in an embodiment of the present invention. Detailed Implementation
[0014] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the present invention. However, those skilled in the art will recognize that the present application may be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted to avoid unnecessary detail that could obscure the description of the present application.
[0015] The technical solution of the present invention will be illustrated below through specific embodiments.
[0016] Reference Figure 1 The diagram illustrates a heat pump operation control method based on building thermal inertia provided by an embodiment of the present invention, which may specifically include the following steps: Step 101: Identify the operating mode of the heat pump application based on the on / off status of the terminal in the heat pump, and use it as the target mode.
[0017] In practice, heat pumps deployed in buildings are configured with multiple operating modes, such as away mode, home mode, sleep mode, and so on.
[0018] Specifically, for the "Away from Home" mode, the heat pump terminals can be set to turn off completely during the daytime work hours (to prevent freezing). For the "Home" mode, the heat pump terminals located in the living room, kitchen, bathroom, and other spaces can be set to turn on during the evening to bedtime hours. For the "Sleep" mode, the heat pump terminals located in the bedroom and other spaces can be set to turn on during the nighttime sleep hours.
[0019] Each operating mode is configured with original thermal characteristic parameters, which include the original equivalent thermal resistance R and the original equivalent heat capacity C.
[0020] In a heat pump, the supply and return water routes of each terminal (such as fan coil units, underfloor heating branches, etc.) are controlled by switch valves. When the terminal switch combination changes, the effective heating area and the mass of the heat storage building change accordingly. The equivalent thermal resistance and equivalent heat capacity of the building change by several orders of magnitude, and the equivalent time constant (thermal inertia) is no longer a constant, affecting the control accuracy and energy-saving effect.
[0021] In this embodiment, the operating mode of the heat pump application is identified based on the on / off status of each terminal in the heat pump, and is denoted as the target mode.
[0022] In the specific implementation, the state vector S(k)=[s1,s2,...,sj,...,sn] is constructed using the on / off states of each terminal in the heat pump. Here, S(k) is the state vector constructed at time k, j∈[1,n], n is the number of terminals in the heat pump, and sj∈{0,1} represents the on / off state of the j-th terminal, where 1 represents on and 0 represents off.
[0023] Map the state vector to the operating mode Mi=f(S(k)), where Mi is the i-th operating mode and f is the mapping function.
[0024] When the switching state of the terminal changes, the stabilization timer tstable=0 is reset. If the switching state of the terminal remains unchanged and the duration of the state vector tstable exceeds the preset stabilization time threshold Tstable, the heat pump is determined to enter the operation mode Mi as the target mode.
[0025] Step 102: Initialize the original thermal characteristic parameters of the target mode based on the building information.
[0026] When a cold start occurs or a new operating mode emerges, the building's architectural information is used as prior knowledge to initialize the original thermal characteristic parameters of the target mode.
[0027] In practical implementation, the building information includes the total area, and the original thermal characteristic parameters of the target model include the original equivalent thermal resistance and the original equivalent heat capacity.
[0028] Obtain the effective heating area corresponding to the target mode, and determine the total thermal resistance and total heat capacity of the building based on the building information through methods such as table lookup.
[0029] The building information includes the building type (such as brick-concrete, frame, wood structure, etc.) and the insulation level (such as low, medium, high, etc.).
[0030] For example, if the building type is brick-concrete and the insulation level is high, the total thermal resistance of the building is 0.05 K / W and the total heat capacity of the building is 2000 kJ / K. If the building type is brick-concrete and the insulation level is medium, the total thermal resistance of the building is 0.08 K / W and the total heat capacity of the building is 1800 kJ / K. If the building type is frame and the insulation level is high, the total thermal resistance of the building is 0.04 K / W and the total heat capacity of the building is 1500 kJ / K. If the building type is wood structure and the insulation level is high, the total thermal resistance of the building is 0.03 K / W and the total heat capacity of the building is 800 kJ / K.
[0031] On the one hand, the ratio between the total area and the effective heating area is multiplied by a preset mixing correction coefficient as the first correction coefficient, and the product between the total thermal resistance and the first correction coefficient is calculated as the initial original equivalent heat capacity of the target mode.
[0032] On the other hand, the ratio between the effective heating area and the total area is calculated as the second correction coefficient, and the product between the total heat capacity and the second correction coefficient is calculated as the initial equivalent heat capacity of the target mode.
[0033] Therefore, the initial equivalent heat capacity of the target mode can be expressed as: Ri0 = Rtotal × (Atotal / Ai) × kmix; the initial equivalent heat capacity of the target mode can be expressed as: Ci0 = Ctotal × (Ai / Atotal); where Ri0 is the initial equivalent heat capacity of the target mode, Ci0 is the initial equivalent heat capacity of the target mode, Rtotal is the total thermal resistance of the building, Ctotal is the total heat capacity of the building, Atotal is the total area of the building, Ai is the effective heating area corresponding to the target mode, and kmix is the mixing correction coefficient, which is usually in the range of 1.0~1.5, preferably 1.2, and is used to compensate for the nonlinearity caused by the throttling effect of water pumps and valves under partial load.
[0034] Taking the home mode as an example, assuming Atotal = 100m 2 Ai=60m 2If kmix = 1.2, then Ri0 = 0.05 × (100 / 60) × 1.2 = 0.10 K / W, Ci0 = 2000 × (60 / 100) = 1200 kJ / K.
[0035] Step 103: If initialization is completed, when the heat pump meets the preset update conditions, update the original thermal characteristic parameters of the target mode according to the temperature distribution information of the building and the heating capacity of the heat pump.
[0036] When the initial thermal characteristic parameters of the target mode are completed, the initial thermal characteristic parameters of the target mode can be used to generate the target thermal characteristic parameters of the model predictive controller (MPC). At the same time, the operating status of the heat pump can be monitored to see if it meets the preset update conditions.
[0037] For example, the update conditions include: The temperature difference value of the building is greater than the preset temperature threshold (e.g., 3℃), where the temperature difference value is the absolute value of the difference between the temperature inside the building and the temperature outside the building.
[0038] The heat pump compressor has been running for a period of time (e.g., 1 hour) that is greater than a preset threshold (e.g., 30%).
[0039] The sensors in the heat pump did not generate any fault alarms.
[0040] The data sampling interval deviation of the sensor in the heat pump is less than the preset deviation threshold (e.g., 5%, that is, the actual sampling interval is in the range of 9.5~10.5 minutes).
[0041] The heat pump is not activated (defrosting process indicator).
[0042] The duration of the target pattern exceeds the preset stable time threshold.
[0043] When the heat pump meets the preset update conditions, the original thermal characteristic parameters of the target mode are updated based on the temperature distribution information of the building and the heating capacity of the heat pump.
[0044] In the specific implementation, each operating mode is configured with a covariance matrix, so a first-order RC thermal circuit model can be constructed for the building and the heat pump.
[0045] The first-order RC thermal circuit model is represented as: Tin k =θ1×Tin k-1 +θ2×Tout k-1 +θ3×Qhp k-1 +θ4 Among them, Tin k Let Tin be the temperature inside the building at time k. k-1Let Tout be the temperature inside the building at time k-1. k-1 Let Qhp be the temperature outside the building at time k-1. k-1 For the heating capacity of the heat pump, θ1, θ2, θ3 and θ4 are parameters to be learned.
[0046] The parameters in the thermal circuit model are updated using the covariance matrix of the target mode based on the least squares method.
[0047] Taking Recursive Least Squares with Forgetting Factor (RLS-FF) as an example, let the forgetting factor λ∈[0.98,0.995], the update process is expressed as: ε k =Tin k -φ T k ×θ k-1 L k =P k-1 ×φ k / (λ+φ T k ×P k-1 ×φ k ) θ k =θ k-1 +L k ×ε k P k =[IL k ×φ T k ]×P k-1 / λ Where, φ k =[Tin k-1 Tout k-1 ,Qhp k-1 ,1] T Let φ represent the regression vector at time k. T k θ is the transpose of the regression vector. k =[θ1,θ2,θ3,θ4] T Let θ represent the parameter vector at time k. k-1 Let ε be the parameter vector at time k-1. k Let P be the prediction residual at time k. k Let P be the covariance matrix of the target mode at time k. k-1 Let L be the covariance matrix of the target mode at time k-1. k Let I be the gain vector and I be the identity matrix.
[0048] If the update is completed, the parameters in the thermal circuit model are used to solve for the original equivalent thermal resistance and original equivalent heat capacity of the target mode.
[0049] The solution is expressed as: τ=-Ts / ln(θ1), R=θ2 / [θ3×1000×(1-θ1)], C=τ / R, where Ts is the sampling period, R is the original equivalent thermal resistance of the target mode, and C is the original equivalent heat capacity of the target mode.
[0050] Taking the home mode as an example, let Ts = 600s, λ = 0.99, and the initial parameter vector θ0 = [0.85, 0.15, 0.0001, 0.5]. T The covariance matrix P0 = diag([100,100,100,100]).
[0051] The regression vector φ at a certain time k k =[20.5,5.2,3500,1] T (i.e. Tin) k-1 =20.5℃, Tout k-1 =5.2℃, Qhp k-1 =3500W).
[0052] Actual measurement of Tin k =20.8℃.
[0053] Prediction error: ε k =20.8-[20.5,5.2,3500,1]•[0.85,0.15,0.0001,0.5] T =20.8-20.325=0.475℃ Gain vector L k And parameter updates are calculated according to the standard RLS formula.
[0054] After the update, the time constant τ = -600 / ln(0.86) ≈ 6000 seconds = 100 minutes is solved by θ1, R = 0.09 K / W, C = 1111 kJ / K.
[0055] Step 104: If the update is completed, verify the physical validity of the original thermal characteristic parameters of the target mode.
[0056] When updating the original thermal characteristic parameters of the target mode, a physical constraint check can be performed on the updated original thermal characteristic parameters of the target mode to verify their physical validity.
[0057] For example, it is determined whether the original equivalent thermal resistance of the target mode is within a preset first physical effective range, and whether the original equivalent thermal capacity of the target mode is within a preset second physical effective range.
[0058] The first physically effective range represents the range in which thermal resistance is physically effective, such as (0, ∞), and the second physically effective range represents the range in which heat capacity is physically effective, such as (10 kJ / K, 5000 kJ / K).
[0059] If the original equivalent thermal resistance of the target mode is within the preset first physical effective range and the original equivalent thermal capacity of the target mode is within the preset second physical effective range, then the physical validity of the verification of the original equivalent thermal resistance and original equivalent thermal capacity of the target mode is determined to be successful.
[0060] If the original equivalent thermal resistance of the target mode is located outside the preset first physical effective range, and / or the original equivalent thermal capacity of the target mode is located outside the preset second physical effective range, then the physical validity of the verification of the original equivalent thermal resistance and the original equivalent thermal capacity of the target mode is determined to have failed.
[0061] At this point, the original equivalent heat and original equivalent heat capacity after the target mode update are rolled back to the initial original equivalent heat and original equivalent heat capacity, and an exception flag is set to pause the learning of the target mode.
[0062] In addition, the drift of the sensors is monitored. When the deviation of multiple sensors in the same space in the building is greater than the preset first temperature threshold (e.g., 2℃), or when the deviation from the historical average is greater than the preset first temperature threshold (e.g., 2℃), the learning of all operating modes is paused, an alarm operation is executed, and the system switches to the backup sensor or the default original thermal characteristic parameters.
[0063] Step 105: If the verification is successful, calculate the confidence level of the original thermal characteristic parameters of the target model based on the historical fluctuation data of the target model.
[0064] In this embodiment, when the physical validity of the original thermal characteristic parameters of the target mode is successfully verified, the confidence level can be calculated based on the historical fluctuation data of the target mode for the updated original thermal characteristic parameters of the target mode.
[0065] In the specific implementation, the minimum value between the sample ratio and 1 is taken as the first confidence term; where the sample ratio is the ratio between the number of effective learning samples of the target pattern and the preset minimum convergent sample number.
[0066] Subtract the volatility corresponding to the original equivalent thermal resistance of the target pattern within the past time period (e.g., 24 hours) from 1, and use it as the second confidence term.
[0067] Obtain a verification flag bit as the third confidence term; when the volatility of the original equivalent thermal resistance and the volatility of the original equivalent thermal capacity of the target mode are both less than the preset volatility threshold (e.g., 5%) in the past time period, the flag bit is the first value (e.g., 1); when the volatility of the original equivalent thermal resistance and / or the volatility of the original equivalent thermal capacity of the target mode are not less than the preset volatility threshold (e.g., 5%) in the past time period, the flag bit is the second value (e.g., 0), and the second value is less than the first value.
[0068] By fusing the first, second, and third confidence terms into the confidence level of the original thermal characteristic parameters of the target mode using linear or nonlinear methods, the accuracy of the confidence level can be effectively improved by fusing information from the dimensional fusion.
[0069] Taking linearity as an example, the confidence level of the original thermal characteristic parameters of the target mode can be expressed as: αi=w1·min(Ni / Nmin,1)+w2·(1-ΔRi,avg)+w3·βi Where αi is the confidence level of the original thermal characteristic parameters of the target mode, Ni is the number of effective learning samples of the target mode, Nmin is the minimum convergence sample number, ΔRi,avg is the volatility corresponding to the original equivalent thermal resistance of the target mode in the past time period, βi is the verification flag, w1, w2, w3 are weight coefficients, w1+w2+w3=1, preferably w1=0.3, w2=0.3, w3=0.4.
[0070] Taking the home mode as an example, the home mode has accumulated 80 valid samples, Nmin = 144 minimum convergent samples, and the fluctuation rate of the original equivalent thermal resistance is 8% in the past 24 hours, the fluctuation rate of the original equivalent heat capacity is 6%, and the verification flag βi = 0 (failed).
[0071] In this example, the confidence level αi = 0.3 × min(80 / 144, 1) + 0.3 × (1 - 0.08) + 0.4 × 0 = 0.3 × 0.556 + 0.3 × 0.92 = 0.167 + 0.276 = 0.443.
[0072] Step 106: Generate the target thermal characteristic parameters of the model predictive controller using the original thermal characteristic parameters of the target mode based on the confidence level.
[0073] In this embodiment, different confidence levels can be distinguished, and the target thermal characteristic parameters of the model predictive controller (MPC) can be generated using the original thermal characteristic parameters of the target mode according to different modes.
[0074] The target thermal characteristic parameters of the model predictive controller (MPC) include the target equivalent thermal resistance and the target equivalent heat capacity.
[0075] In the actual implementation, it is determined whether the confidence level is equal to 1.
[0076] If the confidence level is less than 1, the product of the confidence level and the original equivalent thermal resistance of the target mode, and the product of the fusion coefficient and the preset prior value of thermal resistance are added together to obtain the target equivalent thermal resistance of the model predictive controller. In addition, the product of the confidence level and the original equivalent thermal capacity of the target mode, and the product of the fusion coefficient and the preset prior value of thermal capacity are added together to obtain the target equivalent thermal capacity of the model predictive controller. The fusion coefficient is the difference between 1 and the confidence level.
[0077] Therefore, the target equivalent thermal resistance of the model predictive controller (MPC) can be expressed as: RMPC = αi•Ri + (1-αi)•Rpriori, and the target equivalent thermal capacity of the model predictive controller (MPC) can be expressed as: CMPC = αi•Ci + (1-αi)•Cpriori, where RMPC is the target equivalent thermal resistance of the model predictive controller (MPC), CMPC is the target equivalent thermal capacity of the model predictive controller (MPC), αi is the confidence level, Ri is the original equivalent thermal resistance of the target mode, Ci is the original equivalent thermal capacity of the target mode, Rpriori is the prior value of thermal resistance, and Cpriori is the prior value of thermal capacity.
[0078] Taking the home mode as an example, with the reliability αi=0.443, Rpriori=0.10, and Cpriori=1200, then RMPC=0.443×0.09+(1-0.443)×0.10=0.040+0.056=0.096K / W, and CMPC=0.443×1111+(1-0.443)×1200=492+669=1161kJ / K.
[0079] If the confidence level is 1, the original equivalent thermal resistance of the target mode is assigned to the target equivalent thermal resistance of the model predictive controller, and the original equivalent thermal capacity of the target mode is assigned to the target equivalent thermal capacity of the model predictive controller.
[0080] Step 107: Inject the target thermal characteristic parameters into the model predictive controller to perform control operations on the heat pump.
[0081] In this embodiment, the target thermal characteristic parameters can be injected into the model predictive controller (MPC), so that the MPC applies the target thermal characteristic parameters to perform control operations on the heat pump.
[0082] In the specific implementation, the product between the target equivalent thermal resistance R of the model predictive controller (MPC) and the target equivalent thermal capacity C of the model predictive controller is used as the thermal inertia value D, i.e., D = R × C.
[0083] The prediction time domain Np of the model predictive controller is adjusted based on the thermal inertia value D in order to perform control operations on the heat pump.
[0084] Taking the home mode as an example, when the target equivalent thermal resistance is 0.096 K / W and the target equivalent heat capacity is 1161 kJ / K, the thermal inertia value D = 0.096 × 1161 = 111.5 kJ•K / W, which is low inertia. The MPC prediction time domain is set to Np = 6.
[0085] As the home mode continues to learn, the volatility of the original equivalent thermal resistance decreases to 3%, the volatility of the original equivalent thermal capacity decreases to 2%, and the verification flag is 1 (verification passed). The confidence level αi = 0.3×1 + 0.3×0.97 + 0.4×1 = 0.991 ≈ 1.0, marking the learning as complete and locking the parameters.
[0086] In this embodiment, the operating mode of the heat pump application is identified based on the on / off state of the terminal in the heat pump, which is then designated as the target mode. The original thermal characteristic parameters of the target mode are initialized based on the building information. If initialization is complete, the original thermal characteristic parameters of the target mode are updated based on the building's temperature distribution information and the heat pump's heating capacity when the heat pump meets preset update conditions. If the update is complete, the physical validity of the original thermal characteristic parameters of the target mode is verified. If the verification is successful, the confidence level of the original thermal characteristic parameters of the target mode is calculated based on historical fluctuation data. The target thermal characteristic parameters of the model predictive controller are generated using the original thermal characteristic parameters of the target mode based on the confidence level. The target thermal characteristic parameters are then injected into the model predictive controller to perform control operations on the heat pump. This embodiment significantly improves the control accuracy of the heat pump in complex usage scenarios by independently learning thermal characteristic parameters across multiple operating modes and performing knowledge transfer across operating modes, thereby improving the energy-saving effect of the heat pump.
[0087] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0088] Reference Figure 2 This diagram illustrates a heat pump operation control device based on building thermal inertia provided by an embodiment of the present invention. The heat pump deployed in the building is configured with multiple operating modes, each of which is configured with original thermal characteristic parameters. The device may specifically include the following modules: The operation mode recognition module 201 is used to identify the operation mode of the heat pump application based on the on / off state of the terminal in the heat pump, and use it as the target mode. Thermal characteristic parameter initialization module 202 is used to initialize the original thermal characteristic parameters of the target mode based on the building information of the building; The thermal characteristic parameter update module 203 is used to update the original thermal characteristic parameters of the target mode according to the temperature distribution information of the building and the heating capacity of the heat pump when the heat pump meets the preset update conditions after initialization is completed. The thermal characteristic parameter verification module 204 is used to verify the physical validity of the original thermal characteristic parameters of the target mode if the update is completed. The confidence calculation module 205 is used to calculate the confidence level of the original thermal characteristic parameters of the target mode based on the historical fluctuation data of the target mode if the verification is successful. Thermal characteristic parameter equivalent module 206 is used to generate target thermal characteristic parameters of the model prediction controller based on the original thermal characteristic parameters of the target mode using the original thermal characteristic parameters of the target mode according to the confidence level. The model predictive control module 207 is used to inject the target thermal characteristic parameters into the model predictive controller to perform control operations on the heat pump.
[0089] In one embodiment of the present invention, the operating mode recognition module 201 is further configured to: A state vector is constructed using the on / off states of the terminals in the heat pump; Map the state vector to a running mode; If the duration of the state vector exceeds a preset stable time threshold, the heat pump is determined to enter the operating mode as the target mode.
[0090] In one embodiment of the present invention, the building information includes the total area, the original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity, and the thermal characteristic parameter initialization module 202 is further configured to: Obtain the effective heating area corresponding to the target mode, and determine the total thermal resistance and total heat capacity of the building based on the building information of the building; Multiply the ratio between the total area and the effective heating area by a preset mixing correction coefficient to obtain the first correction coefficient; Calculate the product between the total thermal resistance and the first correction coefficient, and use it as the initial original equivalent heat capacity of the target mode; The ratio of the effective heating area to the total area is calculated and used as a second correction coefficient; The product of the total heat capacity and the second correction coefficient is calculated as the initial equivalent heat capacity of the target mode.
[0091] In one embodiment of the present invention, each of the said operating modes is configured with a covariance matrix, and the thermal characteristic parameter update module 203 is further used for: A thermal circuit model is constructed for the building and the heat pump; the thermal circuit model is represented as: Tin k =θ1×Tin k-1 +θ2×Tout k-1 +θ3×Qhp k-1 +θ4, where Tin k Let Tin be the temperature inside the building at time k. k-1 Let Tout be the temperature inside the building at time k-1. k-1 Let Qhp be the temperature outside the building at time k-1. k-1 The heat pump's heating capacity is given by θ1, θ2, θ3, and θ4, which are parameters to be learned. The parameters in the thermal circuit model are updated using the covariance matrix of the target mode based on the least squares method. If the update is completed, the original equivalent thermal resistance and original equivalent heat capacity of the target mode are solved using the parameters in the thermal circuit model; the solution is expressed as: τ=-Ts / ln(θ1), R=θ2 / [θ3×1000×(1-θ1)], C=τ / R, where Ts is the sampling period, R is the original equivalent thermal resistance of the target mode, and C is the original equivalent heat capacity of the target mode.
[0092] In one embodiment of the present invention, the original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity, and the confidence calculation module 205 is further configured to: The minimum value between the sample ratio and 1 is taken as the first confidence term; the sample ratio is the ratio between the number of effective learning samples of the target pattern and the preset minimum convergent sample number. Subtract the volatility corresponding to the original equivalent thermal resistance of the target pattern in the past time period from 1, and use it as the second confidence term; Obtain a verification flag bit as the third confidence item; when the volatility of the original equivalent thermal resistance and the volatility of the original equivalent thermal capacity of the target mode are both less than the preset volatility threshold in the past time period, the flag bit is a first value; when the volatility of the original equivalent thermal resistance and / or the volatility of the original equivalent thermal capacity of the target mode are not less than the preset volatility threshold in the past time period, the flag bit is a second value. The confidence level of the original thermal characteristic parameters of the target mode is obtained by fusing the first confidence term, the second confidence term, and the third confidence term.
[0093] In one embodiment of the present invention, the original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity, and the target thermal characteristic parameters of the model prediction controller include the target equivalent thermal resistance and the target equivalent heat capacity. The thermal characteristic parameter equivalence module 206 is further configured to: If the confidence level is less than 1, then the product of the confidence level and the original equivalent thermal resistance of the target mode, and the product of the fusion coefficient and the preset prior value of thermal resistance are added together to obtain the target equivalent thermal resistance of the model predictive controller. Additionally, the product of the confidence level and the original equivalent thermal capacity of the target mode, and the product of the fusion coefficient and the preset prior value of thermal capacity are added together to obtain the target equivalent thermal capacity of the model predictive controller. The fusion coefficient is the difference between 1 and the confidence level. If the confidence level is equal to 1, then the original equivalent thermal resistance of the target mode is assigned to the target equivalent thermal resistance of the model predictive controller, and the original equivalent thermal capacity of the target mode is assigned to the target equivalent thermal capacity of the model predictive controller.
[0094] In one embodiment of the present invention, the model prediction control module 207 is further configured to: The product of the target equivalent thermal resistance of the model predictive controller and the target equivalent heat capacity of the model predictive controller is calculated as the thermal inertia value; The prediction time domain of the model predictive control is adjusted based on the thermal inertia value to perform control operations on the heat pump.
[0095] In one embodiment of the present invention, the update conditions include: The temperature difference value of the building is greater than a preset temperature threshold; the temperature difference value is the absolute value of the difference between the temperature inside the building and the temperature outside the building; The compressor of the heat pump has been running for a period of time that is greater than a preset threshold. The sensors in the heat pump did not generate any fault alarms. The data sampling interval deviation of the sensor in the heat pump is less than a preset deviation threshold; The heat pump's defrost indicator was not activated. The duration of the target pattern exceeds a preset stable time threshold.
[0096] In one embodiment of the present invention, the original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity, and the thermal characteristic parameter verification module 204 is further configured to: If the original equivalent thermal resistance of the target mode is located within a preset first physical effective range and the original equivalent thermal capacity of the target mode is located within a preset second physical effective range, then the physical validity of the verification of the original equivalent thermal resistance and original equivalent thermal capacity of the target mode is determined to be successful.
[0097] The present invention provides a heat pump operation control device based on building thermal inertia. By applying the heat pump operation control device based on building thermal inertia, the various steps in the aforementioned heat pump operation control method embodiments based on building thermal inertia can be realized.
[0098] It should be noted that the module division in the various heat pump operation control devices based on building thermal inertia provided in the above embodiments is illustrative and only represents a logical functional division. In actual implementation, other division methods may also be used. Furthermore, the functional modules in the various embodiments of this invention can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0099] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the embodiments of the present invention can be embodied in the form of a computer program product, which is stored in a computer storage medium and includes several instructions to cause a heat pump or processor to execute all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned computer storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0100] Furthermore, the heat pump operation control device based on building thermal inertia provided in the above embodiments and the heat pump operation control method based on building thermal inertia belong to the same concept. For details of its implementation process, please refer to the method embodiments, which will not be repeated here.
[0101] Reference Figure 3 The diagram illustrates a heat pump provided by an embodiment of the present invention. Figure 3 As shown, the heat pump in this embodiment of the invention includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the above-described embodiment of the heat pump operation control method based on building thermal inertia. Alternatively, when the processor executes the computer program, it implements the functions of each module in the above-described embodiment of the heat pump operation control device based on building thermal inertia.
[0102] For example, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which can be used to describe the execution process of the computer program in the heat pump.
[0103] The heat pump may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that... Figure 3 This is merely one example of a heat pump and does not constitute a limitation on heat pumps. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the heat pump may also include input / output devices, network access devices, buses, etc.
[0104] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0105] The memory can be an internal storage unit of the heat pump, such as the heat pump's hard drive or RAM. The memory can also be an external storage device of the heat pump, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc., equipped on the heat pump. Furthermore, the memory can include both internal storage units and external storage devices. The memory is used to store the computer program and other programs and data required by the heat pump. The memory can also be used to temporarily store data that has been output or will be output.
[0106] This invention also discloses a heat pump, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the heat pump operation control method based on building thermal inertia as described in the foregoing embodiments.
[0107] This invention also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the heat pump operation control method based on building thermal inertia as described in the foregoing embodiments.
[0108] This invention also discloses a computer program product that, when run on a computer, causes the computer to execute the heat pump operation control method based on building thermal inertia described in the foregoing embodiments.
[0109] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A heat pump operation control method based on building thermal inertia, characterized in that, The heat pump deployed in the building is configured with multiple operating modes, each of which is configured with original thermal characteristic parameters. The method includes: The operating mode of the heat pump application is identified based on the on / off state of the terminal in the heat pump, and used as the target mode; Initialize the original thermal characteristic parameters of the target mode based on the building information of the building; If initialization is completed, when the heat pump meets the preset update conditions, the original thermal characteristic parameters of the target mode are updated according to the temperature distribution information of the building and the heating capacity of the heat pump. If the update is completed, verify the physical validity of the original thermal characteristic parameters of the target mode; If the verification is successful, the confidence level is calculated for the original thermal characteristic parameters of the target mode based on the historical fluctuation data of the target mode. Based on the confidence level, the target thermal characteristic parameters of the model predictive controller are generated using the original thermal characteristic parameters of the target mode; The target thermal characteristic parameters are injected into the model predictive controller to perform control operations on the heat pump.
2. The method according to claim 1, characterized in that, The step of identifying the operating mode of the heat pump application as the target mode based on the on / off state of the terminal in the heat pump includes: A state vector is constructed using the on / off states of the terminals in the heat pump; Map the state vector to a running mode; If the duration of the state vector exceeds a preset stable time threshold, the heat pump is determined to enter the operating mode as the target mode.
3. The method according to claim 1, characterized in that, The building information includes the total area, and the original thermal characteristic parameters of the target model include the original equivalent thermal resistance and the original equivalent heat capacity. Initializing the original thermal characteristic parameters of the target model based on the building information includes: Obtain the effective heating area corresponding to the target mode, and determine the total thermal resistance and total heat capacity of the building based on the building information of the building; Multiply the ratio between the total area and the effective heating area by a preset mixing correction coefficient to obtain the first correction coefficient; Calculate the product between the total thermal resistance and the first correction coefficient, and use it as the initial original equivalent heat capacity of the target mode; The ratio of the effective heating area to the total area is calculated and used as a second correction coefficient; The product of the total heat capacity and the second correction coefficient is calculated as the initial equivalent heat capacity of the target mode.
4. The method according to claim 1, characterized in that, Each of the aforementioned operating modes is configured with a covariance matrix. The original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity. Updating the original thermal characteristic parameters of the target mode based on the temperature distribution information of the building and the heating capacity of the heat pump includes: A thermal circuit model is constructed for the building and the heat pump; the thermal circuit model is represented as: Tin k =θ1×Tin k-1 +θ2×Tout k-1 +θ3×Qhp k-1 +θ4, where Tin k Let Tin be the temperature inside the building at time k. k-1 Let Tout be the temperature inside the building at time k-1. k-1 Let Qhp be the temperature outside the building at time k-1. k-1 The heat pump's heating capacity is given by θ1, θ2, θ3, and θ4, which are parameters to be learned. The parameters in the thermal circuit model are updated using the covariance matrix of the target mode based on the least squares method. If the update is completed, the original equivalent thermal resistance and original equivalent heat capacity of the target mode are solved using the parameters in the thermal circuit model; the solution is expressed as: τ=-Ts / ln(θ1), R=θ2 / [θ3×1000×(1-θ1)], C=τ / R, where Ts is the sampling period, R is the original equivalent thermal resistance of the target mode, and C is the original equivalent heat capacity of the target mode.
5. The method according to claim 1, characterized in that, The original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity. The calculation of confidence levels for the original thermal characteristic parameters of the target mode based on historical fluctuation data includes: The minimum value between the sample ratio and 1 is taken as the first confidence term; the sample ratio is the ratio between the number of effective learning samples of the target pattern and the preset minimum convergent sample number. Subtract the volatility corresponding to the original equivalent thermal resistance of the target pattern in the past time period from 1, and use it as the second confidence term; Obtain a verification flag bit as the third confidence item; when the volatility of the original equivalent thermal resistance and the volatility of the original equivalent thermal capacity of the target mode are both less than the preset volatility threshold in the past time period, the flag bit is a first value; when the volatility of the original equivalent thermal resistance and / or the volatility of the original equivalent thermal capacity of the target mode are not less than the preset volatility threshold in the past time period, the flag bit is a second value. The confidence level of the original thermal characteristic parameters of the target mode is obtained by fusing the first confidence term, the second confidence term, and the third confidence term.
6. The method according to claim 1, characterized in that, The original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity. The target thermal characteristic parameters of the model predictive controller include the target equivalent thermal resistance and the target equivalent heat capacity. Generating the target thermal characteristic parameters of the model predictive controller using the original thermal characteristic parameters of the target mode based on the confidence level includes: If the confidence level is less than 1, then the product of the confidence level and the original equivalent thermal resistance of the target mode, and the product of the fusion coefficient and the preset prior value of thermal resistance are added together to obtain the target equivalent thermal resistance of the model predictive controller. Additionally, the product of the confidence level and the original equivalent thermal capacity of the target mode, and the product of the fusion coefficient and the preset prior value of thermal capacity are added together to obtain the target equivalent thermal capacity of the model predictive controller. The fusion coefficient is the difference between 1 and the confidence level. If the confidence level is equal to 1, then the original equivalent thermal resistance of the target mode is assigned to the target equivalent thermal resistance of the model predictive controller, and the original equivalent thermal capacity of the target mode is assigned to the target equivalent thermal capacity of the model predictive controller.
7. The method according to claim 6, characterized in that, The step of injecting the target thermal characteristic parameters into the model predictive controller to perform control operations on the heat pump includes: The product of the target equivalent thermal resistance of the model predictive controller and the target equivalent heat capacity of the model predictive controller is calculated as the thermal inertia value; The prediction time domain of the model predictive controller is adjusted based on the thermal inertia value to perform control operations on the heat pump.
8. The method according to any one of claims 1-7, characterized in that, The update conditions include: The temperature difference value of the building is greater than a preset temperature threshold; the temperature difference value is the absolute value of the difference between the temperature inside the building and the temperature outside the building; The compressor of the heat pump has been running for a period of time that is greater than a preset threshold. The sensors in the heat pump did not generate any fault alarms. The data sampling interval deviation of the sensor in the heat pump is less than a preset deviation threshold; The heat pump's defrost indicator was not activated. The duration of the target pattern exceeds a preset stable time threshold; The original thermal characteristic parameters of the target mode include the original equivalent thermal resistance and the original equivalent heat capacity. Verifying the physical validity of the original thermal characteristic parameters of the target mode includes: If the original equivalent thermal resistance of the target mode is located within a preset first physical effective range and the original equivalent thermal capacity of the target mode is located within a preset second physical effective range, then the physical validity of the verification of the original equivalent thermal resistance and original equivalent thermal capacity of the target mode is determined to be successful.
9. A heat pump, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the heat pump operation control method based on building thermal inertia as described in any one of claims 1-8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the heat pump operation control method based on building thermal inertia as described in any one of claims 1-8.
