Crude oil conveying method and device, medium and electronic equipment

By constructing a mixed integer planning model, the crude oil delivery plan is automatically optimized, which solves the problem of low efficiency in manual preparation of solutions by refining enterprises, and achieves efficient, stable crude oil transportation and long-term pipeline corrosion inhibition.

CN119204904APending Publication Date: 2024-12-27CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310771734.9
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

Technical Problem

Existing oil refining companies prepare crude oil delivery plans through manual production scheduling, resulting in high business skills requirements for dispatchers, long program preparation cycle, difficult to respond to delayed arrival of tankers and changes in market demand in a timely manner, and difficulty in collaboration among multiple departments, and low work efficiency.

Method used

Build a mixed integer planning model, solve the target operating parameters according to the oil collection and payment rules of the long-term transportation pipeline and its upstream and downstream equipment, and automatically prepare a crude oil delivery plan, including the start and end time of crude oil leaving the long-term transportation pipeline, the conveying rate and material balance Limit and optimize the operating parameters of long-distance pipelines and their upstream and downstream equipment.

Benefits of technology

It realizes the rapid and automatic preparation of crude oil delivery plans, lowers the scheduling threshold, reduces the work intensity of personnel, improves the productivity of enterprises, simplifies the long-term pipeline modeling process, improves model efficiency, solves the efficient crude oil transportation and suppresses corrosion of long-term pipelines The problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119204904A_ABST
    Figure CN119204904A_ABST
Patent Text Reader

Abstract

The invention relates to a crude oil conveying method and device, a medium and electronic equipment. The method comprises the steps that a mixed integer programming model is constructed according to oil receiving and paying operation rules of a long-distance transportation pipeline and upstream and downstream equipment of the long-distance transportation pipeline, and the long-distance transportation pipeline has the characteristic of delayed transportation; the mixed integer programming model is solved, target operation parameters are obtained, and the target operation parameters comprise operation parameters of the long-distance pipeline and upstream and downstream equipment of the long-distance pipeline in the whole scheduling period. Therefore, a crude oil conveying scheme can be quickly and automatically compiled, the dispatching threshold is lowered, the labor intensity of workers is reduced, and the enterprise productivity is improved. According to the modeling method, the long-distance pipeline modeling process is ingeniously simplified, the modeling difficulty is low, the model scale is small, the model efficiency is high, and the complex crude oil transportation problem is easier to solve. The problem of crude oil transportation of the long-distance pipeline can be solved, efficient transportation of crude oil in the long-distance pipeline is achieved, the crude oil has corrosivity and can corrode the pipeline when staying in the long-distance pipeline for a long time, and the technical problem of inhibiting corrosion of the long-distance pipeline can be solved.
Need to check novelty before this filing date? Find Prior Art

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 objectives, in a first aspect, the present disclosure provides a crude oil transportation method, comprising:

[0006] A mixed integer programming model is constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, wherein the long-distance pipeline has the characteristic of delayed delivery;

[0007] The mixed integer programming model is solved to obtain target operating parameters, wherein the target operating parameters include operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

[0008] Optionally, the oil collection and payment operation rules of the long-distance pipeline include:

[0009] The restriction on the start time of the crude oil leaving the long-distance pipeline;

[0010] The limit of the end time of the crude oil leaving the long-distance pipeline;

[0011] The transmission rate limit of the long-distance pipeline;

[0012] Material balance constraints of the long-distance pipeline;

[0013] The start time restriction and the end time restriction are both determined based on the characteristics of the delayed delivery.

[0014] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0015] The 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:

[0016] According to the restriction on the start time of the crude oil leaving the long-distance pipeline, the following constraints are constructed:

[0017]

[0018]

[0019]

[0020]

[0021] Among them, tsopl s,p is a continuous variable, indicating the start time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline in the sth time period begins to leave the pipeline in the s'th time period, bsopl s,s′,p =1, otherwise, bsopl s,s′,p =0.

[0022] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0023] The 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:

[0024] According to the restriction of the end time of the crude oil leaving the long-distance pipeline, the following constraints are constructed:

[0025]

[0026]

[0027]

[0028]

[0029] Among them, teopl s,p is a continuous variable, indicating the end time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the long-distance pipeline p in the s'th time period, beopl s,s′,p =1, otherwise, beopl s,s′,p =0.

[0030] Optionally, the oil receiving and delivery operation rules of the non-long-distance pipeline in the upstream equipment of the long-distance pipeline include:

[0031] Material balance restrictions for non-long-distance pipelines;

[0032] The transmission rate of the non-long-distance pipeline is limited.

[0033] Optionally, the oil receiving and delivery operation rules of the oil tanker in the upstream equipment of the long-distance pipeline include:

[0034] The tanker can only berth at one berth, and the capacity of the berth is one tanker;

[0035] The oil tanker can only berth and unload oil after arriving at the port;

[0036] The oil unloading rate of the tanker is limited by the capacity of the tanker's oil pump;

[0037] The rules for receiving and paying oil at the first storage tank include:

[0038] The first storage tank cannot perform oil receiving and delivery operations at the same time, wherein the first storage tank is any one of a plant tank in the downstream equipment of the long-distance pipeline, a transfer tank in the upstream equipment of the long-distance pipeline, and a terminal tank in the upstream equipment;

[0039] The oil receiving and delivery rate of the first storage tank is limited by the capacity of the oil pump of the first storage tank;

[0040] The first storage tank must be left to stand for at least a reference period of time after receiving the oil before it can deliver the oil;

[0041] The inventory quantity of the first storage tank is between its corresponding preset tank bottom quantity and preset tank capacity, and is less than its corresponding safety inventory threshold;

[0042] The first storage tank can only store the corresponding storable oil type;

[0043] The first storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment;

[0044] The oil receiving and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include:

[0045] The distillation unit can only process the corresponding processable oil;

[0046] The processing volume of the distillation device is consistent with its corresponding planned processing volume;

[0047] The distillation apparatus operates continuously and without interruption.

[0048] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0049] The 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:

[0050] The constraint items are constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment;

[0051] Based on the preset goal, construct the objective function;

[0052] The preset target includes at least one of the following:

[0053] Among the downstream equipment of the long-distance pipeline, the demurrage duration of the oil tanker is the shortest;

[0054] The second storage tank has the lowest inventory cost, wherein the second storage tank includes at least one of a plant tank in the downstream equipment, a transfer tank in the upstream equipment of the long-distance pipeline, and a dock tank in the upstream equipment;

[0055] The number of feed switching times of the distillation unit in the downstream equipment is minimal;

[0056] The distillation unit has the lowest cost for processing crude oil;

[0057] The number of switching operations of receiving and paying oil in the second storage tank is the least;

[0058] The long-distance pipeline has the longest transportation time.

[0059] In a second aspect, the present disclosure provides a crude oil transportation device, comprising:

[0060] A model building module is used to build a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, wherein the long-distance pipeline has the characteristic of delayed transportation;

[0061] The model solving module is used to solve the mixed integer programming model to obtain target operating parameters, wherein the target operating parameters include the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

[0062] 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.

[0063] In a fourth aspect, the present disclosure provides an electronic device, including:

[0064] a memory having a computer program stored thereon;

[0065] A processor is used to execute the computer program in the memory to implement the steps of the crude oil transportation method provided in the first aspect of the present disclosure.

[0066] In the above technical scheme, first, according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed, wherein the long-distance pipeline has the characteristic of delayed delivery; the mixed integer programming model is solved to obtain the target operation parameters (i.e., the crude oil delivery plan), wherein the target operation parameters include the operation parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period. In this way, the crude oil delivery 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 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 delivery problems. In addition, the present disclosure can solve the transportation problem of crude oil in the long-distance pipeline and realize the efficient transportation of crude oil in the long-distance pipeline. Crude oil is usually corrosive, and if it stays in the long-distance pipeline for a long time, it will corrode the pipeline. Therefore, the present disclosure can solve the technical problem of inhibiting the corrosion of the long-distance pipeline.

[0067] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] 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:

[0069] Figure 1 The present invention is a crude oil scheduling process flow chart of a refinery enterprise according to an exemplary embodiment.

[0070] Figure 2 The figure is a flow chart of a crude oil transportation method according to an exemplary embodiment.

[0071] Figure 3 The diagram is a schematic diagram showing a planned oil unloading scheme for an oil tanker according to an exemplary embodiment.

[0072] Figure 4 It is a schematic diagram showing a terminal tank planning operation scheme according to an exemplary embodiment.

[0073] Figure 5 It is a schematic diagram showing a transfer tank planning operation scheme according to an exemplary embodiment.

[0074] Figure 6 It is a schematic diagram showing a planned operation scheme of a plant tank according to an exemplary embodiment.

[0075] Figure 7 It is a schematic diagram showing a planned processing process of a distillation device according to an exemplary embodiment.

[0076] Figure 8 It is a schematic diagram showing a planned transportation process of a non-long-distance pipeline according to an exemplary embodiment.

[0077] Fig. 9 The diagram is a schematic diagram of a planned transportation process of a long-distance pipeline according to an exemplary embodiment.

[0078] Fig.10 The figure is a block diagram of a crude oil transportation device according to an exemplary embodiment.

[0079] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment.

[0080] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0081] 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.

[0082] 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.

[0083] Figure 1 FIG. 1 is a crude oil scheduling process flow chart of a refinery enterprise according to an exemplary embodiment. Figure 1 As shown in the figure, a certain oil refinery purchases crude oil and transports it to a certain wharf via tanker; after the tanker safely berths at the port, the crude oil is unloaded into multiple suitable wharf tanks; the crude oil in the wharf tank has two transportation routes: one transportation route is that the crude oil enters the transfer tank through a shorter oil pipeline (i.e., non-long-distance pipeline), and the other transportation route is that the crude oil enters the plant tank through a longer oil pipeline (i.e., long-distance pipeline); the crude oil in the transfer tank can also enter the plant tank through the long-distance pipeline; finally, the crude oil in the plant tank enters the distillation unit for processing. The non-long-distance pipeline connecting the wharf tank and the transfer tank is relatively short (e.g., 11 km), and the transportation delay effect of the non-long-distance pipeline can be ignored, but the long-distance pipeline supplying the plant tank is usually relatively long (e.g., 163 km) and has a relatively large volume (e.g., 46,000 m 3 ), it takes a long time (for example, more than 20 hours) for crude oil to leave the long-distance pipeline after entering the long-distance pipeline. Therefore, the crude oil transportation problem of the oil refinery is a complex problem involving long-distance pipeline transportation.

[0084] In view of this, the present disclosure provides a crude oil transportation method, device, medium and electronic equipment.

[0085] 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 S203.

[0086] In S201, a mixed integer programming model is constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment. The long-distance pipeline has the characteristic of delayed transportation.

[0087] like Figure 1 As shown, the downstream equipment of the long-distance pipeline may include a plant tank and a distillation unit, and the upstream equipment of the long-distance pipeline may include an oil tanker (including berth information), a terminal tank, a non-long-distance pipeline, a transfer tank, etc. Among them, the long-distance pipeline involved in the current crude oil scheduling project may be one or more, each upstream equipment of the long-distance pipeline may be one or more, and each downstream equipment of the long-distance pipeline may also be one or more. For example, the current crude oil scheduling project involves a long-distance pipeline, multiple oil tankers, multiple terminal tanks, a non-long-distance pipeline, multiple transfer tanks, multiple plant tanks, and multiple distillation units.

[0088] In addition, before the crude oil dispatching project begins, it is assumed that all long-distance pipelines are full of oil. Due to the long distance of long-distance pipelines, the transportation process is accompanied by the delay of crude oil leaving the long-distance pipelines, that is, the long-distance pipelines have the characteristic of delayed transportation.

[0089] The mixed integer programming model includes an objective function and constraints, and the model can be a mixed integer linear programming model or a mixed integer nonlinear programming model. When constructing a mixed integer programming model, the unloading of oil from tankers, the receipt and payment of oil in storage tanks (including terminal tanks, transfer tanks, and plant tanks), the transportation of pipelines (including long-distance pipelines and non-long-distance pipelines), the processing of distillation units, the storage of crude oil, and the blending of crude oil are considered, and variables, constraints, and objective functions are set to establish a mixed integer programming model, that is, to establish a mixed integer programming model that includes the entire process from unloading of oil from tankers to processing of distillation units.

[0090] In S202, the mixed integer programming model is solved to obtain target operating parameters, which include operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

[0091] In the present disclosure, the target operation parameters (i.e., crude oil transportation plan) specifically include the operation parameters of the downstream equipment of the long-distance pipeline during the entire scheduling period, the operation parameters of the long-distance pipeline during the entire scheduling period, and the operation parameters of the upstream equipment of the long-distance pipeline during the entire scheduling period. Among them, the operation parameters include the start time and end time of the operation execution, the crude oil operation amount (i.e., volume), the crude oil variety (i.e., oil type), the destination of the crude oil, the source of the crude oil, and the transportation rate.

[0092] 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, such as the oil receiving time (including the start time and end time of oil receiving), crude oil delivery volume (i.e., oil receiving volume), crude oil source, oil receiving rate, oil type, 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, such as the oil delivery time (i.e., the time when crude oil leaves the long-distance pipeline, including the start time and end time of oil delivery), crude oil delivery volume, crude oil destination, oil delivery rate, oil type, etc.; the oil delivery operation parameters of the tanker during the entire scheduling period, such as the berthing position, oil unloading time, crude oil destination, oil type, oil unloading rate, etc.; the terminal tank during the entire scheduling period Oil receiving operation parameters, such as oil receiving volume, oil receiving time, crude oil source, oil receiving rate, oil type, etc.; oil delivery operation parameters of terminal tanks during the entire scheduling period, such as oil delivery volume, oil delivery time, crude oil destination, oil delivery rate, oil type, etc.; oil receiving operation parameters of plant tanks during the entire scheduling period, such as oil delivery volume, oil receiving time, crude oil source, oil delivery rate, oil type, etc.; oil delivery operation parameters of plant tanks during the entire scheduling period, such as oil delivery volume, oil delivery time, crude oil destination, oil delivery rate, oil type, etc.; oil receiving and processing operation parameters of the distillation unit during the entire scheduling period (such as oil receiving volume, oil receiving time, crude oil source information, processing rate, feed information (such as sulfur content, acid value upper limit, etc.)); oil receiving and delivery operation parameters of transfer tanks and non-long-distance pipelines.

[0093] In the above technical scheme, first, according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed, wherein the long-distance pipeline has the characteristic of delayed delivery; the mixed integer programming model is solved to obtain the target operation parameters (i.e., the crude oil delivery plan), wherein the target operation parameters include the operation parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period. In this way, the crude oil delivery 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 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 delivery problems. In addition, the present disclosure can solve the transportation problem of crude oil in the long-distance pipeline and realize the efficient transportation of crude oil in the long-distance pipeline. Crude oil is usually corrosive, and if it stays in the long-distance pipeline for a long time, it will corrode the pipeline. Therefore, the present disclosure can solve the technical problem of inhibiting the corrosion of the long-distance pipeline.

[0094] The following is a detailed description of the specific implementation method of constructing a mixed integer programming model based on the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment in S201. Specifically, it can be achieved through the following steps (1) and (2):

[0095] Step (1): Construct constraints based on the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment.

[0096] Step (2): Construct the objective function based on the preset goal.

[0097] When constructing a mixed integer programming model (specifically, the constraints of the model), the oil collection and payment operation rules of the long-distance pipeline may include but are not limited to:

[0098] (A1) Restrictions on the time when crude oil starts leaving the long-distance pipeline;

[0099] (A2) The time limit for the end of the crude oil leaving the long-distance pipeline;

[0100] (A3) Transmission rate limitations of long-distance pipelines;

[0101] (A4) Material balance limitations of long-distance pipelines.

[0102] In the present disclosure, the restriction on the start time of crude oil leaving the long-distance pipeline and the restriction on the end time of crude oil leaving the long-distance pipeline are both determined based on the characteristics of delayed transportation of the long-distance pipeline. Specifically, the restriction on the start time of the incoming oil leaving the pipeline can be determined based on the characteristics of delayed transportation of the long-distance pipeline, combined with the movement state of the incoming oil (i.e., the oil entering the long-distance pipeline) and the start time of the incoming oil entering the long-distance pipeline. Similarly, the restriction on the end time of the incoming oil leaving the pipeline can be determined based on the characteristics of delayed transportation of the long-distance pipeline, combined with the movement state of the incoming oil and the start time of the incoming oil entering the long-distance pipeline.

[0103] According to each operation rule in (A1) to (A4), corresponding constraint items can be constructed respectively.

[0104] For example, according to the above operation rule (A1), the constraints shown in the following equations (1) to (4) can be constructed:

[0105]

[0106]

[0107]

[0108]

[0109] Among them, tsopl s,p is a continuous variable, indicating the start time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL pis the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transmission rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project (i.e., the duration of the entire scheduling period); PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a time period sequence number set. For each device involved in the current crude oil scheduling project, the entire scheduling period is divided into N time periods corresponding to the device, and the sequence numbers of the N time periods constitute the above time period sequence number set; when the crude oil entering the long-distance pipeline in the sth time period begins to leave the pipeline in the s'th time period, bsopl s,s′,p =1, otherwise, bsopl s,s′,p =0.

[0110] FUPL s′,p It can be a known parameter or an unknown variable. When the mixed integer programming model is a mixed integer linear programming model, FUPL s′,p are known parameters. When the above mixed integer programming model is a mixed integer nonlinear programming model, FUPL s′,p is an unknown variable and can be obtained by solving the model.

[0111] For example, the entire scheduling period is divided into 15 time periods corresponding to the device, and the serial numbers of the 15 time periods constitute a time period serial number set, that is, N=15, SL={1,2,3,…,15}.

[0112] In the above equations (1) to (4), when bsopl s,s′,p =1, that is, when the crude oil entering the long-distance pipeline p in the sth time period begins to leave the long-distance pipeline p in the s′th time period, the starting time tsopl of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p s,p Equal to the start time tsipl of the long-distance pipeline p in the s′th time period s′,p Adding the delivery time of part of the incoming oil in the s′th time period, this part of the incoming oil can just completely push out the crude oil that entered the long-distance pipeline p before the sth time period, and its volume is or VUPL p .

[0113] In addition, the mixed integer programming model in the present disclosure is represented based on a unit-specific event time representation method, but is not limited to this method. For example, a global time representation method may also be used.

[0114] For example, according to the above operation rule (A2), the constraints shown in the following equations (5) to (8) can be constructed:

[0115]

[0116]

[0117]

[0118]

[0119] Among them, teopl s,p is a continuous variable, indicating the end time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the long-distance pipeline p in the s′th time period, beopl s,s′,p =1, otherwise, beopl s,s′,p =0.

[0120] In the above equations (5) to (8), when beopl s,s′,p =1, that is, the time teopl when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the pipeline in the s′th time period is the time when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the pipeline s,p Equal to the start time tsipl of the s′th time period of the long-distance pipeline p s′,p , plus the delivery time of part of the incoming oil in the s′th time period, this part of the incoming oil can just completely push out the crude oil entering the long-distance pipeline p in the sth time period, and its volume is equal to or VUPL p .

[0121] For example, according to the above operation rule (A3), the constraint term shown in the following equation (9) can be constructed:

[0122]

[0123] Among them, vipl s,p is a continuous variable, indicating the transport capacity of 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; tsipl s,p Indicates the start time of the sth time period of the long-distance pipeline p; teipl s,p Indicates the end time of the sth time period of the long-distance pipeline p.

[0124] For example, according to the above operation rule (A4), the constraints shown in the following equations (10) and (11) can be constructed:

[0125]

[0126]

[0127] Among them, vicpl s,p,c is a continuous variable, indicating the volume of crude oil c entering the long-distance pipeline p in the sth time period; vocpl s,p,c is a continuous variable, indicating the volume of crude oil c leaving the long-distance pipeline p in the sth time period; SC represents the set of crude oil types.

[0128] When constructing a mixed integer programming model, the rules for receiving and paying oil from the tanker in the upstream equipment of the long-distance pipeline may include but are not limited to:

[0129] (B1) A tanker can only berth at one berth, and the berth has a capacity of one tanker (i.e., the berth can only be berthed by one tanker at a time);

[0130] (B2) The tanker can only berth and unload oil after arriving at the port;

[0131] (B3) The oil unloading rate of an oil tanker is limited by the capacity of the oil tanker's oil pump.

[0132] According to each operation rule in (B1) to (B3), corresponding constraint items can be constructed respectively.

[0133] For example, according to the above operating rule (B1) that “the tanker can only dock at one berth”, the constraint term shown in the following equation (12) can be constructed:

[0134]

[0135] 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.

[0136] According to the above operating rule (B1) that “the capacity of the berth is one tanker”, the constraint term shown in the following equation (13) can be constructed:

[0137]

[0138] According to the above operation rule (B2), the constraint term shown in the following equation (14) can be constructed:

[0139]

[0140] 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.

[0141] According to the above operation rule (B3), the constraint term shown in the following equation (15) can be constructed:

[0142]

[0143] Among them, vvlbe s,v,b is a continuous variable, indicating the oil unloading volume of tanker v at berth b in the sth time period; tevl s,v is a continuous variable, indicating the end time of the sth time period of the tanker v; tsvl s,v is a continuous variable, indicating the start time of the sth time period of the tanker v; FUUL v is a parameter representing the maximum unloading rate of tanker v.

[0144] When constructing the mixed integer programming model, the rules for receiving and paying oil in the first storage tank may include but are not limited to:

[0145] (C1) The first storage tank cannot perform oil receiving and delivery operations at the same time, wherein the first storage tank is any one of a plant tank, a transfer tank, and a terminal tank;

[0146] (C2) The rate of delivery of oil to the first storage tank is limited by the capacity of the oil pump of the first storage tank;

[0147] (C3) The first storage tank must be left standing for at least the reference time after receiving the oil before it can deliver the oil. If there is no requirement for the first storage tank to stand still, the reference time is 0;

[0148] (C4) the inventory quantity of the first storage tank is between its corresponding preset tank bottom quantity and preset tank capacity and is less than its corresponding safety stock threshold;

[0149] (C5) The first storage tank can only store the corresponding storable oil type, that is, the first storage tank can only store specific oil types;

[0150] (C6) The first storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment. That is, for any first storage tank involved in the current crude oil scheduling project, the first storage tank cannot perform oil receiving and delivery operations at the same time, while different first storage tanks can perform oil receiving and delivery operations at the same time.

[0151] Taking the plant tank as an example, the corresponding constraint items can be constructed according to each operation rule in (C1) to (C6).

[0152] For example, according to the above operation rule (C1), the constraint term shown in the following equation (16) can be constructed:

[0153]

[0154] 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 tanks involved in the current crude oil scheduling project.

[0155] For example, according to the above operation rule (C2), the constraints shown in the following equations (17) and (18) can be constructed:

[0156]

[0157]

[0158] Among them, vplct s,p,j is a continuous variable, indicating the crude oil transportation volume between the long-distance pipeline p and the plant tank j in the sth time period; FUTC p,j is a parameter, which indicates the maximum delivery rate of crude oil from the long-distance pipeline p to the plant tank j; tsct s,j is a continuous variable, indicating the start time of the sth time period of tank j in the plant area; tect s,j is a continuous variable, indicating the end time of the sth time period of plant tank j; vctcd s,j,d is a continuous variable, indicating the volume of crude oil transported between plant tank j and distillation unit d in the sth time period; FUPC j,d is a parameter, which 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.

[0159] According to the above operation rule (C3), the constraint term shown in the following equation (19) can be constructed:

[0160]

[0161] Among them, tect s″′,jis 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 collecting oil in the s″′th time period, bict s″′,j =0.

[0162] According to the above operation rule (C4), the constraints shown in the following equations (20) and (21) can be constructed:

[0163] v s,j ≥VLCT j (20)

[0164] v s,j ≤min(VUCT j , VSCT j ) (twenty one)

[0165] 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.

[0166] According to the above operation rule (C5), the constraint term shown in the following equation (22) can be constructed:

[0167]

[0168] Among them, SC_ST j represents the set of storable oil types corresponding to plant tank j; vcct s,j,c It is a continuous variable, indicating the inventory of crude oil c in plant tank j at the end of the sth time period; SC represents the set of crude oil types.

[0169] According to the above operation rule (C6), the constraints shown in the following equations (23) and (24) can be constructed:

[0170]

[0171]

[0172] 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; DESTj 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.

[0173] When constructing a mixed integer programming model, the oil collection and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include but are not limited to:

[0174] (D1) The distillation unit can only process the corresponding processable oil type, that is, the distillation unit can only process specific suitable oil types;

[0175] (D2) the processing volume of the distillation unit is consistent with its corresponding planned processing volume;

[0176] (D3) The distillation unit operates continuously and uninterruptedly.

[0177] According to each operation rule in (D1) to (D3), corresponding constraint items can be constructed respectively.

[0178] For example, according to the above operation rule (D1), the first constraint term shown in the following equation (25) can be constructed:

[0179]

[0180] 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.

[0181] According to the above operation rule (D2), the first constraint term shown in the following equation (26) can be constructed:

[0182]

[0183] 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.

[0184] According to the above operation rule (D3), the first constraint term shown in the following equation (27) can be constructed:

[0185]

[0186] Among them, tscd s+1,dis a continuous variable, indicating the start time of the s+1th time period of the distillation unit d; tecd s,d It is a continuous variable, indicating the end time of the sth time period of the distillation unit d; NSL is the last time period in SL.

[0187] When constructing a mixed integer programming model, the oil collection and payment operation rules of the non-long-distance pipeline in the upstream equipment of the long-distance pipeline may include but are not limited to:

[0188] (E1) Material balance restrictions for non-long-distance pipelines;

[0189] (E2) Transmission rate limitations of non-long-distance pipelines.

[0190] According to each operation rule in (E1) to (E2), corresponding constraint items can be constructed respectively.

[0191] For example, according to the above operation rule (E1), the first constraint term shown in the following equation (28) can be constructed:

[0192]

[0193] Among them, vizl s,z is a continuous variable, indicating the transport volume of non-long-distance pipeline z in the sth time period, viczl s,z,c is a continuous variable, representing the transportation volume of crude oil c by non-long-distance pipeline z in the sth time period, and ZL is the non-long-distance pipeline involved in the current crude oil scheduling project.

[0194] According to the above operation rule (E2), the first constraint term shown in the following equation (29) can be constructed:

[0195]

[0196] Among them, tezl s,z is a continuous variable, indicating the end time of the sth time period of non-long-distance pipeline z; tszl s,z is a continuous variable, indicating the start time of the sth time period of non-long-distance pipeline z; FUZL z is a parameter, which represents the maximum transmission rate of non-long-distance pipeline z.

[0197] In addition, the above preset goals include at least one of the following:

[0198] Among the downstream equipment of long-distance pipelines, the demurrage of oil tankers is the shortest;

[0199] The second storage tank has the lowest inventory cost, wherein the second storage tank includes at least one of a plant tank in the downstream equipment, a transfer tank in the upstream equipment of the long-distance pipeline, and a dock tank in the upstream equipment;

[0200] Minimum number of feed changes in the distillation unit in the downstream equipment;

[0201] The distillation unit processes crude oil at the lowest cost;

[0202] The number of switching operations for receiving and paying oil in the second storage tank is the least;

[0203] The transportation time of long-distance pipelines is the longest. The purpose is to keep the pipeline running, thereby avoiding pipeline cleaning work caused by pipeline suspension and energy consumption when restarting the pump.

[0204] If the feed of the distillation unit is frequently switched and the feed property is unstable, it will seriously affect the smooth operation of the distillation unit and even the whole plant, and even cause safety accidents; at the same time, the shipping cost is high, the ship demurrage fee is high, and it is not uncommon for the tanker to be demurred for 7 to 10 days. Therefore, in one embodiment, the preset goals may include the shortest demurrage time of the tanker and the least number of feed switching times of the distillation unit, that is, the objective function can be constructed with minimizing the demurrage time of the tanker and the number of feed switching times of the distillation unit as the optimization goal, in order to calculate a safe, stable and economical operation plan.

[0205] For example, according to the preset target, the objective function objective shown in the following equation (30) can be constructed:

[0206]

[0207] Among them, TEDK v is a continuous variable, indicating the departure time of tanker v; w1 and w2 represent optimization weights, both of which are preset values; bccd s,d is a binary variable. When the feed tank switching operation occurs at the beginning of the sth time period in the distillation unit d, bccd s,d =1, when the distillation unit d does not switch the feed tank at the beginning of the sth time period, bccd s,d =0.

[0208] For another example, the preset objectives may include: minimizing the demurrage time of the tanker, minimizing the inventory cost of the plant tank, and minimizing the number of feed switching times of the distillation unit. That is, the objective function may be constructed with minimizing the demurrage time of the tanker, the inventory cost of the plant tank, and the number of feed switching times of the distillation unit as the optimization objectives.

[0209] For example, according to the preset target, the objective function objective shown in the following equation (31) can be constructed:

[0210]

[0211] Among them, w3, w4, and w5 represent optimization weights, which are all preset values; vs-1,j is a continuous variable, indicating the inventory of plant tank j at the end of the s-1th time period; v 0,j Represents the beginning inventory of tank j in the plant area.

[0212] Before solving the mixed integer programming model, it is necessary to obtain the basic information necessary to generate the crude oil transportation plan for the current crude oil scheduling project, including:

[0213] (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.

[0214] Table 1 Basic information of crude oil components to be processed

[0215] Serial number Crude oil name Crude oil code <![CDATA[Density, g / cm 3 > Sulfur content, % Acid value, mgKOH / g 1 Castile A 0.94 1.61 0.47 2 Geno B 0.87 0.29 0.51 3 Sand C 0.87 2.37 0.22 4 Sha Chong D 0.89 2.81 0.24 5 Maya E 0.92 3.69 0.11 6 Basra Light F 0.87 2.92 0.18 7 Espo G 0.84 0.51 0.09 8 Sand Light H 0.86 1.99 0.07 9 Oman I 0.87 1.43 0.47 10 Sudan J 0.91 0.11 3.38 11 Kasaj K 0.87 0.42 0.38 12 Sadun L 0.90 0.83 1.31

[0216] (2) The blending formula of the mixed crude oil is shown in Table 2 below.

[0217] Table 2 Blending formula of mixed crude oil

[0218] Serial number Blended crude oil name Blending components Quality blending ratio Processing equipment name 1 M1 Oman: Sudan 0.8:0.2 CDU1 2 M2 Sadun 1 CDU1 3 M3 Kesaj: Sudan 0.8:0.2 CDU1 4 M4 Espoo: Sudan 0.8:0.2 CDU1 5 M5 Espoo:Kesaj:Sudan 0.6:0.2:0.2 CDU1 6 M6 Oman: Esper: Sudan 0.65:0.15:0.2 CDU1 7 M7 Geno: Sand Light 0.8:0.2 CDU1 8 M8 Sand Light: Castile 0.8:0.2 CDU2 9 M9 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

[0219] (3) The feed upper limit and planned processing rate of the distillation unit are shown in Table 3 below.

[0220] Table 3 Basic information of distillation unit scheduling

[0221] 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

[0222] (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.

[0223] Table 4 Basic information of arriving tankers

[0224] 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 130700

[0225] (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.

[0226] Table 5 Basic information of terminal tank

[0227]

[0228] Table 6 Basic information of transfer tank

[0229] Serial number Tank Name <![CDATA[Preset tank volume, m 3 > <![CDATA[Preset bottom volume of tank, m 3 > Beginning inventory, t Initial oil type 1 LT1 100000 10000 56682 M8 2 LT2 100000 10000 84108 M3 3 LT3 55000 5500 42233 Sadun 4 LT4 100000 10000 28263 M8 5 LT5 100000 10000 12215 Sand 6 LT6 55000 5500 37991 Castile

[0230] Table 7 Basic information of plant tanks

[0231]

[0232] (6) Berth basic information, as shown in Table 8 below.

[0233] Table 8 Berth basic information

[0234] Serial number Berth Name Maximum oil unloading rate, t / h 1 BE 6666

[0235] (7) Basic information of the oil pipeline, as shown in Tables 9 and 10 below.

[0236] Table 9 Basic information of oil-to-oil lines (non-long-distance pipelines)

[0237] Serial number Pipeline Name <![CDATA[Maximum conveying rate, m 3 / h]]> <![CDATA[Minimum conveying rate, m 3 / h]]> 1 ZL 2800 1700

[0238] Table 10 Basic information of long-distance pipelines (including distribution information of initial pipeline oil reserves)

[0239]

[0240] The following is a detailed description of the specific implementation method of solving the mixed integer programming model in S202 to obtain the target operating parameters. Specifically, the mixed integer programming model can be solved according to the data in Tables 1 to 10 to obtain the target operating parameters.

[0241] In addition to the above-mentioned operation rules, the following operation rules can also be considered:

[0242] Terminal tanks can only store component crude oil;

[0243] Transfer tanks can store both component crude oil and mixed crude oil;

[0244] Plant tanks can only store mixed crude oil;

[0245] Crude oil blending operations should be carried out at the entrance of long-distance pipelines or in transfer tanks as much as possible.

[0246] In addition, after solving the mixed integer programming model, a complete crude oil transportation plan can be obtained. Figure 3 to Figure 9 The charts show the tanker unloading plan, terminal tank operation plan, transfer tank operation plan, plant tank operation plan, distillation unit feeding plan, non-long-distance pipeline transportation plan and long-distance pipeline transportation plan respectively. These charts show the crude oil scheduling and production plan for the company from 6:00 on July 1, 2022 to 6:00 on July 11, 2022, a total of 240 hours (i.e. the scheduling time span). Among them, Figure 3 to Figure 9 The numbers in the rectangular box represent the crude oil operation volume (unit: m 3 ), the first letter in the rectangular box indicates the type of oil being operated, and the letter after the type of oil being operated indicates the destination of the crude oil. Figure 8In 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.

[0247] from Fig. 9 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.

[0248] from Figure 3 It can be seen that all tankers started to unload oil after arriving at the port, which complies with the above operating rules (B2).

[0249] Overview Figure 4-Figure 6 , any first storage tank performs oil receiving and delivery operations alternately, which complies with the operation rule that "the first storage tank cannot perform oil receiving and delivery operations at the same time" (that is, the above-mentioned operation rule C1).

[0250] from Figure 4 It can be seen that there were 5 cases where the terminal tank received oil and then delivered oil. The duration of standing still after receiving oil was distributed in the range of 14.95 to 64.05 hours, which was in line with the operating rule that "the terminal tank must stand still for at least the reference time after receiving oil before delivering oil" (i.e. the above-mentioned operating rule C3).

[0251] observe Figure 4 and Fig. 9 , combined with the data in Table 2 above, the long-distance pipeline PL receives crude oil sand light (H) and crude oil Castile (A) from terminal tanks ST4 and ST7 respectively during the period of 2.28 to 20.72 hours to form mixed crude oil M8, which complies with the operating rule of "crude oil blending operation can be performed at the pipeline inlet".

[0252] analyze Figure 7 It can be seen that CDU1 and CDU2 are processed continuously and uninterruptedly during the entire storage and transportation process, which complies with the above-mentioned operating rules (D3).

[0253] analyze Figure 7 The solution found that CDU1 continuously processed M2 without feed switching, and CDU2 also had only two feed switchings. These two feed switchings were caused by limited crude oil resources and a long desalting and dehydration time (i.e., standing time). The analysis process is as follows: If CDU2 processes crude oil M8 first, after deducting the bottom oil in the tank, the existing inventory in the plant tank is only 42,869 tons, which can only support CDU2 processing for 48.99 hours. Because the initial oil inventory of the top-out pipeline PL period (M2: 40,884m 3 , M12: 5116m 3) requires at least 21.90 hours. Even if the crude oil can reach the plant tank from the terminal tank and the transfer tank instantly, due to desalting and dehydration, CDU2 can only continue to process M8 after 69.90 hours at the earliest, that is, CDU2 starts to process M12 after 48.99 hours. The existing crude oil resources (including oil on tankers, storage tank inventory, and long-distance pipeline storage) can blend a maximum of 67,205 tons of M12 for CDU2 to continue processing for 76.81 hours, that is, CDU2 starts to process another crude oil after 125.80 hours. In this case, CDU2 has a total of 2 feed switching. Similarly, if crude oil M12 is processed first, CDU2 will also have at least 2 feed switching. The long-distance pipeline transportation operation of the model scheme is reasonable, which can coordinate the processing needs of the two distillation units and ensure stable production of the unit.

[0254] analyze Figure 3 The solution found that the four tankers could unload their crude oil at the maximum rate immediately after arriving at the port, without causing the tanker delay due to insufficient available storage tanks. In this case, the arrival time of the tankers was densely distributed, with two tankers (V1 and V2) arriving in the first 49 hours. The total oil capacity of these two tankers was 250,661 m 3 , 6 empty tanks are needed to hold all the purchased crude oil. The model makes full use of the transfer tanks and plant tank resources, quickly empties the terminal tanks, and finally realizes the rapid unloading of oil from the tanker.

[0255] It should be noted that due to the precision setting of the mixed integer programming model, Figure 3 to Figure 9 The amount of oil delivered may be no more than 10m 3 When setting a higher model accuracy, the error can be reduced.

[0256] According to the above analysis, the model is reasonably constructed and can calculate the crude oil transportation plan that meets the operating rules within 3 minutes, forming the core technology of crude oil transportation.

[0257] Fig.10 FIG. 1 is a block diagram of a crude oil transportation device according to an exemplary embodiment. Fig.10 As shown, the device 300 includes:

[0258] A model building module 301 is used to build a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, wherein the long-distance pipeline has the characteristic of delayed delivery;

[0259] The model solving module 302 is used to solve the mixed integer programming model to obtain target operating parameters, wherein the target operating parameters include the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

[0260] In the above technical scheme, first, according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, a mixed integer programming model is constructed, wherein the long-distance pipeline has the characteristic of delayed delivery; the mixed integer programming model is solved to obtain the target operation parameters (i.e., the crude oil delivery plan), wherein the target operation parameters include the operation parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period. In this way, the crude oil delivery 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 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 delivery problems. In addition, the present disclosure can solve the transportation problem of crude oil in the long-distance pipeline and realize the efficient transportation of crude oil in the long-distance pipeline. Crude oil is usually corrosive, and if it stays in the long-distance pipeline for a long time, it will corrode the pipeline. Therefore, the present disclosure can solve the technical problem of inhibiting the corrosion of the long-distance pipeline.

[0261] Optionally, the oil collection and payment operation rules of the long-distance pipeline include:

[0262] The restriction on the start time of the crude oil leaving the long-distance pipeline;

[0263] The limit of the end time of the crude oil leaving the long-distance pipeline;

[0264] The transmission rate limit of the long-distance pipeline;

[0265] Material balance constraints of the long-distance pipeline;

[0266] The start time restriction and the end time restriction are both determined based on the characteristics of the delayed delivery.

[0267] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0268] The model building module 301 includes:

[0269] The first construction submodule is used to construct the following constraint items according to the restriction of the start time when the crude oil leaves the long-distance pipeline:

[0270]

[0271]

[0272]

[0273]

[0274] Among them, tsopl s,pis a continuous variable, indicating the start time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline in the sth time period begins to leave the pipeline in the s'th time period, bsopl s,s′,p =1, otherwise, bsopl s,s′,p =0.

[0275] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0276] The model building module 301 includes:

[0277] The second construction submodule is used to construct the following constraint items according to the restriction of the end time when the crude oil leaves the long-distance pipeline:

[0278]

[0279]

[0280]

[0281]

[0282] Among them, teopl s,p is a continuous variable, indicating the end time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the long-distance pipeline p in the s'th time period, beopls,s′,p =1, otherwise, beopl s,s′,p =0.

[0283] Optionally, the oil receiving and delivery operation rules of the non-long-distance pipeline in the upstream equipment of the long-distance pipeline include:

[0284] Material balance restrictions for non-long-distance pipelines;

[0285] The transmission rate of the non-long-distance pipeline is limited.

[0286] Optionally, the oil receiving and delivery operation rules of the oil tanker in the upstream equipment of the long-distance pipeline include:

[0287] The tanker can only berth at one berth, and the capacity of the berth is one tanker;

[0288] The oil tanker can only berth and unload oil after arriving at the port;

[0289] The oil unloading rate of the tanker is limited by the capacity of the tanker's oil pump;

[0290] The rules for receiving and paying oil at the first storage tank include:

[0291] The first storage tank cannot perform oil receiving and delivery operations at the same time, wherein the first storage tank is any one of a plant tank in the downstream equipment of the long-distance pipeline, a transfer tank in the upstream equipment of the long-distance pipeline, and a terminal tank in the upstream equipment;

[0292] The oil receiving and disbursement rate of the first storage tank is limited by the capacity of the oil pump of the first storage tank;

[0293] The first storage tank must be left to stand for at least a reference period of time after receiving the oil before it can deliver the oil;

[0294] The inventory quantity of the first storage tank is between its corresponding preset tank bottom quantity and preset tank capacity, and is less than its corresponding safety inventory threshold;

[0295] The first storage tank can only store the corresponding storable oil type;

[0296] The first storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment;

[0297] The oil receiving and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include:

[0298] The distillation unit can only process the corresponding processable oil;

[0299] The processing volume of the distillation device is consistent with its corresponding planned processing volume;

[0300] The distillation apparatus operates continuously and without interruption.

[0301] Optionally, the mixed integer programming model includes an objective function and constraint terms;

[0302] The 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:

[0303] The constraint items are constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment;

[0304] Based on the preset goal, construct the objective function;

[0305] The preset target includes at least one of the following:

[0306] Among the downstream equipment of the long-distance pipeline, the demurrage duration of the oil tanker is the shortest;

[0307] The second storage tank has the lowest inventory cost, wherein the second storage tank includes at least one of a plant tank in the downstream equipment, a transfer tank in the upstream equipment of the long-distance pipeline, and a dock tank in the upstream equipment;

[0308] The number of feed switching times of the distillation unit in the downstream equipment is minimal;

[0309] The distillation unit has the lowest cost for processing crude oil;

[0310] The number of switching operations of receiving and paying oil in the second storage tank is the least;

[0311] The long-distance pipeline has the longest transportation time.

[0312] 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.

[0313] In addition, 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 above-mentioned crude oil delivery method provided by the present disclosure.

[0314] Fig.11 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Fig.11 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.

[0315] 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.

[0316] 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.

[0317] 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.

[0318] Fig.12 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.12 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.

[0319] 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.

[0320] 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.

[0321] 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.

[0322] 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.

[0323] 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.

[0324] 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: A mixed integer programming model is constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, wherein the long-distance pipeline has the characteristic of delayed delivery; The mixed integer programming model is solved to obtain target operating parameters, wherein the target operating parameters include operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

2. The method according to claim 1, characterized in that The oil receiving and payment operation rules of the long-distance pipeline include: The restriction on the start time of the crude oil leaving the long-distance pipeline; The limit of the end time of the crude oil leaving the long-distance pipeline; The transmission rate limit of the long-distance pipeline; Material balance constraints of the long-distance pipeline; The start time restriction and the end time restriction are both determined based on the characteristics of the delayed delivery.

3. The method according to claim 2, characterized in that The mixed integer programming model includes an objective function and constraint terms; The 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 restriction on the start time of the crude oil leaving the long-distance pipeline, the following constraints are constructed: Among them, tsopl s,p is a continuous variable, indicating the start time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline in the sth time period begins to leave the pipeline in the s'th time period, bsopl s,s′,p =1, otherwise, bsopl s,s′,p =0.

4. The method according to claim 2, characterized in that: The mixed integer programming model includes an objective function and constraint terms; The 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 restriction of the end time of the crude oil leaving the long-distance pipeline, the following constraints are constructed: Among them, teopl s,p is a continuous variable, indicating the end time of the crude oil entering the long-distance pipeline p in the sth time period leaving the long-distance pipeline p; tsipl s′,p is a continuous variable, indicating the start time of the s′th time period of the long-distance pipeline p; VUPL p is the volume of the long-distance pipeline p; vipl s″,p is a continuous variable, indicating the transport capacity of the long-distance pipeline p in the s″th time period; FUPL s′,p represents the transportation rate of the long-distance pipeline p in the s'th time period; LP is a parameter, which represents the scheduling time span of the current crude oil scheduling project; PL represents the long-distance pipeline involved in the current crude oil scheduling project; SL is a set of time period numbers; when the crude oil entering the long-distance pipeline p in the sth time period completely leaves the long-distance pipeline p in the s'th time period, beopl s,s′,p =1, otherwise, beopl s,s′,p =0.

5. The method according to any one of claims 1 to 4, characterized in that The oil receiving and delivery operation rules of the non-long-distance pipeline in the upstream equipment of the long-distance pipeline include: Material balance restrictions for non-long-distance pipelines; The transmission rate of the non-long-distance pipeline is limited.

6. The method according to any one of claims 1 to 4, 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 oil unloading rate of the tanker is limited by the capacity of the tanker's oil pump; The rules for receiving and paying oil at the first storage tank include: The first storage tank cannot perform oil receiving and delivery operations at the same time, wherein the first storage tank is any one of a plant tank in the downstream equipment of the long-distance pipeline, a transfer tank in the upstream equipment of the long-distance pipeline, and a terminal tank in the upstream equipment; The oil receiving and disbursement rate of the first storage tank is limited by the capacity of the oil pump of the first storage tank; The first storage tank must be left to stand for at least a reference period of time after receiving the oil before it can deliver the oil; The inventory quantity of the first storage tank is between its corresponding preset tank bottom quantity and preset tank capacity, and is less than its corresponding safety inventory threshold; The first storage tank can only store the corresponding storable oil type; The first storage tank can only receive oil from its corresponding upstream equipment and deliver oil to its corresponding downstream equipment; The oil receiving and payment operation rules of the distillation unit in the downstream equipment of the long-distance pipeline include: The distillation unit can only process the corresponding processable oil; The processing volume of the distillation device is consistent with its corresponding planned processing volume; The distillation apparatus operates continuously and without interruption.

7. The method according to any one of claims 1 to 4, characterized in that The mixed integer programming model includes an objective function and constraint terms; The 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: The constraint items are constructed according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment; Based on the preset goal, construct the objective function; The preset target includes at least one of the following: Among the downstream equipment of the long-distance pipeline, the demurrage duration of the oil tanker is the shortest; The second storage tank has the lowest inventory cost, wherein the second storage tank includes at least one of a plant tank in the downstream equipment, a transfer tank in the upstream equipment of the long-distance pipeline, and a 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 second storage tank is the least; The long-distance pipeline has the longest transportation time.

8. A crude oil transportation device, characterized in that: include: A model building module is used to build a mixed integer programming model according to the oil collection and payment operation rules of the long-distance pipeline and its upstream and downstream equipment, wherein the long-distance pipeline has the characteristic of delayed delivery; The model solving module is used to solve the mixed integer programming model to obtain target operating parameters, wherein the target operating parameters include the operating parameters of the long-distance pipeline and its upstream and downstream equipment during the entire scheduling period.

9. 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 7 are implemented.

10. 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 7.