A method and system for controlling the movement of oil products

By automatically selecting the optimal path in oil product movement control through path filtering, sorting, and verification rules, the problems of time-consuming, labor-intensive, and error-prone path selection in existing technologies are solved, achieving efficient and safe path selection.

CN117687407BActive Publication Date: 2026-06-30SUPCON TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUPCON TECH CO LTD
Filing Date
2023-10-31
Publication Date
2026-06-30

Smart Images

  • Figure CN117687407B_ABST
    Figure CN117687407B_ABST
Patent Text Reader

Abstract

This invention provides an oil product movement control method and system, relating to the field of oil depot control technology. The method includes: acquiring multiple sub-task paths of sub-tasks to be executed in an oil product movement task; dividing the sub-task paths according to path filtering rules to obtain reserved paths; acquiring the priority of the reserved paths according to path sorting rules, and sorting the reserved paths according to priority to obtain a path priority sequence; verifying the reserved paths in the path priority sequence according to path verification rules; selecting the reserved path that passes verification and has the highest priority as the recommended path for the sub-task to be executed; and executing the sub-task to be executed according to the recommended path. This invention determines the optimal path from numerous sub-task paths through path filtering rules, path sorting rules, and path verification rules, eliminating the need for manual selection, saving manpower, improving the safety of task execution, and improving the path selection effect in oil product movement control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oil depot control technology, and more specifically, to a method and system for controlling the movement of oil products. Background Technology

[0002] When an oil product movement control system performs oil product movement tasks, such as transferring crude oil or edible oil from a target point to a task point, it is sometimes necessary to perform other operations during the oil product movement task, such as adding, subtracting, or changing pump tanks. The operation of adding, subtracting, or changing pump tanks is a subtask in the oil product movement task. When executing a subtask, there are often multiple subtask paths that can be executed. At this time, the operator needs to select the most suitable available path from the above multiple paths.

[0003] In existing technologies, manually selecting the appropriate path is not only time-consuming and labor-intensive, but also prone to errors and production accidents caused by human intervention. Summary of the Invention

[0004] The technical problem solved by this invention is how to improve the path selection effect in oil movement control.

[0005] This invention provides a method for controlling the movement of oil products, comprising:

[0006] Obtain the paths of multiple subtasks to be executed in the oil product movement task;

[0007] Based on the path filtering rules, the sub-task paths are divided to obtain the retained paths;

[0008] According to the path sorting rules, the priority of the retained paths is obtained, and the retained paths are sorted according to the priority to obtain a path priority sequence;

[0009] According to the path verification rules, the reserved paths in the path priority sequence are verified;

[0010] The reserved path that passes the verification and has the highest priority will be used as the recommended path for the subtask to be executed;

[0011] Execute the subtask to be executed according to the recommended path.

[0012] Optionally, the step of dividing the sub-task paths according to the path filtering rules to obtain the retained paths includes:

[0013] Determine whether each of the subtask paths satisfies the path filtering rules;

[0014] If the subtask path satisfies the path filtering rule, then the subtask path is selected as the reserved path.

[0015] If the subtask path does not meet the path filtering rules, then the subtask path will be used as the path to be removed.

[0016] Optionally, the priority includes an initial priority and a final priority; the step of obtaining the priority of the retained paths according to the path sorting rules, and sorting the retained paths according to the priority to obtain a path priority sequence, includes:

[0017] According to the path sorting rules, the initial priority of each of the reserved paths is obtained;

[0018] Determine if there is a reserved path with the same initial priority;

[0019] If so, then according to the path sorting rules, the final priority of the reserved paths with the same initial priority is obtained, wherein the final priorities of the reserved paths are all different;

[0020] The path priority sequence is obtained based on the final priority of the reserved paths with the same initial priority and the initial priorities of the other reserved paths.

[0021] Optionally, the path verification rules include: mutual exclusion verification rules, device verification rules, and media mutual exclusion rules;

[0022] The step of verifying the reserved paths in the path priority sequence according to the path verification rules includes:

[0023] According to the mutual exclusion verification rules, the reserved paths in the path priority sequence are verified;

[0024] According to the device verification rules, the reserved paths in the path priority sequence are verified;

[0025] According to the media mutual exclusion rule, the reserved paths in the path priority sequence are verified;

[0026] The reserved path that simultaneously satisfies the mutual exclusion verification rule, the device verification rule, and the media mutual exclusion rule is taken as the reserved path that passes the verification.

[0027] Optionally, the step of verifying the reserved paths in the path priority sequence according to the mutual exclusion verification rule includes:

[0028] Based on the mutual exclusion verification rules, the mutual exclusion tasks of the subtasks are obtained;

[0029] Determine whether the mutually exclusive task exists in the reserved path;

[0030] When the reserved path does not contain the mutually exclusive task, the reserved path satisfies the mutual exclusion verification rule;

[0031] If the mutually exclusive task exists in the reserved path, then it is further determined whether the mutually exclusive task is in an unexecuted state;

[0032] When the mutual exclusion task is in the non-executed state, the reserved path satisfies the mutual exclusion verification rule.

[0033] Optionally, the step of verifying the reserved paths in the path priority sequence according to the device verification rules includes:

[0034] Obtain the device information for the reserved path;

[0035] According to the device verification rules, determine whether the device information in the reserved path has a blind plate representation;

[0036] If not, then the path satisfies the device verification rules.

[0037] Optionally, the step of verifying the reserved paths in the path priority sequence according to the media mutual exclusion rule includes:

[0038] Based on the media mutual exclusion rule, determine whether the media stored in each retention path and the media of the oil moving task meet the preset media mixing conditions;

[0039] If so, the reserved path satisfies the media mutual exclusion rule.

[0040] Optionally, obtaining the initial priority of each of the reserved paths according to the path sorting rules includes:

[0041] Obtain the number of path devices for each reserved path and the flow meter settings for the reserved path;

[0042] The flow meter setting refers to whether a flow meter is set in the reserved path;

[0043] Based on the number of devices along the path and the flow meter settings, the initial priority of the reserved path is obtained through path sorting rules;

[0044] The initial priority increases as the number of path devices decreases, and the initial priority of the reserved path with the flow meter is higher than the initial priority of the reserved path without the flow meter.

[0045] Optionally, determining whether each subtask path satisfies the path filtering rule includes:

[0046] Based on the path filtering rules, the filtering rule parsing is obtained;

[0047] The filtering rule parsing includes: whether the sub-task path needs to have a tank bypass, whether the bypass of the sub-task path needs to have other pump inlet valves, whether the sub-task path is equipped with special bypass equipment, and whether the sub-task path is equipped with special non-bypass equipment.

[0048] Based on the parsing of the filtering rules, it is determined whether each subtask path satisfies the path filtering rules.

[0049] The present invention also provides an oil product movement control system, including a computer-readable storage medium storing a computer program and a processor, wherein the computer program is read and executed by the processor to implement the oil product movement control method described above.

[0050] The oil product movement control method and system of the present invention, when executing sub-tasks in an oil product movement task, filters the sub-task paths through path filtering rules, eliminates paths that do not meet the requirements, and sorts the remaining paths according to their priority through path sorting rules. Then, it verifies the sorted paths according to path verification rules, and selects the path with the highest priority that passes the verification as the path for sub-task execution. The present invention determines the optimal path from numerous sub-task paths through path filtering rules, path sorting rules, and path verification rules, eliminating the need for manual screening, saving manpower, avoiding accidents caused by manual screening, improving the safety of task execution, and improving the path screening effect in oil product movement control. Attached Figure Description

[0051] Figure 1 This is a flowchart illustrating an oil movement control method according to an embodiment of the present invention.

[0052] Figure 2 This is a schematic diagram of the interface for configuring operation data in an oil movement control method according to another embodiment of the present invention;

[0053] Figure 3 This is a schematic diagram of the interface for previewing the path of the oil movement control method in another embodiment of the present invention;

[0054] Figure 4 This is a schematic diagram of the interface for previewing the path of the oil movement control method in another embodiment of the present invention;

[0055] Figure 5 This is a schematic diagram of the interface for path recommendation in another embodiment of the oil movement control method of the present invention;

[0056] Figure 6This is a flowchart illustrating the oil movement control method in another embodiment of the present invention;

[0057] Figure 7 This is a flowchart illustrating the oil movement control method in another embodiment of the present invention;

[0058] Figure 8 This is a flowchart illustrating the oil movement control method in another embodiment of the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] Combination Figure 1 As shown, the present invention provides an oil movement control method, comprising:

[0061] S1: Obtain the paths of multiple subtasks to be executed in the oil product movement task.

[0062] Specifically, oil product movement tasks usually involve the execution of sub-tasks. For example, in an oil product movement task, operations such as adding, subtracting, or changing pump tanks may be performed. Based on the above, there are usually multiple sub-task paths that can execute the task. Therefore, this step mainly involves obtaining the paths that can execute the sub-tasks.

[0063] S2: Based on the path filtering rules, divide the sub-task paths to obtain the retained paths.

[0064] Specifically, before executing an oil product movement task, path filtering rules are typically set to facilitate immediate processing when executing subtasks, combined with... Figure 2 As shown, in a preferred embodiment of the present invention, path filtering rules are typically configured in the operation data configuration. If no configuration is made, path filtering will be performed according to the default filtering rules, dividing the subtask paths into retained paths and eliminated paths.

[0065] S3: According to the path sorting rules, obtain the priority of the reserved path, and sort the reserved path according to the priority to obtain the path priority sequence.

[0066] Specifically, before executing the oil product movement task, it is also necessary to set path sorting rules. Based on the path sorting rules, the priority of each reserved path is determined, and the reserved paths are sorted according to their priority to facilitate obtaining a reasonable reserved path in the shortest time. Figure 2 As shown, in a preferred embodiment of the present invention, path sorting rules are typically configured in the operation data configuration. If no configuration is made, the paths will be sorted according to the default sorting rules. Then, each reserved path is compared with the path sorting rules, and the paths that meet the priority rules are marked as high-priority paths.

[0067] S4: Verify the reserved paths in the path priority sequence according to the path verification rules.

[0068] Specifically, the path validation rules are used to determine whether the reserved path can be applied. If the reserved path passes the validation, it can proceed to the next step. If it fails, the reserved path is assigned to the above-mentioned eliminated path. If there is no available reserved path, all eliminated paths are sent to the user so that the user can understand the specific reason why there is no available path.

[0069] S5: The reserved path that has passed the verification and has the highest priority is selected as the recommended path for the subtask to be executed.

[0070] Specifically, all the retained paths that pass the verification have corresponding priorities. The highest priority retained path is selected as the recommended path obtained by this method and recommended to the user. In a preferred embodiment of the invention, combined with... Figure 3 The path preview interface shown allows users to preview the verified and reserved paths, intuitively displaying the path information of the oil product movement task, as well as any changes to the path. Furthermore, it combines... Figure 4 As shown, the differences between the two paths can be compared, with different colors representing different paths.

[0071] S6: Execute the subtask to be executed according to the recommended path.

[0072] Specifically, once the recommended path is obtained, subtasks can be executed according to the recommended path. In a preferred embodiment of the present invention, the recommended path is typically displayed in list form, combined with... Figure 5 The path recommendation interface shown has a path numbered 1 as the recommended path.

[0073] The oil product movement control method of the present invention filters the sub-task paths through path filtering rules when executing sub-tasks in an oil product movement task, eliminating paths that do not meet the requirements. The remaining paths are sorted according to their priority through path sorting rules, and then verified according to path verification rules. The path with the highest priority and that passes the verification is selected as the path for sub-task execution. The present invention determines the optimal path from numerous sub-task paths through path filtering rules, path sorting rules, and path verification rules, eliminating the need for manual screening, saving manpower, avoiding accidents caused by manual screening, improving the safety of task execution, and improving the path screening effect in oil product movement control.

[0074] Combination Figure 6 As shown in this embodiment of the invention, step S2: dividing the sub-task paths according to path filtering rules to obtain retained paths includes:

[0075] S21: Determine whether each of the subtask paths satisfies the path filtering rules;

[0076] S22: If the subtask path satisfies the path filtering rule, then the subtask path is selected as the reserved path.

[0077] In this embodiment, it is first necessary to determine whether the subtask path meets the filtering rules, and retain the subtask paths that meet the filtering rules as retained paths. In a preferred embodiment of the present invention, the path filtering rules are first parsed to obtain the conditions that the subtask paths need to meet. Each subtask path is then iteratively verified, and paths that meet the path filtering rules are retained paths, forming a set of retained paths that meet the rules. Subtask paths that do not meet the path filtering rules are discarded paths, forming a set of discarded paths that do not meet the rules.

[0078] The oil movement control method of the present invention filters out sub-task paths that do not conform to the rules through path filtering rules, thereby achieving a preliminary screening of sub-task paths and improving the intelligence level of oil movement control.

[0079] Combination Figure 7 As shown in this embodiment of the invention, the priority includes an initial priority and a final priority; step S3: according to the path sorting rules, the priority of the retained paths is obtained, and the retained paths are sorted according to the priority to obtain a path priority sequence, including:

[0080] S31: According to the path sorting rules, obtain the initial priority of each of the reserved paths;

[0081] S32: Determine whether there is a reserved path with the same initial priority;

[0082] S33: If so, then according to the path sorting rule, obtain the final priority of the reserved paths with the same initial priority, wherein the final priorities of the reserved paths are all different;

[0083] S34: Obtain the path priority sequence based on the final priority of the reserved paths with the same initial priority and the initial priorities of the other reserved paths.

[0084] In this embodiment, the path sorting rules need to be parsed first to obtain the criteria for determining the initial priority of the retained paths. After each retained path has an initial priority, it is then determined whether there is a path of that priority level among all retained paths. If so, a comparison with the path rules of a lower level is required, that is, to obtain the final priority of the retained paths with the same initial priority. The final priority is used to perform a lower-level comparison. Finally, based on the final priority of the retained paths with the same initial priority and the initial priority of other retained paths, the path priority sequence is obtained.

[0085] The oil movement control method of the present invention sorts all reserved paths by path sorting rules, which facilitates the subsequent judgment of the reserved path with the highest priority.

[0086] In this embodiment of the invention, the path verification rules include: mutual exclusion verification rules, device verification rules, and media mutual exclusion rules;

[0087] Step S4: Verify the reserved paths in the path priority sequence according to the path verification rules, including:

[0088] According to the mutual exclusion verification rules, the reserved paths in the path priority sequence are verified;

[0089] According to the device verification rules, the reserved paths in the path priority sequence are verified;

[0090] According to the media mutual exclusion rule, the reserved paths in the path priority sequence are verified;

[0091] The reserved path that simultaneously satisfies the mutual exclusion verification rule, the device verification rule, and the media mutual exclusion rule is taken as the reserved path that passes the verification.

[0092] In this embodiment, all reserved paths need to be checked sequentially from high to low according to their path priority sequence to determine whether the path can be used. When each path meets the mutual exclusion check rule, device check rule, and media mutual exclusion rule, it is determined that the reserved path can be used. Then, the highest priority reserved path is selected as the recommended path from the usable reserved paths, thus completing the screening of subtask paths. The mutual exclusion check rule is to determine whether there are other mutually exclusive tasks being executed in the reserved path, the device check rule is to determine whether the device in the reserved path is available, and the media mutual exclusion rule is to determine whether there are mutually exclusive media in the reserved path.

[0093] The oil movement control method of the present invention performs a final screening of the reserved paths through path verification rules, and removes the paths that cannot be used due to other factors, thereby ensuring that the subtasks can be executed smoothly.

[0094] In this embodiment of the invention, the step of verifying the reserved paths in the path priority sequence according to the mutual exclusion verification rule includes:

[0095] Based on the mutual exclusion verification rules, the mutual exclusion tasks of the subtasks are obtained;

[0096] Determine whether the mutually exclusive task exists in the reserved path;

[0097] When the reserved path does not contain the mutually exclusive task, the reserved path satisfies the mutual exclusion verification rule;

[0098] If the mutually exclusive task exists in the reserved path, then it is further determined whether the mutually exclusive task is in an unexecuted state;

[0099] When the mutual exclusion task is in the non-executed state, the reserved path satisfies the mutual exclusion verification rule.

[0100] In this embodiment, in oil product movement control, some tasks cannot share equipment such as tanks, pumps, valves, and pipelines. After the reserved paths are sorted, mutual exclusion checks need to be performed on the paths. The process is as follows: obtain the mutual exclusion check rules for the tasks, parse the mutual exclusion check rules to obtain the mutually exclusive tasks that are mutually exclusive with the subtasks. Each reserved path is compared with the mutual exclusion check rules. Paths that fail the mutual exclusion check need to be removed from the path recommendation set. The reason for the failure of the reserved path recommendation can be identified, for example, violating the rules of mutual exclusion for sharing tanks, pumps, etc. Finally, the reserved path is added to the set of failed checks as a removed path. In a preferred embodiment of the present invention, it is determined whether there are mutual exclusion rules. If there are, the tasks in the mutual exclusion rules need to be obtained and it is checked whether the tasks are being executed. If the tasks are being executed, the check is considered to have failed, and the path is removed from the set of reserved paths. If there are no mutual exclusion rules, the path check is considered to have passed.

[0101] The oil movement control method of the present invention ensures that the subtask path will not conflict with mutually exclusive tasks when executing tasks, thereby improving the security of subtask execution.

[0102] In this embodiment of the invention, the step of verifying the reserved path in the path priority sequence according to the device verification rules includes:

[0103] Obtain the device information for the reserved path;

[0104] According to the device verification rules, determine whether the device information in the reserved path has a blind plate representation;

[0105] If not, then the path satisfies the device verification rules.

[0106] In this embodiment, the health status of the devices is crucial for determining the usability of a reserved path. If any device in the path is unhealthy, the path is considered unusable. Typically, if a device has a blind plate, it is considered faulty and unusable. First, each reserved path is iterated through. Device information is obtained based on the devices in the reserved path. Then, the device information of each device is checked to assess its health status. If a device has a blind plate, the reserved path does not meet the device verification rules; otherwise, it does. Finally, reserved paths that fail verification are removed as discarded paths and marked as verification failures, with the reason being that the path device is unhealthy.

[0107] The oil movement control method of the present invention ensures that each device in the reserved path can work normally, thereby guaranteeing the safety of subtask execution.

[0108] In this embodiment of the invention, the step of verifying the reserved paths in the path priority sequence according to the media mutual exclusion rule includes:

[0109] Based on the media mutual exclusion rule, determine whether the media stored in each retention path and the media of the oil moving task meet the preset media mixing conditions;

[0110] If so, the reserved path satisfies the media mutual exclusion rule.

[0111] In this embodiment, it is necessary to verify whether the media stored in the pipeline in the reserved path and the media moved in this path can be mixed. According to the configured media mutual exclusion rules, the media existing in the pipeline in the path are obtained. Then, the media and the media moved in this path are used to check whether they meet the preset media mixing conditions in the media mixing configuration rule table. If they meet the conditions, it proves that the reserved path satisfies the media mutual exclusion rules. If they do not meet the conditions, the reserved path needs to be deleted, and the reason for the path verification failure is marked as media conflict.

[0112] The oil movement control method of the present invention ensures that the medium in the retention path meets the mixing conditions, thereby guaranteeing the quality of oil movement task execution.

[0113] In this embodiment of the invention, obtaining the initial priority of each of the reserved paths according to the path sorting rules includes:

[0114] Obtain the number of path devices for each reserved path and the flow meter settings for the reserved path;

[0115] The flow meter setting refers to whether a flow meter is set in the reserved path;

[0116] Based on the number of devices along the path and the flow meter settings, the initial priority of the reserved path is obtained through path sorting rules;

[0117] The initial priority increases as the number of path devices decreases, and the initial priority of the reserved path with the flow meter is higher than the initial priority of the reserved path without the flow meter.

[0118] In this embodiment, based on the number of devices in the reserved path, such as the fewest pumps and valves used, the reserved path is set to a higher initial priority. At the same time, based on the flow meter settings, it is determined whether the reserved path contains a flow meter. If it does, the reserved path is set to a higher initial priority; otherwise, it is set to a lower initial priority.

[0119] The oil movement control method of the present invention prioritizes reserved paths based on the equipment and flow meter settings of the reserved paths, thereby sorting them and realizing the ability to analyze the reserved paths to perform tasks according to reasonable rules.

[0120] In this embodiment of the invention, determining whether each subtask path satisfies the path filtering rule includes:

[0121] Based on the path filtering rules, the filtering rule parsing is obtained;

[0122] The filtering rule parsing includes: whether the sub-task path needs to have a tank bypass, whether the bypass of the sub-task path needs to have other pump inlet valves, whether the sub-task path is equipped with special bypass equipment, and whether the sub-task path is equipped with special non-bypass equipment.

[0123] Based on the parsing of the filtering rules, it is determined whether each subtask path satisfies the path filtering rules.

[0124] In this embodiment, the filtering rule parsing includes: whether a tank bypass is required in the sub-task path, whether other pump inlet valves are required in the bypass of the sub-task path, whether a special bypass device is set in the sub-task path, and whether a special non-bypass device is set in the sub-task path. Specifically, based on the filtering rule parsing, paths that do not meet the above conditions are filtered out. If a tank bypass is required in the sub-task path, sub-task paths without a tank bypass are removed; if a tank bypass is not required in the sub-task path, sub-task paths with a tank bypass are removed. If other pump inlet valves are required in the bypass of the sub-task path, sub-task paths without other pump inlet valves in the bypass are removed; if other pump inlet valves are not required in the bypass of the sub-task path, sub-task paths with other pump inlet valves in the bypass are removed. If a special bypass device is required in the sub-task path, sub-task paths without a special bypass device are removed; if a special bypass device is not required in the sub-task path, sub-task paths with a special bypass device are removed. If a subtask path requires a special non-bypass device, then the subtask path that does not have a special non-bypass device will be removed. If a subtask path does not require a special non-bypass device, then the subtask path that does have a special non-bypass device will be removed.

[0125] The oil movement control method of the present invention filters sub-task paths according to the set path filtering rules, ensuring that all retained paths meet the requirements, thereby improving the screening efficiency.

[0126] In a preferred embodiment of the present invention, combined with Figure 8As shown, after obtaining the sub-task paths of the sub-tasks to be executed in the oil product movement task, the path filtering rules, path sorting rules, and path verification rules are set by configuring the operation data. Then, the sub-task paths are filtered by the path filtering rules to obtain the reserved paths. Next, the reserved paths are sorted according to their priority based on the path sorting rules. The reserved paths are verified in turn according to the sorting results. In this process, it is determined whether each reserved path meets the mutual exclusion verification rules, equipment verification rules, and media mutual exclusion rules. The path that meets the above conditions and has the highest priority is selected as the reserved path. If a reserved path does not meet any of the verification rules during the verification process, it is removed, and the reason for the path verification failure is obtained. It is then determined whether there are any reserved paths that have not yet been verified. If not, a recommended path is selected from the currently verified reserved paths. If there are still reserved paths, the verification of the reserved paths continues.

[0127] The present invention also provides an oil product movement control system, including a computer-readable storage medium storing a computer program and a processor, wherein the computer program is read and executed by the processor to implement the oil product movement control method described above.

[0128] The oil product movement control system of the present invention filters the sub-task paths through path filtering rules when executing sub-tasks in an oil product movement task, eliminating paths that do not meet the requirements. The remaining paths are sorted according to their priority through path sorting rules, and then verified according to path verification rules. The path with the highest priority and that passes the verification is selected as the path for sub-task execution. The present invention determines the optimal path from numerous sub-task paths through path filtering rules, path sorting rules, and path verification rules, eliminating the need for manual screening, saving manpower, avoiding accidents caused by manual screening, improving the safety of task execution, and improving the path screening effect in oil product movement control.

[0129] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0130] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0131] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for controlling the movement of oil products, characterized in that, include: Obtain the paths of multiple subtasks to be executed in the oil product movement task; Based on the path filtering rules, the sub-task paths are divided to obtain the retained paths; According to the path sorting rules, the priority of the retained path is obtained, and the retained path is sorted according to the priority to obtain a path priority sequence; According to the path verification rules, the reserved paths in the path priority sequence are verified; The reserved path that passes the verification and has the highest priority will be used as the recommended path for the subtask to be executed; Execute the subtask to be executed according to the recommended path.

2. The oil movement control method according to claim 1, characterized in that, The step of dividing the sub-task paths according to the path filtering rules to obtain the retained paths includes: Determine whether each of the subtask paths satisfies the path filtering rules; If the subtask path satisfies the path filtering rules, then the subtask path will be used as the reserved path.

3. The oil movement control method according to claim 1, characterized in that, The priority includes an initial priority and a final priority; the step of obtaining the priority of the retained paths according to the path sorting rules, and sorting the retained paths according to the priority to obtain a path priority sequence, includes: According to the path sorting rules, the initial priority of each of the reserved paths is obtained; Determine if there is a reserved path with the same initial priority; If so, then according to the path sorting rules, the final priority of the reserved paths with the same initial priority is obtained, wherein the final priorities of the reserved paths are all different; The path priority sequence is obtained based on the final priority of the reserved paths with the same initial priority and the initial priorities of the other reserved paths.

4. The oil movement control method according to claim 1, characterized in that, The path verification rules include: mutual exclusion verification rules, device verification rules, and media mutual exclusion rules; The step of verifying the reserved paths in the path priority sequence according to the path verification rules includes: According to the mutual exclusion verification rules, the reserved paths in the path priority sequence are verified; According to the device verification rules, the reserved paths in the path priority sequence are verified; According to the media mutual exclusion rule, the reserved paths in the path priority sequence are verified; The reserved path that simultaneously satisfies the mutual exclusion verification rule, the device verification rule, and the media mutual exclusion rule is taken as the reserved path that passes the verification.

5. The oil movement control method according to claim 4, characterized in that, The step of verifying the reserved paths in the path priority sequence according to the mutual exclusion verification rule includes: Based on the mutual exclusion verification rules, the mutual exclusion tasks of the subtasks are obtained; Determine whether the mutually exclusive task exists in the reserved path; When the reserved path does not contain the mutually exclusive task, the reserved path satisfies the mutual exclusion verification rule; If the mutually exclusive task exists in the reserved path, then it is further determined whether the mutually exclusive task is in an unexecuted state. When the mutual exclusion task is in the non-executed state, the reserved path satisfies the mutual exclusion verification rule.

6. The oil movement control method according to claim 4, characterized in that, The step of verifying the reserved paths in the path priority sequence according to the device verification rules includes: Obtain the device information for the reserved path; Based on the device verification rules, determine whether the device information in the reserved path contains a blind plate representation; If not, then the path satisfies the device verification rules.

7. The oil movement control method according to claim 4, characterized in that, The step of verifying the reserved paths in the path priority sequence according to the media mutual exclusion rule includes: Based on the media mutual exclusion rule, determine whether the media stored in each retention path and the media of the oil moving task meet the preset media mixing conditions; If so, then the reserved path satisfies the media mutual exclusion rule.

8. The oil movement control method according to claim 3, characterized in that, The step of obtaining the initial priority of each of the reserved paths according to the path sorting rules includes: Obtain the number of path devices for each reserved path and the flow meter settings for the reserved path; The flow meter setting refers to whether a flow meter is set in the reserved path; Based on the number of devices along the path and the flow meter settings, the initial priority of the reserved path is obtained through path sorting rules; The initial priority increases as the number of path devices decreases, and the initial priority of the reserved path with the flow meter is higher than the initial priority of the reserved path without the flow meter.

9. The oil movement control method according to claim 2, characterized in that, The step of determining whether each subtask path satisfies the path filtering rule includes: Based on the path filtering rules, the filtering rule parsing is obtained; The filtering rule parsing includes: whether the sub-task path needs to have a tank bypass, whether the bypass of the sub-task path needs to have other pump inlet valves, whether the sub-task path is equipped with special bypass equipment, and whether the sub-task path is equipped with special non-bypass equipment. Based on the parsing of the filtering rules, it is determined whether each subtask path satisfies the path filtering rules.

10. An oil product movement control system, characterized in that, Including computers containing computer programs A computer-readable storage medium and a processor, wherein the computer program is read and executed by the processor. Implement the oil movement control method as described in any one of claims 1-9.