Crude oil conveying method and device, medium and electronic equipment
Automatically compiling crude oil delivery plans through mixed integer planning models, the problem of low efficiency of manual compilation plans in the existing technology is solved, and the efficiency and stability of crude oil delivery is achieved, reducing the production costs and pipeline corrosion risks of refining enterprises.
Patent Information
- Application Number
- CN202310774367.8
- 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
Existing oil refining companies prepare crude oil delivery plans through manual production scheduling, resulting in high business skills requirements and long plan preparation cycles, making it difficult to respond to delayed arrival of tankers and changes in market demand in a timely manner, and the cooperation between multiple departments is difficult and work efficiency is low.
Using the mixed integer planning model construction and solution method, the crude oil transportation plan is automatically compiled. By constructing the first and second mixed integer planning models, the operating parameters of the long-term transportation pipeline and its downstream equipment are obtained, the inventory information is updated, and the crude oil transportation plan is generated, so as to realize Automated scheduling.
It lowers the scheduling threshold, reduces the work intensity of personnel, improves productivity, simplifies the long-term pipeline modeling process, improves model efficiency, and realizes efficient crude oil transportation and suppresses pipeline corrosion.
Smart Images

Figure CN119204905A_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: constructing a first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil payment and collection operation rules of the downstream equipment of the long-distance pipeline; solving the first mixed integer programming model to obtain a first result, wherein the first result includes the operation parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial pipeline oil in the long-distance pipeline; updating the initial inventory information of the plant tank in the downstream equipment according to the first result, wherein the initial inventory information includes the initial inventory amount, the initial oil type and the end time of the most recent oil collection; constructing a second mixed integer programming model according to the oil payment and collection operation rules of the long-distance pipeline and its upstream and downstream equipment; solving the second mixed integer programming model according to the updated initial inventory information of the plant tank to obtain a second result, wherein the first result and the second result constitute the operation 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 result and the second result.
[0006] In a second aspect, the present disclosure provides a crude oil transportation device, including: a first model building module, used to build a first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil collection and delivery operation rules of the downstream equipment of the long-distance pipeline; a first solving module, used to solve the first mixed integer programming model to obtain a first result, wherein the first result includes the operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial pipeline oil in the long-distance pipeline; an updating module, used to update the initial inventory information of the plant tank in the downstream equipment according to the first result, wherein the initial inventory information Including the beginning inventory, the beginning oil type and the end time of the most recent oil collection; a second model construction module, used to construct a second 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 second solution module, used to solve the second mixed integer programming model according to the updated beginning inventory information of the plant tank, and obtain a second result, wherein the first result and the second result constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; a plan generation module, used to generate a crude oil transportation plan according to the first result and the second result.
[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, a first mixed integer programming model is established. By solving the model, the operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial oil in the long-distance pipeline are obtained; then, the initial inventory, initial oil type and the end time of the most recent oil collection of the plant tank in the downstream equipment are adjusted according to these operating parameters, 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 second mixed integer programming model covering the entire process from oil tanker unloading to distillation unit processing is established and solved; finally, according to the solution results of the two models, 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 6It 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 usually 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 long (e.g., 163 km) and has a 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 S206.
[0028] In S201, a first mixed integer programming model is constructed according to the oil delivery operation rules of the long-distance pipeline and the oil delivery and receipt operation rules of the downstream equipment of the long-distance pipeline.
[0029] In the present disclosure, the first mixed integer programming model may include a first objective function and a first constraint term. Figure 1 As shown, the downstream equipment of the long-distance pipeline may include plant tanks and distillation units, and the upstream equipment of the long-distance pipeline may include tankers (including berth information), terminal tanks, non-long-distance pipelines, transfer tanks, etc.
[0030] Among them, the long-distance pipeline involved in the current crude oil scheduling project can be one or more, each upstream device of the long-distance pipeline can be one or more, and each downstream device of the long-distance pipeline can 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.
[0031] When constructing the first mixed integer programming model, only the long-distance pipeline oil delivery operation, the plant tank oil delivery and receipt operation, and the distillation unit oil delivery and receipt operation are considered. It is assumed that the crude oil passes through the long-distance pipeline at a constant rate. The variables, the first constraint term, and the first objective function are set to establish the first mixed integer programming model.
[0032] In S202, a first mixed integer programming model is solved to obtain a first result.
[0033] In the present disclosure, before the crude oil scheduling project starts, the first mixed integer programming model is used to obtain the operation plan of the long-distance pipeline and its downstream equipment in the process of completely pushing out the oil stored in the long-distance pipeline in the initial stage of scheduling (i.e., the process of discharging the initial oil stored in the long-distance pipeline).
[0034] The initial pipeline oil storage is the oil storage in the long-distance pipeline at the start time of scheduling. The first result may include the operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial pipeline oil storage in the long-distance pipeline, that is, the first result includes the operating parameters of each long-distance pipeline involved in the current crude oil scheduling project in the process of discharging the initial pipeline oil storage in the long-distance pipeline, the operating parameters of each plant tank involved in the current crude oil scheduling project in the process of discharging the initial pipeline oil storage in the long-distance pipeline, and the operating parameters of each distillation unit involved in the current crude oil scheduling project in the process of discharging the initial pipeline oil storage in the long-distance pipeline. The operating parameters include the start time, end time, crude oil operation volume, crude oil variety and other information of the operation execution.
[0035] In S203, based on the first result, the initial inventory information of the plant tank in the downstream equipment is updated, and the initial inventory information includes the initial inventory quantity, the initial oil type and the end time of the most recent oil collection.
[0036] According to the first result, the initial inventory of the plant tank, the initial oil type and the end time of the most recent oil collection are adjusted to simplify the long-distance pipeline transportation problem into an instant transportation problem and eliminate the long-distance pipeline delay effect.
[0037] In S204, a second 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.
[0038] In the present disclosure, the second mixed integer programming model may include a second objective function and a second constraint term. When constructing the second mixed integer programming model, the unloading of oil from tankers, the receipt and payment of oil by storage tanks (including terminal tanks, transfer tanks, and plant tanks), the transportation by pipelines (including long-distance pipelines and non-long-distance pipelines), the processing by distillation units, and the crude oil blending operations are considered, and variables, second constraint terms, and a second objective function are set to establish a second mixed integer programming model, that is, to establish a second mixed integer programming model that includes the entire process from unloading of oil from tankers to processing by distillation units.
[0039] In S205, the second mixed integer programming model is solved according to the updated initial inventory information of the plant tanks to obtain a second result.
[0040] Among them, the first result and the second result constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period, that is, the second result includes the operating parameters of the downstream equipment of the long-distance pipeline for receiving and delivering oil in the target period, the operating parameters of the long-distance pipeline for delivering oil in 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 the 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.
[0041] In S206, a crude oil transportation plan is generated according to the first result and the second result.
[0042] In the present disclosure, by integrating (i.e. merging) the first result and the second result, a complete crude oil transportation plan can be obtained, that is, the oil receiving and delivery operation 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 operation parameters of the long-distance pipeline during the entire scheduling period, that is, the operation 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 operation parameters of the long-distance pipeline during the entire scheduling period, that is, the operation 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 operation parameters of the tanker during the entire scheduling period (for example, berthing position, oil unloading time, crude oil destination information, etc.); the oil receiving operation 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.
[0043] It should be noted that the above S204 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.
[0044] In the above technical scheme, in the first stage, a first mixed integer programming model is established. By solving the model, the operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial oil in the long-distance pipeline are obtained; then, the initial inventory, initial oil type and the end time of the most recent oil collection of the plant tank in the downstream equipment are adjusted according to these operating parameters, 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 second mixed integer programming model covering the entire process from oil tanker unloading to distillation unit processing is established and solved; finally, according to the solution results of the two models, 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.
[0045] The following is a detailed description of the specific implementation of constructing the first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil collection and delivery operation rules of the downstream equipment of the long-distance pipeline in the above S201. Specifically, the following steps 1) and 2) can be used:
[0046] Step 1): Construct the first constraint item according to the oil delivery operation rules of the long-distance pipeline and the oil delivery and receipt operation rules of the downstream equipment of the long-distance pipeline.
[0047] Step 2): Based on the first objective, construct a first objective function;
[0048] When constructing the first mixed integer programming model, the oil delivery operation rules of the long-distance pipeline may include but are not limited to:
[0049] (a1) Long-distance pipelines transport crude oil at a constant rate;
[0050] (a2) At any time, only one section of crude oil leaves the long-distance pipeline. That is, for any long-distance pipeline involved in the current crude oil scheduling project, only one section of crude oil leaves the long-distance pipeline at any time, and crude oil sections in different long-distance pipelines can be exported at the same time.
[0051] (a3) The long-distance pipeline delivers the crude oil to the plant tank in accordance with the first-in-first-out principle, that is, the crude oil sections in the long-distance pipeline leave the long-distance pipeline in the order in which they enter the long-distance pipeline;
[0052] (a4) At the end of the dispatch, the long-distance pipeline is emptied.
[0053] According to each operation rule in (a1) to (a4), a corresponding first constraint item can be constructed respectively.
[0054] For example, according to the above operation rule (a1), the first constraint term shown in the following equation (1) can be constructed:
[0055]
[0056] Among them, volpl s,p,l is a continuous variable, indicating the output volume of crude oil in the lth section of the long-distance pipeline p in the sth time period; FUPL s,p represents the transmission rate of the long-distance pipeline p in the sth time period; tspl s,p is a continuous variable, indicating the start time of the sth time period of the long-distance pipeline p; tepl s,p is a continuous variable, indicating the end time of the sth time period of the long-distance pipeline p; SL' is a set of second time period sequence numbers. For each equipment involved in the current crude oil scheduling project, the process of discharging the initial oil storage in the long-distance pipeline is divided into M time periods corresponding to the equipment, and the sequence numbers of the M time periods constitute the second time period sequence number set; PL represents the long-distance pipeline involved in the current crude oil scheduling project; LOT represents the set of crude oil sections in the long-distance pipeline p.
[0057] For example, the process of discharging the initial oil storage in the long-distance pipeline is divided into 10 time periods corresponding to the equipment, and the serial numbers of the 10 time periods constitute a second time period serial number set, that is, M=10, SL'={1,2,3,...,10}.
[0058] FUPL s,p It can be a known parameter or an unknown variable. When the first mixed integer programming model is a mixed integer linear programming model, FUPL s,p are known parameters. When the first 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.
[0059] The above equation (1) is explained by taking the constant rate as the maximum delivery rate of the long-distance pipeline p as an example. When setting the constant rate, in addition to referring to the maximum delivery rate of the long-distance pipeline p, factors such as the service life of the oil pump of the long-distance pipeline p can also be comprehensively considered.
[0060] In addition, the first mixed integer programming model and the second mixed integer programming model in the present disclosure are both represented based on a unit-specific event time representation method, but are not limited to this method. For example, a global time representation method may also be used.
[0061] For example, according to the above operation rule (a2), the first constraint term shown in the following equation (2) can be constructed:
[0062]
[0063] Among them, bolpl s,p,l is a binary variable. When the long-distance pipeline p is exporting the l-th section of crude oil in the s-th time period, bolpl s,p,l =1, when the long-distance pipeline p does not export the l-th section of crude oil in the s-th time period, bolpl s,p,l =0.
[0064] According to the above operation rule (a3), the first constraint term shown in the following equation (3) can be constructed:
[0065]
[0066] Among them, bolpl ss,p,l-1 is a binary variable. When the long-distance pipeline p is exporting the l-1 section of crude oil in the ssth time period, bolpl ss,p,l-1 =1, when the long-distance pipeline p does not export the l-1 section of crude oil in the ssth time period, bolpl ss,p,l-1 =0.
[0067] According to the above operation rule (a4), the first constraint term shown in the following equation (4) can be constructed:
[0068]
[0069] Among them, VLPL p,l is a parameter, which represents the volume of the lth section of crude oil in the long-distance pipeline p at the start of scheduling.
[0070] When constructing the first mixed integer programming model, the oil receiving and delivery operation rules of the plant tanks in the downstream equipment of the long-distance pipeline include but are not limited to:
[0071] (b1) 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;
[0072] (b2) The rate of delivery of oil to the second storage tank is limited by the capacity of the oil pump of the second storage tank;
[0073] (b3) The second storage tank must be left standing for at least the target time after receiving the oil before it can deliver the oil. If there is no requirement for the second storage tank to stand still, the target standing time is 0;
[0074] (b4) 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 stock threshold;
[0075] (b5) The second storage tank can only store the corresponding storable oil type, that is, the second storage tank can only store specific oil types;
[0076] (b6) 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.
[0077] Among them, the above-mentioned second storage tank is a factory tank. After the factory tank collects the oil, it needs to stand still for several hours and complete the desalination and dehydration operations before it can enter the distillation device for processing.
[0078] According to each operation rule in (b1) to (b6), a corresponding first constraint item can be constructed respectively.
[0079] For example, according to the above operation rule (b1), the first constraint term shown in the following equation (5) can be constructed:
[0080]
[0081] 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;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; CT represents the plant tank involved in the current crude oil scheduling project.
[0082] For example, according to the above operation rule (b2), the first constraint items shown in the following equations (6) and (7) can be constructed:
[0083]
[0084]
[0085] 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; FUTCp,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 represents the maximum delivery rate of crude oil from tank j to distillation unit d in the plant area; CD represents the distillation unit involved in the current crude oil scheduling project.
[0086] According to the above operation rule (b3), the first constraint term shown in the following equation (8) can be constructed:
[0087]
[0088] Among them, tect s',j is a continuous variable, indicating the end time of the s'th time period of the plant tank j, where s'<s; THDCT indicates the shortest static time after the plant tank is drained; bict s′,j is a binary variable. When the plant tank j receives oil in the s'th time period, bict s′,j =1, when the plant tank j is not receiving oil in the s'th time period, bict s′,j =0.
[0089] According to the above operation rule (b4), the first constraint term shown in the following equations (9) and (10) can be constructed:
[0090] v s,j ≥VLCT j (9)
[0091] v s,j ≤min(VUCT j ,VSCT j ) (10)
[0092] 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.
[0093] According to the above operation rule (b5), the first constraint term shown in the following equation (11) can be constructed:
[0094]
[0095] Among them, SC_ST j represents the set of storable oil types corresponding to plant tank j; vcct s,j,c 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 crude oil set.
[0096] According to the above operation rule (b6), the first constraint term shown in the following equations (12) and (13) can be constructed:
[0097]
[0098]
[0099] 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.
[0100] When constructing the first 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:
[0101] (c1) The distillation unit can only process the corresponding processable oil type, that is, the distillation unit can only process specific suitable oil types;
[0102] (c2) the processing capacity of the distillation unit is consistent with its corresponding planned processing capacity;
[0103] (c3) The distillation unit operates continuously and uninterruptedly.
[0104] According to each operation rule in (c1) to (c3), a corresponding first constraint item can be constructed respectively.
[0105] For example, according to the above operation rule (c1), the first constraint term shown in the following equation (14) can be constructed:
[0106]
[0107] 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.
[0108] According to the above operation rule (c2), the first constraint term shown in the following equation (15) can be constructed:
[0109]
[0110] 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.
[0111] In addition, the first goal may include at least one of the following:
[0112] The fastest emptying period is the initial pipe oil storage;
[0113] The inventory cost of plant-based tanks is the lowest;
[0114] Minimum number of feed changes to the distillation unit in downstream equipment.
[0115] In one embodiment, the first objective may include draining the initial oil in the pipeline as quickly as possible, that is, the first objective function may be constructed with minimizing the draining time of the initial oil in the pipeline as the optimization objective.
[0116] For example, according to the first objective, the first objective function objective1 shown in the following equation (16) can be constructed:
[0117] objective1=minmtepl (16)
[0118] Among them, mtepl is a continuous variable, which represents the latest time of the initial oil storage in the pipeline of all long-distance pipelines during the discharge period.
[0119] For another example, the first objective may include: the fastest emptying of the initial pipeline oil, the lowest inventory cost of the plant tank, and the least number of feed switching times of the distillation device in the downstream equipment. That is, the first objective function may be constructed with minimizing the initial pipeline oil discharge time, the plant tank inventory cost, and the number of feed switching times of the distillation device as the optimization objectives.
[0120] For example, according to the first objective, the first objective function objective1 shown in the following equation (17) can be constructed:
[0121]
[0122] Among them, w 1 、w 2 、w 3Represents the optimization weight, which is the preset value; 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 initial inventory of tank j in the plant area; 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.
[0123] In addition, before solving the first mixed integer programming model and the second 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:
[0124] (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.
[0125] Table 1 Basic information of crude oil components to be processed
[0126] 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
[0127] (2) The blending formula of the mixed crude oil is shown in Table 2 below.
[0128] Table 2 Blending formula of mixed crude oil
[0129] 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
[0130] (3) The feed upper limit and planned processing rate of the distillation unit are shown in Table 3 below.
[0131] Table 3 Basic information of distillation unit scheduling
[0132] 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
[0133] (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.
[0134] Table 4 Basic information of arriving tankers
[0135] 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
[0136] (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.
[0137] Table 5 Basic information of terminal tank
[0138] Serial number Storage tank <![CDATA[Preset tank volume, m 3 > <![CDATA[Preset bottom tank volume, 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
[0139] Table 6 Basic information of transfer tank
[0140] 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
[0141] Table 7 Basic information of plant tanks
[0142] 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
[0143] (6) Berth basic information, as shown in Table 8 below.
[0144] Table 8 Berth basic information
[0145] Serial number Berth Name Maximum oil unloading rate, t / h 1 BE 6666
[0146] (7) Basic information of the oil pipeline, as shown in Tables 9 and 10 below.
[0147] Table 9 Basic information of oil-to-oil lines (non-long-distance pipelines)
[0148] Serial number Pipeline Name <![CDATA[Maximum conveying rate, m 3 / h]]> <![CDATA[Minimum conveying rate, m 3 / h]]> 1 ZL 2800 1700
[0149] Table 10 Basic information of long-distance pipelines (distribution of oil reserves in pipelines at the beginning of the period)
[0150] Serial number Pipeline Maximum conveying speed Minimum conveying speed The first paragraph First crude oil Second crude oil Second crude oil 1 PL 2100 1400 M02 40884 M12 5116
[0151] The following describes in detail a specific implementation method for solving the first mixed integer programming model in S202 to obtain the first result.
[0152] Specifically, the first mixed integer programming model can be solved according to the initial oil storage distribution of the long-distance pipeline (Table 10), the plant tank equipment information and the initial inventory distribution (Table 7), the distillation unit feed requirements (Table 3), the crude oil properties (Table 1), and the mixed crude oil blending plan (Table 2) to obtain the first result.
[0153] The first result may include the original solution for completely ejecting the initial oil storage in the long-distance pipeline, that is, the operating 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 execution time of the operation is described by relative time starting from 6:00 on July 1, 2022.
[0154] Table 11 The original plan to completely push out the initial oil storage in the long-distance pipeline
[0155] 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 8.31 19.47 IN PL M02 23443 M02 0 M02 23443 CT09 0.00 8.31 IN PL M02 17441 M02 5116 M02 22557
[0156] For example, when the first mixed integer programming model is solved, the variable vcplct s,p,j,c=500, v s,j =1000,tsct s,j =0, tect s,j =10, where vcplct s,p,j,c is a continuous variable, which indicates the volume of crude oil c delivered between the long-distance pipeline p and the plant tank j in the sth time period. This result shows that in the 0-10 time units, the plant tank j receives 500 units of crude oil c from the pipeline p. After the oil is received, the inventory of the plant tank j is 1000 volume units.
[0157] The following is a detailed description of the specific implementation method of updating the initial inventory information of the plant tank in the downstream equipment according to the first result in the above S203. Specifically, the above first result may include the inventory and storage oil type of each plant tank involved in the current crude oil scheduling project when the initial storage oil is emptied; at this time, the initial inventory information of the plant tank in the downstream equipment can be updated according to the first result in the following manner:
[0158] 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.
[0159] For example, the beginning inventory and beginning oil type information of each plant tank shown in Table 7 can be updated to the ending inventory and ending oil type information of the corresponding plant tank shown in Table 11.
[0160] For example, after the first mixed integer programming model is solved, the variable vcct NSL,j,c =500, vct NSL,j =500, where vcct NSL,j,c It indicates the volume of crude oil c stored in the plant tank j when the long-distance pipeline is emptied; vct NSL,j It represents the updated initial inventory of plant tank j, indicating that when the initial oil storage in the long-distance pipeline is emptied, plant tank j stores crude oil c with a storage capacity of 500 volume units. In the binary mixed integer programming model, the initial inventory of plant tank j is 500 volume units, and the oil type in the tank is crude oil c.
[0161] The initial inventory information of the plant tanks at the initial stage of scheduling is adjusted to the initial inventory information when the initial oil storage in the long-distance pipeline is completely pushed out, thereby simplifying the long-distance pipeline transportation problem into an instant transportation problem and eliminating the long-distance pipeline delay effect.
[0162] The following is a detailed description of the specific implementation method of constructing the second 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 S204. Specifically, it can be achieved through the following steps [1] and [2]:
[0163] Step [1]: Construct the second constraint item based on the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment.
[0164] Step [2]: Based on the second objective, construct a second objective function.
[0165] The long-distance pipeline considered in the second mixed integer programming model has the characteristic that crude oil can leave the pipeline immediately after entering the pipeline. The second 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 second mixed integer programming model, the oil collection and payment operation rules of the long-distance pipeline include:
[0166] (d1) Crude oil leaves the long-distance pipeline immediately after entering it;
[0167] (d2) Transmission rate limitations of long-distance pipelines;
[0168] (d3) Material balance limitations of long-distance pipelines.
[0169] According to each operation rule in (d1) to (d3), a corresponding second constraint item can be constructed respectively.
[0170] For example, according to the above operation rule (d1), the second constraint term shown in the following equation (18) can be constructed:
[0171]
[0172] 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 is a continuous variable, indicating the volume of crude oil c leaving pipeline p in the sth time period; SL is the first 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 first time period sequence number set.
[0173] For example, the entire scheduling period is divided into 15 time periods corresponding to the device, and the sequence numbers of the 15 time periods constitute a first time period sequence number set, that is, N=15, SL={1,2,3,…,15}.
[0174] According to the above operation rule (d2), the second constraint term shown in the following equation (19) can be constructed:
[0175]
[0176] Among them, vipl s,p is a continuous variable, which represents the transportation volume of pipeline p in the sth time period. Like the first mixed integer programming model, the second mixed integer programming model still assumes that the long-distance pipeline transports crude oil at a constant rate.
[0177] FUPL s,p It can be a known parameter or an unknown variable. When the second mixed integer programming model is a mixed integer linear programming model, FUPL s,p are known parameters. When the second 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. The first mixed integer programming model and the second mixed integer programming model are of the same type.
[0178] According to the above operation rule (d3), the second constraint term shown in the following equations (20) and (21) can be constructed:
[0179]
[0180]
[0181] The storage tanks in the upstream and downstream equipment of the long-distance pipeline may include terminal tanks, plant tanks and transfer tanks, wherein the oil receiving and payment operation rules of the terminal tanks considered by the second mixed integer programming model are basically consistent with the oil receiving and payment operation rules of the plant tanks considered by the first mixed integer programming model, and the oil receiving and payment operation rules of the transfer tanks considered by the second mixed integer programming model are basically consistent with the oil receiving and payment operation rules of the plant tanks considered by the first mixed integer programming model.
[0182] Specifically, when constructing the second mixed integer programming model, the oil receiving and delivery operation rules of the terminal tank and the transfer tank in the upstream equipment of the long-distance pipeline include but are not limited to:
[0183] The second storage tank cannot perform oil receiving and delivery operations at the same time, where the second storage tank is a transfer tank or a terminal tank;
[0184] The rate of receiving and paying oil from the second storage tank is limited by the capacity of the oil pump of the second storage tank;
[0185] The second storage tank must wait for at least the target time after receiving the oil before delivering the oil. If there is no requirement for the second storage tank to wait, the target time is 0.
[0186] The inventory quantity of the second storage tank is between the corresponding preset tank bottom quantity and the preset tank capacity, and is less than the corresponding safety inventory threshold;
[0187] The second storage tank can only store the corresponding storable oil type;
[0188] The second storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment.
[0189] In addition, the oil receiving and delivery operation rules of the plant tank considered by the second mixed integer programming model are basically the same as the oil receiving and delivery operation rules of the plant tank considered by the first mixed integer programming model, that is, they include the operation rules shown in (b1) to (b6) above, and only the constraint item corresponding to (b3) is different from the above equation (8).
[0190] For example, according to the above operation rule (b3), the second constraint term of the second mixed integer programming model shown in the following equations (22) to (24) can be constructed:
[0191]
[0192]
[0193]
[0194] Among them, 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 if the plant tank j delivers oil to the outside at the end of the sth time period; THDCT is a parameter, which indicates the shortest static time after the plant tank receives oil. When the enterprise requires the storage tank to be static after receiving oil, THDCT is the static time required by the enterprise. When the enterprise does not require the storage tank to be static after receiving oil, THDCT is a sufficiently small number, such as 0.01h; 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.
[0195] In addition, the oil collection and payment operation rules of the distillation device considered by the second mixed integer programming model are consistent with the oil collection and payment operation rules of the distillation device considered by the first mixed integer programming model, and are not described in detail in this disclosure.
[0196] The oil collection and payment operation rules of the oil tanker considered in the second mixed integer programming model may include but are not limited to:
[0197] (e1) 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);
[0198] (e2) The tanker can only berth and unload oil after arriving at the port;
[0199] (e3) The oil unloading rate of an oil tanker is limited by the capacity of the oil tanker's oil pumps.
[0200] According to each operation rule in (e1) to (e3), a corresponding second constraint item can be constructed respectively.
[0201] For example, according to the above operation rule (e1) that “the tanker can only dock at one berth”, the second constraint term shown in the following equation (25) can be constructed:
[0202]
[0203] 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.
[0204] According to the “berth capacity is one tanker” in the above operation rule (e1), the second constraint term shown in the following equation (26) can be constructed:
[0205]
[0206] According to the above operation rule (e2), the second constraint term shown in the following equation (27) can be constructed:
[0207]
[0208] 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.
[0209] According to the above operation rule (e3), the second constraint term shown in the following equation (28) can be constructed:
[0210]
[0211] 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; FUULv is a parameter representing the maximum unloading rate of tanker v.
[0212] In addition, the second objective may include at least one of the following:
[0213] Among the downstream equipment, the demurrage duration of the tanker is the shortest;
[0214] 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;
[0215] Minimum number of feed changes in the distillation unit in the downstream equipment;
[0216] The distillation unit processes crude oil at the lowest cost;
[0217] The number of switching operations for receiving and paying oil in the first storage tank is the least;
[0218] The long-distance pipeline has the largest delivery capacity, and its purpose is to keep the pipeline running, thereby avoiding pipeline cleaning work caused by pipeline suspension and energy consumption when restarting the pump.
[0219] 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 second goal can include the shortest demurrage time of the tanker and the least number of feed switching times of the distillation unit, that is, the second 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, so as to calculate a safe, stable and economical operation plan.
[0220] For example, according to the second objective, a second objective function objective2 shown in the following equation (29) can be constructed:
[0221]
[0222] Among them, TEDK v is a continuous variable, indicating the departure time of tanker v, w 4 、w 5 Represents optimization weights, all of which are preset values.
[0223] As another example, the second objective may include: minimizing the demurrage time of the oil tanker, minimizing the inventory cost of the plant tank, and minimizing the number of feed switching times of the distillation unit. That is, the second objective function may be constructed with minimizing the demurrage time of the oil tanker, the inventory cost of the plant tank, and the number of feed switching times of the distillation unit as the optimization objectives.
[0224] For example, according to the second objective, a second objective function objective2 shown in the following equation (30) can be constructed:
[0225]
[0226] Among them, w 6 、w 7 、w 8 Represents optimization weights, all of which are preset values.
[0227] The following is a detailed description of a specific implementation method for solving the second mixed integer programming model according to the initial inventory information of the plant tank obtained after the update in the above S205 to obtain the second result. Specifically, the second mixed integer programming model can be solved according to the data in Tables 1 to 10 to obtain the second result, wherein the data in Table 5 is the data updated according to Table 11.
[0228] For example, when the second mixed integer programming model is solved, the variable vcstpl s,i,p,c =500,tspl s,p =0,tepl s,p =10, where vcstpl s,i,p,c represents the volume of crude oil c delivered between the long-distance pipeline p and the terminal tank i in the sth time period, indicating that in the 0-10 time units, the pipeline p receives 500 units of crude oil c from the terminal tank i; the variable It indicates that pipeline p first supplies tank j to the plant area 1 Transporting crude oil 1 , and then to the factory tank 2 Transporting crude oil 2 , and finally to the factory tank 3 Transporting crude oil 3 .
[0229] In addition to the above-mentioned operation rules, the following operation rules can also be considered:
[0230] Terminal tanks can only store component oils;
[0231] Transfer tanks can store both component oil and mixed crude oil;
[0232] Plant tanks can only store mixed crude oil;
[0233] Crude oil blending operations should be carried out at the entrance of long-distance pipelines or in transfer tanks as much as possible.
[0234] In addition, after solving the first mixed integer programming model and the second mixed integer programming model, the solution results of the two (ie, the first result and the second result) 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.
[0235] in, Figure 8 It not only provides the oil payment and receipt scheme of the long-distance pipeline, but also provides the crude oil distribution 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.
[0236] from Figure 2 It can be seen that all tankers started unloading oil after arriving at the port, which complies with the operating rules of Article (e2).
[0237] 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".
[0238] (4) From Figure 4 It can be seen that there were 6 cases in total where the terminal tanks received oil and then delivered oil. Among them, the shortest standing time was 9 hours, the longest standing time was 78 hours, and the standing time was mostly distributed around 27 hours, which complies with the rule that "the terminal tank must stand for at least the target time after receiving oil before delivering oil".
[0239] analyze Figure 6It can be seen that CDU1 and CDU2 are continuously processed throughout the storage and transportation process, which complies with the operation rule of Article (c3). In addition, the distillation unit CDU1 continuously processes the mixed crude oil M02, and there is no feed switching phenomenon during the entire operation process, that is, the unit operation is stable and has no fluctuations for a long time. The distillation unit CDU2 processes the mixed crude oil M08, M12, M08 and M10 in turn, and a total of 3 feed switchings have occurred. Restricted by the plant tank oil collection and static rules, CDU2 can only process M08 first. Because the inventory of M08 in the plant tank at the initial stage of scheduling is only 42,869 tons, which is only for CDU2 to process for 48.99 hours. In order to realize the continuous processing of M08, the long-distance pipeline PL must transport M08 as soon as possible, but the initial pipeline oil of PL is M02 and M12, that is, the fastest delivery of M08 can only be started after 21.9 hours. Assuming that pipeline PL starts to transport only M08 after 21.90h, considering the shortest oil collection standing time of 24h, plant tank CT02 can only collect oil from 21.90 to 24.99h, and its maximum oil collection volume is 6465t, which is used for CDU3 to process for 6.46h. Due to the restriction that mixing operations cannot occur in plant tanks, CT02 chooses CT06 to collect oil after collecting crude oil, and the oil collection time is from 24.99 to 31.45h, and its maximum oil collection volume is 11840t, which is used for CDU2 to process for 13.53h. Subsequently, plant tanks can no longer continue to collect M08, because due to the restriction that crude oil blending operations cannot occur in plant tanks, only CT01, CT02 and CT06 can receive M08. However, CT02 and CT06 have just finished collecting oil, and CT01 is paying oil to CDU3. Only after CT01 is emptied at 48.99h can it continue to receive M08. However, the inventory of CT02 and CT06 is only enough to maintain CDU2's continuous processing to 68.99 hours. Even if CT01 collects oil instantly, it will not be able to start paying oil to CDU2 until 72.99 hours. Therefore, CDU2 will have a feed switch after processing 61174t M08 at most, that is, CDU2 will have at least 2 feed switches. According to the above analysis, the CDU2 feed scheme provided by the model will have at most 1 more feed switch than the optimal scheme, and the model scheme can achieve stable production of CDU2.
[0240] 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:
[0241] The first model building module 301 is used to build a first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil collection and delivery operation rules of the downstream equipment of the long-distance pipeline; the first solution module 302 is used to solve the first mixed integer programming model to obtain a first result, wherein the first result includes the operation parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial oil in the long-distance pipeline; the update module 303 is used to update the initial inventory information of the plant tank in the downstream equipment according to the first result, wherein the initial inventory information includes the initial inventory, the initial oil The first and second results constitute the operation parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; the scheme generation module 306 is used to generate a crude oil transportation scheme according to the first and second results.
[0242] In the above technical scheme, in the first stage, a first mixed integer programming model is established. By solving the model, the operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial oil in the long-distance pipeline are obtained; then, the initial inventory, initial oil type and the end time of the most recent oil collection of the plant tank in the downstream equipment are adjusted according to these operating parameters, 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 second mixed integer programming model covering the entire process from oil tanker unloading to distillation unit processing is established and solved; finally, according to the solution results of the two models, 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.
[0243] Optionally, the first mixed integer programming model includes a first objective function and a first constraint item; the first model construction module 301 includes: a first construction submodule, used to construct the first constraint item according to the oil delivery operation rules of the long-distance pipeline and the oil collection and delivery operation rules of the downstream equipment of the long-distance pipeline; a second construction submodule, used to construct the first objective function based on the first objective; wherein the first objective includes at least one of the following: the fastest emptying of the initial pipeline oil; the lowest inventory cost of the plant tank; the least number of feed switching times for the distillation unit in the downstream equipment.
[0244] Optionally, the second mixed integer programming model includes a second objective function and a second constraint; the second model construction module 304 includes: a third construction submodule, used to construct the second constraint according to the oil collection and delivery operation rules of the long-distance pipeline and its upstream and downstream equipment; a fourth construction submodule, used to construct the second objective function based on the second objective; wherein the second objective includes 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 volume of the long-distance pipeline is the largest.
[0245] Optionally, the oil delivery operation rules of the long-distance pipeline based on which the first mixed integer programming model is constructed include: the long-distance pipeline transports crude oil at a constant rate; only one section of crude oil leaves the long-distance pipeline at any time; the long-distance pipeline transports the initial pipeline oil to the plant tank according to the first-in-first-out principle; at the end of scheduling, the long-distance pipeline is emptied.
[0246] Optionally, the oil collection and delivery operation rules of the long-distance pipeline based on which the second mixed integer programming model is constructed include: crude oil leaves the long-distance pipeline immediately after entering the long-distance pipeline; the transportation rate limit of the long-distance pipeline; and the material balance limit of the long-distance pipeline.
[0247] Optionally, the oil receiving and delivery operation rules of the second storage tank include: the second storage tank cannot perform oil receiving and delivery operations at the same time, 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 oil receiving and delivery rate of the second storage tank is limited by the capacity of the oil pump of the second storage tank; the second storage tank can only deliver the oil after standing for at least a target 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 deliver oil to its corresponding downstream equipment.
[0248] Optionally, the second mixed integer programming model includes a second objective function and a second constraint term, and the second storage tank is the plant tank; the second model construction module 304 is used to construct the second constraint term shown in the above equations (22) to (24) based on the fact that the second storage tank must be stationary for at least a target time after collecting oil before it can deliver oil.
[0249] Optionally, the oil collection and payment operation rules of the distillation unit in the downstream equipment 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.
[0250] Optionally, the oil collection and delivery operation rules of the tanker in the upstream equipment of the long-distance pipeline include: the tanker can only dock at one berth, and the capacity of the berth is one tanker; the tanker can only berth and unload oil after arriving at the port; the unloading rate of the tanker is limited by the capacity of the tanker's oil pump.
[0251] Optionally, the first result includes the inventory and stored oil type of each of the plant tanks when the initial oil storage is emptied; the update module 303 includes: a first update submodule, for determining, for each of the plant tanks, 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 as the new, most recent end time of oil collection of the plant tank; a second update submodule, for updating the initial inventory of the plant tank to the inventory of the plant tank when the initial oil storage is emptied, and updating the initial oil type of the plant tank to the stored oil type of the plant tank when the initial oil storage is emptied, if an oil collection and payment operation occurs during the process of discharging the initial oil storage of the plant tank.
[0252] 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.
[0253] 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.
[0254] 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.
[0255] 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.
[0256] 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.
[0257] 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.
[0258] 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.
[0259] 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.
[0260] 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.
[0261] 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.
[0262] 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.
[0263] 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.
[0264] 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: Constructing a first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil payment and receipt operation rules of the downstream equipment of the long-distance pipeline; Solving the first mixed integer programming model to obtain a first result, wherein the first result includes operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial oil storage in the long-distance pipeline; According to the first result, the initial inventory information of the plant tank in the downstream equipment is updated, wherein the initial inventory information includes the initial inventory amount, the initial oil type and the end time of the most recent oil collection; According to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a second mixed integer programming model is constructed; Solving the second mixed integer programming model according to the updated initial inventory information of the plant tank to obtain a second result, wherein the first result and the second result 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 result and the second result.
2. The method according to claim 1, characterized in that The first mixed integer programming model includes a first objective function and a first constraint term; The first mixed integer programming model is constructed according to the oil delivery operation rules of the long-distance pipeline and the oil payment and receipt operation rules of the downstream equipment of the long-distance pipeline, including: The first constraint item is constructed according to the oil delivery operation rules of the long-distance pipeline and the oil payment and receipt operation rules of the downstream equipment of the long-distance pipeline; Based on the first objective, construct the first objective function; Wherein, the first goal includes at least one of the following: Empty the oil stored in the initial pipe as quickly as possible; The inventory cost of the plant tank is the lowest; The number of feed switching times for the distillation unit in the downstream equipment is minimal.
3. The method according to claim 1, characterized in that The second mixed integer programming model includes a second objective function and a second constraint term; The second 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, including: According to the oil receiving and paying operation rules of the long-distance pipeline and its upstream and downstream equipment, construct the second constraint item; Based on the second objective, constructing the second objective function; Wherein, the second goal 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 largest transport capacity.
4. The method according to claim 1, characterized in that: The oil delivery operation rules of the long-distance pipeline based on which the first mixed integer programming model is constructed include: The long-distance pipeline transports crude oil at a constant rate; At any time, only one section of crude oil leaves the long-distance pipeline; The long-distance pipeline transports the initial pipeline oil to the plant tank according to the first-in-first-out principle; At the end of the dispatch, the long-distance pipeline is drained.
5. The method according to claim 1, characterized in that: The oil collection and payment operation rules of the long-distance pipeline based on which the second mixed integer programming model is constructed 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 limitations of the long-distance pipeline.
6. The method according to claim 1, characterized in that: The operating rules for receiving and paying oil at the second storage tank include: The second storage tank cannot perform oil receiving and delivery operations at the same time, 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 oil receiving and delivery rate of the second storage tank is limited by the capacity of the oil pump of the second storage tank; The second storage tank can only deliver oil after the oil is collected and left to stand for at least the target time; 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.
7. The method according to claim 6, characterized in that The second mixed integer programming model includes a second objective function and a second constraint term, 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 second mixed integer programming model is constructed, including: According to the requirement that the second storage tank must be stationary for at least the target time after receiving the oil before delivering the oil, the following second constraint is 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 time that the factory tank j needs to wait 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 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; SL is the first 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.
8. The method according to claim 1, characterized in that: The oil collection and payment operation rules of the distillation unit in the downstream equipment 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 operates continuously and without interruption.
9. The method according to claim 1, characterized in that: 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.
10. The method according to claim 1, characterized in that: The first result includes the inventory and the type of stored oil of each of the plant tanks when the initial storage oil is emptied; The updating of the initial inventory information of the plant tanks in the downstream equipment according to the first result includes: For each of the plant tanks, the difference between the end time of the most recent oil collection of the plant tank and the time taken to empty the oil stored in the pipeline at the beginning of the period is determined as the new and most recent end time of oil collection of the plant tank; If the plant tank has any oil payment or receipt operation during the process of discharging the initial oil storage, the initial inventory of the plant tank will be updated to the inventory of the plant tank when the initial oil storage 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 is emptied.
11. A crude oil transportation device, characterized in that: include: A first model building module is used to build a first mixed integer programming model according to the oil delivery operation rules of the long-distance pipeline and the oil collection and delivery operation rules of the downstream equipment of the long-distance pipeline; A first solving module is used to solve the first mixed integer programming model to obtain a first result, wherein the first result includes operating parameters of the long-distance pipeline and its downstream equipment in the process of discharging the initial pipeline oil in the long-distance pipeline; An updating module, configured to update the initial inventory information of the plant tank in the downstream equipment according to the first result, wherein the initial inventory information includes the initial inventory quantity, the initial oil type and the end time of the most recent oil collection; A second model building module is used to build a second 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 second solving module is used to solve the second mixed integer programming model according to the updated initial inventory information of the plant tank to obtain a second result, wherein the first result and the second result constitute the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period; A plan generating module is used to generate a crude oil transportation plan according to the first result and the second result.
12. 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 10 are implemented.
13. 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 10.
