A method and system for managing oil inventory at a gas station
By deploying monitoring sensors at gas stations to collect oil storage data and sharing and prediction on regional platforms, the real-time and coordination problems of gas station inventory management are solved, and efficient oil storage management and allocation are achieved.
Patent Information
- Application Number
- CN202510095467.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2045-01-21
AI Technical Summary
The existing gas station oil inventory management technology cannot achieve real-time and accurate inventory management, and it is difficult to dynamically coordinate the oil storage demand of multiple gas stations in the region, resulting in a shortage of oil products or excess inventory.
Deploy gas station oil storage equipment monitoring sensors to collect oil storage data and perform pre-processing. Share gas station oil storage data through regional platforms, predict future oil storage demand and generate replenishment tasks, and realize intelligent coordinated allocation of gas station oil storage inventory.
Accurate measurement and prediction of oil storage at the gas station has been achieved, the accuracy of oil storage demand forecasting and the scientific nature of replenishment tasks have been improved, and the efficiency of oil storage utilization and allocation has been greatly improved, avoiding the risk of oil shortage or excess inventory.
Smart Images

Figure CN119539692B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inventory management, and in particular to a method and system for managing the oil inventory of a gas station. Background Art
[0002] In recent years, with the rapid development of the transportation industry and the continuous growth of the number of motor vehicles, gas stations, as important energy supply nodes, have an operational efficiency and management level that is directly related to the stability and economy of energy supply. In the oil inventory management of traditional gas stations, regular inspections or manual monitoring are generally used to record the oil storage volume. However, this method is not only labor-intensive and inefficient, but may also cause data errors due to human errors. In addition, although some gas stations have deployed liquid level sensors for oil volume monitoring, due to the independent operation of the equipment and the lack of a unified data processing and analysis platform, real-time and accurate inventory management cannot be achieved, and it is also difficult to dynamically coordinate the oil storage needs of multiple gas stations in the region. Especially in the event of an emergency or a surge in demand, existing technologies are difficult to perceive and respond to changes in a timely manner, which may lead to oil shortages or excess inventory. Summary of the invention
[0003] In view of the above existing problems, the present invention is proposed.
[0004] Therefore, the present invention provides a method and system for managing oil inventory at a gas station, which solves the problem that the prior art cannot achieve real-time and accurate inventory management, and it is also difficult to dynamically coordinate the oil storage needs of multiple gas stations in a region.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] In a first aspect, the present invention provides a method for managing fuel inventory at a gas station, comprising:
[0007] Deploy gas station oil storage equipment monitoring sensors to collect oil storage data and pre-process it, and calculate the gas station oil storage capacity based on the pre-processed oil storage data;
[0008] Predict the future oil storage demand of gas stations through the oil storage capacity of gas stations and generate replenishment tasks;
[0009] Build a regional platform to share gas station oil storage data, and intelligently coordinate the allocation of gas station oil storage inventory according to replenishment tasks;
[0010] The regional platform displays the oil storage capacity of gas stations in real time and stores the oil storage data.
[0011] As a preferred solution of the gas station oil inventory management method described in the present invention, the deployment of gas station oil storage equipment monitoring sensors to collect oil storage data and perform preprocessing refers to dividing the oil storage equipment into a top layer, a middle layer and a bottom layer, deploying three groups of liquid level sensors on the top layer, the middle layer and the bottom layer respectively to collect oil storage liquid level data, installing a temperature sensor next to each group of liquid level sensors to collect oil storage temperature data, and installing an ultrasonic sensor at the center of the bottom layer of the oil storage equipment to measure oil storage sediment data, and the oil storage liquid level data, temperature data and sediment data are formed into oil storage data and preprocessed.
[0012] As a preferred solution of the gas station oil inventory management method of the present invention, the calculation of the gas station oil storage volume by preprocessed oil storage data refers to correcting the oil storage density of the top layer, the middle layer and the bottom layer according to the preprocessed oil storage data:
[0013] in is the modified oil storage density of the i-th layer, is the oil storage density at the reference temperature, is the thermal expansion coefficient of the storage oil, is the oil storage temperature of the i-th layer, is the reference temperature;
[0014] Calculate the oil storage volume of each layer in the oil storage equipment through the oil storage level data and oil storage sediment data :
[0015]
[0016] in , as well as are the cross-sectional areas of the top layer, middle layer and bottom layer of the oil storage equipment, , as well as are the oil storage level heights of the top layer, middle layer and bottom layer in the oil storage equipment, d is the sediment height of the bottom layer of the oil storage equipment, , as well as They are the oil storage capacity of the top layer, middle layer and bottom layer of the oil storage equipment respectively;
[0017] Calculate the oil storage capacity of the oil storage equipment based on the oil storage capacity of each layer and the corrected oil storage density :
[0018]
[0019] Real-time monitoring of the oil storage level at gas stations, triggering inventory warnings when the oil storage level at gas stations falls below the set minimum safe storage level.
[0020] As a preferred solution of the gas station oil inventory management method of the present invention, the method of predicting the future oil storage demand of the gas station through the oil storage of the gas station and generating the replenishment task refers to obtaining the historical oil storage of the gas station, defining the time window size w, and extracting the maximum value of the oil storage from the time window. and minimum value , and calculate the mean oil storage volume in the time window Constructing membership function ;
[0021] Use the possibility mean formula to defuzzify the membership function and calculate the possible demand value M:
[0022]
[0023] Constructing a dynamic forecasting model based on possible demand value M by introducing dynamic fluctuation correction :
[0024]
[0025] in is the fluctuation range, is the center point of fluctuation, is the standard deviation of the fluctuation range, and t is the prediction time;
[0026] Calculate the dynamic prediction model parameter correction value through sliding window :
[0027]
[0028] in is the actual oil storage demand at time i, is the dynamic oil storage demand at time i;
[0029] Correction value by parameter Update the dynamic prediction model parameters:
[0030]
[0031] in Update the dynamic prediction model parameters at time t, including , as well as , is the dynamic prediction model parameter at time t-1, is the learning rate;
[0032] Substitute the updated dynamic prediction model parameters into the dynamic prediction model to obtain the dynamic oil storage demand at time t ;
[0033] According to dynamic oil storage requirements Calculating dynamic inventory thresholds :
[0034]
[0035] in is the dynamic oil storage demand at time k, To buffer the stock;
[0036] The dynamic oil storage demand at time t With dynamic inventory thresholds For comparison, if the dynamic oil storage capacity requirement Greater than the dynamic inventory threshold It is judged that there is a shortage of oil storage, and the dynamic oil storage demand is calculated. With dynamic inventory thresholds The difference between the two is used as the replenishment oil storage to generate the replenishment task. If the dynamic oil storage demand Less than the dynamic inventory threshold It is judged that the oil storage is sufficient and the dynamic inventory threshold is calculated. Dynamic oil storage requirements The difference is taken as the redundant oil reserve.
[0037] As a preferred solution of the gas station oil inventory management method of the present invention, wherein: the building of a regional platform to share the oil storage data of gas stations and to perform intelligent collaborative deployment of the oil storage inventory of gas stations according to replenishment tasks refers to building a regional platform, collecting the oil storage of all gas stations in the region through the regional platform, and predicting the future oil storage demand and dynamic inventory threshold of each gas station, classifying the gas stations in the region into two categories: oil storage shortage and oil storage sufficient, generating a replenishment mark for the gas station with oil storage shortage, and generating a redundant mark for the gas station with oil storage sufficient;
[0038] Compare the replenishment oil storage in the replenishment tasks of all gas stations with insufficient oil storage, sort them from high to low according to the replenishment oil storage and generate a replenishment list;
[0039] Compare the redundant oil storage capacity of all gas stations with sufficient oil storage capacity, sort them from high to low according to the redundant oil storage capacity to generate a redundant list;
[0040] Select gas stations with oil shortage from the replenishment list in order to extract the supplementary oil reserves, select gas stations with sufficient oil reserves whose redundant oil reserves are greater than or equal to the supplementary oil reserves from the redundant list as replenishment candidates, use the shortest path planning algorithm to obtain the shortest path between each gas station with sufficient oil reserves in the replenishment candidates and the gas station with oil shortage, select the gas station with sufficient oil reserves with the shortest path as the replenishment gas station, update the oil reserve inventory of the gas station with sufficient oil reserves based on the supplementary oil reserves, remove the gas station with oil shortage after the replenishment from the replenishment list, and update the redundant list to reselect the replenishment gas station.
[0041] As a preferred solution of the gas station oil inventory management method described in the present invention, the real-time display of the gas station oil storage capacity through the regional platform refers to displaying the locations and oil storage capacities of all gas stations in the region through the regional platform, and displaying the replenishment mark and redundant mark of each gas station on the map to generate a multi-dimensional information map.
[0042] As a preferred solution of the gas station oil inventory management method described in the present invention, the storage of oil storage data refers to the regional platform storing the collected gas station oil storage data and oil storage quantity in a database, the database regularly performs security and integrity checks on the stored data, and uploads the stored data to the cloud for backup.
[0043] In a second aspect, the present invention provides a gas station oil inventory management system, comprising:
[0044] The data collection module is used to deploy sensors to collect oil storage data for preprocessing and calculate the oil storage capacity of the gas station based on the oil storage data;
[0045] The forecasting and replenishment module is used to predict the future oil storage demand of gas stations to generate replenishment tasks, and build a regional platform to intelligently allocate the oil storage inventory of gas stations according to the replenishment tasks;
[0046] The display storage module is used to display the oil storage capacity of the gas station and store the oil storage data and oil storage capacity.
[0047] In a third aspect, the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the gas station fuel inventory management method as described in the first aspect of the present invention is implemented.
[0048] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the gas station fuel inventory management method as described in the first aspect of the present invention is implemented.
[0049] The beneficial effects of the present invention are as follows: the present invention calculates the oil storage capacity of gas stations by collecting oil storage data, thereby realizing accurate measurement and calculation of the oil storage capacity, and predicts future oil storage demand and inventory thresholds through the membership function and sliding window of the oil storage capacity of gas stations, thereby improving the accuracy of future oil storage demand prediction and the scientific nature of replenishment task generation, and finally building a regional platform for intelligent and coordinated allocation of oil storage inventories at gas stations, thereby greatly improving the efficiency of oil storage utilization and allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0051] Figure 1 This is a flow chart of the fuel inventory management method for a gas station in Example 1.
[0052] Figure 2 This is a structural diagram of the gas station oil inventory management system in Example 1. DETAILED DESCRIPTION
[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0055] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0056] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides a method for managing oil inventory at a gas station, comprising the following steps:
[0057] S1. Deploy gas station oil storage equipment monitoring sensors to collect oil storage data and pre-process it, and calculate the oil storage capacity of the gas station through the pre-processed oil storage data;
[0058] Specifically, deploying gas station oil storage equipment monitoring sensors to collect oil storage data and perform preprocessing means dividing the oil storage equipment into a top layer, a middle layer and a bottom layer, deploying three groups of liquid level sensors on the top layer, the middle layer and the bottom layer respectively to collect oil storage liquid level data, installing a temperature sensor next to each group of liquid level sensors to collect oil storage temperature data, and installing an ultrasonic sensor at the center of the bottom layer of the oil storage equipment to measure oil storage sediment data, and forming the oil storage liquid level data, temperature data and sediment data into oil storage data and performing preprocessing.
[0059] Liquid level fluctuations inside oil storage equipment may lead to monitoring errors due to local disturbances. It is difficult to reflect the overall oil storage status through single-point monitoring alone. Through layered monitoring, the liquid level data of different areas can be weighted averaged to improve the accuracy of oil storage calculation. By deploying temperature sensors next to each group of liquid level sensors and combining them with the temperature correction formula, the oil storage deviation caused by temperature difference can be eliminated. The reflection characteristics of ultrasonic sensors can accurately identify the thickness of sediments. Combined with the oil storage liquid level data and equipment structural parameters, the actual oil storage capacity can be calculated. Accurately evaluating the effective oil storage capacity will help to formulate a reasonable inventory management plan and avoid oil shortages due to overestimation of oil storage capacity.
[0060] Furthermore, calculating the oil storage capacity of a gas station through the preprocessed oil storage data means correcting the oil storage density of the top layer, the middle layer and the bottom layer according to the preprocessed oil storage data:
[0061] in is the modified oil storage density of the i-th layer, is the oil storage density at the reference temperature, is the thermal expansion coefficient of the oil storage, which is obtained according to the type of oil. is the oil storage temperature of the i-th layer, is the reference temperature;
[0062] Calculate the oil storage volume of each layer in the oil storage equipment through the oil storage level data and oil storage sediment data :
[0063]
[0064] in , as well as are the cross-sectional areas of the top layer, middle layer and bottom layer of the oil storage equipment, , as well as They are the oil storage level heights of the top layer, middle layer and bottom layer in the oil storage equipment, respectively. The top layer liquid level height needs to be subtracted from the middle layer top height, and the middle layer liquid level height needs to be subtracted from the bottom layer top height. If the calculated top or middle layer liquid level height is negative, the liquid level height is taken as 0. d is the sediment height of the bottom layer of the oil storage equipment. , as well as They are the oil storage capacity of the top layer, middle layer and bottom layer of the oil storage equipment respectively;
[0065] Calculate the oil storage capacity of the oil storage equipment based on the oil storage capacity of each layer and the corrected oil storage density :
[0066]
[0067] Real-time monitoring of the oil storage level at gas stations, triggering inventory warnings when the oil storage level at gas stations falls below the set minimum safe storage level.
[0068] The oil storage density is adjusted by the correction formula to solve the measurement error caused by temperature difference and ensure the scientific nature of the oil storage calculation. The design of layered correction of oil storage density can accurately reflect the temperature distribution characteristics of different areas of the oil storage equipment, which is particularly important when the oil storage equipment is large and the temperature gradient is significant. The density is dynamically corrected through real-time temperature data, which significantly improves the accuracy of the oil storage calculation. After correcting the oil storage density, the calculation result is closer to the actual quality of the oil product, providing a reliable data basis for the scientific formulation of subsequent inventory management and replenishment plans. After the height of the bottom sediment is incorporated into the calculation logic, the oil storage result is closer to the actual oil storage capacity of the equipment. Through layered calculation, the oil storage capacity of each layer of the oil storage equipment is accurately evaluated, eliminating the error source in the traditional method. Through real-time monitoring of the oil storage capacity, the inventory changes of the gas station can be dynamically reflected and compared with the set minimum safe oil storage capacity, automatic early warning is realized, and the lag and manual dependence of the traditional method are effectively solved.
[0069] S2. Predict the future oil storage demand of the gas station based on the oil storage capacity of the gas station and generate replenishment tasks;
[0070] Specifically, predicting the future oil storage demand of a gas station through the oil storage capacity of the gas station and generating a replenishment task means obtaining the historical oil storage capacity of the gas station, defining the time window size w in days, and extracting the maximum oil storage capacity from the time window. and minimum value , and calculate the mean oil storage volume in the time window Constructing membership function :
[0071]
[0072] Where X is the oil storage capacity;
[0073] Use the possibility mean formula to defuzzify the membership function and calculate the possible demand value M:
[0074]
[0075] Constructing a dynamic forecasting model based on possible demand value M by introducing dynamic fluctuation correction :
[0076]
[0077] in is the fluctuation range, is the center point of fluctuation, is the standard deviation of the fluctuation range, and t is the prediction time;
[0078] Calculate the dynamic prediction model parameter correction value through sliding window :
[0079]
[0080] in is the actual oil storage demand at time i, is the dynamic oil storage demand at time i;
[0081] Correction value by parameter Update the dynamic prediction model parameters:
[0082]
[0083] in Update the dynamic prediction model parameters at time t, including , as well as , is the dynamic prediction model parameter at time t-1, is the learning rate, which is used to control the parameter update speed;
[0084] Substitute the updated dynamic prediction model parameters into the dynamic prediction model to obtain the dynamic oil storage demand at time t ;
[0085] According to dynamic oil storage requirements Calculating dynamic inventory thresholds :
[0086]
[0087] in is the dynamic oil storage demand at time k, To buffer inventory, it is calculated based on historical demand data;
[0088] The dynamic oil storage demand at time t With dynamic inventory thresholds For comparison, if the dynamic oil storage capacity requirement Greater than the dynamic inventory threshold It is judged that there is a shortage of oil storage, and the dynamic oil storage demand is calculated. With dynamic inventory thresholds The difference between the oil storage and the oil reserve is used to generate the replenishment task. If the dynamic oil storage demand Less than the dynamic inventory threshold It is judged that the oil storage is sufficient and the dynamic inventory threshold is calculated. Dynamic oil storage requirements The difference is taken as the redundant oil reserve.
[0089] The membership function converts the uncertainty of oil storage demand into a mathematical model by extracting the maximum, minimum and mean values of oil storage in the time window, and constructs a fuzzy logic expression of oil storage demand. The fuzzy demand range is converted into a specific possible demand value through defuzzification of the possibility mean, ensuring that the prediction results can reflect the historical trend and have a clear application orientation. The flexibility and accuracy of oil storage demand prediction are significantly improved through fuzzy logic modeling and defuzzification calculation. The construction of the membership function takes into account the dynamic changes of historical oil storage. The calculation results of the possibility mean can more accurately guide the generation of subsequent replenishment tasks. The demand fluctuation is modeled by the exponential function, and the reliability of short-term prediction is significantly improved by combining the real-time parameter update mechanism. The application of sliding windows and parameter correction values realizes the self-learning function of the model, enabling it to dynamically adjust parameters such as fluctuation amplitude, center point and range standard deviation to adapt to complex demand change scenarios. By setting dynamic inventory thresholds, inventory management can respond to demand changes in real time, significantly reducing inventory management risks. The replenishment task generation process combines real-time forecast data to ensure the scientificity and timeliness of replenishment decisions, effectively improving the operational efficiency of oil storage management.
[0090] S3. Build a regional platform to share gas station oil storage data and intelligently coordinate the oil storage inventory of gas stations according to replenishment tasks;
[0091] Specifically, a regional platform is built to share the oil storage data of gas stations, and intelligently coordinate the oil storage inventory of gas stations according to the replenishment tasks. This means building a regional platform, collecting the oil storage capacity of all gas stations in the region through the regional platform, and predicting the future oil storage demand and dynamic inventory threshold of each gas station, classifying the gas stations in the region into two categories: those with insufficient oil storage and those with sufficient oil storage. A replenishment mark is generated for the gas station with insufficient oil storage, and a redundant mark is generated for the gas station with sufficient oil storage.
[0092] Compare the replenishment oil storage in the replenishment tasks of all gas stations with insufficient oil storage, sort them from high to low according to the replenishment oil storage and generate a replenishment list;
[0093] Compare the redundant oil storage capacity of all gas stations with sufficient oil storage capacity, sort them from high to low according to the redundant oil storage capacity to generate a redundant list;
[0094] Select gas stations with oil shortage from the replenishment list in order to extract the supplementary oil reserves, select gas stations with sufficient oil reserves whose redundant oil reserves are greater than or equal to the supplementary oil reserves from the redundant list as replenishment candidates, use the shortest path planning algorithm to obtain the shortest path between each gas station with sufficient oil reserves in the replenishment candidates and the gas station with oil shortage, select the gas station with sufficient oil reserves with the shortest path as the replenishment gas station, update the oil reserve inventory of the gas station with sufficient oil reserves based on the supplementary oil reserves, remove the gas station with oil shortage after the replenishment from the replenishment list, and update the redundant list to reselect the replenishment gas station.
[0095] The regional platform improves the transparency of oil storage data through unified data management, and provides precise support for demand forecasting, task allocation and optimized deployment. At the same time, it effectively solves the problem of over-stocking or supply shortage caused by information asymmetry in traditional methods. Through the list sorting logic, the present invention ensures that the most urgent replenishment tasks are solved first, avoiding the risk of shortages caused by improper resource allocation. At the same time, it effectively utilizes the redundant oil storage in the region, reduces the dependence on cross-regional transportation, and reduces the overall deployment cost. The shortest path planning algorithm significantly reduces the transportation cost by calculating the optimal transportation path in real time. At the same time, path optimization improves the execution efficiency of deployment tasks and ensures that replenishment tasks can be completed quickly. In addition, dynamic updating of oil storage and readjustment of lists further improve the responsiveness of the deployment system. The dynamic update mechanism ensures the flexibility of inventory management by adjusting the deployment tasks in real time. At the same time, the dynamic adjustment strategy reduces human intervention and improves the intelligence level of deployment.
[0096] S4. Display the oil storage capacity of gas stations in real time through the regional platform and store the oil storage data;
[0097] Specifically, real-time display of the oil storage capacity of gas stations through the regional platform means displaying the locations and oil storage capacities of all gas stations in the region through the regional platform, and displaying the replenishment mark and redundant mark of each gas station on the map to generate a multi-dimensional information map.
[0098] The regional platform integrates and updates scattered inventory data in real time, providing managers with a global view and facilitating the rapid location of gas stations with insufficient inventory or surplus resources. At the same time, the real-time display of data reduces the time delay in obtaining information and improves the response speed of inventory management. Replenishment marks and redundant marks are displayed visually on the map, making the inventory status clear at a glance. Managers can quickly understand inventory risks and resource distribution. At the same time, this intuitive display method reduces the complexity of data analysis and is suitable for multi-level management needs. The multi-dimensional information map combines dynamic data and visualization technology, which can reflect changes in inventory status in the region in real time, significantly improving the intelligence level of inventory management. At the same time, the map display facilitates the identification of replenishment priorities and resource allocation potential in the region, and managers can make quick decisions and optimization adjustments based on the map.
[0099] Furthermore, storing the oil storage data means that the regional platform stores the collected gas station oil storage data and oil storage volume in a database, the database regularly performs security and integrity checks on the stored data, and uploads the stored data to the cloud for backup.
[0100] This embodiment also provides a gas station fuel inventory management system, including:
[0101] The data collection module is used to deploy sensors to collect oil storage data for preprocessing and calculate the oil storage capacity of the gas station based on the oil storage data;
[0102] The forecasting and replenishment module is used to predict the future oil storage demand of gas stations to generate replenishment tasks, and build a regional platform to intelligently allocate the oil storage inventory of gas stations according to the replenishment tasks;
[0103] The display storage module is used to display the oil storage capacity of the gas station and store the oil storage data and oil storage capacity.
[0104] This embodiment also provides a computer device, which is applicable to the case of the fuel inventory management method for a gas station, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the fuel inventory management method for a gas station as proposed in the above embodiment.
[0105] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0106] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for implementing the oil inventory management method of a gas station as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination of them, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0107] In summary, the present invention calculates the oil storage capacity of gas stations by collecting oil storage data, thereby realizing the accurate measurement and calculation of oil storage capacity, and predicts future oil storage demand and inventory threshold through the membership function and sliding window of the oil storage capacity of gas stations, thereby improving the accuracy of future oil storage demand prediction and the scientific nature of replenishment task generation, and finally building a regional platform for intelligent and coordinated allocation of oil storage inventories at gas stations, thereby greatly improving the efficiency of oil storage utilization and allocation.
[0108] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for managing oil inventory at a gas station, characterized by: include, Deploy gas station oil storage equipment monitoring sensors to collect oil storage data and pre-process it, and calculate the gas station oil storage capacity based on the pre-processed oil storage data; Predict the future oil storage demand of gas stations through the oil storage capacity of gas stations and generate replenishment tasks; Build a regional platform to share gas station oil storage data, and intelligently coordinate the allocation of gas station oil storage inventory according to replenishment tasks; The regional platform displays the oil storage capacity of gas stations in real time and stores the oil storage data; The deployment of gas station oil storage equipment monitoring sensors to collect oil storage data and perform preprocessing refers to dividing the oil storage equipment into a top layer, a middle layer and a bottom layer, respectively deploying three groups of liquid level sensors on the top layer, the middle layer and the bottom layer to collect oil storage level data, installing a temperature sensor next to each group of liquid level sensors to collect oil storage temperature data, and installing an ultrasonic sensor at the center of the bottom layer of the oil storage equipment to measure oil storage sediment data, and forming oil storage data from the oil storage level data, temperature data and sediment data and performing preprocessing; The calculation of the oil storage capacity of the gas station by the pre-processed oil storage data refers to correcting the oil storage density of the top layer, the middle layer and the bottom layer according to the pre-processed oil storage data: in is the modified oil storage density of the i-th layer, is the oil storage density at the reference temperature, is the thermal expansion coefficient of the storage oil, is the oil storage temperature of the i-th layer, is the reference temperature; Calculate the oil storage volume of each layer in the oil storage equipment through the oil storage level data and oil storage sediment data : ; in , as well as are the cross-sectional areas of the top layer, middle layer and bottom layer of the oil storage equipment, , as well as are the oil storage level heights of the top layer, middle layer and bottom layer in the oil storage equipment, d is the sediment height of the bottom layer of the oil storage equipment, , as well as They are the oil storage capacity of the top layer, middle layer and bottom layer of the oil storage equipment respectively; Calculate the oil storage capacity of the oil storage equipment based on the oil storage capacity of each layer and the corrected oil storage density : ; Real-time monitoring of the oil storage volume at gas stations, triggering inventory warnings when the oil storage volume at gas stations falls below the set minimum safe oil storage volume; The method of predicting the future oil storage demand of a gas station by using the oil storage capacity of the gas station and generating a replenishment task refers to obtaining the historical oil storage capacity of the gas station, defining a time window size w, and extracting the maximum value of the historical oil storage capacity of the gas station from the time window. and minimum value , and calculate the mean historical oil storage volume of the gas station in the time window Constructing membership function , define X as the historical oil storage capacity of the gas station; Use the possibility mean formula to defuzzify the membership function and calculate the possible demand value M: ; Constructing a dynamic forecasting model based on possible demand value M by introducing dynamic fluctuation correction : ; in is the fluctuation range, is the center point of fluctuation, is the standard deviation of the fluctuation range, and t is the prediction time; Calculate the dynamic prediction model parameter correction value through sliding window : ; in is the actual oil storage demand at time i, is the dynamic oil storage demand at time i; Correction value by parameter Update the dynamic prediction model parameters: ; in Update the dynamic prediction model parameters at time t, including , as well as , is the dynamic prediction model parameter at time t-1, is the learning rate; Substitute the updated dynamic prediction model parameters into the dynamic prediction model to obtain the dynamic oil storage demand at time t ; According to dynamic oil storage requirements Calculating dynamic inventory thresholds : ; in is the dynamic oil storage demand at time k, To buffer the stock; The dynamic oil storage demand at time t With dynamic inventory thresholds For comparison, if the dynamic oil storage capacity requirement Greater than the dynamic inventory threshold It is judged that there is a shortage of oil storage, and the dynamic oil storage demand is calculated. With dynamic inventory thresholds The difference between the oil storage and the oil reserve is used to generate the replenishment task. If the dynamic oil storage demand Less than the dynamic inventory threshold It is judged that the oil storage is sufficient and the dynamic inventory threshold is calculated. Dynamic oil storage requirements The difference is taken as the redundant oil reserve.
2. The method for managing fuel inventory at a gas station according to claim 1, characterized in that: The said building of a regional platform to share the oil storage data of gas stations and to intelligently coordinate the oil storage inventory of gas stations according to the replenishment tasks refers to building a regional platform, collecting the oil storage capacity of all gas stations in the region through the regional platform, and predicting the future oil storage demand and dynamic inventory threshold of each gas station, classifying the gas stations in the region into two categories: those with insufficient oil storage and those with sufficient oil storage, generating a replenishment mark for the gas stations with insufficient oil storage, and generating a redundant mark for the gas stations with sufficient oil storage; Compare the replenishment oil storage in the replenishment tasks of all gas stations with insufficient oil storage, sort them from high to low according to the replenishment oil storage and generate a replenishment list; Compare the redundant oil storage capacity of all gas stations with sufficient oil storage capacity, sort them from high to low according to the redundant oil storage capacity to generate a redundant list; Select gas stations with oil shortage from the replenishment list in order to extract the supplementary oil reserves, select gas stations with sufficient oil reserves whose redundant oil reserves are greater than or equal to the supplementary oil reserves from the redundant list as replenishment candidates, use the shortest path planning algorithm to obtain the shortest path between each gas station with sufficient oil reserves in the replenishment candidates and the gas station with oil shortage, select the gas station with sufficient oil reserves with the shortest path as the replenishment gas station, update the oil reserve inventory of the gas station with sufficient oil reserves based on the supplementary oil reserves, remove the gas station with oil shortage after the replenishment from the replenishment list, and update the redundant list to reselect the replenishment gas station.
3. The method for managing fuel inventory at a gas station according to claim 2, characterized in that: The real-time display of the oil storage capacity of gas stations through the regional platform refers to displaying the locations and oil storage capacities of all gas stations in the region through the regional platform, and displaying the replenishment mark and redundant mark of each gas station on the map to generate a multi-dimensional information map.
4. The method for managing fuel inventory at a gas station as claimed in claim 3, characterized in that: The storage of oil storage data refers to the regional platform storing the collected gas station oil storage data and oil storage volume in a database. The database regularly performs security and integrity checks on the stored data and uploads the stored data to the cloud for backup.
5. A gas station fuel inventory management system, based on the gas station fuel inventory management method according to any one of claims 1 to 4, characterized in that: include, The data collection module is used to deploy sensors to collect oil storage data for preprocessing and calculate the oil storage capacity of the gas station based on the oil storage data; The forecasting and replenishment module is used to predict the future oil storage demand of gas stations to generate replenishment tasks, and build a regional platform to intelligently allocate the oil storage inventory of gas stations according to the replenishment tasks; The display storage module is used to display the oil storage capacity of the gas station and store the oil storage data and oil storage capacity.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the gas station oil inventory management method described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the gas station oil inventory management method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Method and system for detecting stored oil quantity of gas station
CN112794275A
Online monitoring method for oil level of hydraulic mechanism
CN118998153A