Crude oil conveying method and device, medium and electronic equipment
By constructing a hybrid integer planning model, the crude oil transportation solution is automatically generated, which solves the problems of low efficiency and delay caused by manual preparation of crude oil transportation solutions in the existing technology, and achieves efficient and stable crude oil transportation and corrosion protection for long-term transmission pipelines.
Patent Information
- Application Number
- CN202310770139.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the preparation of crude oil delivery plans relies on manual labor, resulting in high business skills requirements, long cycles, and difficulty in responding to tanker delays or changes in market demand in a timely manner, and difficulty in collaborating with multiple departments and low work efficiency.
By determining operating parameters based on the distribution information of oil storage in the early pipeline in the long-term pipeline, the initial inventory information of the factory tank and the operating rules of the distillation device, the mixed integer planning model is constructed, and the solution is solved to generate crude oil delivery plans, and the plan is automatically prepared to reduce scheduling. Barriers and increase productivity.
It has realized the rapid and automatic preparation of crude oil transportation plans, which has reduced the work intensity of personnel, improved the productivity of enterprises, simplified the long-term pipeline modeling process, and solved the problems of crude oil transportation delay and corrosion.
Smart Images

Figure CN119204903A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of production scheduling, and in particular, to a crude oil transportation method, device, medium and electronic equipment. Background Art
[0002] As we all know, production scheduling is the production command center of oil refining enterprises and an important link between the superior planning and planning departments and the lower workshops and equipment operations. Production scheduling is fully responsible for the production management of the enterprise and serves to achieve stable and efficient production of the entire plant and maximize economic benefits. The crude oil scheduling link is mainly to prepare crude oil unloading, storage, transportation, blending and processing plans for the process from oil tanker unloading at the port to feeding and processing in the distillation unit. This link is the "leader" of the production scheduling process. Therefore, grasping the crude oil scheduling link plays a vital role in achieving "safe, stable, long-term, full and excellent" production of the entire plant.
[0003] At present, oil refineries mainly arrange crude oil transportation plans through manual scheduling. This method requires high business skills of dispatchers, and the plans prepared by different dispatchers vary greatly. In addition, the plan preparation cycle is long, and it is difficult to respond to emergencies such as delayed arrival of tankers and changes in market demand in a timely manner. Furthermore, the plan preparation process requires collaboration among multiple departments, and due to the difficulty in job matching, the work efficiency of dispatchers is greatly reduced. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a crude oil transportation method, device, medium and electronic equipment.
[0005] In order to achieve the above-mentioned purpose, in a first aspect, the present disclosure provides a crude oil transportation method, comprising: determining a first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operating rules of the distillation device, wherein the first operating parameter includes the operating parameters of the long-distance pipeline, the plant tank and the distillation device in the process of discharging the initial oil storage, and the initial inventory information includes the initial inventory amount and the initial operation status; updating the initial inventory information according to the first operating parameter; constructing a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; solving the mixed integer programming model according to the updated initial inventory information to obtain a second operating parameter, wherein the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; generating a crude oil transportation plan according to the first operating parameter and the second operating parameter.
[0006] In a second aspect, the present disclosure provides a crude oil transportation device, including: a first determination module, used to determine a first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operating rules of the distillation device, wherein the first operating parameter includes the operating parameters of the long-distance pipeline, the plant tank and the distillation device in the process of discharging the initial oil storage, and the initial inventory information includes the initial inventory amount and the initial operation status; an updating module, used to update the initial inventory information according to the first operating parameter; a model construction module, used to construct a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; a model solving module, used to solve the mixed integer programming model according to the initial inventory information obtained after the update, and obtain a second operating parameter, wherein the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; a scheme generation module, used to generate a crude oil transportation scheme according to the first operating parameter and the second operating parameter.
[0007] In a third aspect, the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the crude oil delivery method provided in the first aspect of the present disclosure.
[0008] In a fourth aspect, the present disclosure provides an electronic device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the crude oil delivery method provided in the first aspect of the present disclosure.
[0009] In the above technical scheme, in the first stage, according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operation rules of the distillation unit, the operation scheme of the long-distance pipeline and its downstream equipment (including the plant tank and the distillation unit) in the process of discharging the initial oil storage in the long-distance pipeline is determined; then, the initial inventory level and initial operation status of the plant tank are adjusted according to these operation schemes, thereby simplifying the long-distance pipeline transportation problem into an instant transportation problem and removing the long-distance pipeline delay effect. In the second stage, a mixed integer programming model covering the entire process from oil tanker unloading to distillation unit processing is established and solved; finally, according to the operation scheme determined in the first stage and the solution results of the model, a crude oil transportation plan is generated. In this way, the crude oil transportation plan can be quickly and automatically compiled without manual intervention, which not only reduces the scheduling threshold, but also reduces the work intensity of personnel, improves the productivity of the enterprise, and is of great significance for achieving stable production and economic production. In addition, the above two-stage modeling method cleverly simplifies the long-distance pipeline modeling process, has low modeling difficulty, small model scale, high model efficiency, and is easier to solve complex crude oil transportation problems. In addition, the present disclosure can solve the problem of crude oil transportation in long-distance pipelines and realize efficient transportation of crude oil in long-distance pipelines. Crude oil is usually corrosive and will corrode the pipeline if it stays in the long-distance pipeline for a long time. Therefore, the present disclosure can solve the technical problem of inhibiting corrosion of long-distance pipelines.
[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0012] Figure 1 The present invention is a crude oil scheduling process flow chart of a refinery enterprise according to an exemplary embodiment.
[0013] Figure 2 The figure is a flow chart of a crude oil transportation method according to an exemplary embodiment.
[0014] Figure 3 The diagram is a schematic diagram showing a planned oil unloading scheme for an oil tanker according to an exemplary embodiment.
[0015] Figure 4 It is a schematic diagram showing a terminal tank planning operation scheme according to an exemplary embodiment.
[0016] Figure 5 It is a schematic diagram showing a transfer tank planning operation scheme according to an exemplary embodiment.
[0017] Figure 6 It is a schematic diagram showing a planned processing process of a distillation device according to an exemplary embodiment.
[0018] Figure 7 It is a schematic diagram showing a planned transportation process of a non-long-distance pipeline according to an exemplary embodiment.
[0019] Figure 8 The diagram is a schematic diagram of a planned transportation process of a long-distance pipeline according to an exemplary embodiment.
[0020] Fig. 9 The figure is a block diagram of a crude oil transportation device according to an exemplary embodiment.
[0021] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment.
[0022] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0024] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0025] Figure 1 FIG. 1 is a crude oil scheduling process flow chart of a refinery according to an exemplary embodiment. Figure 1 As shown in the figure, a certain oil refinery purchases crude oil and transports it to a certain wharf via tanker; after the tanker safely berths at the port, the crude oil is unloaded into multiple suitable wharf tanks; the crude oil in the wharf tank has two transportation routes: one transportation route is that the crude oil enters the transfer tank through a shorter oil pipeline (i.e., non-long-distance pipeline), and the other transportation route is that the crude oil enters the plant tank through a longer oil pipeline (i.e., long-distance pipeline); the crude oil in the transfer tank can also enter the plant tank through the long-distance pipeline; finally, the crude oil in the plant tank enters the distillation unit for processing. The non-long-distance pipeline connecting the wharf tank and the transfer tank is relatively short (e.g., 11 km), and the transportation delay effect of the non-long-distance pipeline can be ignored, but the long-distance pipeline supplying the plant tank is usually relatively long (e.g., 163 km) and has a relatively large volume (e.g., 46,000 m 3), it takes a long time (for example, more than 20 hours) for crude oil to leave the long-distance pipeline after entering the long-distance pipeline. Therefore, the crude oil transportation problem of the oil refinery is a complex problem involving long-distance pipeline transportation.
[0026] In view of this, the present disclosure provides a crude oil transportation method, device, medium and electronic equipment.
[0027] Figure 2 FIG. 1 is a flow chart showing a crude oil transportation method according to an exemplary embodiment. Figure 2 As shown, the crude oil transportation method may include the following S201 to S205.
[0028] In S201, a first operating parameter is determined according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank, and the operating rules of the distillation device.
[0029] like Figure 1 As shown, the downstream equipment of the long-distance pipeline may include a plant tank and a distillation unit, and the upstream equipment of the long-distance pipeline may include an oil tanker (including berth information), a terminal tank, a non-long-distance pipeline, a transfer tank, etc. Among them, the long-distance pipeline involved in the current crude oil scheduling project may be one or more, each upstream equipment of the long-distance pipeline may be one or more, and each downstream equipment of the long-distance pipeline may also be one or more. For example, the current crude oil scheduling project involves a long-distance pipeline, multiple oil tankers, multiple terminal tanks, a non-long-distance pipeline, multiple transfer tanks, multiple plant tanks, and multiple distillation units.
[0030] Before the crude oil scheduling project starts, it is assumed that all long-distance pipelines are full of oil. Step S201 is used to obtain the operation plan of the long-distance pipeline and its downstream equipment in the process of completely ejecting the oil stored in the long-distance pipeline at the initial stage of scheduling (i.e., the process of discharging the initial oil stored in the long-distance pipeline).
[0031] Among them, the initial pipeline oil storage is the oil storage in the long-distance pipeline at the start time of scheduling; the distribution information may include the crude oil sections contained in the oil storage in the long-distance pipeline, the volume of each crude oil section and other information; the initial inventory information may include the initial inventory volume and the initial operation status, and the initial operation status may include the initial oil type and the end time of the most recent oil collection.
[0032] The operating rules of the distillation unit may include: the distillation unit can only process its corresponding processable oil type, that is, the distillation unit can only process specific suitable oil types; the processing volume of the distillation unit is consistent with its corresponding planned processing volume; the distillation unit processes continuously and uninterruptedly.
[0033] The first operating parameters may include the operating parameters of the long-distance pipeline, the plant tank and the distillation unit during the process of discharging the initial pipeline oil, that is, the first operating parameters include the operating parameters of each long-distance pipeline involved in the current crude oil scheduling project during the process of discharging the initial pipeline oil in the long-distance pipeline, the operating parameters of each plant tank involved in the current crude oil scheduling project during the process of discharging the initial pipeline oil in the long-distance pipeline, and the operating parameters of each distillation unit involved in the current crude oil scheduling project during the process of discharging the initial pipeline oil in the long-distance pipeline.
[0034] In S202, the initial inventory information of the plant tanks is updated according to the first operating parameter.
[0035] According to the first operating parameter, the initial inventory level and initial operating status of the plant tank are adjusted, thereby simplifying the long-distance pipeline transportation problem into an instant transportation problem and removing the long-distance pipeline delay effect.
[0036] In S203, a mixed integer programming model is constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment.
[0037] In the present disclosure, the mixed integer programming model includes an objective function and constraints. When constructing the mixed integer programming model, the unloading of oil from tankers, the receipt and payment of oil in storage tanks (including terminal tanks, transfer tanks, and plant tanks), the transportation of pipelines (including long-distance pipelines and non-long-distance pipelines), the processing of distillation units, and the crude oil blending operations are considered, and variables, constraints, and objective functions are set to establish a mixed integer programming model, that is, to establish a mixed integer programming model that includes the entire process from unloading of oil from tankers to processing of distillation units.
[0038] In S204, the mixed integer programming model is solved according to the updated initial inventory information to obtain the second operating parameter.
[0039] In the present disclosure, the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; that is, the second operating parameter includes the operating parameters of the downstream equipment of the long-distance pipeline for receiving and delivering oil within the target period, the operating parameters of the long-distance pipeline for delivering oil within the target period, the operating parameters of the long-distance pipeline for receiving oil during the entire scheduling period, and the operating parameters of the upstream equipment of the long-distance pipeline for receiving and delivering oil during the entire scheduling period. The target period is the period from the time when the initial pipeline oil storage of the long-distance pipeline is emptied to the end time of scheduling. Among them, the time when the initial pipeline oil storage of the long-distance pipeline is emptied refers to the time when all the long-distance pipelines involved in the current crude oil scheduling project are emptied of the initial pipeline oil storage, that is, the time when the long-distance pipeline that discharges the initial pipeline oil the latest empties the initial pipeline oil storage.
[0040] In S205, a crude oil transportation plan is generated according to the first operating parameter and the second operating parameter.
[0041] In the present disclosure, by integrating (i.e. merging) the first operating parameter and the second operating parameter, a complete crude oil transportation plan can be obtained, that is, the oil receiving and delivery operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period. Specifically, the crude oil transportation plan may include: the oil receiving operating parameters of the long-distance pipeline during the entire scheduling period, that is, the operating plan for crude oil entering the long-distance pipeline (for example, operation time, crude oil delivery volume, crude oil source information, etc.), the oil delivery operating parameters of the long-distance pipeline during the entire scheduling period, that is, the operating plan for crude oil leaving the long-distance pipeline (for example, the order in which crude oil leaves the long-distance pipeline, crude oil delivery flow, crude oil destination information, etc.); the oil delivery operating parameters of the tanker during the entire scheduling period (for example, berthing position, oil unloading time, crude oil destination information, etc.); the oil receiving operating parameters of the terminal tank during the entire scheduling period (for example, oil receiving volume, oil receiving time, crude oil source information), oil delivery operation parameters of terminal tanks during the entire scheduling period (for example, oil delivery volume, oil delivery time, crude oil destination information); oil collection operation parameters of plant tanks during the entire scheduling period (for example, oil collection volume, approximate oil collection time, crude oil source information), oil delivery operation parameters of plant tanks during the entire scheduling period (for example, oil collection volume, oil delivery time, crude oil destination information); oil collection and processing operation parameters of the distillation unit during the entire scheduling period (for example, oil collection volume, oil collection time, crude oil source information, processing rate, feed information (such as sulfur content, acid value upper limit, etc.)); oil collection and delivery operation parameters of transfer tanks and non-long-distance pipelines.
[0042] It should be noted that the above S203 can be executed after the above S201 ( Figure 2 ), and may also be executed before the above S201, or may be executed simultaneously with the above S201, which is not specifically limited in the present disclosure.
[0043] In the above technical scheme, in the first stage, according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operation rules of the distillation unit, the operation scheme of the long-distance pipeline and its downstream equipment (including the plant tank and the distillation unit) in the process of discharging the initial oil storage in the long-distance pipeline is determined; then, the initial inventory level and initial operation status of the plant tank are adjusted according to these operation schemes, thereby simplifying the long-distance pipeline transportation problem into an instant transportation problem and removing the long-distance pipeline delay effect. In the second stage, a mixed integer programming model covering the entire process from oil tanker unloading to distillation unit processing is established and solved; finally, according to the operation scheme determined in the first stage and the solution results of the model, a crude oil transportation plan is generated. In this way, the crude oil transportation plan can be quickly and automatically compiled without manual intervention, which not only reduces the scheduling threshold, but also reduces the work intensity of personnel, improves the productivity of the enterprise, and is of great significance for achieving stable production and economic production. In addition, the above two-stage modeling method cleverly simplifies the long-distance pipeline modeling process, has low modeling difficulty, small model scale, high model efficiency, and is easier to solve complex crude oil transportation problems. In addition, the present disclosure can solve the problem of crude oil transportation in long-distance pipelines and realize efficient transportation of crude oil in long-distance pipelines. Crude oil is usually corrosive and will corrode the pipeline if it stays in the long-distance pipeline for a long time. Therefore, the present disclosure can solve the technical problem of inhibiting corrosion of long-distance pipelines.
[0044] Before determining the first operating parameter and solving the mixed integer programming model, it is necessary to first obtain the basic information necessary for generating the crude oil transportation plan for the current crude oil scheduling project, including:
[0045] (1) Basic information of the crude oil to be processed, including the crude oil name, crude oil name, density, sulfur content, and acid value as shown in Table 1 below.
[0046] Table 1 Basic information of crude oil components to be processed
[0047] Serial number Crude oil name Crude oil code <![CDATA[Density, g / cm 3 > Sulfur content, % Acid value, mgKOH / g 1 Castile CST 0.94 1.61 0.47 2 Geno JNO 0.87 0.29 0.51 3 Sand SAM 0.87 2.37 0.22 4 Sha Chong SAH 0.89 2.81 0.24 5 Maya MAY 0.92 3.69 0.11 6 Basra Light BSL 0.87 2.92 0.18 7 Espo ESP 0.84 0.51 0.09 8 Sand Light SAL 0.86 1.99 0.07 9 Oman OMN 0.87 1.43 0.47 10 Sudan DAR 0.91 0.11 3.38 11 Kasaj KSJ 0.87 0.42 0.38 12 Sadun STR 0.90 0.83 1.31
[0048] (2) The blending formula of the mixed crude oil is shown in Table 2 below.
[0049] Table 2 Blending formula of mixed crude oil
[0050] Serial number Blended crude oil name Blending components Quality blending ratio Processing equipment name 1 M01 Oman: Sudan 0.8:0.2 CDU1 2 M02 Sadun 1 CDU1 3 M03 Kesaj: Sudan 0.8:0.2 CDU1 4 M04 Espoo: Sudan 0.8:0.2 CDU1 5 M05 Espoo:Kesaj:Sudan 0.6:0.2:0.2 CDU1 6 M06 Oman: Esper: Sudan 0.65:0.15:0.2 CDU1 7 M07 Geno: Sand Light 0.8:0.2 CDU1 8 M08 Sand Light: Castile 0.8:0.2 CDU2 9 M09 In the Sand: Castile 0.85:0.15 CDU2 10 M10 Basra Light: Castile 0.85:0.15 CDU2 11 M11 Basra Light:Oman:Castile 0.6:0.25:0.15 CDU2 12 M12 Sand Light:Sand Middle:Castilla 0.45:0.4:0.15 CDU2 13 M13 Basra Light:Sha Light:Castile 0.6:0.25:0.15 CDU2
[0051] (3) The feed upper limit and planned processing rate of the distillation unit are shown in Table 3 below.
[0052] Table 3 Basic information of distillation unit scheduling
[0053] Serial number Distillation apparatus name Upper limit of feed sulfur content, % Upper limit of feed acid value, mgKOH / g Planned processing rate, t / h 1 CDU1 1.6 2 616 2 CDU2 3 1.2 875
[0054] (4) Basic information of the tanker arriving at the port, including the estimated arrival time, type of oil carried and the amount of oil carried, as shown in Table 4 below.
[0055] Table 4 Basic information of arriving tankers
[0056] Serial number Tanker Name Estimated time of arrival Carrier oil types Fuel capacity, t 1 VL01 2022 / 7 / 1 12:00 Basra Light 105000 2 VL02 2022 / 7 / 3 7:00 Basra Light 113000 3 VL03 2022 / 7 / 6 16:00 Espo 107500 4 VL04 2022 / 7 / 10 10:00 Oman 117600
[0057] (5) Basic information of storage tanks (including terminal tanks, transfer tanks and plant tanks), including tank capacity, initial inventory, initial oil type, downstream nodes, etc., as shown in Tables 5 to 7 below.
[0058] Table 5 Basic information of terminal tank
[0059] Serial number Storage tank <![CDATA[Preset tank volume, m 3 > <![CDATA[Preset bottom quantity of tank, m 3 > Beginning inventory, t Initial oil type The most recent oil harvest 1 ST01 50000 5000 41636 Sudan 2022 / 6 / 30 21:00 2 ST02 50000 5000 41698 Sudan 2022 / 6 / 30 21:00 3 ST03 50000 5000 6243 Sadun 2022 / 6 / 30 21:00 4 ST04 50000 5000 38339 Sand Light 2022 / 6 / 30 21:00 5 ST05 50000 5000 37892 Kesaj 2022 / 6 / 30 21:00 6 ST06 50000 5000 40923 Castile 2022 / 6 / 30 21:00 7 ST07 50000 5000 42395 Castile 2022 / 6 / 30 21:00 8 ST08 50000 5000 34323 Oman 2022 / 6 / 30 21:00 9 ST09 50000 5000 41876 Sadun 2022 / 6 / 30 21:00 10 ST10 50000 5000 6168 Sadun 2022 / 6 / 30 21:00 11 ST11 50000 5000 5991 Sadun 2022 / 6 / 30 21:00 12 ST12 50000 5000 6172 Oman 2022 / 6 / 30 21:00
[0060] Table 6 Basic information of transfer tank
[0061] Serial number Tank Name <![CDATA[Preset tank volume, m 3 > <![CDATA[Preset bottom tank volume, m 3 > Beginning inventory, t Initial oil type 1 LT01 100000 10000 56682 M08 2 LT02 100000 10000 84108 M03 3 LT03 55000 5500 42233 Sadun 4 LT04 100000 10000 28263 M08 5 LT05 100000 10000 12215 Sand 6 LT06 55000 5500 37991 Castile
[0062] Table 7 Basic information of plant tanks
[0063] Serial number Storage tank crude <![CDATA[Preset tank capacity, m 3 > <![CDATA[Preset tank bottom, m 3 > Beginning inventory Initial oil type The most recent oil harvest 1 CT01 CDU2 50000 5000 26901 M08 2022 / 6 / 28 8:05 2 CT02 CDU2 50000 5000 4361 M08 2022 / 6 / 28 8:05 3 CT03 CDU1 30000 3000 23726 M02 2022 / 6 / 28 8:05 4 CT04 CDU2 50000 5000 43582 M12 2022 / 6 / 30 19:56 5 CT05 CDU1 30000 3000 23913 M02 2022 / 6 / 28 8:05 6 CT06 CDU2 30000 3000 22945 M08 2022 / 6 / 28 8:05 7 CT07 CDU2 30000 3000 16570 M12 2022 / 7 / 1 3:33 8 CT08 CDU1 30000 3000 7804 M02 2022 / 6 / 28 8:05 9 CT09 CDU1 30000 3000 7272 M02 2022 / 7 / 1 6:00
[0064] (6) Berth basic information, as shown in Table 8 below.
[0065] Table 8 Berth basic information
[0066] Serial number Berth Name Maximum oil unloading rate, t / h 1 BE 6666
[0067] (7) Basic information of the oil pipeline, as shown in Tables 9 and 10 below.
[0068] Table 9 Basic information of oil-to-oil lines (non-long-distance pipelines)
[0069] Serial number Pipeline Name <![CDATA[Maximum conveying rate, m 3 / h]]> <![CDATA[Minimum conveying rate, m 3 / h]]> 1 ZL 2800 1700
[0070] Table 10 Basic information of long-distance pipelines (including distribution information of initial pipeline oil reserves)
[0071]
[0072] The following is a detailed description of the specific implementation method of determining the first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank, and the operation rules of the distillation device in the above S201. Specifically, it can be achieved by the following steps (1) to (6):
[0073] Step (1): From the plant tanks involved in the current crude oil scheduling project, determine the discharge tank of each long-distance pipeline with unemptied initial oil reserves at the initial time and the feed tank of each distillation unit at the initial time.
[0074] In the present disclosure, the initial value of the initial time is the scheduling start time.
[0075] Step (2): Determine the third operating parameter based on the initial inventory information of each discharge tank, the initial inventory information of each feed tank, and the distribution information of the initial oil inventory in the long-distance pipeline.
[0076] In the present disclosure, the third operating parameters may include the operating parameters of each long-distance pipeline, plant tank and distillation unit that has not been emptied at the beginning of the pipeline oil storage period within the first target time after the initial moment, and the first target time is the minimum value of the current sustainable oil collection time of each discharge tank and the current sustainable oil delivery time of each feed tank.
[0077] Among them, the current sustainable oil collection time of the discharge tank is the time during which the discharge tank can continuously collect oil, which is related to the inventory of the discharge tank at the initial moment, the tank capacity of the discharge tank (i.e., the upper limit of inventory), the transportation rate of the long-distance pipeline corresponding to the discharge tank (i.e., the discharge tank is the discharge tank of the corresponding long-distance pipeline), the current distribution of the oil in the long-distance pipeline corresponding to the discharge tank, etc.; when the discharge tank collects and delivers oil at the same time, the current sustainable oil collection time of the discharge tank is also related to the oil delivery rate of the discharge tank. The current sustainable oil delivery time of the feed tank is the time during which the feed tank can continuously deliver oil, which is related to the inventory of the feed tank at the initial moment and the processing rate of the distillation device corresponding to the feed tank (that is, the feed tank is the feed tank of the distillation device corresponding to it) (that is, the oil delivery rate of the feed tank); when the feed tank collects oil and delivers oil at the same time, the current sustainable oil delivery time of the feed tank is also related to the oil collection rate of the feed tank.
[0078] Step (3): Based on the third operating parameter, update the distribution information of the initial pipeline oil reserves in each long-distance pipeline that has not been emptied of the initial pipeline oil reserves.
[0079] Specifically, for each long-distance pipeline that has not been emptied of its initial oil reserves, the volume of each crude oil section transported by the long-distance pipeline within the first target time after the initial moment can be determined based on the operation parameters of the long-distance pipeline within the first target time after the initial moment (including information such as the transported crude oil section, transport time, and transport rate); then, based on the volume of each crude oil section transported by the long-distance pipeline within the first target time at the initial moment and the distribution information of the initial oil reserves of the long-distance pipeline at the initial moment, the crude oil sections and the volume of each crude oil section included in the oil reserves of the long-distance pipeline at the target moment can be determined, that is, the new distribution information of the initial oil reserves in each long-distance pipeline that has not been emptied of its initial oil reserves can be obtained. Among them, the target moment is the sum of the initial moment and the first target time.
[0080] Step (4): Based on the updated distribution information, determine whether there is any long-distance pipeline that has not yet emptied its initial oil reserves.
[0081] If there are any long-distance pipelines that have not been drained of the oil stored at the beginning of the period, it means that there are still long-distance pipelines that have not completely ejected the oil stored at the beginning of the period. At this time, it is necessary to determine the operating parameters of each long-distance pipeline that has not been drained of the oil stored at the beginning of the period, the plant tank and the distillation unit within a period of time after the above target time. Specifically, the following step (5) can be executed, and then return to the above step (1) to continue executing until there are no long-distance pipelines that have not been drained of the oil stored at the beginning of the period.
[0082] If there is no long-distance pipeline that has not drained the initial oil storage, it means that the initial oil storage in each long-distance pipeline involved in the current crude oil scheduling project has been completely ejected. At this time, the cycle can be ended and the following step (6) can be executed.
[0083] Step (5): Update the initial time to the sum of the initial time and the first target duration, and update the beginning inventory information according to the third operation parameter.
[0084] In the disclosure, the initial time is updated to the sum of the initial time and the first target duration, that is, the initial time is updated to the above target time.
[0085] The third operating parameter may include the inventory and storage oil type of each plant tank involved in the current crude oil scheduling project at the target time. At this time, the initial inventory information of the plant tank may be updated according to the third operating parameter in the following manner:
[0086] For each plant tank, if the plant tank has any oil payment or receipt operation during the process of discharging the initial storage oil, the initial inventory of the plant tank will be updated to the inventory of the plant tank at the above target time, and the initial oil type of the plant tank will be updated to the storage oil type of the plant tank at the above target time.
[0087] Step (6): Determine the first operating parameter based on each third operating parameter.
[0088] Specifically, the operating parameters of the long-distance pipeline at different time periods with oil stored in the initial pipe during each cycle that have not been emptied are combined in chronological order to obtain the operating parameters of the long-distance pipeline during the oil storage in the initial pipe during the discharge period; at the same time, the operating parameters of the plant tank at different time periods obtained from each cycle are combined in chronological order to obtain the operating parameters of the plant tank during the oil storage in the initial pipe during the discharge period; the operating parameters of the distillation device at different time periods obtained from each cycle are combined in chronological order to obtain the operating parameters of the distillation device during the oil storage in the initial pipe during the discharge period, thereby obtaining the above-mentioned first operating parameters.
[0089] The following is a detailed description of the specific implementation method of determining the discharge tank of each long-distance pipeline with unemptied initial oil storage at the initial time and the feed tank of each distillation unit at the initial time from the plant tanks involved in the current crude oil scheduling project in the above step (1). Specifically, it can be achieved by the following steps (11) and (12):
[0090] Step (11): Determine the feed tank of each distillation unit at the initial moment from the plant tanks involved in the current crude oil scheduling project.
[0091] Step (12): According to the inventory status of each feed tank at the initial moment, determine the discharge tank of each long-distance pipeline with unemptied initial oil reserves at the initial moment.
[0092] Among them, the inventory status includes full tank, empty tank and half tank (that is, the inventory is greater than 0 and less than the tank capacity).
[0093] The following is a detailed description of the specific implementation method of determining the feed tank of each distillation unit at the initial time from the plant tanks involved in the current crude oil scheduling project in the above step (11). Specifically, it can be achieved by the following steps (111) and (112):
[0094] Step (111): For each distillation unit, if the target plant tank is not completely emptied, the target plant tank is determined as the feed tank of the distillation unit at the initial moment.
[0095] Step (112): If the target plant tank is completely emptied, the feed tank of the distillation device at the initial moment is determined from the feed tank of the distillation device.
[0096] Among them, the target plant tank is the plant tank that is supplying materials to the distillation device at the initial moment, that is, the current feed tank of the distillation device; when the inventory of the target plant tank at the initial moment is greater than 0, it is considered that the target plant tank is not completely emptied, and when the inventory of the target plant tank at the initial moment is equal to 0, it is considered that the target plant tank is completely emptied.
[0097] If the target plant tank is not completely emptied, the target plant tank is selected to continue to supply the distillation unit, that is, the target plant tank is determined as the feed tank of the distillation unit at the initial time; if the target plant tank is completely emptied, the feed tank of the distillation unit at the initial time is determined from the feed tank of the distillation unit. The feed tank of the distillation unit refers to the plant tank that can supply oil to the distillation unit.
[0098] The specific implementation method of determining the feed tank of the distillation apparatus at the initial moment from the feed tank of the distillation apparatus in the above step (112) is described in detail below.
[0099] Specifically, when there is a feed tank whose corresponding second target time is greater than or equal to zero among the non-empty feed tanks of the distillation device, the feed tank whose corresponding second target time is the largest among the non-empty feed tanks of the distillation device is determined as the feed tank of the distillation device at the initial moment; when there is no feed tank whose corresponding second target time is greater than or equal to zero among the non-empty feed tanks of the distillation device, if there is a target feed tank among the empty feed tanks of the distillation device, any target feed tank is determined as the feed tank of the distillation device at the initial moment; when there is no feed tank whose corresponding second target time is greater than or equal to zero among the non-empty feed tanks of the distillation device, if there is no target feed tank among the empty feed tanks of the distillation device, it indicates that according to the equipment status at the initial stage of scheduling, it is impossible to find a transportation plan that satisfies the continuous processing of the distillation device. At this time, the crude oil transportation method process can be terminated, and the prompt message "According to the equipment status at the initial stage of scheduling, it is impossible to find a transportation plan that satisfies the continuous processing of the distillation device" is output.
[0100] In the present disclosure, the second target duration corresponding to the non-empty supply tank is equal to the difference between the actual standing time after the non-empty supply tank receives oil and the shortest standing time after the non-empty supply tank receives oil. Among them, the actual standing time after the non-empty supply tank receives oil is the time interval between the initial moment and the end time of the most recent oil collection of the non-empty supply tank. The shortest standing time after the non-empty supply tank receives oil is the shortest time that the non-empty supply tank needs to wait after receiving oil if it wants to deliver oil to the outside. For a supply tank that does not require standing after receiving oil, its shortest standing time after receiving oil is 0. The target supply tank is an empty supply tank of the distillation device that allows simultaneous delivery and receipt of oil and can receive the current discharge of any long-distance pipeline that has not been emptied of the initial oil storage in the pipeline. When there is a long-distance pipeline corresponding to the supply tank among the long-distance pipelines with initial oil reserves that have not been emptied (the supply tank can only receive oil from a specific long-distance pipeline), and the outlet oil section of the corresponding long-distance pipeline is the type of oil that can be stored in the supply tank, it is determined that the supply tank can receive the current discharge of any long-distance pipeline that has initial oil reserves that have not been emptied.
[0101] The following is a detailed description of the specific implementation method of determining the discharge tank of each long-distance pipeline with oil stored in the initial pipeline at the initial moment according to the inventory status of each feed tank at the initial moment in the above step (12). Specifically, it can be achieved by the following steps (121) and (122):
[0102] Step (121): For each feed tank, if the feed tank is empty, the feed tank is determined as the discharge tank of the target long-distance pipeline.
[0103] The target long-distance pipeline is any one of the long-distance pipelines whose current discharge can be received by the feed tank and whose initial oil storage has not been emptied. When the feed tank is empty, it indicates that the distillation device corresponding to the feed tank at the initial moment (that is, the feed tank is the feed tank of the distillation device corresponding to it at the initial moment) is short of raw materials, and the feed tank can be used to collect oil while paying oil to avoid the problem of forced shutdown of the oil refinery due to the supply interruption of the distillation device corresponding to the feed tank at the initial moment, that is, the feed tank is determined as the discharge tank of the target long-distance pipeline.
[0104] Step (122): For each long-distance pipeline that has not been emptied of its initial oil inventory, and for each other long-distance pipeline except the target long-distance pipeline, determine the discharge tank of the other long-distance pipeline at the initial moment according to the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline, and the discharge oil type information of the other long-distance pipeline.
[0105] Among them, the current discharge tank of other long-distance pipelines is the plant tank that is receiving the discharge of the other long-distance pipelines at the initial moment, and the transportation status of the other long-distance pipelines is used to characterize whether the long-distance pipeline has stopped transportation at the previous moment of the initial moment, including stopping transportation and not stopping transportation.
[0106] The following describes in detail the specific implementation method of determining the discharge tank of the other long-distance pipeline at the initial moment based on the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline, and the discharge oil type information of the other long-distance pipeline in the above step (122).
[0107] Specifically, when the other long-distance pipeline meets the preset conditions, the current discharge tank of the other long-distance pipeline is determined as the discharge tank of the other long-distance pipeline at the initial moment; when the other long-distance pipeline does not meet the preset conditions, if there is no empty plant tank that can receive the current discharge of the other long-distance pipeline, it is considered that there is no suitable plant tank to receive the discharge of the other long-distance pipeline, and the other long-distance pipeline needs to stop transportation; when the other long-distance pipeline does not meet the preset conditions, if there is an empty plant tank that can receive the current discharge of the other long-distance pipeline, the plant tank that supplies the first target distillation unit among the empty plant tanks that can receive the current discharge of the other long-distance pipeline is determined as the discharge tank of the other long-distance pipeline at the initial moment.
[0108] In the present disclosure, the above-mentioned preset conditions may include: ① the other long-distance pipeline has not stopped transporting at the moment before the initial moment, ② the inventory status of the current discharge tank of the other long-distance pipeline is not full, and ③ the type of discharge oil of the other long-distance pipeline has not been switched at the initial moment. The first target distillation unit is the distillation unit with the shortest current sustainable processing time among the distillation units that use the empty plant tanks that can receive the current discharge of the other long-distance pipeline as feed tanks, that is, the distillation unit with the shortest current sustainable processing time among the crude oil destination units that can receive the empty plant tanks that are currently discharged from the other long-distance pipeline. Among them, the current sustainable processing time of the distillation unit is equal to the sum of the current sustainable oil delivery time of each feed tank of the distillation unit at the initial moment (that is, the feed tank that delivers oil to the distillation unit).
[0109] Specifically, when the other long-distance pipeline satisfies the above conditions ①, ② and ③ at the same time, the current discharge tank of the other long-distance pipeline is determined as the discharge tank of the other long-distance pipeline at the initial moment.
[0110] When the other long-distance pipeline cannot meet any of the above conditions ①, ②, and ③, determine whether there is an empty plant tank that can receive the current discharge of the other long-distance pipeline. If there is no empty plant tank that can receive the current discharge of the other long-distance pipeline, it is considered that there is no suitable plant tank to receive the discharge of the other long-distance pipeline, and the other long-distance pipeline needs to stop transportation, that is, the discharge tank of the other long-distance pipeline at the initial moment is empty; if there is an empty plant tank that can receive the current discharge of the other long-distance pipeline, the plant tank that supplies the first target distillation device among the empty plant tanks that can receive the current discharge of the other long-distance pipeline is determined as the discharge tank of the other long-distance pipeline at the initial moment.
[0111] In addition, in order to avoid the simultaneous receipt and delivery of oil by the plant tank as much as possible, the discharge tank of the other long-distance pipeline can be adjusted when the discharge tank of the other long-distance pipeline at the initial moment and the feed tank of the distillation device belong to the same plant tank. Specifically, after the above step of determining the current discharge tank of the other long-distance pipeline as the discharge tank of the other long-distance pipeline at the initial moment, the above step (122) can also include the following steps:
[0112] When the feed tank of each distillation unit at the initial moment includes the discharge tank of the other long-distance pipeline at the initial moment, the discharge tank of the other long-distance pipeline at the initial moment is adjusted at least according to the inventory status of the candidate feed tank of the second target distillation unit.
[0113] Among them, the feed tank of the second target distillation device at the initial moment and the discharge tank of the other long-distance pipeline at the initial moment are the same plant tank, and the candidate feed tanks include the feed tanks of the second target distillation device and other feed tanks except the feed tank of the second target distillation device at the initial moment.
[0114] Specifically, the discharge tank of the other long-distance pipeline at the initial moment can be adjusted in the following manner at least according to the inventory status of the candidate supply tank of the second target distillation device:
[0115] If all the candidate feed tanks of the second target distillation device are empty tanks, and there is an empty feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline, then the discharge tank of the other long-distance pipeline at the initial moment is adjusted to any feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline; if some of the candidate feed tanks are empty tanks, and there is an empty feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline, then the discharge tank of the other long-distance pipeline at the initial moment is adjusted to any feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline. The earliest empty feed tank among the empty feed tanks currently discharging from other long-distance pipelines; if none of the candidate feed tanks are empty, or some of the candidate feed tanks are empty, and there is no empty feed tank among the candidate feed tanks that can receive the current discharge from the other long-distance pipelines, it indicates that the feed storage of the second target distillation unit is sufficient, the other long-distance pipeline can be stopped, and the feed tank of the second target distillation unit at the initial moment is no longer used as the discharge tank of the other long-distance pipeline, that is, it is determined that the discharge tank of the other long-distance pipeline at the initial moment is empty.
[0116] If all the candidate feed tanks of the second target distillation unit are empty tanks, and there is no empty feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline, then determine whether the feed tank of the second target distillation unit at the initial moment allows simultaneous receipt and payment of oil; if the feed tank of the second target distillation unit at the initial moment allows simultaneous receipt and payment of oil, then the discharge tank of the other long-distance pipeline at the initial moment is not adjusted; if the feed tank of the second target distillation unit at the initial moment does not allow simultaneous receipt and payment of oil, it indicates that according to the equipment status at the initial stage of scheduling, it is impossible to find a transportation plan that meets the continuous processing of the distillation unit. At this time, the crude oil transportation method process can be terminated, and the prompt message "According to the equipment status at the initial stage of scheduling, it is impossible to find a transportation plan that meets the continuous processing of the distillation unit" is output.
[0117] The following is a detailed description of the specific implementation method of determining the third operating parameter in the above step (2) based on the initial inventory information of each discharge tank, the initial inventory information of each feed tank, and the distribution information of the initial oil storage in the long-distance pipeline. Specifically, it can be implemented according to the following steps i to v:
[0118] ⅰ. Determine the operation duration (i.e., the first target duration) of the plant tank c (c∈BA). Without loss of generality, assume that the plant tank c receives oil from the long-distance pipeline p, the inventory of the plant tank c before receiving the oil is v0, the upper limit of the inventory (i.e., the tank capacity) is vu, the current planned crude oil volume transported by the long-distance pipeline p is vp, and the transport rate is fp, then the duration of the oil receiving of the plant tank c is t c =min(vu-v0,vp) / fp, where A set includes the feed tank of each distillation unit at the initial time, and B set includes the discharge tank of each long-distance pipeline at the initial time;
[0119] ⅱ. Determine the operation time of plant tank c (c∈A∩B). Without loss of generality, assume that plant tank c will deliver oil to distillation unit d, and the planned processing rate of distillation unit d is fd. Then the oil collection duration of plant tank c is Among them, fp is greater than fd, and the oil delivery duration of the plant tank c is equal to the oil collection duration;
[0120] ⅲ. Determine the operation duration of plant tank c (c∈AB). Without loss of generality, assume that plant tank c delivers oil to distillation unit d, the inventory of plant tank c before delivery is v0, and the planned processing rate of distillation unit d is fd, then the duration of delivery of oil by plant tank c is t c =v0 / fd;
[0121] ⅳ. Take the minimum continuous operation time of all plant tanks;
[0122] ⅴ. Determine the operation scheme (i.e., the third operation parameter) of the long-distance pipeline and its downstream equipment within the operation time t after the initial moment:
[0123] (v1) When the plant tank c∈BA, the plant tank c receives crude oil m1 from the long-distance pipeline p. The receiving time is t, the receiving volume is t×fp, and the inventory after receiving the oil is v0+t×fp, where crude oil m1 is the type of oil currently transported by the long-distance pipeline p;
[0124] (v2) When the plant tank c∈B∩A, the operation time of the plant tank c is t. It will receive crude oil m1 from the long-distance pipeline p, with the oil receiving volume being t×fp, and deliver crude oil m1 to the distillation unit d, with the oil delivery volume being t×fd. Its inventory after completing the task (i.e., the inventory at the target time) is v0+t×(fp-fd);
[0125] (v3) When plant tank c∈AB, plant tank c delivers crude oil m2 to distillation unit d, the duration of delivery is t, the amount of delivered oil is t×fd, and the inventory after the task is completed is v0-t×fd, where crude oil m2 is the inventory oil type of plant tank c before executing the task (i.e., at the initial moment);
[0126] (v4) Long-distance pipeline p delivers crude oil m1 to plant tank c, with a delivery volume of t×fp and a delivery time of t, and updates the distribution information of the initial oil storage of long-distance pipeline p. For example, before executing the delivery task, long-distance pipeline p has two sections of crude oil, the first section of oil is m1, the oil storage volume is v1, and the second section of oil is m3, the oil storage volume is v3. If v1>t×fp, when the delivery task is completed, the first section of the long-distance pipeline p is still m1, the oil storage volume is v1-t×fp, and the second section of oil remains unchanged; if v1=t×fp, when the delivery task is completed, the first section of the long-distance pipeline p is m3, the oil storage volume is v3, and there is no second section of oil;
[0127] (v5) Distillation unit d receives crude oil m2 from plant tank c, with a processing volume of t×fd and a processing time of t.
[0128] Specifically, the first operating parameters can be determined based on the initial oil storage distribution of the long-distance pipeline (Table 10), the plant tank equipment information and initial inventory information (Table 7), and the distillation unit operating rules (including the distillation unit feed requirements shown in Table 3) (Table 3).
[0129] The first operation parameter may include an original plan to completely eject the initial oil storage in the long-distance pipeline, that is, the operation parameters of the plant tank in the process of discharging the initial oil storage in the long-distance pipeline, as shown in the following Table 11. In the following Table 11, for the convenience of display, the relative time starting from 6:00 on July 1, 2022 is used to describe the execution time of the operation.
[0130] Table 11 The original plan to completely push out the initial oil storage in the long-distance pipeline
[0131] Storage tank At the beginning At the end operate Crude oil operate operate Beginning Beginning Library End of term Final Library CT01 0.00 21.90 OUT CDU2 M08 21977 M08 25845 M08 3868 CT02 19.47 21.90 IN PL M12 5116 - 0 M12 5116 CT03 8.31 21.90 OUT CDU1 M02 9350 M02 23480 M02 14130 CT08 0.00 8.31 OUT CDU1 M02 5710 M02 5710 M02 0 CT08 10.42 19.47 IN PL M02 19000 M02 0 M02 19000 CT09 0.00 10.42 IN PL M02 21884 M02 5116 M02 27000
[0132] The specific implementation method of updating the initial inventory information of the plant tanks according to the first operating parameter in the above S202 is described in detail below.
[0133] Specifically, the first operating parameter may include the inventory and the type of stored oil of each plant tank involved in the current crude oil scheduling project at the beginning of the emptying period. At this time, the inventory information of the plant tank in the downstream equipment may be updated according to the first operating parameter in the following manner:
[0134] For each plant tank, the difference between the end time of the most recent oil collection of the plant tank and the time spent on emptying the initial oil storage in the pipeline is determined as the new and most recent end time of oil collection of the plant tank; if the plant tank has an oil collection and payment operation during the process of discharging the initial oil storage in the pipeline, the initial inventory of the plant tank will be updated to the inventory of the plant tank when the initial oil storage in the pipeline is emptied, and the initial oil type of the plant tank will be updated to the storage oil type of the plant tank when the initial oil storage in the pipeline is emptied.
[0135] For example, the beginning inventory quantity and beginning oil type information of each plant tank shown in Table 7 can be updated to the ending inventory quantity and ending oil type information of the corresponding plant tank shown in Table 11.
[0136] The inventory level and initial operating status of the plant tanks at the initial stage of scheduling are adjusted to the inventory level and operating status when the oil in the long-distance pipeline is completely pushed out at the beginning of the period, thereby simplifying the long-distance pipeline transportation problem into an instant transportation problem and eliminating the long-distance pipeline delay effect.
[0137] The following is a detailed description of the specific implementation method of constructing a mixed integer programming model based on the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment in S203. Specifically, it can be achieved through the following steps [1] and [2]:
[0138] Step [1]: Construct constraints based on the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment.
[0139] Step [2]: Construct the objective function based on the preset goal.
[0140] When constructing the mixed integer programming model, the oil collection and payment operation rules of each storage tank (including plant tanks, transfer tanks and terminal tanks) include but are not limited to:
[0141] (a1) The oil receiving and delivery rate of the second storage tank is limited by the capacity of the oil pump of the second storage tank, wherein the second storage tank is any one of a plant tank, a transfer tank in an upstream device of a long-distance pipeline, and a terminal tank in an upstream device;
[0142] (a2) The second storage tank must be left standing for at least the reference time after receiving the oil before it can deliver the oil. If the second storage tank has no requirement to stand still after receiving the oil, the reference time is 0;
[0143] (a3) the inventory level of the second storage tank is between its corresponding preset tank bottom level and preset tank capacity and is less than its corresponding safety stock threshold;
[0144] (a4) The second storage tank can only store the corresponding storable oil type, that is, the second storage tank can only store specific oil types;
[0145] (a5) The second storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment, that is, the storage tank can only receive oil from a specific equipment and deliver oil to a specific distillation unit.
[0146] Among them, when the above-mentioned second storage tank is a factory tank, the factory tank needs to stand still for several hours after collecting oil, and can enter the distillation device for processing after completing the desalination and dehydration operations.
[0147] According to each operation rule in (a1) to (a5), corresponding constraint items can be constructed respectively.
[0148] Taking the plant tank as an example, the corresponding constraint items can be constructed according to each operation rule in (a1) to (a5).
[0149] For example, according to the above operation rule (a1), the constraints shown in the following equations (1) and (2) can be constructed:
[0150]
[0151]
[0152] Among them, vplct s,p,j is a continuous variable, indicating the crude oil transportation volume between the long-distance pipeline p and the plant tank j in the sth time period; FUTC p,j is a parameter, which indicates the maximum delivery rate of crude oil from the long-distance pipeline p to the plant tank j; tsct s,j is a continuous variable, indicating the start time of the sth time period of tank j in the plant area; tect s,j is a continuous variable, indicating the end time of the sth time period of plant tank j; vctcd s,j,d is a continuous variable, indicating the volume of crude oil transported between plant tank j and distillation unit d in the sth time period; FUPC j,d is a parameter, which indicates the maximum delivery rate of crude oil from plant tank j to distillation unit d; CD indicates the distillation unit involved in the current crude oil scheduling project; CT indicates the plant tank involved in the current crude oil scheduling project; SL is a time period sequence number set. For each equipment involved in the current crude oil scheduling project, the entire scheduling period is divided into N time periods corresponding to the equipment, and the sequence numbers of the N time periods constitute the above time period sequence number set; PL indicates the long-distance pipeline involved in the current crude oil scheduling project.
[0153] For example, the entire scheduling period is divided into 15 time periods corresponding to the device, and the serial numbers of the 15 time periods constitute a time period serial number set, that is, N=15, SL={1,2,3,…,15}.
[0154] According to the above operation rule (a2), the constraints shown in the following equations (3) to (5) can be constructed:
[0155]
[0156]
[0157]
[0158] Among them, boct s,j is a binary variable. When the plant tank j delivers oil in the sth time period, bocts,j =1, when the plant tank j is not delivering oil in the sth time period, boct s,j =0; thdct s-1,j It indicates the time that the factory tank j needs to wait to deliver oil at the end of the s-1th time period; thdct s,j It indicates the waiting time when the plant tank j delivers oil to the outside at the end of the sth time period; THDCT indicates the shortest static time after the plant tank receives oil; tspl s,p Indicates the start time of the sth time period of the long-distance pipeline p; tepl s,p Indicates the end time of the sth time period of the long-distance pipeline p; bectpl s,j,p is a binary variable. When the operation of plant tank j before the start of time period s is to receive oil from long-distance pipeline p, bectpl s,j,p = 1, when the operation of the plant tank j before the start of the sth time period is not to receive oil from the long-distance pipeline p, bectpl s,j,p = 0. When the plant tank does not need to perform the oil collection and quiescent operation, a sufficiently small number can be used, such as 0.01.
[0159] According to the above operation rule (a3), the constraints shown in the following equations (6) and (7) can be constructed:
[0160] v s,j ≥VLCT j (6)
[0161] v s,j ≤min(VUCT j ,VSCT j ) (7)
[0162] Among them, v s,j is a continuous variable, indicating the inventory of plant tank j at the end of the sth time period; VLCT j is a parameter, which indicates the preset tank bottom volume corresponding to the factory tank j; VUCT j is a parameter, which indicates the preset tank capacity corresponding to the plant tank j; VSCT j is a parameter, which represents the safety stock threshold corresponding to tank j in the plant area.
[0163] According to the above operation rule (a4), the constraint term shown in the following equation (8) can be constructed:
[0164]
[0165] Among them, SC_ST j represents the set of storable oil types corresponding to plant tank j; vcct s,j,cIt is a continuous variable, indicating the inventory of crude oil c in plant tank j at the end of the sth time period; SC represents the set of crude oil types.
[0166] According to the above operation rule (a5), the constraints shown in the following equations (9) and (10) can be constructed:
[0167]
[0168]
[0169] Among them, SOURCE j Indicates the source equipment of crude oil received by plant tank j, that is, the upstream oil delivery equipment corresponding to plant tank j; DEST j is a set, which represents the destination of the crude oil in the plant tank j, that is, the downstream oil receiving equipment corresponding to the plant tank j.
[0170] When the second storage tank is a terminal tank or a transfer tank, according to the above operation rule (a2), the constraint items constructed are different from the above equations (3) to (5). According to the above operation rule (a2), the constraint items corresponding to the terminal tank and the transfer tank are the same.
[0171] For example, the second storage tank is a dock tank. According to the above operation rule (a2), the constraint term shown in the following equation (11) can be constructed:
[0172]
[0173] Among them, tsst s,i is a continuous variable, indicating the start time of the sth time period of terminal tank i, where s'<s; test s',i is a continuous variable, indicating the end time of the s'th time period of the terminal tank i; THDST is a parameter, indicating the shortest static time after the terminal tank receives oil; bist s′,i is a binary variable. When the terminal tank i receives oil in the s'th time period, bist s′,i =1, when the terminal tank i is not receiving oil in the s'th time period, bist s′,i =0;bost s,i is a binary variable. When terminal tank i delivers oil in the sth time period, boss s,i =1, when the terminal tank i is not delivering oil in the sth time period, boss s,i =0; ST represents the terminal tank involved in the current crude oil scheduling project. Equation (11) is an optional item. When the terminal tank does not need to perform the oil collection and static operation, it is not necessary to add the constraint item of equation (11).
[0174] In addition, when the second storage tank is a transfer tank or a terminal tank, the oil receiving and delivery operation rules of the second storage tank may also include:
[0175] (a6) The second storage tank cannot perform the oil receiving and payment operations at the same time, that is, for any second storage tank involved in the current crude oil scheduling project, the second storage tank cannot perform the oil receiving and payment operations at the same time, and different second storage tanks can perform the oil receiving and payment operations at the same time;
[0176] For example, according to the above operation rule (a6), the constraint term shown in the following equation (12) can be constructed:
[0177]
[0178] Among them, bict s,j is a binary variable. When the plant tank j receives oil in the sth time period, bict s,j =1, when the plant tank j is not receiving oil in the sth time period, bict s,j =0.
[0179] When constructing a mixed integer programming model, the oil collection and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include but are not limited to:
[0180] (b1) The distillation unit can only process the corresponding processable oil type, that is, the distillation unit can only process specific suitable oil types;
[0181] (b2) the processing capacity of the distillation unit is consistent with its corresponding planned processing capacity;
[0182] (b3) The distillation unit operates continuously and uninterruptedly.
[0183] According to each operation rule in (b1) to (b3), corresponding constraint items can be constructed respectively.
[0184] For example, according to the above operation rule (b1), the constraint term shown in the following equation (13) can be constructed:
[0185]
[0186] Among them, SC_PC d is a set, which represents the crude oil that can be processed by distillation unit d, that is, the type of oil that can be processed by distillation unit d; viccd s,d,c It is a continuous variable, indicating the processing volume of crude oil c by distillation unit d in the sth time period.
[0187] According to the above operation rule (b2), the constraint term shown in the following equation (14) can be constructed:
[0188]
[0189] Among them, vcd s,d represents the planned processing volume of distillation unit d in the sth time period; FCD d is a parameter representing the planned processing rate of distillation unit d; tecd s,d is a continuous variable, indicating the end time of the sth time period of the distillation unit d; tscd s,d It is a continuous variable, indicating the start time of the sth time period of the distillation unit d.
[0190] The long-distance pipeline considered by the mixed integer programming model has the characteristic that crude oil can leave the pipeline immediately after entering the pipeline. The mixed integer programming model only needs to consider the transmission rate limit and material balance limit of the long-distance pipeline. Specifically, when constructing the mixed integer programming model, the oil collection and payment operation rules of the long-distance pipeline can include:
[0191] (c1) Crude oil leaves the long-distance pipeline immediately after entering the long-distance pipeline;
[0192] (c2) Transmission rate limitations of long-distance pipelines;
[0193] (c3) Material balance limitations of long-distance pipelines.
[0194] According to each operation rule in (c1) to (c3), corresponding constraint items can be constructed respectively.
[0195] For example, according to the above operation rule (c1), the constraint term shown in the following equation (15) can be constructed:
[0196]
[0197] Among them, vicpl s,p,c is a continuous variable, indicating the volume of crude oil c entering pipeline p in the sth time period; vocpl s,p,c It is a continuous variable, indicating the volume of crude oil c leaving pipeline p during the sth time period.
[0198] According to the above operation rule (c2), the constraint term shown in the following equation (16) can be constructed:
[0199]
[0200] Among them, vipl s,p is a continuous variable, indicating the delivery volume of pipeline p in the sth time period; FUPL s,p It represents the maximum delivery rate of the long-distance pipeline p in the sth time period.
[0201] FUPL s,pIt can be a known parameter or an unknown variable. When the mixed integer programming model is a mixed integer linear programming model, FUPL s,p are known parameters. When the above mixed integer programming model is a mixed integer nonlinear programming model, FUPL s,p is an unknown variable and can be obtained by solving the model.
[0202] According to the above operation rule (c3), the constraints shown in the following equations (17) and (18) can be constructed:
[0203]
[0204]
[0205] The oil collection and payment operation rules of the tanker considered in the mixed integer programming model may include but are not limited to:
[0206] (d1) A tanker can only berth at one berth, and the capacity of the berth is one tanker (i.e. the berth can only be berthed by one tanker at a time);
[0207] (d2) Oil tankers can only berth and unload oil after arriving at the port;
[0208] (d3) The oil unloading rate of an oil tanker is limited by the capacity of the oil tanker's oil pumps.
[0209] According to each operation rule in (d1) to (d3), corresponding constraint items can be constructed respectively.
[0210] For example, according to the above operation rule (d1) that “the tanker can only dock at one berth”, the constraint term shown in the following equation (19) can be constructed:
[0211]
[0212] Among them, bvlbe s,v,b is a binary variable. When tanker v docks at berth b in the sth time period, bvlbe s,v,b =1, when tanker v does not dock at berth b in the sth time period, bvlbe s,v,b =0; BE is the berth involved in the current crude oil scheduling project; VL is the tanker involved in the current crude oil scheduling project.
[0213] According to the above operating rule (d1), “the capacity of the berth is one tanker”, the constraint term shown in the following equation (20) can be constructed:
[0214]
[0215] According to the above operation rule (d2), the constraint term shown in the following equation (21) can be constructed:
[0216]
[0217] Among them, tsvl s,v is a continuous variable, indicating the start time of the sth time period of the tanker v; TARVL v is a parameter, which represents the planned arrival time of tanker v.
[0218] According to the above operation rule (d3), the constraint term shown in the following equation (22) can be constructed:
[0219]
[0220] Among them, vvlbe s,v,b is a continuous variable, indicating the oil unloading volume of tanker v at berth b in the sth time period; tevl s,v is a continuous variable, indicating the end time of the sth time period of the tanker v; tsvl s,v is a continuous variable, indicating the start time of the sth time period of the tanker v; FUUL v is a parameter representing the maximum unloading rate of tanker v.
[0221] In addition, the above preset goals include at least one of the following:
[0222] Among the downstream equipment, the demurrage duration of the tanker is the shortest;
[0223] The first storage tank has the lowest inventory cost, wherein the first storage tank includes at least one of a plant tank, a transfer tank in an upstream device of a long-distance pipeline, and a dock tank in an upstream device;
[0224] Minimum number of feed changes in the distillation unit in the downstream equipment;
[0225] The distillation unit processes crude oil at the lowest cost;
[0226] The number of switching operations for receiving and paying oil in the first storage tank is the least;
[0227] The transportation time of long-distance pipelines is the longest. The purpose is to keep the pipeline running, thereby avoiding pipeline cleaning work caused by pipeline suspension and energy consumption when restarting the pump.
[0228] If the feed of the distillation unit is frequently switched and the feed property is unstable, it will seriously affect the smooth operation of the distillation unit and even the whole plant, and even cause safety accidents; at the same time, the shipping cost is high, the ship demurrage fee is high, and it is not uncommon for the tanker to be demurred for 7 to 10 days. Therefore, in one embodiment, the preset goals may include the shortest demurrage time of the tanker and the least number of feed switching times of the distillation unit, that is, the objective function can be constructed with minimizing the demurrage time of the tanker and the number of feed switching times of the distillation unit as the optimization goal, in order to calculate a safe, stable and economical operation plan.
[0229] For example, according to the preset target, the objective function objective shown in the following equation (23) can be constructed:
[0230]
[0231] Among them, TEDK v is a continuous variable, indicating the departure time of tanker v; w1 and w2 represent optimization weights, both of which are preset values; bccd s,d is a binary variable. When the feed tank switching operation occurs at the beginning of the sth time period in the distillation unit d, bccd s,d =1, when the distillation unit d does not switch the feed tank at the beginning of the sth time period, bccd s,d =0.
[0232] For another example, the preset objectives may include: minimizing the demurrage time of the tanker, minimizing the inventory cost of the plant tank, and minimizing the number of feed switching times of the distillation unit. That is, the objective function may be constructed with minimizing the demurrage time of the tanker, the inventory cost of the plant tank, and the number of feed switching times of the distillation unit as the optimization objectives.
[0233] For example, according to the preset target, the objective function objective shown in the following equation (24) can be constructed:
[0234]
[0235] Among them, w3, w4, and w5 represent optimization weights, which are all preset values; v s-1,j is a continuous variable, indicating the inventory of plant tank j at the end of the s-1th time period; v 0,j Represents the beginning inventory of tank j in the plant area.
[0236] The following is a detailed description of the specific implementation method of solving the mixed integer programming model according to the updated inventory information of the plant tank in S205 to obtain the second operating parameter. Specifically, the mixed integer programming model can be solved according to the data in Tables 1 to 10 to obtain the second operating parameter, wherein the data in Table 5 is the data updated according to Table 11.
[0237] In addition to the above-mentioned operation rules, the following operation rules can also be considered:
[0238] Terminal tanks can only store component crude oil;
[0239] Transfer tanks can store both component crude oil and mixed crude oil;
[0240] Plant tanks can only store blended crude oil;
[0241] Crude oil blending operations should be carried out at the entrance of long-distance pipelines or in transfer tanks as much as possible.
[0242] In addition, after the mixed integer programming model is solved, the solution result (ie, the second operating parameter) and the first operating parameter are integrated (ie, merged) to obtain a complete crude oil transportation plan. Figure 3 to Figure 8 The charts show the tanker unloading plan, terminal tank operation plan, transfer tank operation plan, distillation unit feeding plan, non-long-distance pipeline transportation plan and long-distance pipeline transportation plan respectively. These charts show the company's crude oil transportation plan for a total of 240 hours from 6:00 on July 1 to 6:00 on July 11, 2022. Figure 3 to Figure 7 The numbers in the rectangular box represent the crude oil operation volume (unit: m 3 ), the three letters in the rectangular box indicate the type of oil being operated, and the letters after the type of oil being operated indicate the destination of the crude oil. Figure 7 In the process of transportation, the non-long-distance pipeline ZL performs oil receiving operation while delivering oil, that is, the oil receiving and delivering are synchronous.
[0243] in, Figure 8 It not only provides the oil payment and receipt scheme of the long-distance pipeline, but also provides the distribution of crude oil in the long-distance pipeline at different times. Figure 8 It can be seen that after crude oil enters the long-distance pipeline, it will take some time for it to completely leave the pipeline, and it will leave the pipeline in the order in which it enters the long-distance pipeline. Therefore, this method can completely solve the problem of delayed transportation of long-distance pipelines.
[0244] from Figure 3 It can be seen that all tankers started unloading oil after arriving at the port, which complies with the operating rules of Article (d2).
[0245] Overview Figure 4 and Figure 5, any storage tank performs oil receiving and payment operations alternately, which complies with the operating rule that "the second storage tank cannot perform oil receiving and payment operations at the same time".
[0246] from Figure 4 It can be seen that there were 7 cases in total where the terminal tank received oil and then delivered oil. Among them, the shortest standing time was 14.14h, which complies with the rule that "the terminal tank must stand for at least the reference time after receiving oil before delivering oil".
[0247] Fig. 9 FIG. 1 is a block diagram of a crude oil transportation device according to an exemplary embodiment. Fig. 9 As shown, the device 300 includes: a first determination module 301, which is used to determine a first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operating rules of the distillation device, wherein the first operating parameter includes the operating parameters of the long-distance pipeline, the plant tank and the distillation device in the process of discharging the initial oil storage, and the initial inventory information includes the initial inventory amount and the initial operating state; an updating module 302, which is used to update the initial inventory information according to the first operating parameter; a model construction module 303, which is used to construct a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; a model solving module 304, which is used to solve the mixed integer programming model according to the initial inventory information obtained after the update to obtain a second operating parameter, wherein the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; a scheme generation module 305, which is used to generate a crude oil transportation scheme according to the first operating parameter and the second operating parameter.
[0248] In the above technical scheme, in the first stage, according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operation rules of the distillation unit, the operation scheme of the long-distance pipeline and its downstream equipment (including the plant tank and the distillation unit) in the process of discharging the initial oil storage in the long-distance pipeline is determined; then, according to these operation schemes, the initial inventory level and initial operation status of the plant tank are adjusted to simplify the long-distance pipeline transportation problem into an instant transportation problem, and the delay effect of the long-distance pipeline is removed. In the second stage, a mixed integer programming model covering the entire process from oil unloading from the tanker to the distillation unit is established and solved; finally, according to the operation scheme determined in the first stage and the solution results of the model, a crude oil transportation plan is generated. In this way, the crude oil transportation plan can be quickly and automatically compiled without manual intervention, which not only reduces the scheduling threshold, but also reduces the work intensity of personnel, improves the productivity of the enterprise, and is of great significance for achieving stable production and economic production. In addition, the above two-stage modeling method cleverly simplifies the long-distance pipeline modeling process, has low modeling difficulty, small model scale, high model efficiency, and is easier to solve complex crude oil transportation problems. In addition, the present disclosure can solve the problem of crude oil transportation in long-distance pipelines and realize efficient transportation of crude oil in long-distance pipelines. Crude oil is usually corrosive and will corrode the pipeline if it stays in the long-distance pipeline for a long time. Therefore, the present disclosure can solve the technical problem of inhibiting corrosion of long-distance pipelines.
[0249] Optionally, the first determination module 301 includes: a first determination submodule, used to determine, from the plant tanks involved in the current crude oil scheduling project, the discharge tank of each long-distance pipeline with un-emptied initial oil storage at the initial moment and the feed tank of each distillation unit at the initial moment, wherein the initial value of the initial moment is the scheduling start moment; a second determination submodule, used to determine the third operating parameter according to the initial inventory information of each discharge tank, the initial inventory information of each feed tank and the distribution information, wherein the third operating parameter includes the operating parameters of each long-distance pipeline with un-emptied initial oil storage, the plant tank and the distillation unit within a first target time after the initial moment, and the first target time is the minimum value of the current sustainable oil collection time of each discharge tank and the current sustainable oil delivery time of each feed tank. an updating submodule, for updating the distribution information of the initial pipeline oil storage in each of the long-distance pipelines that has not been emptied of the initial pipeline oil storage according to the third operating parameter; a triggering submodule, for updating the initial time to the sum of the initial time and the first target time if it is determined according to the updated distribution information that there is a long-distance pipeline that has not been emptied of the initial pipeline oil storage, updating the initial inventory information according to the third operating parameter, and triggering the first determining submodule to determine the discharge tank of each long-distance pipeline that has not been emptied of the initial pipeline oil storage at the initial time and the feed tank of each distillation unit at the initial time from the plant tanks involved in the current crude oil scheduling project; a third determining submodule, for determining the first operating parameter according to each of the third operating parameters if it is determined according to the updated distribution information that there is no long-distance pipeline that has not been emptied of the initial pipeline oil storage.
[0250] Optionally, the first determination submodule includes: a fourth determination submodule, used to determine the feed tank of each distillation unit at the initial moment from the plant tanks involved in the current crude oil scheduling project; a fifth determination submodule, used to determine the discharge tank of each long-distance pipeline with undrained initial oil at the initial moment based on the inventory status of each feed tank at the initial moment.
[0251] Optionally, the fourth determination submodule includes: a sixth determination submodule, for determining, for each of the distillation devices, the target plant tank as the feed tank of the distillation device at the initial moment if the target plant tank is not completely emptied, wherein the target plant tank is the plant tank that is supplying the distillation device at the initial moment; and a seventh determination submodule, for determining the feed tank of the distillation device at the initial moment from the supply tank of the distillation device if the target plant tank is completely emptied.
[0252] Optionally, the seventh determination submodule includes: an eighth determination submodule, which is used to, when there is a supply tank whose corresponding second target time is greater than or equal to zero among the non-empty supply tanks of the distillation device, determine the supply tank whose corresponding second target time is the largest among the non-empty supply tanks of the distillation device as the feed tank of the distillation device at the initial moment, wherein the second target time corresponding to the non-empty supply tank is equal to the difference between the actual standing time after the non-empty supply tank collects oil and the shortest standing time after the non-empty supply tank collects oil; a ninth determination submodule, which is used to, when there is no supply tank whose corresponding second target time is greater than or equal to zero among the non-empty supply tanks of the distillation device, if there is a target supply tank among the empty supply tanks of the distillation device, determine any of the target supply tanks as the feed tank of the distillation device at the initial moment, wherein the target supply tank is a supply tank among the empty supply tanks of the distillation device that allows simultaneous receipt and delivery of oil and can receive the current discharge of any of the long-distance pipelines that have not been emptied of initial oil in the pipeline.
[0253] Optionally, the fifth determination submodule includes: a tenth determination submodule, for determining, for each of the feed tanks, if the feed tank is an empty tank, the feed tank as the discharge tank of the target long-distance pipeline, wherein the target long-distance pipeline is any one of the long-distance pipelines whose current discharge can be received by the feed tank and whose initial pipeline oil storage has not been emptied; an eleventh determination submodule, for determining, for each long-distance pipeline whose initial pipeline oil storage has not been emptied, the discharge tank of each other long-distance pipeline at the initial moment according to the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline, and the discharge oil type information of the other long-distance pipeline, wherein the current discharge tank is the plant tank that is receiving the discharge of the other long-distance pipeline at the initial moment.
[0254] Optionally, the eleventh determination submodule includes: a twelfth determination submodule, which is used to determine the current discharge tank as the discharge tank of the other long-distance pipeline at the initial moment if the other long-distance pipeline meets the preset conditions; a thirteenth determination submodule, which is used to determine the plant tank that supplies the first target distillation device among the empty plant tanks that can receive the current discharge of the other long-distance pipeline as the discharge tank of the other long-distance pipeline at the initial moment if there is an empty plant tank that can receive the current discharge of the other long-distance pipeline if the other long-distance pipeline does not meet the preset conditions, wherein the first target distillation device is the distillation device with the shortest current sustainable processing time among the distillation devices that use the empty plant tank that can receive the current discharge of the other long-distance pipeline as the supply tank; wherein the preset conditions include: no suspension of delivery occurred at the previous moment of the initial moment, the inventory status of the current discharge tank is not full, and the type of discharge oil has not been switched at the initial moment.
[0255] Optionally, the eleventh determination submodule also includes: a first adjustment submodule, which is used to adjust the discharge tank of the other long-distance pipeline at the initial moment after the twelfth determination submodule determines the current discharge tank as the discharge tank of the other long-distance pipeline at the initial moment, when the feed tank of each of the distillation devices at the initial moment includes the discharge tank of the other long-distance pipeline at the initial moment, at least according to the inventory status of the candidate supply tank of the second target distillation device, wherein the feed tank of the second target distillation device at the initial moment and the discharge tank of the other long-distance pipeline at the initial moment are the same plant tank, and the candidate supply tanks include other supply tanks among the supply tanks of the second target distillation device except the feed tank of the second target distillation device at the initial moment.
[0256] Optionally, the first adjustment submodule includes: a second adjustment submodule for adjusting the discharge tank of the other long-distance pipeline at the initial moment to any one of the candidate supply tanks that can receive the current discharge of the other long-distance pipeline if all of the candidate supply tanks are empty and there is an empty supply tank among the candidate supply tanks that can receive the current discharge of the other long-distance pipeline; a third adjustment submodule for adjusting the discharge tank of the other long-distance pipeline at the initial moment to any one of the candidate supply tanks that can receive the current discharge of the other long-distance pipeline if part of the candidate supply tanks are empty and there is an empty supply tank among the candidate supply tanks that can receive the current discharge of the other long-distance pipeline If there is an empty supply tank that is currently discharging material from another long-distance pipeline, the discharge tank of the other long-distance pipeline at the initial moment is adjusted to the earliest emptied supply tank among the empty supply tanks that can receive the current discharge of the other long-distance pipeline; a fourth adjustment submodule is used to determine that the discharge tank of the other long-distance pipeline at the initial moment is empty if none of the candidate supply tanks are empty, or some of the candidate supply tanks are empty, and there is no empty supply tank among the candidate supply tanks that can receive the current discharge of the other long-distance pipeline.
[0257] Optionally, the mixed integer programming model includes an objective function and constraints; the model construction module 303 includes: a first construction submodule, used to construct the constraints according to the oil collection and delivery operation rules of the long-distance pipeline and its upstream and downstream equipment; a second construction submodule, used to construct the objective function based on preset goals; wherein the preset goals include at least one of the following: the demurrage time of the oil tanker in the downstream equipment is the shortest; the inventory cost of the first storage tank is the lowest, wherein the first storage tank includes at least one of the plant tank, the transfer tank in the upstream equipment of the long-distance pipeline, and the terminal tank in the upstream equipment; the number of feed switching times of the distillation unit in the downstream equipment is the least; the cost of processing crude oil by the distillation unit is the lowest; the number of switching times of the oil collection and delivery operations of the first storage tank is the least; and the transportation time of the long-distance pipeline is the longest.
[0258] Optionally, the oil receiving and delivery operation rules of the long-distance pipeline include: crude oil leaves the long-distance pipeline immediately after entering the long-distance pipeline; the delivery rate limit of the long-distance pipeline; the material balance limit of the long-distance pipeline; the oil receiving and delivery operation rules of the second storage tank include: the oil receiving and delivery rate of the second storage tank is limited by the capacity of the oil pump of the second storage tank, wherein the second storage tank is any one of the plant tank, the transfer tank in the upstream equipment of the long-distance pipeline, and the terminal tank in the upstream equipment; the second storage tank can deliver the oil after standing for at least a reference time after receiving the oil; the inventory of the second storage tank is between its corresponding preset tank bottom quantity and preset tank capacity, and is less than its corresponding safety inventory threshold; The second storage tank can only store its corresponding storable oil type; the second storage tank can only receive oil from its corresponding upstream equipment and pay oil to its corresponding downstream equipment; the oil receiving and paying operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include: the distillation unit can only process its corresponding processable oil type; the processing volume of the distillation unit is consistent with its corresponding planned processing volume; the distillation unit processes continuously and uninterruptedly; the oil receiving and paying operation rules of the oil tanker in the upstream equipment of the long-distance pipeline include: the oil tanker can only dock at one berth, and the capacity of the berth is one oil tanker; the oil tanker can dock and unload oil only after arriving at the port; the oil unloading rate of the oil tanker is limited by the capacity of the oil pump of the oil tanker.
[0259] Optionally, the mixed integer programming model includes an objective function and constraints, and the second storage tank is the plant tank; the model construction module 303 is used to construct the constraints shown in the above equations (3) to (5) based on the fact that the second storage tank must be stationary for at least a reference time after collecting oil before it can deliver oil.
[0260] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0261] The present disclosure also provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned crude oil transportation method provided by the present disclosure.
[0262] Fig.10 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Fig.10 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0263] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned crude oil delivery method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0264] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned crude oil transportation method.
[0265] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned crude oil delivery method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned crude oil delivery method.
[0266] Fig.11 1 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Fig.11 The electronic device 1900 includes a processor 1922, which may be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1922 may be configured to execute the computer program to perform the above-mentioned crude oil delivery method.
[0267] In addition, the electronic device 1900 may further include a power supply component 1926 and a communication component 1950, wherein the power supply component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to implement communication, for example, wired or wireless communication, of the electronic device 1900. In addition, the electronic device 1900 may further include an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932.
[0268] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned crude oil delivery method are implemented. For example, the non-transitory computer-readable storage medium can be the above-mentioned memory 1932 including program instructions, and the above-mentioned program instructions can be executed by the processor 1922 of the electronic device 1900 to complete the above-mentioned crude oil delivery method.
[0269] In another exemplary embodiment, a computer program product is also provided, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned crude oil delivery method when executed by the programmable device.
[0270] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0271] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0272] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A crude oil transportation method, characterized in that: include: Determine a first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank, and the operating rules of the distillation device, wherein the first operating parameter includes the operating parameters of the long-distance pipeline, the plant tank, and the distillation device in the process of discharging the initial oil storage, and the initial inventory information includes the initial inventory amount and the initial operating status; updating the initial inventory information according to the first operating parameter; According to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed; Solving the mixed integer programming model according to the updated initial inventory information to obtain a second operating parameter, wherein the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; A crude oil transportation plan is generated according to the first operating parameter and the second operating parameter.
2. The method according to claim 1, characterized in that The determining of the first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank and the operating rules of the distillation device includes: From the plant tanks involved in the current crude oil scheduling project, determine the discharge tank of each long-distance pipeline with initial oil storage that has not been emptied at the initial time and the feed tank of each distillation unit at the initial time, wherein the initial value of the initial time is the scheduling start time; Determine a third operating parameter according to the initial inventory information of each of the discharge tanks, the initial inventory information of each of the feed tanks, and the distribution information, wherein the third operating parameter includes operating parameters of each of the long-distance pipelines that have not been emptied of the initial oil storage, the plant tank, and the distillation unit within a first target time after the initial moment, and the first target time is the minimum value of the current sustainable oil collection time of each of the discharge tanks and the current sustainable oil delivery time of each of the feed tanks; According to the third operating parameter, the distribution information of the initial pipeline oil storage in each of the long-distance pipelines that has not been emptied of the initial pipeline oil storage is updated; If it is determined according to the updated distribution information that there is a long-distance pipeline that has not emptied the initial pipeline oil storage, then the initial time is updated to the sum of the initial time and the first target duration, the initial inventory information is updated according to the third operating parameter, and the step of returning to the step of determining, from the plant tanks involved in the current crude oil scheduling project, the discharge tank of each long-distance pipeline that has not emptied the initial pipeline oil storage at the initial time and the feed tank of each distillation unit at the initial time; If it is determined according to the updated distribution information that there is no long-distance pipeline that has not drained the initial oil storage, the first operating parameter is determined according to each of the third operating parameters.
3. The method according to claim 2, characterized in that The method of determining, from the plant tanks involved in the current crude oil scheduling project, the discharge tank of each long-distance pipeline with oil stored in the initial pipeline during the un-emptied period and the feed tank of each distillation unit at the initial time, comprises: Determine the feed tank of each distillation unit at the initial time from the plant tanks involved in the current crude oil scheduling project; According to the inventory status of each feed tank at the initial moment, the discharge tank of each long-distance pipeline that has not been emptied of initial oil is determined at the initial moment.
4. The method according to claim 3, characterized in that The step of determining the feed tank of each distillation unit at the initial moment from the plant tanks involved in the current crude oil scheduling project comprises: For each of the distillation units, if the target plant tank is not completely emptied, the target plant tank is determined as the feed tank of the distillation unit at the initial moment, wherein the target plant tank is the plant tank that is feeding the distillation unit at the initial moment; If the target plant tank is completely emptied, the feed tank of the distillation unit at the initial moment is determined from the feed tank of the distillation unit.
5. The method according to claim 4, characterized in that The step of determining the feed tank of the distillation device at the initial moment from the feed tank of the distillation device comprises: In the case where there is a feed tank whose corresponding second target time length is greater than or equal to zero among the non-empty feed tanks of the distillation device, the feed tank whose corresponding second target time length is the largest among the non-empty feed tanks of the distillation device is determined as the feed tank of the distillation device at the initial moment, wherein the second target time length corresponding to the non-empty feed tank is equal to the difference between the actual standing time length of the non-empty feed tank after the oil is collected and the shortest standing time length of the non-empty feed tank after the oil is collected; In the case that there is no supply tank whose corresponding second target time length is greater than or equal to zero among the non-empty supply tanks of the distillation apparatus, if there is a target supply tank among the empty supply tanks of the distillation apparatus, any of the target supply tanks is determined as the feed tank of the distillation apparatus at the initial moment, wherein the target supply tank is a supply tank among the empty supply tanks of the distillation apparatus that is allowed to receive and pay oil at the same time and can receive the current discharge of any long-distance pipeline that has not been emptied of the initial oil storage in the pipeline.
6. The method according to claim 3, characterized in that The method of determining the discharge tank of each long-distance pipeline that has not been emptied of the initial oil storage at the initial time according to the inventory status of each feed tank at the initial time comprises: For each feed tank, if the feed tank is empty, the feed tank is determined as the discharge tank of the target long-distance pipeline, wherein the target long-distance pipeline is any one of the long-distance pipelines whose current discharge can be received by the feed tank and whose initial pipeline oil has not been emptied; For each long-distance pipeline with initial oil storage that has not been emptied, and for each other long-distance pipeline except the target long-distance pipeline, the discharge tank of the other long-distance pipeline at the initial moment is determined according to the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline, and the discharge oil type information of the other long-distance pipeline, wherein the current discharge tank is the plant tank that is receiving the discharge of the other long-distance pipeline at the initial moment.
7. The method according to claim 6, characterized in that The step of determining the discharge tank of the other long-distance pipeline at the initial moment according to the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline, and the discharge oil type information of the other long-distance pipeline comprises: When the other long-distance pipeline meets the preset conditions, the current discharge tank is determined as the discharge tank of the other long-distance pipeline at the initial time; In the case where the other long-distance pipeline does not meet the preset condition, if there is an empty plant tank that can receive the current discharge of the other long-distance pipeline, the plant tank that supplies the first target distillation device among the empty plant tanks that can receive the current discharge of the other long-distance pipeline is determined as the discharge tank of the other long-distance pipeline at the initial moment, wherein the first target distillation device is the distillation device with the shortest current sustainable processing time among the distillation devices that use the empty plant tank that can receive the current discharge of the other long-distance pipeline as a supply tank; Among them, the preset conditions include: no stoppage of transportation occurred at the moment before the initial moment, the inventory status of the current discharge tank is not full, and the discharge oil type has not been switched at the initial moment.
8. The method according to claim 7, characterized in that After the step of determining the current discharge tank as the discharge tank of the other long-distance pipeline at the initial moment, determining the discharge tank of the other long-distance pipeline at the initial moment according to the transportation status of the other long-distance pipeline, the inventory status of the current discharge tank of the other long-distance pipeline and the discharge oil type information of the other long-distance pipeline, further includes: In the case that the feed tank of each of the distillation devices at the initial moment includes the discharge tank of the other long-distance pipeline at the initial moment, the discharge tank of the other long-distance pipeline at the initial moment is adjusted at least according to the inventory status of the candidate feed tank of the second target distillation device, wherein the feed tank of the second target distillation device at the initial moment and the discharge tank of the other long-distance pipeline at the initial moment are the same plant tank, and the candidate feed tank includes the other feed tanks among the feed tanks of the second target distillation device except the feed tank of the second target distillation device at the initial moment.
9. The method according to claim 8, characterized in that The step of adjusting the discharge tank of the other long-distance pipeline at the initial time at least according to the inventory status of the candidate supply tank of the second target distillation device comprises: If all the candidate feed tanks are empty, and there is an empty feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline, then the discharge tank of the other long-distance pipeline at the initial moment is adjusted to any feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline; If part of the candidate feed tanks are empty, and there is an empty feed tank among the candidate feed tanks that can receive the current discharge of the other long-distance pipeline, then the discharge tank of the other long-distance pipeline at the initial moment is adjusted to the earliest emptied feed tank among the empty feed tanks that can receive the current discharge of the other long-distance pipeline; If none of the candidate supply tanks are empty, or some of the candidate supply tanks are empty and there is no empty supply tank among the candidate supply tanks that can receive the current discharge of the other long-distance pipeline, it is determined that the discharge tank of the other long-distance pipeline at the initial moment is empty.
10. The method according to claim 1, characterized in that The mixed integer programming model includes an objective function and constraint terms; According to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed, including: Constructing the constraint items according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; Based on the preset goal, construct the objective function; The preset target includes at least one of the following: The demurrage duration of the oil tanker among the downstream equipment is the shortest; The inventory cost of the first storage tank is the lowest, wherein the first storage tank includes at least one of the plant tank, the transfer tank in the upstream equipment of the long-distance pipeline, and the dock tank in the upstream equipment; The number of feed switching times of the distillation unit in the downstream equipment is minimal; The distillation unit has the lowest cost for processing crude oil; The number of switching operations of receiving and paying oil in the first storage tank is the least; The long-distance pipeline has the longest transportation time.
11. The method according to claim 1, characterized in that: The oil receiving and payment operation rules of the long-distance pipeline include: The crude oil immediately leaves the long-distance pipeline after entering the long-distance pipeline; The transmission rate limit of the long-distance pipeline; Material balance constraints of the long-distance pipeline; The operating rules for receiving and paying oil at the second storage tank include: The oil receiving and delivery rate of the second storage tank is limited by the capacity of the oil pump of the second storage tank, wherein the second storage tank is any one of the plant tank, the transfer tank in the upstream equipment of the long-distance pipeline, and the terminal tank in the upstream equipment; The second storage tank must be left to stand for at least a reference period of time after receiving the oil before it can deliver the oil; The inventory quantity of the second storage tank is between its corresponding preset tank bottom quantity and preset tank capacity, and is less than its corresponding safety inventory threshold; The second storage tank can only store the corresponding storable oil type; The second storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment; The oil receiving and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include: The distillation unit can only process the corresponding processable oil; The processing volume of the distillation device is consistent with its corresponding planned processing volume; The distillation apparatus processes continuously and uninterruptedly; The oil receiving and delivery operation rules of the oil tankers in the upstream equipment of the long-distance pipeline include: The tanker can only berth at one berth, and the capacity of the berth is one tanker; The oil tanker can only berth and unload oil after arriving at the port; The rate at which the tanker can unload oil is limited by the capacity of the tanker's oil pumps.
12. The method according to claim 11, characterized in that The mixed integer programming model includes an objective function and constraint items, and the second storage tank is the plant tank; According to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed, including: According to the requirement that the second storage tank must be stationary for at least a reference period of time after receiving the oil before delivering the oil, the following constraints are constructed: Among them, boct s,j is a binary variable. When the plant tank j delivers oil in the sth time period, boct s,j =1, when the plant tank j is not delivering oil in the sth time period, boct s,j =0; thdct s-1,j It indicates the waiting time for the factory tank j to deliver oil at the end of the s-1th time period; thdct s,j represents the waiting time when the plant tank j delivers oil to the outside at the end of the sth time period; THDCT represents the shortest static time after the plant tank receives oil; tect s,j Indicates the end time of the sth time period of the plant tank j; tspl s,p Indicates the start time of the sth time period of the long-distance pipeline p; tepl s,p Indicates the end time of the sth time period of the long-distance pipeline p; bectpl s,j,p is a binary variable. When the operation of the plant tank j before the start of the sth time period is to receive oil from the long-distance pipeline p, bectpl s,j,p = 1, when the operation of the plant tank j before the start of the sth time period is not to receive oil from the long-distance pipeline p, bectpl s,j,p =0; SL is a time period sequence number set; PL represents the long-distance pipeline involved in the current crude oil scheduling project; CT represents the plant tank involved in the current crude oil scheduling project.
13. A crude oil transportation device, characterized in that: include: A first determination module is used to determine a first operating parameter according to the distribution information of the initial oil storage in the long-distance pipeline, the initial inventory information of the plant tank, and the operation rule of the distillation device, wherein the first operating parameter includes the operating parameters of the long-distance pipeline, the plant tank, and the distillation device in the process of discharging the initial oil storage, and the initial inventory information includes the initial inventory amount and the initial operation status; An updating module, configured to update the initial inventory information according to the first operating parameter; A model building module, used to build a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; A model solving module, used to solve the mixed integer programming model according to the initial inventory information obtained after the update, and obtain a second operating parameter, wherein the first operating parameter and the second operating parameter constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; A scheme generating module is used to generate a crude oil transportation scheme according to the first operating parameter and the second operating parameter.
14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
15. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 12.
