A water resource regional allocation method and system for a coffee water dispenser

CN118303759BActive Publication Date: 2026-10-30ELECTROTEMP TECHNOLOGIES CHINA INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410479054.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-21
Publication Date
2026-10-30
Estimated Expiration
2044-04-21

AI Technical Summary

Technical Problem

因饮用咖啡与饮用纯水是紧密相关,又时常需随心情相互替代饮用,但是,在实现咖啡喝饮水两用的同时,会出现水资源分配不均的情况,出现这种情况便会影响用户的体验感

Benefits of technology

[0041]本发明实现咖啡饮水机一体化的水资源区域的灵活分配,适用于不同的调配环境,缓解在实现咖啡喝饮水两用的同时出现的水资源分配不均的情况,提高了用户的体验感。构建水资源区域调配模型对可用水量进行合理优化形成新的水量分配方案进行调配,从而提高各区域用水的精度,既能减少用水纠纷,同时也能节约用水,避免大量水资源浪费的现象。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118303759B_ABST
    Figure CN118303759B_ABST
Patent Text Reader

Abstract

The application provides a water resource regional allocation method and system integrated with a coffee and water dispenser, and relates to the technical field of coffee machines or beverage machines, which comprises the following steps: obtaining a historical allocation scheme of the coffee and water dispenser integration, obtaining the available water amount of the current water resource of the coffee and water dispenser integration according to the historical allocation data; predicting and evaluating the supply situation of the current required water resource; determining the water supply sequence of different water types in the current water resource region; constructing a water resource regional allocation model of the coffee and water dispenser integration, and using a multi-level feedback queue scheduling algorithm to formulate an optimal water resource allocation scheme, and evaluating and optimizing the formulated optimal water resource allocation scheme, so as to execute the water resource allocation scheme. The application has the beneficial effect of relieving the uneven water resource allocation situation while realizing the functions of drinking coffee and water, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of coffee machine or beverage machine technology, and more specifically, to a method and system for regional water resource allocation that integrates coffee and water dispensers. Background Technology

[0002] Currently, water dispensers and coffee machines are generally separate entities. However, some water dispensers do have a coffee-brewing function, such as the one disclosed in Chinese patent document CN2680165Y, which adds a storage space to the water dispensing area of ​​the water dispenser and installs a brewer within this space. This allows the water dispenser to provide both hot and cold drinking water, and also to use the existing hot water from the dispenser to directly supply the brewer for coffee brewing, thus achieving dual-use for coffee and water. However, in most cases, they exist independently. Even in products that integrate the two, the coffee machine is often simply placed on top of the water dispenser, with the water dispenser supplying water and power to the coffee machine. Since drinking coffee and drinking pure water are closely related and often substituted depending on mood, achieving dual-use for coffee and water can lead to uneven water distribution, negatively impacting the user experience. Summary of the Invention

[0003] The purpose of this invention is to provide a method and system for regional water resource allocation integrated with a coffee dispenser, in order to improve the aforementioned problems. To achieve the above objective, the technical solution adopted by this invention is as follows:

[0004] Firstly, this application provides a method for regional water resource allocation integrating a coffee and water dispenser, including:

[0005] Obtain the historical allocation scheme of the integrated coffee and water dispenser, input the historical allocation scheme into the data processing module for analysis, and obtain historical allocation data;

[0006] Based on historical allocation data and combined with the water resource regional utilization balance model to calculate the allocated water volume, the available water volume of the current integrated coffee and water dispenser is obtained.

[0007] Based on historical allocation data and current water resource conditions, predict and assess the current water supply needs.

[0008] The water supply sequence for different water use types in the current water resource area is determined based on the attribute weight analysis method.

[0009] Based on the available water volume, the current water supply situation, and the water delivery sequence of different water use types, a regional water resource allocation model for integrated coffee and water dispensers is constructed. A multi-level feedback queue scheduling algorithm is used to formulate the optimal water resource allocation plan, and the formulated optimal water resource allocation plan is evaluated and optimized, thereby executing the water resource allocation plan.

[0010] The system monitors water resource allocation in real time, adjusts and optimizes the optimal water resource allocation plan based on actual conditions, and stores the final execution results in a historical plan database.

[0011] Preferably, the water allocation volume is calculated using a regional water resource utilization equilibrium model, wherein the solution process for the regional water resource utilization equilibrium model is as follows:

[0012] The water resource utilization equilibrium index for each integrated water heater is calculated using the mean square theorem. The water resource utilization equilibrium indices of all integrated water heaters are then summed and averaged to obtain the regional water resource utilization equilibrium model, as follows:

[0013]

[0014] In the formula, The results of the regional water resource utilization equilibrium model, u bj This is a resource utilization equilibrium index. This is for server clustering and memory utilization balance.

[0015] Preferably, the step of determining the water supply sequence for different water use types in the current water resource area based on the attribute weight analysis method includes:

[0016] Establish a hierarchical structure model of the current water resource region, including the highest level, intermediate level, and lowest level; construct various judgment matrices for each level of the water resource region, where the weight of each criterion in the criterion layer is determined according to the importance of the criterion and the subjective judgment of the judge; perform single permutation and consistency check on the levels, and finally perform overall ranking and consistency check on each level of the water resource region to determine whether the ranking meets the requirements. If it does, obtain the composite weight, and rank the water supply sequence schemes for each water use type.

[0017] Preferably, the step of performing a single permutation and consistency check on the hierarchy includes:

[0018] The consistency index for different water use types in the current water resource area is calculated using the following formula:

[0019]

[0020] In the formula, CI is the consistency index, and λmax To determine the largest eigenvalue of the matrix, where n represents different categories, a consistency index is found, and the consistency ratio is calculated. If the consistency ratio is less than 0.1, the consistency of the matrix is ​​determined to meet the requirements.

[0021] Preferably, the step of inputting historical allocation schemes into the data processing module for analysis to obtain historical allocation data includes:

[0022] Historical allocation schemes are used to extract data, resulting in first and second extracted data. The first extracted data represents the water resource utilization rate of water dispensers, and the second data represents the water resource utilization rate of coffee machines. The water resource utilization rates corresponding to the first and second extracted data are then obtained to generate third and fourth extracted data. The third extracted data represents the water resource utilization rate of water dispensers, and the fourth data represents the water resource utilization rate of coffee machines.

[0023] The first, second, third, and fourth extracted data are input into the processing module for analysis and normalization to obtain the final historical allocation data after processing.

[0024] Preferably, the step of using a multi-level feedback queue scheduling algorithm to formulate an optimal water resource allocation plan includes:

[0025] Create multiple queues and assign different priorities to each queue;

[0026] Queues with different priorities will be assigned different time slices, with higher priority queues having shorter time slices and lower priority queues having longer time slices.

[0027] Predict the estimated time for the newly created process to complete when the new process arrives;

[0028] Tasks are placed at the tail of the corresponding queue according to their estimated completion time. Following the first-in, first-out principle, if a higher-priority queue process arrives, a non-preemptive priority scheduling algorithm is used. Only when the currently executing queue process has completed will the higher-priority queue be executed. That is, tasks are selected from the corresponding queues for execution based on their priority and queue rules, until the final scheduling is completed and the optimal water resource allocation plan is obtained.

[0029] Secondly, this application also provides a regional water resource allocation system integrated with a coffee dispenser, comprising:

[0030] Acquisition module: Used to acquire historical allocation plans for integrated coffee and water dispensers, input the historical allocation plans into the data processing module for analysis, and obtain historical allocation data;

[0031] Calculation module: Used to calculate the amount of water allocated based on historical allocation data and combined with the water resource regional utilization balance model, so as to obtain the available water resources of the current integrated coffee and water dispenser.

[0032] Forecasting module: Used to predict and assess the supply of water resources needed at present based on historical allocation data and the current water resource situation;

[0033] Determining module: Used to determine the water supply sequence for different water use types in the current water resource area based on attribute weight analysis methods;

[0034] The formulation module is used to construct a regional water resource allocation model for coffee and water dispensers based on the available water volume, the current water supply situation, and the water delivery sequence of different water use types. It also uses a multi-level feedback queue scheduling algorithm to formulate the optimal water resource allocation plan, evaluates and optimizes the formulated optimal water resource allocation plan, and then executes the water resource allocation plan.

[0035] Optimization module: Used to monitor the allocation of water resources in real time, adjust and optimize the optimal water resource allocation plan according to the actual situation, and store the final execution results in the historical plan database.

[0036] Thirdly, this application also provides a water resource allocation device that integrates a coffee dispenser and a water purifier, comprising:

[0037] Memory, used to store computer programs;

[0038] A processor is used to execute the computer program to implement the steps of the water resource allocation method for an integrated coffee and water dispenser.

[0039] Fourthly, this application also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the steps described above for a water resource allocation method based on an integrated coffee and water dispenser.

[0040] The beneficial effects of this invention are as follows:

[0041] This invention enables flexible allocation of water resources in an integrated coffee and water dispenser, suitable for various environments. It alleviates the uneven water distribution that can occur when a machine serves both coffee and drinking purposes, thus improving the user experience. A water resource allocation model is constructed to optimize available water volume and create a new allocation scheme, thereby improving the accuracy of water use in each area. This reduces water disputes, conserves water, and avoids significant water waste.

[0042] This invention achieves effective scheduling and control of water resources in an integrated coffee and water dispenser area through multiple stages, including data analysis, water volume prediction, water demand assessment, scheduling algorithm selection, water allocation scheme formulation and optimization, scheme execution and monitoring, and result storage and summary.

[0043] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0044] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a schematic diagram of a water resource allocation method for an integrated coffee and water dispenser as described in an embodiment of the present invention;

[0046] Figure 2 This is a schematic diagram of a water resource allocation system integrating a coffee and water dispenser, as described in an embodiment of the present invention.

[0047] Figure 3 This is a schematic diagram of a water resource allocation device integrating a coffee and water dispenser, as described in an embodiment of the present invention.

[0048] In the diagram: 701, Acquisition Module; 7011, Extraction Unit; 7012, Acquisition Unit; 7013, Processing Unit; 702, Calculation Module; 7021, Solving Unit; 7022, Calculation Unit; 703, Prediction Module; 704, Determination Module; 7041, Establishment Unit; 7042, Construction Unit; 7043, Judgment Unit; 70431, Calculation Index Unit; 70432, Search Unit; 705, Selection Module; 7051, Creation Unit; 7052, Assignment Unit; 7053, Prediction Unit; 7054, Execution Unit; 706, Optimization Module; 800, Tag Receiving Device; 801, Processor; 802, Memory; 803, Multimedia Component; 804, I / O Interface; 805, Communication Component. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0050] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0051] Example 1:

[0052] This embodiment provides a method for regional allocation of water resources in an integrated coffee and water dispenser system.

[0053] See Figure 1 The figure shows that the method includes steps S100, S200, S300, S400, S500 and S600.

[0054] S100: Obtain the historical allocation scheme of the integrated coffee and water dispenser, input the historical allocation scheme into the data processing module for analysis, and obtain historical allocation data.

[0055] It is understood that step S100 includes S101, S102, and S103, wherein:

[0056] S101. Extract data from the historical allocation scheme to obtain first extracted data and second extracted data, wherein the first extracted data is the water resource utilization rate of the water dispenser and the second data is the water resource utilization rate of the coffee machine.

[0057] S102. Obtain the water resource utilization rate corresponding to the first extraction data and the second extraction data, and obtain the third extraction data and the fourth extraction data, wherein the third extraction data is the water resource utilization rate of the water dispenser and the fourth extraction data is the water resource utilization rate of the coffee machine.

[0058] S103. Input the first extracted data, the second extracted data, the third extracted data and the fourth extracted data into the processing module for analysis and normalization to obtain the final historical allocation data after processing.

[0059] It should be noted that, based on the water resource usage rate and the corresponding water resource usage rate of the controlled water dispenser, the load status of each of the two planes is known. When the load status reaches the preset condition, the computing resources of the plane with the lower load are allocated to the plane with the higher load. In other words, if the current water resource usage rate is higher than the controlled water resource usage rate, then allocation is required. This achieves flexible allocation of computing resources, which is suitable for different water resource utilization environments and ensures the continuous stability of the integrated coffee machine and water dispenser.

[0060] S200. Based on historical allocation data and combined with the water resource regional utilization balance model, the available water volume of the current integrated coffee and water dispenser is obtained.

[0061] It is understood that step S200 includes S201 and S202, wherein:

[0062] S201. Use the mathematical mean value theorem to solve the water resource utilization equilibrium index of each all-in-one machine;

[0063] S202. By summing the resource utilization equilibrium indices of the integrated machines and taking the average value, the water resource regional utilization equilibrium model can be obtained, as follows:

[0064]

[0065] In the formula, The results of the regional water resource utilization equilibrium model, u bj This is a resource utilization equilibrium index. This is for server clustering and memory utilization balance.

[0066] It should be noted that the greater the difference in utilization rates between the two types of resources, the more unbalanced the consumption of that PM resource is. Constructing a regional water resource utilization equilibrium model can maintain a balance in the utilization rates of various resources, namely the water resources in coffee machines and water dispensers, thus avoiding the "weakest link" effect.

[0067] S300. Based on historical allocation data and the current water resource situation, predict and assess the current water resource supply.

[0068] Understandably, in this step, based on historical data and current water resource conditions, a predictive algorithm can be used to assess the current water supply needs, i.e., to predict and estimate the water demand of the coffee machine and water dispenser. The predictive algorithm includes, but is not limited to, regression analysis, machine learning methods, time series forecasting methods, and neural network algorithms.

[0069] S400. Determine the water supply sequence for different water use types in the current water resource area based on the attribute weight analysis method.

[0070] It is understood that step S400 includes S401, S402, and S403, wherein:

[0071] S401. Establish a hierarchical structure model of the current water resources area, where the levels include the highest level, the intermediate level, and the lowest level.

[0072] S402. Construct various judgment matrices at each level of the water resource area. The weight of each criterion in the criterion layer when comparing them is determined according to the importance of the criterion and the subjective judgment of the judge.

[0073] S403. Perform single permutation and consistency check on the hierarchy, and finally perform overall sorting and consistency check on each hierarchy in the water resource area to determine whether the permutation meets the requirements. If it does, obtain the composite weight and sort the water supply sequence schemes of each water use type.

[0074] It should be noted that the number of hierarchical levels in the hierarchical construction and the complexity of the problem are directly related to the required level of detail in the analytical method. After performing a consistency check on the overall hierarchical ranking, if the ranking meets the requirements, the composite weights can be obtained, and the various schemes can be ranked.

[0075] It should be noted that step S403 includes S4031 and S4032, wherein:

[0076] S4031. Calculate the consistency index of different water use types in the current water resource area. The calculation formula is as follows:

[0077]

[0078] In the formula, CI is the consistency index, and λ max To determine the largest eigenvalue of a matrix, n represents the number of different categories;

[0079] S4032. Find the consistency index and calculate the consistency ratio. If the consistency ratio is less than 0.1, the consistency of the judgment matrix is ​​determined to meet the requirements.

[0080] S500 constructs a regional water resource allocation model for integrated coffee and water dispensers based on available water volume, current water supply, and water delivery sequence for different water use types. It then uses a multi-level feedback queue scheduling algorithm to formulate an optimal water resource allocation plan, evaluates and optimizes the plan, and finally executes the water resource allocation plan.

[0081] It is understood that step S500 includes S501, S502, S503, and S504, wherein:

[0082] S501. Create multiple queues and assign different priorities to each queue.

[0083] S502. Assign different time slices to queues with different priorities, where the time slice for tasks executed by higher priority queues is shorter and the time slice for tasks executed by lower priority queues is longer.

[0084] S503. Predict the estimated time for the newly created process to complete when the new process arrives;

[0085] S504. Based on the estimated completion time, the task is placed at the end of the corresponding queue. Following the first-in, first-out principle, if a higher-priority queue process arrives, a non-preemptive priority scheduling algorithm is adopted. Only when the currently executing queue process is completed will the higher-priority queue be executed. That is, according to the priority of the task and the rules of the queue, the task in the corresponding queue is selected for execution until the final scheduling is completed, and the optimal water resource allocation scheme is obtained.

[0086] Understandably, in this step, the priority of each queue is from high to low, and processes in each queue follow a first-in, first-out (FIFO) principle. Each queue corresponds to a time slice: the first-level ready queue has a time slice of t0; the second-level ready queue has a time slice of 3t0; the third-level ready queue has a time slice of 9t0…; and the Nth-level ready queue has a time slice of 3N-1t0, where t0 is the time slice length set according to the actual situation. The new process is placed into the ready queue in which it can complete within the allotted time slice.

[0087] For the lowest priority queue, a round-robin timer algorithm is used. That is, if there are M jobs in queue QN, their execution time is determined by the time slice allocated to queue QN. For other queues, a first-come, first-served (FFS) algorithm is used. Each process is allocated a certain time slice, and if a process is not finished when its time slice expires, it moves to the end of the next priority queue. The time slices for each queue decrease as the priority increases; that is, the higher the priority of the queue, the shorter its time slice.

[0088] For processes within the same queue, time slices are allocated and scheduled according to the First-Come, First-Served (FCFS) principle. For example, if the time slice for queue Q1 is N, then if a job in Q1 has not completed after N time slices, it will move to queue Q2 to wait. If the job still cannot complete after the time slice for Q2 expires, it will continue to the end of the next level queue until it is completed. Processes in the last queue QN are then allocated and scheduled according to a round-robin system.

[0089] If a process in a low-priority queue is running and a new job arrives, the currently running process must be immediately moved back to the end of the current queue, and the processor is then allocated to the high-priority process. In other words, at any given time, a process in the i-th queue will only be executed if all queues from 1 to i-1 are empty (preemptive). It's important to note that when the process in the current queue is run again, only the time slice that was not completed last time is allocated; the full time slice corresponding to that queue is not allocated again.

[0090] By utilizing a multi-level feedback queue scheduling algorithm, processes can be processed according to different priorities, ensuring that processes run in a certain priority order, increasing the system's response speed and operating efficiency, and thus formulating an optimal water resource allocation plan. Of course, scheduling algorithms include, but are not limited to, the shortest job first algorithm, the shortest remaining time first algorithm, and the highest response ratio first algorithm.

[0091] S600 monitors water resource allocation in real time, adjusts and optimizes the optimal water resource allocation plan based on actual conditions, and stores the final execution results in the historical plan database.

[0092] Understandably, this step involves summarizing and analyzing the execution results, extracting lessons learned, and feeding these lessons back into the formulation of the next round of water resource scheduling and control plans. The above process is a complete regional water resource scheduling and control method. Through multiple stages, including data analysis, water volume forecasting, water demand assessment, scheduling algorithm selection, water allocation plan formulation and optimization, plan execution and monitoring, and result storage and summarization, it achieves effective scheduling and control of water resources in the integrated coffee and water dispenser area.

[0093] This invention employs scientific methods and multi-dimensional analysis to rationally calculate the water volume and water supply priority for each water use type in a water resource area, and allocates it to each area in a more scientific, rational and precise manner to maximize water resource utilization efficiency.

[0094] Example 2:

[0095] like Figure 2 As shown, this embodiment provides a regional water resource allocation system integrating a coffee dispenser and a water purifier. (See attached image.) Figure 2 The system includes:

[0096] Acquisition module 701: Used to acquire the historical allocation scheme of the integrated coffee and water dispenser, input the historical allocation scheme into the data processing module for analysis, and obtain historical allocation data;

[0097] Calculation module 702: Used to calculate the allocated water volume based on historical allocation data and combined with the water resource regional utilization balance model, so as to obtain the available water volume of the current integrated coffee and water dispenser.

[0098] Prediction module 703: Used to predict and assess the supply of water resources needed at present based on historical allocation data and the current water resource situation;

[0099] Module 704: Used to determine the water supply sequence for different water use types in the current water resource area based on the attribute weight analysis method;

[0100] Module 705 is used to construct a regional water resource allocation model for coffee and water dispensers based on the available water volume, the current water supply situation, and the water delivery sequence of different water use types. It also uses a multi-level feedback queue scheduling algorithm to formulate the optimal water resource allocation plan, evaluates and optimizes the formulated optimal water resource allocation plan, and then executes the water resource allocation plan.

[0101] Optimization module 706: Used to monitor the allocation of water resources in real time, adjust and optimize the optimal water resource allocation plan according to the actual situation, and store the final execution result in the historical plan database.

[0102] Specifically, the determining module 704 includes:

[0103] Establishment Unit 7041: Used to establish a hierarchical structure model of the current water resources area, where the levels include the highest level, the intermediate level, and the lowest level;

[0104] Construction Unit 7042: Used to construct various judgment matrices at each level of the water resource area, wherein the weight of each criterion in the criterion layer when comparing them is determined according to the importance of the criterion and the subjective judgment of the judge;

[0105] Judgment Unit 7043: Used to perform single permutation and consistency check on the hierarchy, and finally perform overall sorting and consistency check on each hierarchy in the water resource area to determine whether the permutation meets the requirements. If it does, the composite weight is obtained, and the schemes for water supply sequence of each water use type are sorted.

[0106] Specifically, in the calculation module 702, the solution process of the water resource regional utilization equilibrium model is as follows:

[0107] Solver Unit 7021: Used to solve the water resource utilization equilibrium index of each all-in-one machine using the mathematical mean-mean-value theorem;

[0108] Calculation unit 7022: Used to sum and average the resource utilization equilibrium indices of the all-in-one machine to obtain the water resource regional utilization equilibrium model, as follows:

[0109]

[0110] In the formula, The results of the regional water resource utilization equilibrium model, u bj This is a resource utilization equilibrium index. This is for server clustering and memory utilization balance.

[0111] Specifically, the determining module 704 includes:

[0112] Establishment Unit 7041: Used to establish a hierarchical structure model of the current water resources area, where the levels include the highest level, the intermediate level, and the lowest level;

[0113] Construction Unit 7042: Used to construct various judgment matrices at each level of the water resource area, wherein the weight of each criterion in the criterion layer when comparing them is determined according to the importance of the criterion and the subjective judgment of the judge;

[0114] Judgment Unit 7043: Used to perform single permutation and consistency check on the hierarchy, and finally perform overall sorting and consistency check on each hierarchy in the water resource area to determine whether the permutation meets the requirements. If it does, the composite weight is obtained, and the schemes for water supply sequence of each water use type are sorted.

[0115] Specifically, the determination unit 7043 includes:

[0116] Calculation index unit 70431: Used to calculate the consistency index of different water use types in the current water resource area. The calculation formula is as follows:

[0117]

[0118] In the formula, CI is the consistency index, and λ max To determine the largest eigenvalue of a matrix, n represents the number of different categories;

[0119] Search unit 70432: Used to search for consistency indicators and calculate the consistency ratio. If the consistency ratio is less than 0.1, the consistency of the judgment matrix is ​​determined to meet the requirements.

[0120] Specifically, the acquisition module 701 includes:

[0121] Extraction unit 7011: used to extract data from historical allocation schemes to obtain first extracted data and second extracted data, wherein the first extracted data is the water resource utilization rate of water dispensers and the second data is the water resource utilization rate of coffee machines;

[0122] Acquisition unit 7012: used to acquire the water resource utilization rate corresponding to the first extraction data and the second extraction data, and obtain the third extraction data and the fourth extraction data, wherein the third extraction data is the water resource utilization rate of the water dispenser and the fourth extraction data is the water resource utilization rate of the coffee machine.

[0123] Processing unit 7013: is used to input the first extracted data, the second extracted data, the third extracted data and the fourth extracted data into the processing module for analysis, normalization processing, and to obtain the final historical allocation data after sorting.

[0124] Specifically, the formulation module 705 includes:

[0125] Creation Unit 7051: Used to create multiple queues and assign different priorities to each queue.

[0126] Assignment unit 7052: is used to assign different time slices to queues with different priorities, wherein the time slice for tasks executed by higher priority queues is shorter, and the time slice for tasks executed by lower priority queues is longer.

[0127] Prediction unit 7053: Used to predict the estimated time for the newly created process to complete when the new process arrives;

[0128] Execution unit 7054: It is used to place the task at the tail of the corresponding queue according to the estimated completion time. Following the first-in-first-out principle, if a higher priority queue process arrives, a non-preemptive priority scheduling algorithm is adopted. The higher priority queue will only be executed after the currently executing queue process has been completed. That is, according to the priority of the task and the rules of the queue, the task in the corresponding queue is selected for execution until the final scheduling is completed and the optimal water resource allocation scheme is obtained.

[0129] It should be noted that the specific methods by which each module performs operations in the system described in the above embodiments have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0130] Example 3:

[0131] Corresponding to the above method embodiments, this embodiment also provides a water resource allocation device that integrates coffee and water dispensers. The water resource allocation device that integrates coffee and water dispensers described below and the water resource allocation method that integrates coffee and water dispensers described above can be referred to each other.

[0132] Figure 3 This is a block diagram illustrating an integrated water resource allocation device 800 for both coffee and water dispensers, according to an exemplary embodiment. Figure 3 As shown, the integrated water resource allocation device 800 for coffee and water dispensers includes a processor 801 and a memory 802. The integrated water resource allocation device 800 also includes one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0133] The processor 801 controls the overall operation of the integrated coffee and water dispenser water resource allocation device 800 to complete all or part of the steps in the aforementioned integrated coffee and water dispenser water resource allocation method. The memory 802 stores various types of data to support the operation of the integrated coffee and water dispenser water resource allocation device 800. This data may include, for example, instructions for any application or method operating on the integrated coffee and water dispenser water resource allocation device 800, as well as application-related data such as contact data, sent and received messages, images, audio, video, etc. The memory 802 can be implemented using any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as keyboards, mice, or buttons. These buttons can be virtual or physical. Communication component 805 is used for wired or wireless communication between the integrated coffee and water dispenser water distribution device 800 and other devices. Wireless communication includes, for example, Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof. Therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, or an NFC module.

[0134] In an exemplary embodiment, a water resource allocation device 800 integrating a coffee and water dispenser can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the aforementioned water resource allocation method integrating a coffee and water dispenser.

[0135] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, these program instructions implement the steps of the above-described method for water resource allocation in an integrated coffee and water dispenser. For example, the computer-readable storage medium may be the memory 802 including the program instructions, which may be executed by a processor 801 of an integrated coffee and water dispenser water resource allocation device 800 to complete the above-described method for water resource allocation in an integrated coffee and water dispenser.

[0136] Example 4:

[0137] Corresponding to the above method embodiments, this embodiment also provides a readable storage medium. The readable storage medium described below can be referred to in conjunction with the water resource regional allocation method for an integrated coffee and water dispenser described above.

[0138] A computer program is stored on a readable storage medium, and when the computer program is executed by a processor, it implements the steps of a water resource allocation method for an integrated coffee and water dispenser as described in the above method embodiment.

[0139] Specifically, the readable storage medium can be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other readable storage medium capable of storing program code.

[0140] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

[0141] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for regional water resource allocation integrating a coffee and water dispenser, characterized in that, include: Obtain the historical allocation scheme of the integrated coffee and water dispenser, input the historical allocation scheme into the data processing module for analysis, and obtain historical allocation data; Based on historical allocation data and combined with the water resource regional utilization balance model to calculate the allocated water volume, the available water volume of the current integrated coffee and water dispenser is obtained. Based on historical allocation data and current water resource conditions, predict and assess the current water supply needs. The water supply sequence for different water use types in the current water resource area is determined based on the attribute weight analysis method. Based on the available water volume, the current water supply situation, and the water delivery sequence of different water use types, a regional water resource allocation model for integrated coffee and water dispensers is constructed. A multi-level feedback queue scheduling algorithm is used to formulate the optimal water resource allocation plan, and the formulated optimal water resource allocation plan is evaluated and optimized, thereby executing the water resource allocation plan. The system monitors water resource allocation in real time, adjusts and optimizes the optimal water resource allocation plan based on actual conditions, and stores the final execution results in the historical plan database. The method of using a multi-level feedback queue scheduling algorithm to formulate an optimal water resource allocation plan includes: Create multiple queues and assign different priorities to each queue; Queues with different priorities will be assigned different time slices, with higher priority queues having shorter time slices and lower priority queues having longer time slices. Predict the estimated time for the newly created process to complete when the new process arrives; The process is placed at the tail of the corresponding queue according to the estimated completion time. Following the first-in, first-out principle, if a higher-priority queue process arrives, a preemptive priority scheduling algorithm is used. If a new job arrives while a process in a low-priority queue is running, the running process must be immediately put back to the tail of the current queue, and then the processor is allocated to the higher-priority process. At any time, the process in the i-th queue will only be executed when all queues from 1 to i-1 are empty. When the process in the current queue is run again, only the time slice that was not completed last time is allocated, and the full time slice corresponding to that queue is not allocated again.

2. The water resource allocation method for the integrated coffee and water dispenser according to claim 1, characterized in that, The water allocation volume is calculated using the regional water resource utilization equilibrium model, and the solution process of the regional water resource utilization equilibrium model is as follows: The water resource utilization equilibrium index of each all-in-one machine is solved using the mathematical mean value theorem. By summing the resource utilization equilibrium indices of the integrated machines and taking the average, the regional water resource utilization equilibrium model can be obtained, as follows: In the formula, The results of the regional water resource utilization equilibrium model are as follows: This is a resource utilization equilibrium index.

3. The water resource allocation method for the integrated coffee and water dispenser according to claim 1, characterized in that, The method of determining the water supply sequence for different water use types in the current water resource area based on attribute weight analysis includes: Establish a hierarchical structure model of the current water resources region, where the levels include the highest level, the intermediate level, and the lowest level; Construct various judgment matrices at different levels of the water resource region. The weight of each criterion in the criterion layer when comparing them is determined by the importance of the criterion and the subjective judgment of the judge. The hierarchy is arranged and a consistency check is performed. Finally, the hierarchy in the water resource area is sorted and a consistency check is performed to determine whether the arrangement meets the requirements. If it does, the composite weight is obtained, and the water supply sequence schemes of the same water use type are sorted.

4. The water resource allocation method for the integrated coffee and water dispenser according to claim 3, characterized in that, The process of performing a single permutation and consistency check on the hierarchy includes: The consistency index for different water use types in the current water resource area is calculated using the following formula: In the formula, CI is the consistency index. To determine the largest eigenvalue of a matrix, n represents the number of different categories; Find the consistency index and calculate the consistency ratio. If the consistency ratio is less than 0.1, the consistency of the judgment matrix is ​​determined to meet the requirements.

5. The water resource allocation method for the integrated coffee and water dispenser according to claim 1, characterized in that, The historical allocation scheme is input into the data processing module for analysis to obtain historical allocation data, including: The historical allocation schemes were extracted to obtain the first extracted data and the second extracted data. The first extracted data is the water resource utilization rate of the water dispenser, and the second data is the water resource utilization rate of the coffee machine. Obtain the water resource utilization rate corresponding to the first and second extraction data to obtain the third and fourth extraction data, where the third extraction data is the water resource utilization rate of the water dispenser and the fourth extraction data is the water resource utilization rate of the coffee machine. The first, second, third, and fourth extracted data are input into the processing module for analysis and normalization to obtain the final historical allocation data after processing.

6. A water resource allocation system integrating a coffee and water dispenser, using the water resource allocation method as described in any one of claims 1 to 5, characterized in that, include: Acquisition module: Used to acquire historical allocation plans for integrated coffee and water dispensers, input the historical allocation plans into the data processing module for analysis, and obtain historical allocation data; Calculation module: Used to calculate the amount of water allocated based on historical allocation data and combined with the water resource regional utilization balance model, so as to obtain the available water resources of the current integrated coffee and water dispenser. Forecasting module: Used to predict and assess the supply of water resources needed at present based on historical allocation data and the current water resource situation; Determining module: Used to determine the water supply sequence for different water use types in the current water resource area based on attribute weight analysis methods; The formulation module is used to construct a regional water resource allocation model for coffee and water dispensers based on the available water volume, the current water supply situation, and the water delivery sequence of different water use types. It also uses a multi-level feedback queue scheduling algorithm to formulate the optimal water resource allocation plan, evaluates and optimizes the formulated optimal water resource allocation plan, and then executes the water resource allocation plan. Optimization module: Used to monitor the allocation of water resources in real time, adjust and optimize the optimal water resource allocation plan according to the actual situation, and store the final execution results in the historical plan database.

7. The integrated water resource allocation system for coffee and water dispensers according to claim 6, characterized in that, The determining module includes: Establishment Unit: Used to establish a hierarchical structure model of the current water resource area, where the levels include the highest level, the intermediate level, and the lowest level; Construction Unit: Used to construct various judgment matrices at each level of the water resource area. The weight of each criterion in the criterion layer when comparing them is determined by the importance of the criterion and the subjective judgment of the judge. Judgment Unit: Used to perform single permutation and consistency check on the hierarchy, and finally perform overall sorting and consistency check on each hierarchy in the water resource area to determine whether the permutation meets the requirements. If it does, the composite weight is obtained, and the schemes for water supply sequence of each water use type are sorted.

8. The integrated water resource allocation system for coffee and water dispensers according to claim 6, characterized in that, The acquisition module includes: Extraction unit: used to extract data from historical allocation schemes to obtain first extracted data and second extracted data, wherein the first extracted data is the water resource utilization rate of water dispensers and the second data is the water resource utilization rate of coffee machines; Acquisition Unit: Used to acquire the water resource utilization rate corresponding to the first extraction data and the second extraction data, and obtain the third extraction data and the fourth extraction data, wherein the third extraction data is the water resource utilization rate of the water dispenser and the fourth extraction data is the water resource utilization rate of the coffee machine. Processing unit: Used to input the first extracted data, the second extracted data, the third extracted data and the fourth extracted data into the processing module for analysis, normalization processing, and to obtain the final historical allocation data after sorting.

Citation Information

Patent Citations

  • Coffee and drinking-water dual-purpose machine

    CN2680165Y

  • Water resource allocation method for multi-water-source multi-user water supply network

    CN113706057A

  • Water distribution method based on long-distance pipe network water delivery scheduling

    CN115187052A