Oil product moving path planning method and system and storage medium
Through the planning method of oil products mobile paths, the high cost and low safety problems of manually creating operation process routes in oil storage and transportation of petrochemical enterprises are solved, and the efficiency, safety and automation of oil products mobile operations are achieved.
Patent Information
- Application Number
- CN202411413749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-07
AI Technical Summary
During the oil storage and transportation production process of petrochemical enterprises, the existing technology requires operators to manually create multiple operating process routes, resulting in high manual operation costs, high uncertainty, and low safety.
Provides an oil product movement path planning method, by obtaining information from multiple oil storage equipment and endpoint equipment, determines the oil product movement path from each oil storage equipment to the endpoint equipment, and generates the main path and Bypass path, ultimately generating the optimal oil movement path.
It improves the efficiency of oil product mobile operations, reduces operation risks, reduces manual operation requirements, improves the safety and reliability of operations, and realizes the automation and intelligence of oil product mobile operations.
Smart Images

Figure CN119396138A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation control technology, and in particular to an oil product moving path planning method, system and storage medium. Background Art
[0002] At present, in the process of oil storage and transportation, petrochemical enterprises need to initiate an operation task to move the oil from each oil storage device to the target tank when collecting oil from multiple different oil storage devices at the same time. Since there are many oil storage devices, multiple operation process routes are involved. In order to ensure the normal operation of the operation task, it is necessary to clear multiple operation process routes and monitor the operation tasks of each oil storage device separately.
[0003] In the prior art, operators are mainly responsible for creating multiple operational process routes for oil movement to realize oil collection operations from multiple oil storage devices. This process not only requires operators to have rich operating experience, but also consumes a lot of labor and time costs. At the same time, manual operation increases the uncertainty of the oil movement task, resulting in lower task safety. Summary of the invention
[0004] The problem solved by the present invention is how to improve the operation efficiency of oil product moving operation.
[0005] In order to solve the above problems, the present invention provides an oil product movement path planning method, system and storage medium.
[0006] In a first aspect, the present invention provides a method for planning an oil product movement path, comprising:
[0007] Acquire multiple oil storage equipments for oil product movement and terminal equipments for oil product movement;
[0008] Determine respectively the oil product movement path from each of the oil storage devices to the terminal device;
[0009] Cleaning and deduplicating all the oil product movement paths, and determining the main path from each of the oil storage devices to the terminal device;
[0010] A side path is generated according to the main path, and a final path is generated according to the main path and the side path.
[0011] Optionally, the step of respectively determining the oil product movement path from each of the oil storage devices to the terminal device includes:
[0012] Acquire an oil product moving operation flow chart, wherein the oil product moving operation flow chart includes a connection relationship between various devices in an oil product moving path planning system;
[0013] Determine a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices;
[0014] The oil product moving path of each of the oil storage devices is determined based on all of the intermediate devices combined with the corresponding oil storage devices and the terminal devices.
[0015] Optionally, the step of determining a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices includes:
[0016] In combination with the connection relationship between the various devices, the oil storage device is used as a node to drill toward the terminal device to obtain the device connected to the oil storage device;
[0017] In combination with the connection relationship between the various devices, the device connected to the oil storage device is used as a node to continue drilling toward the terminal device, and the drilled devices are used as nodes to perform recursive drilling in sequence until the terminal device is drilled to;
[0018] All the devices obtained through drilling are regarded as the intermediate devices.
[0019] Optionally, the step of determining the oil product moving path of each oil storage device based on all the intermediate devices in combination with the corresponding oil storage devices and the terminal device includes:
[0020] Determine the connection relationship between the intermediate devices according to the oil product movement operation flow chart;
[0021] generating an intermediate path connecting the intermediate devices according to the connection relationship;
[0022] According to each of the intermediate paths, a movement path of the oil product from the oil storage equipment to the terminal equipment via the intermediate path is generated.
[0023] Optionally, the cleaning and deduplication of all the oil product movement paths to determine the main path from each of the oil storage devices to the terminal device includes:
[0024] Performing path cleaning on all the oil product movement paths of each of the oil storage devices to obtain remaining oil product movement paths after cleaning;
[0025] The remaining oil product moving paths are merged and deduplicated to obtain the main paths of all the oil storage devices.
[0026] Optionally, the step of performing path cleaning on all the oil product movement paths to obtain remaining movement paths after cleaning includes:
[0027] According to the task execution requirements, filtering out unqualified paths that do not meet the task execution requirements from the set of oil product movement paths;
[0028] Deleting the unqualified path from the set of oil product movement paths;
[0029] The oil product moving paths in the set of oil product moving paths after deleting the unqualified paths are used as the remaining oil product moving paths.
[0030] Optionally, it is characterized in that generating a side path according to the main path comprises:
[0031] Recursively processing the connecting devices of the main path of each of the oil storage devices in sequence according to a preset order, and obtaining a bypass valve corresponding to each of the oil storage devices according to the connecting devices;
[0032] The bypass path of each of the oil storage devices is generated according to the bypass valve and the oil storage device.
[0033] Optionally, generating a final path according to the main path and the side path includes:
[0034] According to the number of devices, pipeline length, flow meter arrangement and equipment usage in the main path of each oil storage device, the main paths are sorted to obtain a path sequence;
[0035] According to the arrangement order in the path sequence, the side path is connected and combined with the main path to obtain the final path.
[0036] In a second aspect, the present invention provides an oil product movement path planning system, comprising:
[0037] An equipment selection unit, used to obtain multiple oil storage equipment that needs to move oil products and the terminal equipment for oil product movement;
[0038] A moving path acquisition unit, used to respectively determine the moving path of the oil product from each of the oil storage devices to the terminal device;
[0039] A path integration unit, used to clean and de-duplicate all the oil product movement paths, and determine the main path from each of the oil storage devices to the terminal device;
[0040] A path generating unit is used to generate a side path according to the main path, and generate a final path according to the main path and the side path.
[0041] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the oil product movement path planning method described in any one of the above items is implemented.
[0042] The oil product movement path planning method, system and storage medium of the present invention accurately obtain the information of multiple oil storage devices and terminal devices, and determine the oil product movement path from each oil storage device to the terminal device, so as to determine all possible oil product movement paths from each oil storage device to the terminal device. Subsequently, these oil product movement paths are analyzed to determine the main path of all oil storage devices. This process effectively simplifies the complexity of oil product movement and reduces unnecessary path redundancy by identifying and merging the common parts in each path. Through this optimization, the final path generated not only improves the efficiency of oil product movement, but also reduces the operational risks caused by improper path selection. In addition, this method reduces the need for manual operation through intelligent path selection and optimization, thereby reducing the possibility of human error and improving the safety and reliability of the operation. The automation and intelligence of oil product movement operations are realized, the production management level of the entire storage and transportation tank area is improved, and the efficiency, safety and economy of oil product movement operations are ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of a method for planning a moving path of oil products in one embodiment of the present invention;
[0044] Figure 2 A schematic diagram of the oil product movement path in another embodiment of the present invention;
[0045] Figure 3 It is a structural schematic diagram of an oil product moving path planning system in another embodiment of the present invention;
[0046] Figure 4 The figure is a schematic structural diagram of an electronic device in another embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0048] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0049] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0050] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0051] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0052] In the relevant technology, if the current petrochemical enterprises collect oil from multiple different devices into tanks at the same time during the storage and transportation production process, they need to initiate the operation task from each device to the destination tank, which undoubtedly creates a workload for internal and external operators. Originally, it was only necessary to dredge the pipeline of one process route and control the operation process, but now it is necessary to dredge multiple operation process routes and monitor the execution tasks separately. In the actual production process, in order to ensure the safety and reliability of collecting oil from multiple devices at the same time, not only does it require the operators to have rich operating experience, but it also costs a lot of labor and time costs.
[0053] In view of the problems existing in the above-mentioned related technologies, this embodiment provides an oil product movement path planning method, system and storage medium.
[0054] Combination Figure 1 As shown, an oil product moving path planning method provided by an embodiment of the present invention includes:
[0055] Acquire multiple oil storage equipments where oil products need to be moved and the terminal equipments for the oil products to be moved.
[0056] Specifically, first, all oil storage equipment and terminal equipment involved in the oil movement need to be identified. In a preferred embodiment of the present invention, when creating a process flow to collect oil from multiple oil storage equipment into a tank, the task information interface can be selected from multiple oil storage equipment and terminal equipment.
[0057] The oil product movement path from each of the oil storage devices to the terminal device is determined respectively.
[0058] Specifically, the path algorithm in the OMS system is used to calculate the oil product movement path from each oil storage device to the terminal device through a recursive algorithm according to the device connection relationship between the oil storage device and the terminal device. In a preferred embodiment of the present invention, the device connection relationship in the flow chart XML file can be parsed and the path can be generated according to these connection relationships.
[0059] All the oil product movement paths are cleaned and deduplicated to determine the main path from each of the oil storage devices to the terminal device.
[0060] Specifically, after obtaining the oil product movement paths from each oil storage device to the terminal device, the algorithm needs to clean and merge these oil product movement paths to determine the shared main path. Among them, it is necessary to identify the movement paths and remove the detour paths and unnecessary device paths, and merge similar or overlapping path segments to ensure the rationality and efficiency of the main path.
[0061] A side path is generated according to the main path, and a final path is generated according to the main path and the side path.
[0062] Specifically, the final oil product movement path is further generated based on the main path. The main path needs to be further optimized, such as sorting and selecting the path according to the number of equipment, pipeline length, whether a flow meter is included, and other conditions to ensure the optimality of the final path. The oil product movement operation is performed according to the generated final path, wherein it is necessary to set the path parameters in the OMS system, start the oil product movement operation, and monitor the operation process to ensure that the oil products are safely and efficiently moved from the oil storage equipment to the terminal equipment according to the predetermined path. In combination with the above content, the present invention can be developed based on the Java language, by optimizing and improving the path for multiple oil storage equipment in the storage tank area to collect oil at the same time.
[0063] The oil product movement path planning method of the present invention accurately obtains the information of multiple oil storage devices and terminal devices, and determines the oil product movement path from each oil storage device to the terminal device, ensuring that there is a corresponding path for each oil storage device. Subsequently, these oil product movement paths are analyzed to determine the main path of all oil storage devices. This process effectively simplifies the complexity of oil product movement and reduces unnecessary path redundancy by identifying and merging the common parts in each path. Through this optimization, the generated final path not only improves the efficiency of oil product movement, but also reduces the operational risks caused by improper path selection. In addition, this method reduces the need for manual operation through intelligent path selection and optimization, thereby reducing the possibility of human error, improving the safety and reliability of operations, and improving the operating efficiency of oil product movement operations. The automation and intelligence of oil product movement operations are realized, the production management level of the entire storage and transportation tank area is improved, and the efficiency, safety and economy of oil product movement operations are ensured.
[0064] Optionally, the step of respectively determining the oil product movement path from each of the oil storage devices to the terminal device includes:
[0065] Acquire an oil product moving operation flow chart, wherein the oil product moving operation flow chart includes a connection relationship between various devices in an oil product moving path planning system;
[0066] Determine a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices;
[0067] The oil product moving path of each of the oil storage devices is determined based on all of the intermediate devices combined with the corresponding oil storage devices and the terminal devices.
[0068] Specifically, first obtain the oil product movement operation flow chart, and the system will determine the connection relationship between the slave devices based on the detailed connection relationship of the oil product movement operation flow chart, including the analysis of the connection relationship of the devices, valves, pumps, tanks, flow meters, pipelines and other equipment in the flow chart. In a preferred embodiment of the present invention, the application will parse the flowchart XML file, which contains the connection relationship between the devices, and save it to the database. Then, the algorithm determines the multiple intermediate devices between each oil storage device and the terminal device based on these connection relationships. Combined with Figure 2 As shown, this includes identifying all possible paths from device 1 through MOV1037 to FI1004, then to SV1001, etc., until reaching the terminal device TK9901. Finally, combining all intermediate devices, corresponding oil storage devices and terminal devices, the algorithm determines the oil movement path of each oil storage device, and batch calculates the operation path from each starting device to the terminal tank through a recursive algorithm, that is, generates a target string, such as target string 1 from device 1 to the terminal.
[0069] In the embodiment of the present invention, by accurately determining the intermediate equipment on each path, the algorithm can generate an accurate path map, thereby ensuring the accuracy and safety of oil movement, reducing the need for manual operation and reducing the operational risks caused by improper path selection.
[0070] Optionally, the determining of a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices includes:
[0071] In combination with the connection relationship between the various devices, the oil storage device is used as a node to drill toward the terminal device to obtain the device connected to the oil storage device;
[0072] In combination with the connection relationship between the various devices, the device connected to the oil storage device is used as a node to continue drilling toward the terminal device, and the drilled devices are used as nodes to perform recursive drilling in sequence until the terminal device is drilled to;
[0073] All the devices obtained through drilling are regarded as the intermediate devices.
[0074] Specifically, first, in combination with the connection relationship between each device, start from the oil storage device and drill to the terminal device. In the preferred embodiment of the present invention, start from the oil storage device and obtain the first connected device through a recursive algorithm, such as starting from device 1, recursively drill to MOV1037 through the device connection relationship. Then, the algorithm continues to use the connection relationship between the devices to recursively drill from the device currently drilled. This process may pass through multiple intermediate devices, such as continuing to recursively from MOV1037 to FI1004, then SV1001, until finally drilling to the terminal device TK9901. In this process, each recursive drilling is based on the result of the previous time, ensuring the continuity and correctness of the path. Finally, all the devices obtained by drilling are used as intermediate devices, and these devices constitute the complete path from the oil storage device to the terminal device.
[0075] In the embodiment of the present invention, all possible intermediate devices are identified by recursive drilling, thereby constructing a complete path from the starting point to the end point. This not only improves the accuracy of path selection, but also reduces the energy consumption and time in the oil product movement process through intelligent path optimization.
[0076] Optionally, the step of determining the oil product moving path of each oil storage device based on all the intermediate devices in combination with the corresponding oil storage devices and the terminal device includes:
[0077] Determine the connection relationship between the intermediate devices according to the oil product movement operation flow chart;
[0078] generating an intermediate path connecting the intermediate devices according to the connection relationship;
[0079] According to each of the intermediate paths, a movement path of the oil product from the oil storage equipment to the terminal equipment via the intermediate path is generated.
[0080] Specifically, first, based on the oil product movement operation flow chart, the system identifies the connection relationship between the intermediate devices. This is achieved through the path algorithm in the OMS system, which can analyze the device connection relationship in the flow chart and generate the intermediate path. Figure 2 As shown, taking device 1 as an example, the path from device 1 to the terminal device TK9901 may involve multiple intermediate devices, such as MOV1037, FI1004, SV1001, etc. The connection relationship between these devices constitutes the skeleton of the path. Then, the system generates intermediate paths based on these connection relationships. These paths represent the flow routes from the starting point to the end point. Among them, it includes the path from device 1 to MOV1037, then to FI1004, and then to SV1001, until it reaches the terminal device TK9901. Finally, based on the intermediate paths, the system generates the oil movement path from the oil storage device through these intermediate paths to the terminal device. Among them, the application of recursive algorithms is involved. All possible paths are enumerated iteratively, and then the paths are cleaned and merged to remove duplication, and finally the optimal path from multiple devices to the end point is generated.
[0081] In the embodiments of the present invention, the algorithm automatically identifies and generates the path, which reduces the complexity and error rate of manual operation, not only improves the accuracy of path selection, but also reduces the time loss in the process of moving oil products through intelligent path optimization. In addition, the algorithm optimizes the path selection, reduces the energy consumption and time of the oil products in the process of moving, and thus improves the production management level of the entire storage tank area.
[0082] Optionally, the cleaning and deduplication of all the oil product movement paths to determine the main path from each of the oil storage devices to the terminal device includes:
[0083] Performing path cleaning on all the oil product movement paths of each of the oil storage devices to obtain remaining oil product movement paths after cleaning;
[0084] The remaining oil product moving paths are merged and deduplicated to obtain the main paths of all the oil storage devices.
[0085] Specifically, path cleaning is first performed. This process involves screening all moving paths for each oil storage device to remove those paths that do not meet process requirements or contain errors. This includes identifying and excluding detour paths, paths containing non-essential equipment, and paths that may be unavailable due to equipment failure or maintenance. In a preferred embodiment of the present invention, the OMS path algorithm calculates the running path from each starting device to the terminal tank through a recursive algorithm, and performs path cleaning on this basis to remove paths that do not meet the process scenario, such as pump equipment. Next, the remaining moving paths after cleaning are merged and deduplicated. This step involves comparing the paths from multiple starting devices to the terminal devices to find out their common equipment and pipeline segments, combined with Figure 2 As shown, the paths from multiple devices 1, 2, 3 and 4 to the terminal device TK9901 may pass through MOV1002, and these common parts and the corresponding intermediate devices in each device constitute the basis of the main path.
[0086] In the embodiments of the present invention, through path cleaning, unnecessary paths that may complicate operations or increase safety risks can be eliminated, thereby improving the safety and reliability of operations and improving the operating efficiency of oil product movement operations.
[0087] Optionally, the step of performing path cleaning on all the oil product movement paths to obtain remaining movement paths after cleaning includes:
[0088] According to the task execution requirements, filtering out unqualified paths that do not meet the task execution requirements from the set of oil product movement paths;
[0089] Deleting the unqualified path from the set of oil product movement paths;
[0090] The oil product moving paths in the set of oil product moving paths after deleting the unqualified paths are used as the remaining oil product moving paths.
[0091] Specifically, path cleaning is first performed, which involves screening out those unqualified paths that do not meet the requirements from all oil product movement paths according to the specific requirements of task execution. Among them, it is necessary to identify paths that may have safety hazards, low efficiency, or do not match the process flow. After generating the running path from each starting device to the terminal tank, the path cleaning will be performed to remove paths such as detour paths or paths containing unnecessary pump equipment to ensure the practicality and safety of the path. Next, these unqualified paths are deleted from the set of oil product movement paths to ensure that the remaining paths meet the process requirements and safety standards. Finally, the paths in the set of oil product movement paths after deleting the unqualified paths are used as multiple remaining oil product movement paths. These paths will be used for subsequent merging and deduplication processing to generate a shared main path.
[0092] In the embodiments of the present invention, through intelligent path optimization, not only the automation level of the operation is improved, but also the reliability of the oil collection process operation from multiple devices is enhanced, ensuring the efficiency and safety of the oil product movement operation. By reducing unqualified paths, waste of resources can be avoided, such as reducing the use of unsafe or inefficient paths, and improving the efficiency of oil product movement.
[0093] Optionally, generating a side path according to the main path includes:
[0094] Recursively processing the connecting devices of the main path of each of the oil storage devices in sequence according to a preset order, and obtaining a bypass valve corresponding to each of the oil storage devices according to the connecting devices;
[0095] The bypass path of each of the oil storage devices is generated according to the bypass valve and the oil storage device.
[0096] Specifically, the connected devices of the main path are first recursively processed in a preset order, and each device in the main path and its connection are analyzed in detail to identify and determine the bypass valve corresponding to each oil storage device. In a preferred embodiment of the present invention, after the main path is determined, the bypass valve is recursively searched through the three-way devices in the main path through an iterative loop until the valve device position is recursively reached. This ensures that each oil storage device can be connected to the main path through its corresponding bypass valve. Next, based on these bypass valves and oil storage devices, a bypass path for each oil storage device is generated. These bypass paths represent a direct connection from the oil storage device to the main path, providing a variety of path options for the movement of oil products. Finally, based on the bypass path of each oil storage device, the final path is obtained. This path combines the main path and the bypass path to form a complete oil product movement network.
[0097] In an embodiment of the present invention, through recursive processing and the generation of bypass paths, it can be ensured that oil products can move along the optimal path at any time. Even when certain equipment or paths fail, the continuity of oil product movement can be guaranteed through bypass paths, thereby improving the reliability of oil product movement and reducing production interruptions caused by path problems.
[0098] Optionally, generating a final path according to the main path and the side path includes:
[0099] According to the number of devices, pipeline length, flow meter arrangement and equipment usage in the main path of each oil storage device, the main paths are sorted to obtain a path sequence;
[0100] According to the arrangement order in the path sequence, the side path is connected and combined with the main path to obtain the final path.
[0101] Specifically, firstly, multiple factors such as the number of equipment, pipeline length, flow meter layout, and equipment usage are considered to sort the side paths to determine their priority in the oil product movement operation. For example, after the side paths are generated, they are intelligently sorted according to the path selection criteria such as the number of equipment in the path, the length of the pipeline, and whether the flow meter is included. The sorted side paths form a sequence that reflects the efficiency and applicability of each path. Then, according to the arrangement order in the path sequence, the side paths are connected and combined with the main path to form the final path. This step ensures that the oil product movement is carried out along the most optimized path, thereby improving the efficiency and reliability of the entire oil product movement operation.
[0102] In the embodiment of the present invention, by sorting and optimizing the bypass paths, it is ensured that the oil moves along the optimal path. At the same time, through intelligent path selection, not only the automation level of the operation is improved, but also the reliability of the oil collection process operation from multiple devices is enhanced.
[0103] Combination Figure 4 As shown, another embodiment of the present invention provides an oil product movement path planning system 300, comprising:
[0104] The equipment selection unit 310 is used to obtain a plurality of oil storage equipments that need to move the oil products and the terminal equipment of the oil product movement;
[0105] A moving path acquisition unit 320, used to respectively determine the moving path of the oil product from each of the oil storage devices to the terminal device;
[0106] A path integration unit 330 is used to clean and de-duplicate all the oil product movement paths and determine the main path from each of the oil storage devices to the terminal device;
[0107] The path generating unit 340 is configured to generate a side path according to the main path, and generate a final path according to the main path and the side path.
[0108] The moving path acquisition unit 320 is also used to acquire an oil product moving operation flow chart, which includes the connection relationship between each device in the oil product moving path planning system; according to the connection relationship between each device, multiple intermediate devices between each oil storage device and the terminal device are determined; according to all the intermediate devices combined with the corresponding oil storage device and the terminal device, the oil product moving path of each oil storage device is determined. Wherein, according to the connection relationship between each device, multiple intermediate devices between each oil storage device and the terminal device are determined, including: in combination with the connection relationship between each device, drilling to the terminal device with the oil storage device as a node to obtain the device connected to the oil storage device; in combination with the connection relationship between each device, drilling to the terminal device with the device connected to the oil storage device as a node, and recursively drilling with the drilled devices as nodes in turn until the terminal device is drilled; all the drilled devices are used as the intermediate devices. The method of determining the oil product movement path of each oil storage device based on all the intermediate devices in combination with the corresponding oil storage devices and the terminal device includes: determining the connection relationship between the intermediate devices based on the oil product movement operation flow chart; generating an intermediate path connecting the intermediate devices based on the connection relationship; and generating the oil product movement path from the oil storage device via the intermediate path to the terminal device based on each intermediate path.
[0109] The path integration unit 330 is also used to perform path cleaning on all the oil product movement paths of each of the oil storage devices to obtain the remaining oil product movement paths after cleaning; and perform merging and deduplication processing on the remaining oil product movement paths to obtain the main paths of all the oil storage devices. The path cleaning of all the oil product movement paths to obtain the remaining movement paths after cleaning includes: filtering out unqualified paths that do not meet the task execution requirements from the set of the oil product movement paths according to the task execution requirements; deleting the unqualified paths from the set of the oil product movement paths; and using the oil product movement paths in the set of the oil product movement paths after deleting the unqualified paths as the remaining oil product movement paths.
[0110] The path generation unit 340 is also used to recursively process the connected devices of the main path of each oil storage device in a preset order, obtain the bypass valve corresponding to each oil storage device according to the connected devices, and generate the bypass path of each oil storage device according to the bypass valve and the oil storage device. The main path is sorted according to the number of devices, pipeline length, flow meter layout and device usage in the main path of each oil storage device to obtain a path sequence; the bypass path is connected and combined with the main path according to the arrangement order in the path sequence to obtain the final path.
[0111] The oil product movement path planning system of this embodiment is used to achieve the above, and its advantages over the prior art are the same as the above advantages over the prior art, which will not be repeated here.
[0112] Combination Figure 4 As shown, an electronic device 400 provided by an embodiment of the present invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the oil product movement path planning method as described above when executing the computer program.
[0113] In other words, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; and the processor 420 is configured to perform the following operations when executing the computer program:
[0114] Acquire multiple oil storage equipments for oil product movement and terminal equipments for oil product movement;
[0115] Determine respectively the oil product movement path from each of the oil storage devices to the terminal device;
[0116] Cleaning and deduplicating all the oil product movement paths, and determining the main path from each of the oil storage devices to the terminal device;
[0117] A side path is generated according to the main path, and a final path is generated according to the main path and the side path.
[0118] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the model reasoning method as described above is implemented.
[0119] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:
[0120] Acquire multiple oil storage equipments for oil product movement and terminal equipments for oil product movement;
[0121] Determine respectively the oil product movement path from each of the oil storage devices to the terminal device;
[0122] Cleaning and deduplicating all the oil product movement paths, and determining the main path from each of the oil storage devices to the terminal device;
[0123] A side path is generated according to the main path, and a final path is generated according to the main path and the side path.
[0124] An electronic device 400 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 400 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 400 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein.
[0125] The electronic device 400 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0126] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0127] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for planning a moving path of oil products, characterized in that: include: Acquire multiple oil storage equipments for oil product movement and terminal equipments for oil product movement; Determine respectively the oil product movement path from each of the oil storage devices to the terminal device; Cleaning and deduplicating all the oil product movement paths, and determining the main path from each of the oil storage devices to the terminal device; A side path is generated according to the main path, and a final path is generated according to the main path and the side path.
2. The oil product movement path planning method according to claim 1, characterized in that: The step of respectively determining the oil product movement path from each of the oil storage devices to the terminal device comprises: Acquire an oil product moving operation flow chart, wherein the oil product moving operation flow chart includes a connection relationship between various devices in an oil product moving path planning system; Determine a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices; The oil product moving path of each of the oil storage devices is determined based on all of the intermediate devices combined with the corresponding oil storage devices and the terminal devices.
3. The oil product movement path planning method according to claim 2, characterized in that: The step of determining a plurality of intermediate devices between each of the oil storage devices and the terminal device according to the connection relationship between the various devices includes: In combination with the connection relationship between the various devices, the oil storage device is used as a node to drill toward the terminal device to obtain the device connected to the oil storage device; In combination with the connection relationship between the various devices, the device connected to the oil storage device is used as a node to continue drilling toward the terminal device, and the drilled devices are used as nodes to perform recursive drilling in sequence until the terminal device is drilled to; All the devices obtained through drilling are regarded as the intermediate devices.
4. The oil product movement path planning method according to claim 2, characterized in that: The step of determining the oil product moving path of each oil storage device based on all the intermediate devices in combination with the corresponding oil storage devices and the terminal devices includes: Determine the connection relationship between the intermediate devices according to the oil product movement operation flow chart; generating an intermediate path connecting the intermediate devices according to the connection relationship; According to each of the intermediate paths, a movement path of the oil product from the oil storage equipment to the terminal equipment via the intermediate path is generated.
5. The oil product movement path planning method according to claim 1, characterized in that: The step of cleaning and deduplicating all the oil product movement paths and determining the main path from each oil storage device to the terminal device includes: Performing path cleaning on all the oil product movement paths of each of the oil storage devices to obtain remaining oil product movement paths after cleaning; The remaining oil product moving paths are merged and deduplicated to obtain the main paths of all the oil storage devices.
6. The oil product movement path planning method according to claim 4, characterized in that: The step of performing path cleaning on all the oil product movement paths to obtain remaining movement paths after cleaning includes: According to the task execution requirements, filtering out unqualified paths that do not meet the task execution requirements from the set of oil product movement paths; Deleting the unqualified path from the set of oil product movement paths; The oil product moving paths in the set of oil product moving paths after deleting the unqualified paths are used as the remaining oil product moving paths.
7. The oil product moving path planning method according to claim 1, characterized in that: The generating a side path according to the main path comprises: Recursively processing the connecting devices of the main path of each of the oil storage devices in sequence according to a preset order, and obtaining a bypass valve corresponding to each of the oil storage devices according to the connecting devices; The bypass path of each of the oil storage devices is generated according to the bypass valve and the oil storage device.
8. The oil product moving path planning method according to claim 7, characterized in that: The generating a final path according to the main path and the side path comprises: According to the number of devices, pipeline length, flow meter arrangement and equipment usage in the main path of each oil storage device, the main paths are sorted to obtain a path sequence; According to the arrangement order in the path sequence, the side path is connected and combined with the main path to obtain the final path.
9. An oil product movement path planning system, characterized in that: include: An equipment selection unit, used to obtain multiple oil storage equipment that needs to move oil products and the terminal equipment for oil product movement; A moving path acquisition unit, used to respectively determine the moving path of the oil product from each of the oil storage devices to the terminal device; A path integration unit, used to clean and de-duplicate all the oil product movement paths, and determine the main path from each of the oil storage devices to the terminal device; A path generating unit is used to generate a side path according to the main path, and generate a final path according to the main path and the side path.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the oil product movement path planning method according to any one of claims 1 to 8 is implemented.