Oil loading and unloading operation path planning method, system and equipment and storage medium

By acquiring target information and status of oil loading and unloading operations, planning the optimal path, and using a PID control unit to adjust pipeline pressure, the problem of insufficient safety during oil loading and unloading was solved, thus improving both safety and efficiency.

CN121900388APending Publication Date: 2026-04-21李皓
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
李皓
Filing Date
2023-06-26
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In existing technologies, the reliance on regular equipment maintenance and on-site operator supervision during oil loading and unloading is prone to errors and cannot guarantee safety, leading to safety hazards and accidents.

Method used

By acquiring target operation type and status information, collecting the main pipeline operation status, identifying and marking available main pipelines, performing preset weight calculations, planning the optimal path, and using PID control units to adjust pipeline pressure, we can avoid incorrect switching and device selection, thus ensuring safety.

Benefits of technology

It reduces the risk of human error in selection, simplifies route planning, avoids safety hazards, reduces accidents, and improves the safety and efficiency of oil loading and unloading processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121900388A_ABST
    Figure CN121900388A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an oil product loading and unloading operation path planning method, system and equipment and a storage medium, and the method comprises the steps: judging the operation state of each main pipeline after obtaining a target operation type, an output party and a target receiving party; selecting an idle main pipeline handle, and comparing whether the current working medium information is consistent with the last working medium information or not; and if the current operation medium information is consistent with the last operation medium information, selecting a main pipeline without a fault device and a busy device in the main pipeline as an available main pipeline, and performing preset weight calculation on each available main pipeline to obtain an optimal main pipeline path. According to the embodiment of the invention, before the oil loading and unloading work is started, the optimal pipeline path is planned by analyzing the target operation information and scoring each path, so that the workload of path planning is simplified while manual selection errors and mixing of different oil products are avoided, the potential safety hazard is reduced, and accidents are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of oil loading and unloading technology, specifically to an oil loading and unloading operation path planning method, system, equipment and storage medium. Background Technology

[0002] In the storage and transportation of oil and chemical products, safety is the bottom line. In practice, to avoid potential safety hazards, managers of storage areas and terminals have adopted various methods, including increasing approval processes, adding personnel, and standardizing procedures. However, while increasing costs, these methods have failed to achieve satisfactory results and have wasted human and material resources.

[0003] Currently, maintaining safe storage and transportation at storage areas and terminals relies primarily on regular equipment maintenance and on-site operator monitoring during oil loading and unloading. Various devices along the loading and unloading pipelines have corresponding statuses, such as valve open / closed states, pump real-time operating status, and the capacity of storage tanks / ship holds. These statuses can change due to various factors. During oil loading and unloading, different devices may switch between different operations or current states, which can easily lead to incorrect switching or the selection of unusable devices, creating safety hazards, causing accidents, pipeline failures, and personnel injuries. Summary of the Invention

[0004] Therefore, embodiments of the present invention provide a method, system, equipment, and storage medium for oil loading and unloading operation route planning, in order to solve the technical problem that existing technologies are prone to errors and cannot guarantee safety through regular equipment maintenance and on-site operator supervision.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] According to a first aspect of the present invention, a method for planning oil loading and unloading operation routes is provided, characterized in that the method is applied to a route optimization model, which includes:

[0007] Obtain the target job type, output source, and target receiver;

[0008] Collect the operational status of each main pipeline and generate a main pipeline operational status set;

[0009] Check sequentially whether the current operation status of the main pipeline is "operating";

[0010] If the operation status is "in operation", then determine whether the operation status of the next main pipeline is "in operation".

[0011] If the operation status is not in operation, then mark the current main pipeline as an idle main pipeline and retrieve the previous operation medium information of the current main pipeline;

[0012] Extract the medium information for the current operation from the operation information, and determine whether the medium information for the current operation is consistent with the medium information for the previous operation.

[0013] If the medium information of the current operation is consistent with the medium information of the previous operation, the current idle main pipeline is marked as a candidate main pipeline and the device status in the operation process is retrieved in sequence to generate a device status set.

[0014] Determine whether a fault signal or a occupancy signal has appeared in the device status set;

[0015] If a fault signal or a occupancy signal appears in the device status cluster, the previous working medium information of the next available main pipeline is retrieved and compared with the current working medium information;

[0016] If no fault signal or occupancy signal appears in the device status set, the current main pipeline is marked as an available main pipeline;

[0017] Based on the information of each available main pipeline, the preset weights of each available main pipeline are calculated sequentially to obtain the optimal main pipeline path.

[0018] Furthermore, based on the information of each available main pipeline, a preset weight is calculated for each available main pipeline to obtain the optimal main pipeline path, including:

[0019] Collect the total historical fault duration of each device on each available main pipeline and generate a dataset of total historical fault duration of devices.

[0020] The duration data in the historical fault total duration dataset of the device are sorted from smallest to largest, and the order corresponding to each available main pipeline is the first priority data of each available main pipeline.

[0021] Collect data on the total number of devices, the total number of manual devices, historical operation time, and the path length of the main pipeline on each available main pipeline.

[0022] Specifically, the first priority data, the total number of devices, the total number of manual devices, the historical operation time and the path length of the total pipeline are each assigned a corresponding preset weight parameter;

[0023] Using the first priority data, the total number of devices, the total number of manual devices, the historical operation time and the path length of the total pipeline, and the corresponding preset weight parameters, the first weight calculation is performed to generate the first weight score and the first weight score set.

[0024] The first weight scores are sorted in ascending order, and the first first weight score is selected. The idle main pipeline corresponding to the first first weight score is taken as the first target main pipeline, and the path corresponding to the first target main pipeline is the optimal main pipeline path.

[0025] Specifically, when all the key locations of the available main pipeline are automated devices, the weight parameters of the total number of manual devices and the total number of devices are swapped to form a second weight parameter of the total number of manual devices and a second weight parameter of the total number of devices.

[0026] Preferably, an oil loading and unloading operation route planning method further includes:

[0027] Obtain the preset pipeline pressure value for the target operation and the historical runtime of each idle pump;

[0028] Sort each historical runtime in ascending order to generate a historical runtime dataset;

[0029] Select the first idle pump with the shortest historical running time for operation;

[0030] The current pipeline pressure value is collected using a pressure transmitter, and it is determined whether the current pipeline pressure value is equal to the preset pipeline pressure value.

[0031] If the current pipeline pressure value is greater than the preset pipeline pressure value, the PID control unit is used to adjust the current output frequency until the current pipeline pressure value is equal to the preset pipeline pressure value.

[0032] If the current pipeline pressure value is less than the preset pipeline pressure value, then determine whether the current output frequency of the first idle pump has reached the preset full frequency value.

[0033] If the current output frequency of the first idle pump reaches the preset full frequency value, then the second idle pump with the second shortest historical running time is activated to work together with the first idle pump.

[0034] Furthermore, if the current output frequency of the first idle pump does not reach the preset full frequency value, the PID control unit is used to adjust the current output frequency until the current pipeline pressure value equals the preset pipeline pressure value.

[0035] Specifically, when the current output frequency has been adjusted to the preset full frequency value, and the current pipeline pressure value is still less than the preset pipeline pressure value, the second idle pump with the second shortest historical running time is started to work together with the first idle pump.

[0036] Preferably, an oil loading and unloading operation route planning method further includes:

[0037] When the current working medium information is inconsistent with the previous working medium information of each idle main pipeline, the second weight is calculated for each idle main pipeline according to the information of each idle main pipeline in turn, and the second weight score and the second weight score set are generated.

[0038] Sort the second weight scores in descending order, and select the idle pipeline corresponding to the first second weight score as the second target pipeline;

[0039] The second target pipeline is transferred using the storage tanks for the previous and current working media, replacing the residual media from the previous operation with the media for the current operation.

[0040] According to a second aspect of the present invention, an oil loading and unloading operation route planning system is provided, characterized in that the system comprises:

[0041] The job information acquisition module is used to acquire the target job type, output party, and target receiver;

[0042] The operation status acquisition module is used to collect the operation status of each main pipeline and generate a main pipeline operation status set;

[0043] The operation status judgment module is used to sequentially determine whether the operation status of the current main pipeline is in operation; if the operation status is in operation, then determine whether the operation status of the next main pipeline is in operation; if the operation status is not in operation, then mark the current main pipeline as an idle main pipeline and retrieve the previous operation medium information of the current main pipeline.

[0044] The working medium information comparison module is used to extract the current working medium information from the working information and determine whether the current working medium information is consistent with the previous working medium information. If the current working medium information is consistent with the previous working medium information, the current idle main pipeline is marked as a candidate main pipeline and the device status in the working process is retrieved in sequence to generate a device status set.

[0045] An abnormal signal judgment module is used to determine whether a fault signal or a occupancy signal has appeared in the device status set; if a fault signal or an occupancy signal has appeared in the device status set, the previous working medium information of the next available main pipeline is retrieved and compared with the current working medium information; if no fault signal or occupancy signal has appeared in the device status set, the current main pipeline is marked as an available main pipeline.

[0046] The weight calculation module is used to calculate the preset weights of each available main pipeline according to the information of each available main pipeline in sequence, so as to obtain the relatively optimal operation path.

[0047] According to a third aspect of the present invention, an oil loading and unloading operation path planning device is provided, the device comprising: a processor and a memory;

[0048] The memory is used to store one or more program instructions;

[0049] The processor is configured to run one or more program instructions to perform the steps of an oil loading and unloading operation path planning method as described in any of the preceding claims.

[0050] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, wherein when executed by a processor, the computer program implements the steps of the oil loading and unloading operation path planning method as described in any of the preceding claims.

[0051] The embodiments of the present invention have the following advantages:

[0052] In this embodiment of the invention, after obtaining the target operation type, output party, and target receiver, the operational status of each main pipeline is determined. An idle main pipeline handle is selected to compare the current operation medium information with the previous operation medium information. If the current operation medium information is consistent with the previous operation medium information, the main pipeline with no faulty devices and no busy devices is selected as the available main pipeline. Pre-set weights are calculated for each available main pipeline to obtain the optimal main pipeline path. Before the oil loading and unloading operation begins, this embodiment of the invention analyzes the target operation information and scores each path to plan the optimal pipeline path. This avoids errors in manual selection, cross-contamination of different oil products, simplifies path planning workload, reduces safety hazards, and prevents accidents. Attached Figure Description

[0053] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.

[0054] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.

[0055] Figure 1 This is a schematic diagram of the logical structure of an oil loading and unloading operation path planning system provided in an embodiment of the present invention;

[0056] Figure 2 A flowchart illustrating an oil loading and unloading operation route planning method provided in an embodiment of the present invention;

[0057] Figure 3 A flowchart illustrating the weight calculation process in an oil loading and unloading operation path planning method provided in an embodiment of the present invention;

[0058] Figure 4 This is a schematic diagram of the process for adjusting pipeline pressure in an oil loading and unloading operation route planning method provided in an embodiment of the present invention;

[0059] Figure 5 This is a schematic diagram of the process of changing the residual medium in the pipeline by transferring tanks in an oil loading and unloading operation path planning method provided in an embodiment of the present invention. Detailed Implementation

[0060] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. 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.

[0061] Currently, maintaining safe storage and transportation at storage areas and terminals relies primarily on regular equipment maintenance and on-site operator monitoring during oil loading and unloading. Various devices along the loading and unloading pipelines have corresponding statuses, such as valve open / closed states, pump real-time operating status, and the capacity of storage tanks / ship holds. These statuses can change due to various factors. During oil loading and unloading, different devices may switch between different operations or current states, which can easily lead to incorrect switching or the selection of unusable devices, creating safety hazards, causing accidents, pipeline failures, and personnel injuries.

[0062] To address the aforementioned technical issues where regular equipment maintenance and on-site operator supervision are prone to errors and cannot guarantee safety.

[0063] refer to Figure 1 This invention discloses an oil loading and unloading operation path planning system, which includes: an operation information acquisition module 1; an operation status acquisition module 2; an operation status judgment module 3; an operation medium information comparison module 4; an abnormal signal judgment module 5; and a weight calculation module 6.

[0064] Corresponding to the oil loading and unloading operation route planning system disclosed above, this invention also discloses an oil loading and unloading operation route planning method. The following describes in detail the oil loading and unloading operation route planning method disclosed in this invention, in conjunction with the oil loading and unloading operation route planning system described above.

[0065] Example 1

[0066] After the job information acquisition module 1 obtains the target job type, output party, and target receiver, as follows: Figure 2 As shown, the operation status of each main pipeline is collected by the operation status acquisition module 2, a main pipeline operation status set is generated, and the operation status judgment module 3 is used to sequentially judge whether the current main pipeline is in operation; if the operation status is in operation, the operation status of the next main pipeline is judged; if the operation status is not in operation, the current main pipeline is marked as an idle main pipeline and the previous operation medium information of the current main pipeline is retrieved.

[0067] For example, when the target operation type is unloading, first determine the exporter, i.e., the dock and vessel to be unloaded, the target receiver's storage tank and the expected amount of oil to be unloaded. If the expected amount of oil to be unloaded is large or the target receiver's storage tank has little spare capacity, then multiple storage tanks need to be prepared as the target receiver.

[0068] When the oil storage capacity of the target receiving tank reaches or is about to reach its maximum capacity, the tank is switched and the second tank is used for unloading operations.

[0069] After retrieving the previous working medium information of the current main pipeline, the current working medium information is extracted from the working information. Then, the working medium information comparison module 4 determines whether the current working medium information is consistent with the previous working medium information. If the current working medium information is consistent with the previous working medium information, the current idle main pipeline is marked as a candidate main pipeline, and the device status in the working process is retrieved in sequence to generate a device status set.

[0070] The abnormal signal judgment module 5 determines whether a fault signal or a occupancy signal appears in the device status set; if a fault signal or a occupancy signal appears in the device status set, the previous working medium information of the next available main pipeline is retrieved and compared with the current working medium information; if no fault signal or occupancy signal appears in the device status set, the current main pipeline is marked as an available main pipeline.

[0071] Based on the information of each available main pipeline, the weight calculation module 6 sequentially performs preset weight calculations on each available main pipeline, referring to... Figure 3 This allows us to obtain the relatively optimal job path.

[0072] For example, if there are three available main pipelines, then the total number of devices, the total number of manual devices, the total duration of historical device failures, the historical operation duration, and the path length of the main pipelines on these three available main pipelines will be collected respectively.

[0073] Assign corresponding preset weight parameters to the total number of devices, the total number of manual devices, the total duration of historical device failures, the duration of historical operations, and the path length of the total pipeline, and perform the first weight calculation to generate the first weight score and the first weight score set.

[0074] Among them, the weight of the total duration of historical device failures is 5, the weight of the total number of manual devices is 3, the weight of the total number of devices is 1, the weight of historical operation duration is 0.7, and the weight of the total pipeline path length data is 0.3.

[0075] The formula for calculating the first weight is:

[0076] W = 5 × A + 3 × B + C + 0.7 × D + 0.3 × E

[0077] Where A is the total duration of historical device failures, B is the total number of manual devices, C is the total number of devices, D is the historical operation duration, and E is the pipeline path length data.

[0078] When all the key locations of the available main pipeline are manual devices, the values ​​of the first manual device total weight parameter and the first device total weight parameter are swapped, that is, the weight of the total number of manual devices is 1 and the weight of the total number of devices is 3, forming the values ​​of the second manual device total weight parameter and the second device total weight parameter.

[0079] The first weight scores are sorted in ascending order, and the first first weight score is selected. The idle main pipeline corresponding to the first first weight score is taken as the first target main pipeline, and the path corresponding to the first target main pipeline is the optimal main pipeline path.

[0080] Example 2

[0081] When the target operation type is loading, the output party is first determined, namely the storage tank, and the target receiver is multiple tank trucks on the loading platform.

[0082] The optimal main pipeline route is obtained as described in Example 1, and will not be repeated here. Considering the characteristics of the loading platform, the pipeline pressure changes significantly during the process of the vehicle entering and leaving after loading. At this time, it is necessary to adjust the frequency and number of pumps to stabilize the pipeline pressure.

[0083] refer to Figure 4The process involves: acquiring the preset pipeline pressure value for the target operation and the historical runtime of each idle pump; sorting the historical runtimes in ascending order to generate a historical runtime dataset; selecting the first idle pump with the shortest historical runtime for operation; using a pressure transmitter to collect the current pipeline pressure value and determining whether the current pipeline pressure value is equal to the preset pipeline pressure value; if the current pipeline pressure value is greater than the preset pipeline pressure value, adjusting the current output frequency using a PID control unit until the current pipeline pressure value equals the preset pipeline pressure value; if the current pipeline pressure value is less than the preset pipeline pressure value, determining whether the current output frequency of the first idle pump has reached a preset full-frequency value; if the current output frequency of the first idle pump has reached the preset full-frequency value, starting the second idle pump with the second shortest historical runtime to operate together with the first idle pump.

[0084] If the current output frequency of the first idle pump does not reach the preset full frequency value, the PID control unit is used to adjust the current output frequency until the current pipeline pressure value is equal to the preset pipeline pressure value.

[0085] Specifically, when the current output frequency has been adjusted to the preset full frequency value, and the current pipeline pressure value is still less than the preset pipeline pressure value, the second idle pump with the second shortest historical running time is started to work together with the first idle pump.

[0086] For example, the current loading platform can currently support a maximum of 5 tanker trucks to be loaded simultaneously. At this time, 5 tanker trucks are being loaded at the same time. After 2 tanker trucks have finished their work and left the loading platform, if the pump output frequency remains unchanged, the pipeline pressure value will exceed the preset pipeline pressure value, which may easily cause safety hazards. It is necessary to use a PID control unit to adjust the output frequency so that the pipeline pressure value is stable and equal to the preset pipeline pressure value.

[0087] If two tanker trucks are currently loading at the loading platform, and four more tanker trucks arrive and need to be loaded, three tanker trucks will be allowed to enter the available loading positions first. If the pipeline pressure is lower than the preset pipeline pressure, the output frequency of the currently operating pump will be increased until the preset full frequency is reached. Once the output frequency of all operating pumps reaches the preset full frequency, the idle pump with the shortest running time will be started to operate, so that the pipeline pressure equals the preset pipeline pressure.

[0088] When a tanker truck completes its loading operation and leaves the loading platform, while another tanker truck is waiting to enter the loading platform, the pipeline pressure increases. The output frequency of the pump is adjusted by the PID control unit to make the pipeline pressure equal to the preset pipeline pressure value.

[0089] Example 3

[0090] When the current working medium information is inconsistent with the previous working medium information of each available main pipeline, a second weight is calculated for each available main pipeline based on the information of each available main pipeline, generating a second weight score and a second weight score set. The second weight scores are then sorted in descending order, and the available main pipeline corresponding to the first second weight score is selected as the second target main pipeline.

[0091] The second target pipeline is transferred using the storage tanks for the previous and current working media, replacing the residual media from the previous operation with the media for the current operation.

[0092] Due to the characteristics of different oil products, their densities vary, and mixing them together will result in stratification. When the information regarding the medium being worked on in this operation is inconsistent with the previous operating medium information for each available main pipeline, such as... Figure 5 As shown, this stratification phenomenon can be used to backfill the residual medium from the previous operation in the main pipeline into the corresponding oil storage tank, so that the medium in the pipeline is the medium required for the current operation.

[0093] In addition, embodiments of the present invention also provide an oil loading and unloading operation route planning device, the device comprising: a processor and a memory; the memory being used to store one or more program instructions; the processor being used to run one or more program instructions to perform the steps of an oil loading and unloading operation route planning method as described in any of the preceding claims.

[0094] In addition, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the oil loading and unloading operation path planning method as described in any of the preceding claims.

[0095] In this embodiment of the invention, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0096] The various methods, steps, and logic diagrams disclosed in the embodiments of this invention can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor reads information from the storage medium and, in conjunction with its hardware, completes the steps of the above methods.

[0097] The storage medium can be memory, such as volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.

[0098] Among them, non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.

[0099] Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM).

[0100] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.

[0101] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this invention can be implemented using a combination of hardware and software. When applied as software, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of computer programs from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0102] Although the present invention has been described in detail above with general descriptions and specific embodiments, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, all such modifications or improvements made without departing from the spirit of the present invention fall within the scope of protection claimed by the present invention.

Claims

1. A method for planning oil loading and unloading operation routes, characterized in that, The method is applied to a path optimization model, which includes: Obtain the target job type, output source, and target receiver; Collect the operational status of each main pipeline and generate a main pipeline operational status set; Check sequentially whether the current operation status of the main pipeline is "operating"; If the operation status is "in operation", then determine whether the operation status of the next main pipeline is "in operation". If the operation status is not in operation, then mark the current main pipeline as an idle main pipeline and retrieve the previous operation medium information of the current main pipeline; Extract the medium information for the current operation from the operation information, and determine whether the medium information for the current operation is consistent with the medium information for the previous operation. If the medium information of the current operation is consistent with the medium information of the previous operation, the current idle main pipeline is marked as the candidate main pipeline and the device status in the operation process is retrieved in sequence to generate a device status set. Determine whether a fault signal or a occupancy signal has appeared in the device status set; If a fault signal or a occupancy signal appears in the device status cluster, the previous working medium information of the next available main pipeline is retrieved and compared with the current working medium information; If no fault signal or occupancy signal appears in the device status set, the current main pipeline is marked as an available main pipeline; Based on the information of each available main pipeline, the preset weights of each available main pipeline are calculated sequentially to obtain the optimal main pipeline path.

2. The method for planning oil loading and unloading routes as described in claim 1, characterized in that, Based on the information of each available main pipeline, a preset weight is calculated for each available main pipeline to obtain the optimal main pipeline path, including: Collect the total historical fault duration of each device on each available main pipeline and generate a dataset of total historical fault duration of devices. The duration data in the historical fault total duration dataset of the device are sorted from smallest to largest, and the order corresponding to each available main pipeline is the first priority data of each available main pipeline. Collect data on the total number of devices, the total number of manual devices, historical operation time, and the path length of the main pipeline on each available main pipeline.

3. The method for planning oil loading and unloading routes as described in claim 2, characterized in that, Also includes: Assign corresponding preset weight parameters to the first priority data, the total number of devices, the total number of manual devices, the historical operation time, and the path length of the total pipeline, respectively. Using the first priority data, the total number of devices, the total number of manual devices, the historical operation time and the path length of the total pipeline, and the corresponding preset weight parameters, the first weight calculation is performed to generate the first weight score and the first weight score set. The first weight scores are sorted in ascending order, and the first first weight score is selected. The idle main pipeline corresponding to the first first weight score is taken as the first target main pipeline, and the path corresponding to the first target main pipeline is the optimal main pipeline path.

4. The method for planning oil loading and unloading routes as described in claim 3, characterized in that, Also includes: When all the key locations of the available main pipeline are automated devices, the weight parameters of the total number of manual devices and the total number of devices are swapped to form a second weight parameter for the total number of manual devices and a second weight parameter for the total number of devices.

5. A method for planning oil loading and unloading routes according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the preset pipeline pressure value for the target operation and the historical runtime of each idle pump; Sort each historical runtime in ascending order to generate a historical runtime dataset; Select the first idle pump with the shortest historical running time for operation; The current pipeline pressure value is collected using a pressure transmitter, and it is determined whether the current pipeline pressure value is equal to the preset pipeline pressure value. If the current pipeline pressure value is greater than the preset pipeline pressure value, the PID control unit is used to adjust the current output frequency until the current pipeline pressure value is equal to the preset pipeline pressure value. If the current pipeline pressure value is less than the preset pipeline pressure value, then determine whether the current output frequency of the first idle pump has reached the preset full frequency value. If the current output frequency of the first idle pump reaches the preset full frequency value, then the second idle pump with the second shortest historical running time is activated to work together with the first idle pump.

6. The method for planning oil loading and unloading routes as described in claim 5, characterized in that, Also includes: If the current output frequency of the first idle pump does not reach the preset full frequency value, the PID control unit is used to adjust the current output frequency until the current pipeline pressure value is equal to the preset pipeline pressure value. Specifically, when the current output frequency has been adjusted to the preset full frequency value, and the current pipeline pressure value is still less than the preset pipeline pressure value, the second idle pump with the second shortest historical running time is started to work together with the first idle pump.

7. A method for planning oil loading and unloading routes as described in any one of claims 1 to 4, characterized in that, The method further includes: When the current working medium information is inconsistent with the previous working medium information of each idle main pipeline, the second weight is calculated for each idle main pipeline according to the information of each idle main pipeline in turn, and the second weight score and the second weight score set are generated. Sort the second weight scores in descending order, and select the idle pipeline corresponding to the first second weight score as the second target pipeline; The second target pipeline is transferred using the storage tanks for the previous and current working media, replacing the residual media from the previous operation with the media for the current operation.

8. An oil loading and unloading operation route planning system, characterized in that, The system includes: The job information acquisition module is used to acquire the target job type, output party, and target receiver; The operation status acquisition module is used to collect the operation status of each main pipeline and generate a main pipeline operation status set; The operation status judgment module is used to sequentially determine whether the operation status of the current main pipeline is in operation; if the operation status is in operation, then determine whether the operation status of the next main pipeline is in operation; if the operation status is not in operation, then mark the current main pipeline as an idle main pipeline and retrieve the previous operation medium information of the current main pipeline. The working medium information comparison module is used to extract the current working medium information from the working information and determine whether the current working medium information is consistent with the previous working medium information. If the current working medium information is consistent with the previous working medium information, the current idle main pipeline is marked as a candidate main pipeline and the device status in the working process is retrieved in sequence to generate a device status set. An abnormal signal judgment module is used to determine whether a fault signal or a occupancy signal has appeared in the device status set; if a fault signal or an occupancy signal has appeared in the device status set, the previous working medium information of the next available main pipeline is retrieved and compared with the current working medium information; if no fault signal or occupancy signal has appeared in the device status set, the current main pipeline is marked as an available main pipeline. The weight calculation module is used to calculate the preset weights of each available main pipeline according to the information of each available main pipeline in sequence, so as to obtain the relatively optimal operation path.

9. An oil loading and unloading operation path planning device, characterized in that, The device includes: a processor and a memory; The memory is used to store one or more program instructions; The processor is configured to run one or more program instructions to perform the steps of the oil loading and unloading operation path planning method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the oil loading and unloading operation path planning method as described in any one of claims 1 to 7.