Hot water tank control method and related device

By analyzing the historical water replenishment data and the current water tank level, predicting the water consumption and water replenishment valve status, the problem of mismatch between the water level and water consumption in the hotel hot water system is solved, and more efficient hot water management is achieved.

CN119594575APending Publication Date: 2025-03-11XINAO SHUNENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411993446.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the hotel's domestic hot water system, the liquid level of the hot water tank does not match the water consumption, resulting in heat dissipation or insufficient water.

Method used

By obtaining the cumulative water replenishment amount, water replenishment valve status and current water tank liquid level in multiple periods of historical dates, calculate the water replenishment change and the number of times to be opened, determine the historical water replenishment data, conduct water usage prediction, predict the state of the water replenishment valve, and achieve the matching of the water tank liquid level and water use.

Benefits of technology

Effectively match the water tank liquid level and water consumption, reduce heat dissipation, avoid the risk of insufficient water, and improve the energy efficiency and reliability of the hot water system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119594575A_ABST
    Figure CN119594575A_ABST
Patent Text Reader

Abstract

The invention discloses a hot water tank control method and a related device, and relates to the technical field of hot water tank control, and the method comprises the following steps: obtaining the accumulated water supplementing amount, the water supplementing valve state and the current water tank liquid level in a plurality of time periods of a historical date; when the accumulated water supplementing amount in the two adjacent time periods changes, the water supplementing variable amount is obtained, and the opening times of the water supplementing valve in the two adjacent time periods are obtained according to the states of the water supplementing valve in the two adjacent time periods; according to the water supplementing variable quantity and the opening frequency of the water supplementing valve, the water supplementing quantity corresponding to the states of the water supplementing valve in the multiple time periods of the historical date is determined, and historical water supplementing quantity data is obtained; determining a water consumption prediction result of the current date which does not pass the time window based on the historical water supplement amount data; obtaining a state prediction result of the water replenishing valve based on the water consumption prediction result of the time window not passed on the current date and the current water tank liquid level; and controlling the liquid level of the hot water tank based on the water replenishing valve state prediction result. The purpose that the liquid level of the water tank is matched with the water consumption can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hot water tank control, and in particular to a hot water tank control method and related devices. Background Art

[0002] The hotel's domestic hot water system usually consists of a hot water storage tank and a heat source. At present, the hot water tank control is usually based on the upper and lower limits of the water tank liquid level for water replenishment. When the water tank liquid level is lower than the lower limit, the water replenishment valve is opened to start replenishing water. When the water tank liquid level is higher than the upper limit, the water replenishment is stopped and the water replenishment valve is closed. When the hotel occupancy rate is low and the water consumption is too small, the hot water tank may store too much hot water. When the hot water tank insulation effect is not good or the temperature difference between the inside and outside of the hot water tank is large, it will cause unnecessary heat dissipation. When the hotel occupancy rate is high, there is a risk of insufficient water. Summary of the invention

[0003] In view of the above problems, the present application provides a hot water tank control method and related devices to achieve the purpose of matching the water tank liquid level with the water consumption. The specific scheme is as follows:

[0004] A first aspect of the present application provides a hot water tank control method, comprising:

[0005] Obtain the cumulative water replenishment volume, water replenishment valve status and current water tank level in multiple time periods of historical dates;

[0006] When the accumulated water replenishment amount in two adjacent time periods changes, the water replenishment change amount is obtained, and the number of times the water replenishment valve is opened in the two adjacent time periods is obtained according to the water replenishment valve state in the two adjacent time periods;

[0007] Determine the water replenishment amount corresponding to the water replenishment valve state in multiple time periods of the historical date according to the water replenishment change amount and the number of times the water replenishment valve is opened, and obtain historical water replenishment amount data;

[0008] Determine the water consumption forecast result for the current date within the time window based on the historical water replenishment data;

[0009] Based on the water consumption prediction result of the current date and the current water tank liquid level, a water supply valve state prediction result is obtained;

[0010] The hot water tank liquid level is controlled based on the water supply valve state prediction result.

[0011] In a possible implementation, determining the water consumption forecast result for the current date within the time window based on the historical water replenishment data includes:

[0012] Determine the average water consumption in each time window of the historical date according to the historical water replenishment data;

[0013] Clustering the average water consumption according to date type to obtain a set of average water consumption under each date type; wherein the set of average water consumption includes the average water consumption of each time window of the historical date belonging to the date type;

[0014] For each set of average water consumption under the date type, calculate the upper quantile and lower quantile of each time window to obtain the quantile statistics of each date type;

[0015] Based on the quantile statistics results, the water consumption forecast result for the time window that has not passed the current date is determined.

[0016] In a possible implementation, determining the water consumption forecast result for the time window that has not passed the current date based on the quantile statistical result includes:

[0017] Obtaining a target quantile statistical result and a target average water consumption set; wherein the target quantile statistical result is a quantile statistical result corresponding to the current date type, and the target average water consumption set is an average water consumption set corresponding to the current date type;

[0018] Calculate the difference between the upper quantile and the lower quantile of each time window in the target quantile statistical result;

[0019] When the difference is greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the first preset quantile and the target average water consumption set; when the difference is not greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the second preset quantile and the target average water consumption set to obtain a first water consumption prediction result; wherein the first preset quantile is greater than the second preset quantile;

[0020] Determine whether there is a matching target historical date, and the deviation between the average water consumption in the time window that meets the target historical date and the average water consumption in the time window that has passed the current date is less than a preset deviation; wherein the average water consumption in the time window that has passed the current date is determined based on the water replenishment change in two adjacent time periods that have passed on the current date and the number of times the water replenishment valve is opened;

[0021] If there is a matching target historical date, the average water consumption of each time window of the target historical date is used as the second water consumption forecast result, and the second water consumption forecast result is used to correct the first water consumption forecast result to obtain the water consumption forecast result of the time window that has not passed the current date;

[0022] If there is no matching target historical date, the first water consumption forecast result is used as the water consumption forecast result for the time window that has not passed the current date.

[0023] In a possible implementation, obtaining the water supply valve state prediction result based on the water consumption prediction result of the current date and the current water tank liquid level includes:

[0024] Initialize the water supply valve state of the current date before the time window expires, and obtain the target water supply valve state;

[0025] Calculate the water tank liquid level under the target water supply valve state according to the current water tank liquid level, the water consumption prediction result of the current date and the target water supply valve state;

[0026] When the water tank liquid level in the target water replenishment valve state is less than the water tank liquid level lower limit, the target water replenishment valve state is changed until the water tank liquid level in the target water replenishment valve state is not less than the water tank liquid level lower limit, and the water replenishment valve state prediction result is obtained.

[0027] In a possible implementation, after obtaining the water supply valve state prediction result, the method further includes:

[0028] Determine the state of the water supply valve in the next time window based on the water supply valve state prediction result;

[0029] If the state of the water supply valve in the next time window is closed, then when the current water tank liquid level is greater than the upper limit of the water tank liquid level, the state of the water supply valve in the next time window is set to open;

[0030] If the water replenishment valve state of the next time window is open, and at the current moment it is in the energy efficiency water replenishment period, and the current water tank liquid level is less than the energy efficiency initialization liquid level, if the current water tank temperature is greater than the lower limit of the water tank temperature, the water replenishment valve state of the next time window is set to closed.

[0031] In a possible implementation, the method further includes:

[0032] Determine the water tank temperature set point;

[0033] When the current water tank state is the heating state, if the water tank temperature setting value is greater than the current water tank temperature, and the difference between the water tank temperature setting value and the current water tank temperature is greater than the redundant temperature difference, then the water tank temperature setting value is modified to be the sum of the current water tank temperature and the redundant temperature difference; wherein the redundant temperature difference is the difference between the hysteresis and the margin temperature setting value, and the hysteresis is the difference between the upper limit of the water tank temperature and the lower limit of the water tank temperature;

[0034] When the current water tank state is a non-heating state, if the difference between the water tank temperature setting value and the hysteresis is not less than the current water tank temperature, the current water tank temperature and the lower limit of the water tank temperature are compared to obtain a larger value, and the water tank temperature setting value is modified to be the sum of the hysteresis and the larger value;

[0035] The hot water tank temperature is controlled based on the water tank temperature setting value.

[0036] In a possible implementation, determining a water tank temperature setting value includes:

[0037] In a preset period before the start of energy-efficient water replenishment, if the current water tank level is less than the peak-shaving level threshold, and the current water tank temperature is greater than the energy-efficient initialization water tank temperature, then the water tank temperature setting value is determined to be the water tank temperature lower limit;

[0038] In a preset period before the start of energy-efficient water replenishment, if the current water tank liquid level is less than the peak-shaving liquid level threshold, and the current water tank temperature is not greater than the water tank temperature lower limit, then determining the water tank temperature setting value to be the water tank temperature lower limit;

[0039] During the energy efficiency water replenishment period, if the current water tank liquid level is not less than the energy efficiency initialization liquid level, the water tank temperature setting value is determined to be the target water tank temperature;

[0040] During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is less than the energy efficiency initialization water tank temperature, then determining the water tank temperature setting value to be the target water tank temperature;

[0041] During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is not less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the water tank temperature lower limit.

[0042] A second aspect of the present application provides a hot water tank control system, comprising:

[0043] A data acquisition module is used to obtain the cumulative water replenishment volume, water replenishment valve status and current water tank liquid level in multiple time periods of historical dates;

[0044] A water supply valve opening times calculation module is used to obtain a water supply change amount when the cumulative water supply amount in two adjacent time periods changes, and obtain the water supply valve opening times in the two adjacent time periods according to the water supply valve states in the two adjacent time periods;

[0045] A historical water replenishment volume calculation module is used to determine the water replenishment volume corresponding to the water replenishment valve state in multiple time periods of the historical date according to the water replenishment change and the number of times the water replenishment valve is opened, and obtain historical water replenishment volume data;

[0046] A water consumption prediction module, used to determine the water consumption prediction result of the current date within the time window based on the historical water replenishment data;

[0047] A water supply valve state prediction module, used to obtain a water supply valve state prediction result based on the water consumption prediction result of the current date and the current water tank liquid level;

[0048] The water tank liquid level control module is used to control the hot water tank liquid level based on the water supply valve state prediction result.

[0049] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the hot water tank control method of the first aspect or any implementation of the first aspect.

[0050] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0051] The memory is used to store computer programs;

[0052] The processor is used to execute the computer program so that the electronic device can implement the hot water tank control method of the above-mentioned first aspect or any implementation manner of the first aspect.

[0053] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the hot water tank control method of the above-mentioned first aspect or any implementation of the first aspect.

[0054] With the help of the above technical scheme, the hot water tank control method and related devices provided by the present application calculate the water replenishment amount corresponding to the water replenishment valve state according to the cumulative water replenishment amount of multiple time periods in historical dates, and predict the water consumption through the water replenishment amount. According to the water consumption prediction result and the current water tank liquid level, the water replenishment valve state prediction result is obtained. By establishing the relationship between the historical cumulative water replenishment amount and the predicted water consumption, the predicted water replenishment valve state can meet the water consumption needs at different times on different dates, thereby achieving the purpose of matching the water tank liquid level with the water consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0056] Figure 1A flow chart of a hot water tank control method provided in this application;

[0057] Figure 2 A flow chart of a method for generating historical water replenishment data provided in this application;

[0058] Figure 3 A flow chart of an average water consumption statistical method provided for this application;

[0059] Figure 4 A flow chart of a quantile statistics method provided for this application;

[0060] Figure 5 A flow chart of a water consumption prediction method provided for this application;

[0061] Figure 6 A flow chart of a water supply valve state prediction method provided in this application;

[0062] Figure 7 A flow chart of an energy-efficient water replenishment method provided for this application;

[0063] Figure 8 A flow chart of a heating peak regulation method provided in this application;

[0064] Fig. 9 A flow chart of a method for generating a temperature setting value strategy for an energy-efficient water replenishment stage provided in this application;

[0065] Fig.10 A flow chart of a temperature tracking method provided for this application;

[0066] Fig.11 A schematic diagram of the structure of a hot water tank control system provided in this application;

[0067] Fig.12 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0068] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0069] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0070] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0071] The embodiment of the present application provides a hot water tank control method. The hot water tank control method of the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0072] Reference Figure 1 , Figure 1 A flow chart of a hot water tank control method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, a hot water tank control method provided in an embodiment of the present application may include steps 101 to 106, and these steps are described in detail below.

[0073] Step 101: Obtain the cumulative water replenishment volume, water replenishment valve status and current water tank liquid level in multiple time periods of historical dates.

[0074] The cumulative water replenishment acc_water is a time series data. The cumulative water replenishment of each period is arranged in order according to the time sequence to form a data list of cumulative water replenishment. This data list is the cumulative water replenishment corresponding to each period of each historical date. In practical applications, the index of the data list can be generated. For example, if the data list is [100,101,102], the cumulative water replenishment in the t0 period is 100, and the corresponding index is 0; the cumulative water replenishment in the t1 period is 101, and the corresponding index is 1; the cumulative water replenishment in the t2 period is 102, and the corresponding index is 2.

[0075] The water supply valve state represents whether the water supply valve is open or closed. In practical applications, it can be set that when the water supply valve is closed, the water supply valve state is 1, and when the water supply valve is open, the water supply valve state is 0.

[0076] The current water tank level is the liquid level value of the hot water tank at the current moment, and the unit can be m. The hot water tank level has an upper limit and a lower limit. The upper limit of the liquid level is lower than the overflow level of the water tank, and the lower limit of the liquid level is higher than the replenishment level of the water tank.

[0077] Step 102: when the cumulative water replenishment amount in two adjacent time periods changes, the water replenishment change amount is obtained, and the number of times the water replenishment valve is opened in two adjacent time periods is obtained according to the water replenishment valve state in the two adjacent time periods.

[0078] If the cumulative water replenishment volume in two adjacent time periods changes, it means that the water replenishment valve is opened during this period. The number of times the water replenishment valve is opened in the two adjacent time periods can be obtained through the water replenishment valve status in the two adjacent time periods.

[0079] In practical applications, the cumulative water replenishment acc_water in multiple periods of historical dates can be used to record the value change index list change_index_list. Assume that the data list of the cumulative water replenishment is [100,100,102,102,102,104], the corresponding indexes are 0,1,2,3,4,5, and the indexes of the value change are 1 and 4. Then, traverse the change_index_list to calculate the cumulative water replenishment acc_water change water_change between it and the adjacent index. For example, when calculating the water replenishment change at index 1, its adjacent change index is 4. In order to avoid the situation where the water replenishment valve is not actually opened due to fluctuations, it can be determined whether the water replenishment change water_change is greater than the cumulative water replenishment change threshold change_threshold. The cumulative water replenishment change threshold can be 1. If so, the number of valve openings num between the two indexes is calculated.

[0080] Step 103: Determine the water replenishment amount corresponding to the water replenishment valve status in multiple time periods of historical dates according to the water replenishment change amount and the number of times the water replenishment valve is opened, and obtain historical water replenishment amount data.

[0081] According to the water supply change water_change and the number of times the water supply valve is opened num, the water supply flow supply_water can be calculated by the following formula:

[0082] supply_water=water_change / (num·time_interval / 3600)

[0083] Wherein, time_interval is the time interval, which can be 60s, and can be adjusted according to actual needs. This application does not make any specific limitation on this value.

[0084] The supply water flow supply_water is saved in the supply water volume list supply_flow_value_list, and the value change index change_index is saved in the supply water volume index list supply_flow_index_list.

[0085] Traverse the water replenishment valve state valve_state in multiple time periods of historical dates. If the valve_state value is 0, the corresponding water replenishment quantity supply_flow = 0. Otherwise, find the most recent water replenishment flow as supply_flow from the water replenishment quantity list supply_flow_value_list, thereby obtaining the historical water replenishment quantity data, which can be saved in the historical water replenishment quantity list res_list.

[0086] In an optional implementation, the flow chart of the method for generating historical water replenishment data is as follows: Figure 2 As shown, the method for generating historical water replenishment data includes:

[0087] Step 201: traverse the cumulative water replenishment in multiple time periods of historical dates and record the value change index.

[0088] Step 202: traverse the value change indexes and calculate the change in the cumulative water replenishment amount between adjacent indexes.

[0089] Step 203: Determine whether the change in water replenishment is greater than the cumulative water replenishment change threshold. If so, execute step 204; if not, return to step 202.

[0090] Step 204: Calculate the number of valve openings between two indexes.

[0091] Step 205: Calculate the water replenishment flow rate according to the water replenishment change and the number of times the water replenishment valve is opened.

[0092] Step 206: Save the water replenishment flow rate in the water replenishment amount list, and save the value change index in the water replenishment amount index list.

[0093] Step 207: traverse the water replenishment valve status in multiple time periods of historical dates. If the water replenishment valve status value is 0, the corresponding water replenishment amount is 0. Otherwise, find the most recent water replenishment flow from the water replenishment amount list to obtain historical water replenishment amount data, and save the obtained historical water replenishment amount data in the historical water replenishment amount list.

[0094] When constructing the water replenishment volume, this application considers that the water replenishment flow is affected by the water replenishment pressure, and its value is not constant. In addition, the cumulative water replenishment volume is obtained, so it is necessary to calculate the dynamic water replenishment flow data, that is, calculate the water replenishment volume supply_flow corresponding to the water replenishment valve state.

[0095] Step 104: Determine the water consumption forecast result for the current date within the time window based on the historical water replenishment data.

[0096] In an optional implementation, determining the water consumption forecast result for the current date within the time window based on the historical water replenishment data includes:

[0097] Determine the average water consumption in each time window of the historical date based on the historical water replenishment data;

[0098] The average water consumption is clustered according to the date type to obtain a set of average water consumption under each date type; wherein the set of average water consumption includes the average water consumption of each time window of the historical date belonging to the date type;

[0099] For the average water consumption set under each date type, calculate the upper quantile and lower quantile of each time window to obtain the quantile statistics of each date type;

[0100] Based on the quantile statistics results, the water consumption forecast result for the time window that has not passed the current date is determined.

[0101] When predicting water consumption, the average water consumption of each time window of the historical date can be determined based on the historical water replenishment data, and the average water consumption can be clustered according to the date type to obtain the average water consumption set under each date type. In practical applications, first, the historical water replenishment data for a complete number of days can be intercepted, and then the data can be filtered according to the date type. The date type can include regular rest days regular_rest_day, regular working days regular_working_day, and other days other_day, such as statutory holidays, where the day_type of regular rest days is 0, the day_type of regular working days is 1, and the day_type of other days is 2. The historical water replenishment data is traversed by day, and the total number of windows in a day is calculated according to the average water consumption window length average_water_consumption_window_length to obtain the number of time windows in a day window_num. The average water consumption window length average_water_consumption_window_length can be 1800s, which can be adjusted according to actual needs. This application does not specifically limit this value. Then the average water consumption Water_consumption_rate of each time window is calculated according to the following formula:

[0102] Average water consumption = (change in water tank level · water tank cross-sectional area + total amount of water replenishment during the period) / window duration

[0103] In the formula, the unit of water tank cross section area is m 2 , the window duration is the time length of the time window, which can be 0.5h, and can be adjusted according to actual needs. This application does not specifically limit this value. The total amount of water replenishment during the period can be obtained by dividing the accumulated value of supply_flow in the corresponding period by 60.

[0104] Clustering the average water consumption by date type is to group the average water consumption water_consumption_rate of the same date type together, and save the average water consumption water_consumption_rate_dict by date type and time window.

[0105] In an optional embodiment, the average water consumption statistical method flow chart is as follows: Figure 3 As shown in the figure, the average water consumption statistical method includes:

[0106] Step 301: Capture historical water replenishment data for a complete number of days.

[0107] Step 302: Filter data according to date type.

[0108] Step 303: Traverse the historical water replenishment data on a daily basis and calculate the total number of windows in a day based on the average water consumption window length.

[0109] Step 304: traverse the time windows and calculate the average water consumption in each time window.

[0110] Step 305: Save the average water consumption according to date type and time window.

[0111] After obtaining the average water consumption set under each date type, the upper quantile and lower quantile of each time window are calculated for the average water consumption set under each date type to obtain the quantile statistics results of each date type.

[0112] The average water consumption set under each date type is classified according to the time window, and the average water consumption water_consumption_rate_dict of the same time window of the same date type and different dates is arranged in descending order. The upper quantile upper_quantile of the time window is obtained according to the upper quantile threshold, and the lower quantile lower_quantile of the time window is obtained according to the lower quantile threshold. Assuming that the average water consumption in a time window is [10,15, 20,25,30,35,40,45,50,55], the upper quantile threshold is 0.9, then the upper quantile is 50, and the lower quantile threshold is 0.1, then the lower quantile is 15. In actual applications, if two adjacent average water consumptions are obtained according to the upper quantile threshold or the lower quantile threshold, the two average water consumptions are interpolated to obtain the upper quantile or the lower quantile. Then generate the quantile statistics results quantile_res_dict for each date type, and save the quantile statistics results quantile_res_dict and average water consumption water_consumption_rate_dict for each date type.

[0113] For example:

[0114] quantile_res_dict=

[0115] {'regular_working_day':{'upper_quantile':[1,2,3],'lower_quantile':[4,5,6]},'regular_rest_day':{'upper_qua ntile':[1,2,3],'lower_quantile':[4,5,6]},other_day':{'upper_quantile':[1,2,3],'lower_quantile':[4,5,6]}}.

[0116] In an optional embodiment, the quantile statistics method flow chart is as follows Figure 4 As shown, the quantile statistics method includes:

[0117] Step 401: According to the average water consumption under each date type, the upper quantile and the lower quantile under each date type are counted to obtain the quantile statistics results of each date type.

[0118] Step 402: Save the quantile statistics results of each date type.

[0119] In an optional implementation, based on the quantile statistics results, determining the water consumption forecast result for the current date within the time window includes:

[0120] Obtain the target quantile statistics and the target average water consumption set; wherein the target quantile statistics are the quantile statistics corresponding to the current date type, and the target average water consumption set is the average water consumption set corresponding to the current date type;

[0121] Calculate the difference between the upper quantile and the lower quantile of each time window in the target quantile statistics result;

[0122] When the difference is greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the first preset quantile and the target average water consumption set; when the difference is not greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the second preset quantile and the target average water consumption set to obtain a first water consumption prediction result; wherein the first preset quantile is greater than the second preset quantile;

[0123] Determine whether there is a matching target historical date, and the deviation between the average water consumption in the time window that meets the target historical date and the average water consumption in the time window that has passed the current date is less than a preset deviation; wherein the average water consumption in the time window that has passed the current date is determined based on the water replenishment change in two adjacent time periods that have passed on the current date and the number of times the water replenishment valve is opened;

[0124] If there is a matching target historical date, the average water consumption of each time window of the target historical date is used as the second water consumption forecast result, and the second water consumption forecast result is used to correct the first water consumption forecast result to obtain the water consumption forecast result of the time window that has not passed the current date;

[0125] If there is no matching target historical date, the first water consumption forecast result is used as the water consumption forecast result for the time window that has not passed the current date.

[0126] In order to determine whether the water consumption in each time window is stable, the target quantile statistical result quantile_res can be obtained from the quantile statistical result quantile_res_dict of each date type, by calculating the difference between the upper quantile upper_quantile_T and the lower quantile lower_quantile_T of each time window in the target quantile statistical result, and comparing the difference with the upper limit of water consumption fluctuation, if the difference is greater than the upper limit of water consumption fluctuation water_consumption_surge_upper_limit, it means that the water consumption in this time window is unstable. At this time, in the process of water consumption prediction, a larger first preset quantile can be selected to determine the predicted water consumption in this time window to obtain a higher water consumption prediction value. If the difference is not greater than the upper limit of water consumption fluctuation, it means that the water consumption in this time window is stable. At this time, in the process of water consumption prediction, the second preset quantile can be selected to determine the predicted water consumption in this time window, and the second preset quantile is less than the first preset quantile. In practical applications, the first preset quantile not_pass_quantile (also the non-pass quantile) can be 0.9, and the second preset quantile pass_quantile (also the pass quantile) can be 0.6. The upper limit of water consumption fluctuation water_consumption_surge_upper_limit can be 0.3. That is, when the difference is greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the first preset quantile and the target average water consumption set to obtain the first water consumption prediction result, or, when the difference is not greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the second preset quantile and the target average water consumption set to obtain the first water consumption prediction result, which is the water consumption prediction result of the day today_water_consumption_predict_list under quantile statistics.

[0127] Determine whether there is a matching target historical date, and the deviation between the average water consumption in the time window that meets the target historical date and the average water consumption in the time window that has passed the current date is less than the preset deviation, that is, the average water consumption pass_water_consumption_rate in the time window that has passed the current date is matched with the similar day of the average water consumption water_consumption_rate in the time window of the historical date, and the nearest day can be matched first. If the average water consumption deviation of each time window is less than the preset deviation, the matching ends, and the water consumption prediction result target_water_cinsumption_predict_list of the time window that has not passed the current date is obtained, that is, the second water consumption prediction result. Starting from the current time, the first water consumption prediction result today_water_consumption_predict_list is corrected with the second water consumption prediction result target_water_cinsumption_predict_list, and a weight mechanism is adopted for the second water consumption prediction result target_water_cinsumption_predict_list. The initial weight value is weight_upper_limit, and the weight reduction is weight_reduction, until the weight is reduced to the weight lower limit weight_lower_limit, and finally the water consumption prediction result today_list within the time window of the current date is obtained.

[0128] The correction formula is:

[0129] today_water_consumption_predict_list

[0130] =target_water_cinsumption·weight

[0131] +(1-weight)·today_water_consumption

[0132] Among them, the initial weight value is weight_upper_limit, which can be 0.9, and the weight value is reduced by weight_reduction after each time window, which can be 0.1, and the weight lower limit is weight_lower_limit, which can be 0.3. These values ​​can be adjusted according to actual needs, and this application does not specifically limit the values.

[0133] If the average water consumption deviation of each time window is not less than the preset deviation, the water consumption forecast result today_list for the time window before the current date is obtained, which is the first water consumption forecast result and also the water consumption forecast result for the day today_water_consumption_predict_list

[0134] In an optional implementation, the water consumption prediction method flow chart is as follows: Figure 5 As shown, the water consumption prediction method includes:

[0135] Step 501: According to the date type of the day, obtain the quantile statistics and average water consumption set under the same day type.

[0136] Step 502: traverse the upper quantile and lower quantile of each time window in the quantile statistics result.

[0137] Step 503: Determine whether the difference between the upper quantile and the lower quantile of the time window is greater than the upper limit of water consumption fluctuation. If so, execute step 504; if not, execute step 505.

[0138] Step 504: The predicted water consumption in the time window is calculated according to the non-passing quantile, which is the first preset quantile.

[0139] Step 505: The predicted water consumption in the time window is calculated according to the passing quantile, which is the second preset quantile.

[0140] Step 506: Obtain the water consumption forecast result for the day under quantile statistics. The water consumption forecast result for the day is the first water consumption forecast result.

[0141] Step 507: Match the average water consumption in the past time window of the current day with the average water consumption in the time window of the historical date on a similar day.

[0142] Step 508: Determine whether the average water consumption deviation in each time window is less than a preset deviation. If so, execute step 509; if not, execute step 510.

[0143] Step 509: Use the second water consumption forecast result to correct the first water consumption forecast result to obtain the water consumption forecast result for the time window that has not passed the current date. The second water consumption forecast result is the water consumption forecast result for the time window that has not passed the current date obtained when the average water consumption deviation of each time window is less than the preset deviation.

[0144] Step 510: Use the first water consumption prediction result as the water consumption prediction result for the time window before the current date.

[0145] Through the above steps, the predicted water consumption in the future time window can be obtained. Based on the predicted water consumption, the water supply valve state prediction result needs to be obtained to control the liquid level of the hot water tank.

[0146] Step 105: Based on the water consumption prediction result of the current date and the current water tank liquid level, the water supply valve state prediction result is obtained.

[0147] In an optional implementation, based on the water consumption prediction result of the current date and the current water tank liquid level, the water supply valve state prediction result is obtained, including:

[0148] Initialize the water supply valve state of the current date before the time window expires, and obtain the target water supply valve state;

[0149] Calculate the water tank liquid level under the target water supply valve state according to the current water tank liquid level, the water consumption forecast result of the current date and the target water supply valve state;

[0150] When the water tank liquid level in the target water replenishment valve state is less than the water tank liquid level lower limit, the target water replenishment valve state is changed until the water tank liquid level in the target water replenishment valve state is not less than the water tank liquid level lower limit, and the water replenishment valve state prediction result is obtained.

[0151] Initialize the water replenishment valve state before the time window of the current date. A greedy algorithm can be used to initialize the minute-level valve control strategy strategy according to the operation time PAM_time_window_length. The PAM_time_window_length can be 7200s. The target water replenishment valve state obtained after initialization can be all closed.

[0152] In practical applications, the process liquid level cycle_water_tank_level, that is, the water tank liquid level under the target water replenishment valve state, can be calculated with a simulation step of 1 minute.

[0153] According to the current water tank level current_water_tank_level, the water consumption forecast result of the current date and the target water supply valve state, the specific calculation formula for calculating the water tank level under the target water supply valve state is as follows:

[0154] Process level =

[0155] Current water tank level + (target water supply valve status · predicted water supply flow - water consumption prediction result) / 60 / water tank cross-sectional area

[0156] In the formula, the calculation method of predicting the water supply flow supply_flow is the same as Figure 2The method for generating the historical water replenishment data is similar to that shown in the figure, except that the data used in the calculation of the predicted water replenishment flow is the cumulative water replenishment in multiple time periods of the day, which will not be repeated in this application; the water consumption prediction result water_consumption is Figure 1 The water consumption forecast result of the current date and the time window calculated in step 104 is shown. The water tank cross-sectional area water_tank_cross_section_area may be the same as the water tank cross-sectional area in step 104 .

[0157] It should be noted that in order to make the calculated process liquid level a non-negative number, it can be compared with 0, and the larger value can be taken as the water tank liquid level under the target water supply valve state.

[0158] When the water tank level in the target water replenishment valve state is less than the water tank level lower limit water_level_lower_limit, the target water replenishment valve state is changed, and the forward water replenishment strategy can be adopted, that is, the most recent water replenishment valve state is changed from 0 to 1, and the changed target water replenishment valve state is obtained, and the water tank level in the target water replenishment valve state is calculated again, until the water tank level in the target water replenishment valve state is not less than the water tank level lower limit, the water replenishment valve state prediction result is obtained, and the final valve control strategy strategy_list is output. The water_level_lower_limit can be 1.2m, which can be adjusted according to actual needs, and this application does not make a specific limitation on this value.

[0159] In an optional implementation, the flow chart of the water supply valve state prediction method is as follows: Figure 6 As shown, the water supply valve state prediction method includes:

[0160] Step 601: Initialize the water replenishment valve status for the current date before the time window expires.

[0161] Step 602: Calculate the water tank liquid level under the target water replenishment valve state.

[0162] Step 603: Determine whether the water tank liquid level under the target water supply valve state is less than the water tank liquid level lower limit, if so, execute step 604, if not, execute step 605.

[0163] Step 604: adopt the forward water replenishment strategy, that is, change the water replenishment valve state that was most recently 0 to 1, and then return to step 602.

[0164] Step 605: Output the water supply valve state prediction result.

[0165] The water supply valve state prediction result can be obtained by using the water supply valve state prediction method.

[0166] Step 106: Control the hot water tank liquid level based on the water supply valve state prediction result.

[0167] In an optional implementation, after obtaining the water supply valve state prediction result, the hot water tank control method further includes:

[0168] Determine the state of the water supply valve in the next time window based on the water supply valve state prediction result;

[0169] If the state of the water supply valve in the next time window is closed, then when the current water tank level is greater than the upper limit of the water tank level, the state of the water supply valve in the next time window is set to open;

[0170] If the water replenishment valve state of the next time window is open, when the current moment is in the energy efficiency water replenishment period, and the current water tank level is less than the energy efficiency initialization level, if the current water tank temperature is greater than the lower limit of the water tank temperature, the water replenishment valve state of the next time window is set to closed.

[0171] In order to further improve the control accuracy of the hot water tank level, the water replenishment valve state prediction result can be combined with the current water tank level to adjust the water replenishment valve state. When the water replenishment valve state prediction result is a closed water replenishment valve, if the current water tank level is greater than the upper limit of the water tank level, in order to ensure that the water tank does not overflow, the water replenishment valve state is set to open. When the water replenishment valve state prediction result is an open water replenishment valve, and the current moment is in the energy-efficient water replenishment period of the water tank, that is, the water tank will close the water replenishment valve according to the energy-efficient water replenishment period, thereby performing the hot water tank replenishment operation, at this time, it can be determined whether the current water tank level is less than the energy-efficient initialization level. When the current water tank level is less than the energy-efficient initialization level and the current water tank temperature is greater than the lower limit of the water tank temperature, the water replenishment valve state of the next time window can be set to closed. It should be noted that the purpose of judging whether the current water tank temperature is greater than the lower limit of the water tank temperature is to improve the heating efficiency of the hot water tank. Since the heat pump unit involved in the hot water system is a hysteresis control device, when the actual temperature is lower than the lower limit of the temperature, it will trigger other operating modes such as electric auxiliary heating, which will greatly reduce the heating efficiency. Therefore, when setting the water supply valve state of the next time window to closed, this application also needs to determine that the current water tank temperature is greater than the lower limit of the water tank temperature.

[0172] Optionally, if the state of the water replenishment valve in the next time window is closed, then when the current water tank liquid level is not greater than the upper limit of the water tank liquid level, the state of the water replenishment valve in the next time window is set to closed.

[0173] Optionally, if the water replenishment valve status of the next time window is open, when the current moment is in the energy efficiency water replenishment period, and the current water tank liquid level is less than the energy efficiency initialization liquid level, if the current water tank temperature is not greater than the lower limit of the water tank temperature, the water replenishment valve status of the next time window is set to open.

[0174] When the water replenishment valve state of the next time window is determined to be open based on the water replenishment valve state prediction result, the current moment is in the energy efficiency water replenishment period. If the current water tank level is less than the energy efficiency initialization level, if the current water tank temperature is not greater than the lower limit of the water tank temperature, in order to improve the heating efficiency of the hot water tank, the water replenishment valve state of the next time window is consistent with the water replenishment valve state prediction result, that is, the water replenishment valve state of the next time window is set to open.

[0175] It should be noted that when the water supply valve state in the next time window is closed, in order to ensure that the hot water tank liquid level does not exceed the upper limit of the tank liquid level, the tank liquid level is monitored so that when the current tank liquid level exceeds the upper limit of the tank liquid level, the water supply valve state is set to open to avoid water tank overflow.

[0176] In an optional embodiment, the energy efficiency water replenishment method flow chart is as follows Figure 7 As shown, the energy-efficient water replenishment method includes:

[0177] Step 701: Determine whether the water supply valve state of the next time window is closed, that is, determine whether the water supply valve state of the next time window is 1 through the final valve control strategy strategy_list. If so, execute step 702; if not, execute step 703.

[0178] Step 702: Determine whether the current water tank level is greater than the upper limit of the water tank level. If yes, execute step 704, if no, execute step 705. The upper limit of the water tank level water_level_upper_limit may be 2m, which may be adjusted according to actual needs, and this application does not specifically limit this value.

[0179] Step 703: Determine whether the current moment is in the energy efficiency water replenishment period, and whether the current water tank liquid level is less than the energy efficiency initialization liquid level. If so, execute step 706, if not, execute step 702. The start time of the energy efficiency water replenishment period is begin_time, such as begin_time is 11:30, and the end time of the energy efficiency water replenishment period is end_time, such as end_time is 15:30. The energy efficiency initialization liquid level EE_init_water_level can be 1.7m. It can be adjusted according to actual needs, and this application does not make specific restrictions on this value.

[0180] Step 704: Set the water replenishment valve state of the next time window to open.

[0181] Step 705: Set the water supply valve state of the next time window to closed.

[0182] Step 706: Determine whether the current water tank level is less than the upper limit of the water tank level and whether the current water tank temperature is greater than the lower limit of the water tank temperature. If so, execute step 707; if not, execute step 708. The upper limit of the water tank level water_level_upper_limit can be 2m, and the lower limit of the water tank temperature water_tank_t_lower_limit can be 44°C. They can be adjusted according to actual needs, and this application does not specifically limit the values.

[0183] Step 707: Set the water supply valve state of the next time window to closed.

[0184] Step 708: Set the water replenishment valve state of the next time window to open.

[0185] The hot water tank control method of the present application calculates the water replenishment amount corresponding to the water replenishment valve state according to the cumulative water replenishment amount of multiple time periods on historical dates, and predicts the water consumption through the water replenishment amount. According to the water consumption prediction result and the current water tank liquid level, the water replenishment valve state prediction result is obtained. By establishing a relationship between the historical cumulative water replenishment amount and the predicted water consumption, the predicted water replenishment valve state can meet the water consumption needs at different times on different dates, thereby achieving the purpose of matching the water tank liquid level with the water consumption.

[0186] The hot water washing control method of the present application also controls the water tank liquid level according to different date types, and controls the water tank replenishment according to the differentiated hotel occupancy rates of different date types, which can ensure that the water tank liquid level matches the water consumption, avoiding the problem of too much hot water stored in the water tank when the water consumption is too small, and insufficient water when the water consumption is high.

[0187] The hot water tank control method provided in the present application can control the hot water tank temperature in addition to controlling the hot water tank liquid level. The hot water tank control method also includes:

[0188] Determine the water tank temperature set point;

[0189] When the current water tank state is heating state, if the water tank temperature setting value is greater than the current water tank temperature, and the difference between the water tank temperature setting value and the current water tank temperature is greater than the redundant temperature difference, then the water tank temperature setting value is modified to be the sum of the current water tank temperature and the redundant temperature difference; wherein the redundant temperature difference is the difference between the hysteresis and the margin temperature setting value, and the hysteresis is the difference between the upper limit of the water tank temperature and the lower limit of the water tank temperature;

[0190] When the current water tank state is non-heating state, if the difference between the water tank temperature setting value and the hysteresis is not less than the current water tank temperature, compare the current water tank temperature with the lower limit of the water tank temperature, and obtain the larger value. Then modify the water tank temperature setting value to the sum of the hysteresis and the larger value;

[0191] Hot water tank temperature control based on the tank temperature setpoint.

[0192] When the current water tank state is heating state, determine whether the water tank temperature setting value host_t_set is greater than the current water tank temperature water_tank_t, and whether the difference between the water tank temperature setting value and the current water tank temperature (host_t_set-water_tank_t) is greater than the redundant temperature difference remain_t_diff;

[0193] If yes, the water tank temperature setting value host_t_set=water_tank_t+remain_t_diff;

[0194] If not, return the water tank temperature set value host_t_set.

[0195] When the current water tank state is a non-heating state, it is determined whether the difference between the water tank temperature setting value host_t_set and the return difference return_diff (host_t_set-return_diff) is greater than or equal to the current water tank temperature water_tank_t.

[0196] If yes, water tank temperature setting value host_t_set = return_diff + maximum (water_tank_t, water_tank_t_lower_limit);

[0197] If not, return the water tank temperature set value host_t_set.

[0198] The return_diff is the difference between the upper and lower temperature of the water tank. return_diff can be 4 to 5, the remaining temperature setting value remain_t can be 1, the redundant temperature difference remain_t_diff can be 3 to 4, and the lower temperature of the water tank water_tank_t_lower_limit can be 44°C. It can be adjusted according to actual needs. This application does not make any specific limitation on this value.

[0199] Since the heat pump unit involved in the hot water system is a hysteresis control device, when the actual temperature is lower than the lower temperature limit, other operating modes such as electric auxiliary heating will be triggered, which will greatly reduce the heating efficiency. Therefore, this application adjusts the water tank temperature setting value to track the return water temperature and achieve high-efficiency mode control. Among them, the return water temperature is the difference between the upper and lower temperature limits of the water tank, that is, the hysteresis.

[0200] In an optional implementation, determining a water tank temperature setting value includes:

[0201] In the preset period before the energy-efficient water replenishment starts, if the current water tank level is less than the peak-shaving level threshold, and the current water tank temperature is greater than the energy-efficient initialization water tank temperature, the water tank temperature setting value is determined to be the lower limit of the water tank temperature;

[0202] In the preset period before the start of energy-efficient water replenishment, if the current water tank liquid level is less than the peak-shaving liquid level threshold, and the current water tank temperature is not greater than the lower limit of the water tank temperature, then the water tank temperature setting value is determined to be the lower limit of the water tank temperature;

[0203] During the energy efficiency water replenishment period, if the current water tank liquid level is not less than the energy efficiency initialization liquid level, the water tank temperature setting value is determined to be the target water tank temperature;

[0204] During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the target water tank temperature;

[0205] During the energy efficiency water replenishment period, if the current water tank level is less than the energy efficiency initialization level, and if the current water tank temperature is not less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the lower limit of the water tank temperature.

[0206] In order to improve the heating efficiency of the equipment, water replenishment can be carried out within a certain time period, which is the energy-efficient water replenishment period. The start time begin_time of the energy-efficient water replenishment period can be 11:30, and the end time end_time of the energy-efficient water replenishment period can be 15:30. It can be adjusted according to actual needs, and this application does not make any specific limitation on this value.

[0207] In order to make the water tank temperature just near the lower limit of the water tank temperature at the beginning of the time period, thereby improving the heating efficiency in the initial stage of the energy-efficient water replenishment process, the present application performs peak heating and regulation on the water tank temperature in advance so that the water tank temperature reaches the lower limit of the water tank temperature.

[0208] In actual applications, within the preset time period peak_adj_prepare_time before the start of energy-efficient water replenishment, that is, the current moment is before the start time begin_time of the energy-efficient water replenishment period, if the current water tank liquid level is less than the peak-shaving liquid level threshold peak_adj_water_level, and the current water tank temperature is greater than the energy-efficiency initialization water tank temperature EE_init_water_tank_t, then the water tank temperature setting value is determined to be the lower limit of the water tank temperature water_tank_t_lower_limit, that is, a temperature setting value strategy for the heating peak-shaving stage is generated, and its water tank temperature setting value is the lower limit of the water tank temperature; or, within the preset time period before the start of energy-efficient water replenishment, if the current water tank liquid level is less than the peak-shaving liquid level threshold peak_adj_water_level, and the current water tank temperature is not greater than the lower limit of the water tank temperature, then the water tank temperature setting value is determined to be the lower limit of the water tank temperature water_tank_t_lower_limit, that is, a temperature setting value strategy for the heating peak-shaving stage is generated, and its water tank temperature setting value is the lower limit of the water tank temperature. Among them, the energy efficiency initialization water tank temperature EE_init_water_tank_t can be 41°C, the peak liquid level threshold peak_adj_water_level can be 1.8m, and the water tank temperature lower limit water_tank_t_lower_limit can be 44°C. The specific value can be adjusted according to actual needs, and this application does not make any specific limitation on this value.

[0209] Optionally, if the current water tank liquid level is not less than the peak-shaving liquid level threshold peak_adj_water_level, or if the current water tank temperature is not greater than the lower limit of the water tank temperature during the preset period before the start of energy-efficient water replenishment, the temperature setting value strategy for the heating peak-shaving stage will not be generated, and the water tank temperature setting value will be missing.

[0210] In an optional embodiment, the heating peak regulation method flow chart is as follows Figure 8 As shown, the heating peak regulation method includes:

[0211] Step 801: Determine whether the current moment is within the preset time period before the start of energy-efficient water replenishment and whether the current water tank liquid level is less than the peak-shaving liquid level threshold. If so, execute step 802; if not, execute step 807.

[0212] Step 802: Determine whether the current water tank temperature is greater than the energy efficiency initialization water tank temperature. If so, execute step 803; if not, execute step 804.

[0213] Step 803: Generate a temperature setting value strategy for the heating peak regulation stage, the water tank temperature setting value is the lower limit of the water tank temperature, and then execute step 807.

[0214] Step 804: Determine whether the current water tank temperature is less than or equal to the lower limit of the water tank temperature. If so, execute step 805; if not, execute step 806.

[0215] Step 805: Do not generate the temperature setting value strategy for the heating peak regulation phase, and then execute step 807.

[0216] Step 806: Generate a temperature setting value strategy for the heating peak regulation stage, the water tank temperature setting value is the lower limit of the water tank temperature, and then execute step 807.

[0217] Step 807: Return the temperature setting value strategy and the water tank temperature setting value in the heating peak regulation phase.

[0218] In addition to generating a temperature set point strategy and a water tank temperature set point during the heating peak regulation phase, a temperature set point strategy and a water tank temperature set point are also generated during the energy efficiency water replenishment phase.

[0219] In an optional embodiment, a schematic diagram of a method for generating a temperature setting value strategy in the energy efficiency water replenishment stage is as follows: Fig. 9 As shown, Fig. 9 is Figure 7 The energy-efficient water replenishment stage generates a temperature setting value strategy and a temperature setting value based on the energy-efficient water replenishment method shown in FIG. Fig. 9 As shown:

[0220] Step 901: determine whether the water supply valve state of the next time window is closed, if so, execute step 902, if not, execute step 903.

[0221] Step 902: Determine whether the current water tank liquid level is greater than the water tank liquid level upper limit, if so, execute step 904, if not, execute step 905.

[0222] Step 903: Determine whether the current moment is in the energy efficiency water replenishment period, and the current water tank liquid level is less than the energy efficiency initialization liquid level. If so, execute step 906; if not, execute step 902.

[0223] Step 904: Set the water supply valve state of the next time window to open, and then execute step 911.

[0224] Step 905: Set the water supply valve state of the next time window to closed, and then execute step 911.

[0225] Step 906: Determine whether the current water tank liquid level is less than the water tank liquid level upper limit and whether the current water tank temperature is greater than the water tank temperature lower limit. If so, execute step 907; if not, execute step 908.

[0226] Step 907: Set the water supply valve state of the next time window to closed, and then execute step 909.

[0227] Step 908: Set the water supply valve state of the next time window to open, and then execute step 909.

[0228] Step 909: Determine whether the current water tank temperature is less than the energy efficiency initialization water tank temperature. If so, execute step 911; if not, execute step 910.

[0229] Step 910: Generate a temperature setting value strategy for the energy-efficient water replenishment phase, where the water tank temperature setting value is the lower limit of the water tank temperature.

[0230] Step 911: Return the valve control strategy, the temperature setting value strategy for the energy-efficient water replenishment phase, and the water tank temperature setting value.

[0231] Fig. 9 In step 901 to step 908, Figure 7 Steps 701 to 708 are similar and will not be described again. Steps 904 and 905 do not generate the temperature setting value strategy and the water tank temperature setting value for the energy efficiency water replenishment phase. Step 909 determines that the current water tank temperature is less than the energy efficiency initialization water tank temperature and does not generate the temperature setting value strategy and the water tank temperature setting value for the energy efficiency water replenishment phase. The valve control strategy in step 911 is the water replenishment valve state generated by steps 904, 905, 907, and 908.

[0232] In an optional embodiment, the temperature tracking method flow chart is as follows Fig.10 As shown, the temperature tracking method includes:

[0233] Step 1001: Determine whether a temperature setting value strategy for the heating peak regulation phase is generated, if so, execute step 1002, if not, execute step 1003.

[0234] Step 1002: Set the water tank temperature setting value to the water tank temperature lower limit.

[0235] Step 1003: Determine whether a temperature setting value strategy for the energy-efficient water replenishment phase is generated, if so, execute step 1004, if not, execute step 1005, and then execute step 1006.

[0236] Step 1004: Set the water tank temperature setting value to the water tank temperature lower limit, and then execute step 1006.

[0237] Step 1005: Set the water tank temperature setting value to the target water tank temperature, and then execute step 1006.

[0238] Step 1006: Calculate the redundant temperature difference remain_t_diff=the return difference return_diff-the remaining temperature setting value remain_t.

[0239] Step 1007: Determine whether the current water tank state is heating state, if so, execute step 1008, if not, execute step 1009.

[0240] Step 1008: Determine whether the water tank temperature setting value is greater than the current water tank temperature, and whether the difference between the water tank temperature setting value and the current water tank temperature is greater than the redundant temperature difference. If so, execute step 1010; if not, execute step 1012.

[0241] Step 1009: Determine whether the difference between the water tank temperature setting value and the hysteresis is not less than the current water tank temperature. If so, execute step 1011; if not, execute step 1012.

[0242] Step 1010: Set the water tank temperature setting value to the sum of the current water tank temperature and the redundant temperature difference, and then execute step 1012.

[0243] Step 1011: Compare the current water tank temperature and the lower limit of the water tank temperature to obtain the larger value, set the water tank temperature setting value to the sum of the hysteresis and the larger value, and then execute step 1012.

[0244] Step 1012: Return the water tank temperature setting value.

[0245] The hot water tank control method provided in the present application takes into account the water replenishment strategy and meteorological factors (such as the water tank temperature is affected by the air temperature) that will affect the water tank heating efficiency when heating the water tank. By peak-shaving the water tank temperature during the energy-efficient water replenishment start period to be near the lower temperature limit, and adjusting the temperature setting value to track the return water temperature, the water tank heating efficiency can be improved, further improving the system energy efficiency.

[0246] A hot water tank control method provided in an embodiment of the present application is introduced above, and a system for executing the hot water tank control method will be introduced below.

[0247] See also Fig.11 , Fig.11 This is a schematic diagram of the structure of a hot water tank control system provided in an embodiment of the present application. Fig.11 As shown, the hot water tank control system comprises:

[0248] The data acquisition module 1101 is used to obtain the cumulative water replenishment volume, water replenishment valve status and current water tank liquid level in multiple time periods of historical dates.

[0249] The water replenishment valve opening times calculation module 1102 is used to obtain the water replenishment change amount when the cumulative water replenishment amount in two adjacent time periods changes, and obtain the water replenishment valve opening times in two adjacent time periods according to the water replenishment valve states in the two adjacent time periods.

[0250] The historical water replenishment volume calculation module 1103 is used to determine the water replenishment volume corresponding to the water replenishment valve status in multiple time periods of historical dates according to the water replenishment change and the number of times the water replenishment valve is opened, and obtain historical water replenishment volume data.

[0251] The water consumption prediction module 1104 is used to determine the water consumption prediction result of the current date within the time window based on the historical water replenishment data.

[0252] The water replenishment valve state prediction module 1105 is used to obtain the water replenishment valve state prediction result based on the water consumption prediction result of the current date and the current water tank liquid level.

[0253] The water tank liquid level control module 1106 is used to control the hot water tank liquid level based on the water supply valve state prediction result.

[0254] In an optional implementation, the water consumption prediction module 1104 is specifically used to:

[0255] Determine the average water consumption in each time window of the historical date based on the historical water replenishment data;

[0256] The average water consumption is clustered according to the date type to obtain a set of average water consumption under each date type; wherein the set of average water consumption includes the average water consumption of each time window of the historical date belonging to the date type;

[0257] For the average water consumption set under each date type, calculate the upper quantile and lower quantile of each time window to obtain the quantile statistics of each date type;

[0258] Based on the quantile statistics results, the water consumption forecast result for the time window that has not passed the current date is determined.

[0259] Optionally, the water consumption prediction module 1104 is further used to:

[0260] Obtain the target quantile statistics and the target average water consumption set; wherein the target quantile statistics are the quantile statistics corresponding to the current date type, and the target average water consumption set is the average water consumption set corresponding to the current date type;

[0261] Calculate the difference between the upper quantile and the lower quantile of each time window in the target quantile statistics result;

[0262] When the difference is greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the first preset quantile and the target average water consumption set; when the difference is not greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the second preset quantile and the target average water consumption set to obtain a first water consumption prediction result; wherein the first preset quantile is greater than the second preset quantile;

[0263] Determine whether there is a matching target historical date, and the deviation between the average water consumption in the time window that meets the target historical date and the average water consumption in the time window that has passed the current date is less than a preset deviation; wherein the average water consumption in the time window that has passed the current date is determined based on the water replenishment change in two adjacent time periods that have passed on the current date and the number of times the water replenishment valve is opened;

[0264] If there is a matching target historical date, the average water consumption of each time window of the target historical date is used as the second water consumption forecast result, and the second water consumption forecast result is used to correct the first water consumption forecast result to obtain the water consumption forecast result of the time window that has not passed the current date;

[0265] If there is no matching target historical date, the first water consumption forecast result is used as the water consumption forecast result for the time window that has not passed the current date.

[0266] In an optional implementation, the water supply valve state prediction module 1105 is specifically used to:

[0267] Initialize the water supply valve state of the current date before the time window expires, and obtain the target water supply valve state;

[0268] Calculate the water tank liquid level under the target water supply valve state according to the current water tank liquid level, the water consumption forecast result of the current date and the target water supply valve state;

[0269] When the water tank liquid level in the target water replenishment valve state is less than the water tank liquid level lower limit, the target water replenishment valve state is changed until the water tank liquid level in the target water replenishment valve state is not less than the water tank liquid level lower limit, and the water replenishment valve state prediction result is obtained.

[0270] In an optional implementation, the present application provides a hot water tank control system, further comprising:

[0271] Water supply valve adjustment module, used for:

[0272] Determine the state of the water supply valve in the next time window based on the water supply valve state prediction result;

[0273] If the state of the water supply valve in the next time window is closed, then when the current water tank level is greater than the upper limit of the water tank level, the state of the water supply valve in the next time window is set to open;

[0274] If the water replenishment valve state of the next time window is open, when the current moment is in the energy efficiency water replenishment period, and the current water tank level is less than the energy efficiency initialization level, if the current water tank temperature is greater than the lower limit of the water tank temperature, the water replenishment valve state of the next time window is set to closed.

[0275] In an optional implementation, the present application provides a hot water tank control system, further comprising:

[0276] Hot water tank temperature control module for:

[0277] Determine the water tank temperature set point;

[0278] When the current water tank state is heating state, if the water tank temperature setting value is greater than the current water tank temperature, and the difference between the water tank temperature setting value and the current water tank temperature is greater than the redundant temperature difference, then the water tank temperature setting value is modified to be the sum of the current water tank temperature and the redundant temperature difference; wherein the redundant temperature difference is the difference between the hysteresis and the margin temperature setting value, and the hysteresis is the difference between the upper limit of the water tank temperature and the lower limit of the water tank temperature;

[0279] When the current water tank state is non-heating state, if the difference between the water tank temperature setting value and the hysteresis is not less than the current water tank temperature, compare the current water tank temperature with the lower limit of the water tank temperature, and obtain the larger value. Then modify the water tank temperature setting value to the sum of the hysteresis and the larger value;

[0280] Hot water tank temperature control based on the tank temperature setpoint.

[0281] Optional hot water tank temperature control module, specifically used for:

[0282] In the preset period before the energy-efficient water replenishment starts, if the current water tank level is less than the peak-shaving level threshold, and the current water tank temperature is greater than the energy-efficient initialization water tank temperature, the water tank temperature setting value is determined to be the lower limit of the water tank temperature;

[0283] In the preset period before the start of energy-efficient water replenishment, if the current water tank liquid level is less than the peak-shaving liquid level threshold, and the current water tank temperature is not greater than the lower limit of the water tank temperature, then the water tank temperature setting value is determined to be the lower limit of the water tank temperature;

[0284] During the energy efficiency water replenishment period, if the current water tank liquid level is not less than the energy efficiency initialization liquid level, the water tank temperature setting value is determined to be the target water tank temperature;

[0285] During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the target water tank temperature;

[0286] During the energy efficiency water replenishment period, if the current water tank level is less than the energy efficiency initialization level, and if the current water tank temperature is not less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the lower limit of the water tank temperature.

[0287] The present application also provides an electronic device in an embodiment. Fig.12As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig.12 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0288] like Fig.12 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 to a random access memory (RAM) 1203. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 1203. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0289] Typically, the following devices may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a memory card, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0290] The electronic device can implement the above-mentioned hot water tank control method.

[0291] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the hot water tank control methods provided in the embodiments of the present application.

[0292] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any hot water tank control method provided in the embodiment of the present application.

[0293] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0294] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0295] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0296] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A hot water tank control method, characterized in that: include: Obtain the cumulative water replenishment volume, water replenishment valve status and current water tank level in multiple time periods of historical dates; When the accumulated water replenishment amount in two adjacent time periods changes, the water replenishment change amount is obtained, and the number of times the water replenishment valve is opened in the two adjacent time periods is obtained according to the water replenishment valve state in the two adjacent time periods; Determine the water replenishment amount corresponding to the water replenishment valve state in multiple time periods of the historical date according to the water replenishment change amount and the number of times the water replenishment valve is opened, and obtain historical water replenishment amount data; Determine the water consumption forecast result for the current date within the time window based on the historical water replenishment data; Based on the water consumption prediction result of the current date and the current water tank liquid level, a water supply valve state prediction result is obtained; The hot water tank liquid level is controlled based on the water supply valve state prediction result.

2. The hot water tank control method according to claim 1, characterized in that: The method of determining the water consumption forecast result for the current date within the time window based on the historical water replenishment data includes: Determine the average water consumption in each time window of the historical date according to the historical water replenishment data; Clustering the average water consumption according to date type to obtain a set of average water consumption under each date type; wherein the set of average water consumption includes the average water consumption of each time window of the historical date belonging to the date type; For each set of average water consumption under the date type, calculate the upper quantile and lower quantile of each time window to obtain the quantile statistics of each date type; Based on the quantile statistics results, the water consumption forecast result for the time window that has not passed the current date is determined.

3. The hot water tank control method according to claim 2, characterized in that: Determining the water consumption forecast result for the current date within the time window based on the quantile statistics result includes: Obtaining a target quantile statistical result and a target average water consumption set; wherein the target quantile statistical result is a quantile statistical result corresponding to the current date type, and the target average water consumption set is an average water consumption set corresponding to the current date type; Calculate the difference between the upper quantile and the lower quantile of each time window in the target quantile statistical result; When the difference is greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the first preset quantile and the target average water consumption set; when the difference is not greater than the upper limit of water consumption fluctuation, the predicted water consumption of the corresponding time window is determined according to the second preset quantile and the target average water consumption set to obtain a first water consumption prediction result; wherein the first preset quantile is greater than the second preset quantile; Determine whether there is a matching target historical date, and the deviation between the average water consumption in the time window that meets the target historical date and the average water consumption in the time window that has passed the current date is less than a preset deviation; wherein the average water consumption in the time window that has passed the current date is determined based on the water replenishment change in two adjacent time periods that have passed on the current date and the number of times the water replenishment valve is opened; If there is a matching target historical date, the average water consumption of each time window of the target historical date is used as the second water consumption forecast result, and the second water consumption forecast result is used to correct the first water consumption forecast result to obtain the water consumption forecast result of the time window that has not passed the current date; If there is no matching target historical date, the first water consumption forecast result is used as the water consumption forecast result for the time window that has not passed the current date.

4. The hot water tank control method according to claim 3, characterized in that: The water supply valve state prediction result is obtained based on the water consumption prediction result of the current date and the current water tank liquid level, including: Initialize the water supply valve state of the current date before the time window expires, and obtain the target water supply valve state; Calculate the water tank liquid level under the target water supply valve state according to the current water tank liquid level, the water consumption prediction result of the current date and the target water supply valve state; When the water tank liquid level in the target water replenishment valve state is less than the water tank liquid level lower limit, the target water replenishment valve state is changed until the water tank liquid level in the target water replenishment valve state is not less than the water tank liquid level lower limit, and the water replenishment valve state prediction result is obtained.

5. The hot water tank control method according to any one of claims 1 to 4, characterized in that: After obtaining the water supply valve state prediction result, the method further includes: Determine the state of the water supply valve in the next time window based on the water supply valve state prediction result; If the state of the water supply valve in the next time window is closed, then when the current water tank liquid level is greater than the upper limit of the water tank liquid level, the state of the water supply valve in the next time window is set to open; If the water replenishment valve state of the next time window is open, and at the current moment it is in the energy efficiency water replenishment period, and the current water tank liquid level is less than the energy efficiency initialization liquid level, if the current water tank temperature is greater than the lower limit of the water tank temperature, the water replenishment valve state of the next time window is set to closed.

6. The hot water tank control method according to any one of claims 1 to 4, characterized in that: Also includes: Determine the water tank temperature set point; When the current water tank state is the heating state, if the water tank temperature setting value is greater than the current water tank temperature, and the difference between the water tank temperature setting value and the current water tank temperature is greater than the redundant temperature difference, then the water tank temperature setting value is modified to be the sum of the current water tank temperature and the redundant temperature difference; wherein the redundant temperature difference is the difference between the hysteresis and the margin temperature setting value, and the hysteresis is the difference between the upper limit of the water tank temperature and the lower limit of the water tank temperature; When the current water tank state is a non-heating state, if the difference between the water tank temperature setting value and the hysteresis is not less than the current water tank temperature, the current water tank temperature and the lower limit of the water tank temperature are compared to obtain a larger value, and the water tank temperature setting value is modified to be the sum of the hysteresis and the larger value; The hot water tank temperature is controlled based on the water tank temperature setting value.

7. The hot water tank control method according to claim 6, characterized in that: Determining the water tank temperature setting value includes: In a preset period before the start of energy-efficient water replenishment, if the current water tank level is less than the peak-shaving level threshold, and the current water tank temperature is greater than the energy-efficient initialization water tank temperature, then the water tank temperature setting value is determined to be the water tank temperature lower limit; In a preset period before the start of energy-efficient water replenishment, if the current water tank liquid level is less than the peak-shaving liquid level threshold, and the current water tank temperature is not greater than the water tank temperature lower limit, then determining the water tank temperature setting value to be the water tank temperature lower limit; During the energy efficiency water replenishment period, if the current water tank liquid level is not less than the energy efficiency initialization liquid level, the water tank temperature setting value is determined to be the target water tank temperature; During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is less than the energy efficiency initialization water tank temperature, then determining the water tank temperature setting value to be the target water tank temperature; During the energy efficiency water replenishment period, if the current water tank liquid level is less than the energy efficiency initialization liquid level, and if the current water tank temperature is not less than the energy efficiency initialization water tank temperature, the water tank temperature setting value is determined to be the water tank temperature lower limit.

8. A hot water tank control system, characterized in that: include: A data acquisition module is used to obtain the cumulative water replenishment volume, water replenishment valve status and current water tank liquid level in multiple time periods of historical dates; A water supply valve opening times calculation module is used to obtain a water supply change amount when the cumulative water supply amount in two adjacent time periods changes, and obtain the water supply valve opening times in the two adjacent time periods according to the water supply valve states in the two adjacent time periods; A historical water replenishment volume calculation module is used to determine the water replenishment volume corresponding to the water replenishment valve state in multiple time periods of the historical date according to the water replenishment change and the number of times the water replenishment valve is opened, and obtain historical water replenishment volume data; A water consumption prediction module, used to determine the water consumption prediction result of the current date within the time window based on the historical water replenishment data; A water supply valve state prediction module, used to obtain a water supply valve state prediction result based on the water consumption prediction result of the current date and the current water tank liquid level; The water tank liquid level control module is used to control the hot water tank liquid level based on the water supply valve state prediction result.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the hot water tank control method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the hot water tank control method as described in any one of claims 1 to 7.