Method and device for compiling oil pipeline network pipeline transportation plan chart control
Calculating and adjusting the oil pipeline network plan through the graph control method solves the problems of low efficiency and difficulty in taking into account constraints during manual preparation, achieves a more efficient and scientific pipeline transportation plan preparation, and ensures the stability of the pipeline network.
Patent Information
- Application Number
- CN202010373965.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-05-06
AI Technical Summary
In the existing technology, manual preparation of oil pipeline network plans is inefficient and economical, and it is difficult to take into account various constraints, resulting in risks of tank overflow or oil shortage during pipeline transportation.
Through the graph control method, based on the initial oil batch plan data table and station tank capacity data table, calculate the vacancies and draw the pipeline transportation plan line and tank inventory change curve, adjust the plan until the upper and lower limit constraints of the tank capacity are met, and determine the final pipeline transportation plan.
It improves the timeliness and scientificity of pipeline transportation plan preparation, reduces manual labor intensity, and ensures the hydraulic stability of the pipeline network and the satisfaction of constraints.
Smart Images

Figure CN113626112B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for compiling a pipeline transportation plan control diagram for an oil pipeline network. Background Art
[0002] In order to meet the market or refinery demand for oil types, the finished oil / crude oil pipeline network will use sequential transportation technology to transport oil products. Sequential transportation refers to the continuous transportation of several oil products in a certain order in the same pipeline. The oil transportation operation plan is the basis for guiding pipeline operation management. In order to complete the distribution task well, business personnel must prepare a reasonable batch plan for sequential transportation in advance. However, the formulation of oil transportation operation plans is a tedious, complex and continuous task. When manually formulating plans, not only must the impact of many constraints be comprehensively considered, but also in order to meet the emergency response of emergencies during pipeline transportation, the plan must be highly timely in order to better provide guidance for various oil depots, oil stations and pipeline operations. Due to the complex and strict constraints on plan preparation and the frequent emergencies in the actual operation process, manual planning is inevitably inefficient and economical, and cannot take into account the overall situation. Summary of the invention
[0003] In view of the problems existing in the prior art, an embodiment of the present invention provides a method, device, electronic device and storage medium for compiling a pipeline transportation plan chart control for an oil pipeline network.
[0004] In a first aspect, an embodiment of the present invention provides a method for compiling a pipeline network transportation plan control diagram, comprising:
[0005] Determine the initial oil product batch plan data table according to the preset business requirements; wherein the initial oil product batch plan data table includes the following mandatory items: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuating flow rate and total amount of different oil product batches;
[0006] Setting corresponding tank capacity information for each station in the initial oil product batch planning data table to obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station;
[0007] According to the initial oil product batch planning data table and the station tank capacity data table, the missing items in the initial oil product batch planning table are calculated, and a pipeline transportation planning line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station are drawn;
[0008] Determine whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, determine the final pipeline plan based on the pipeline plan line. Otherwise, adjust the pipeline plan line until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and determine the final pipeline plan based on the adjusted pipeline plan line.
[0009] Further, according to the initial oil product batch planning data table and the station tank capacity data table, the missing items in the initial oil product batch planning table are calculated, and a pipeline transportation planning line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station are drawn, specifically including:
[0010] The initial oil product batch plan data table and the station tank capacity data table are sequentially loaded into the system, and the system background program automatically calculates the missing items in the initial oil product batch plan data table, and displays all the calculation results in the plan data display area, and displays the calculation results in the graphic display area;
[0011] Among them, when loading the station tank capacity data table, it is necessary to fill in the information of the existing oil products in the current pipeline. When filling in, the oil type and total amount of oil products should be filled in in order from near to far from the receiving station.
[0012] Furthermore, the system background program automatically calculates the missing items in the initial oil product batch plan data table, specifically including:
[0013] When the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to completely transport the batch of oil products to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; when the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, the oil products cannot be completely transported to the receiving station, then the receiving time of the oil products is the estimated data, wherein the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font in the plan data display area; wherein the preset value is the pipeline volume of the corresponding pipe section.
[0014] Further, the pipeline transportation plan line is adjusted until the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint lines, and the adjusted pipeline transportation plan line is used as the final pipeline transportation plan, specifically including:
[0015] The start time, end time and total amount of oil products of different oil product batches are adjusted by dragging the pipeline transportation plan line with a mouse, or the flow rate, start time, end time and total amount of oil products of different oil product batches are manually input in a pop-up dialog box by clicking on the pipeline transportation plan line, and whether the tank inventory change curve corresponding to the adjusted pipeline transportation plan line meets the constraint conditions of the upper and lower limit constraint lines of the tank capacity is judged, if so, the adjusted pipeline transportation plan line is used as the final pipeline transportation plan, otherwise, the steps of adjusting the start time, end time and total amount of oil products of different oil product batches by dragging the pipeline transportation plan line with a mouse, or manually inputting the flow rate, start time, end time and total amount of oil products of different oil product batches in a pop-up dialog box by clicking on the pipeline transportation plan line until the tank inventory change curve meets the constraint conditions of the upper and lower limit constraint lines of the tank capacity;
[0016] Among them, when adjusting the pipeline plan line, the following principles are followed: under the condition of meeting the total pipeline transportation requirements, ensure that the tank inventory change curve meets the constraints of the upper and lower limit constraints of the tank capacity, and achieve a smaller batch quantity to ensure the hydraulic stability of the pipeline network.
[0017] Furthermore, the pipeline planning lines representing the pipeline transportation status of different oil batches are represented by thick solid lines of different colors; the tank inventory change curves of each station are consistent with the color of the oil batches and are represented by thin solid lines; the upper and lower limit constraints of the tank capacity of each station are represented by thin red dotted lines.
[0018] In a second aspect, an embodiment of the present invention provides a device for compiling a pipeline transportation plan chart control for an oil pipeline network, comprising:
[0019] The first determination module is used to determine the initial oil product batch plan data table according to the preset business requirements; wherein the initial oil product batch plan data table includes the following mandatory items: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuation flow and total amount of different oil product batches;
[0020] The second determination module is used to set corresponding tank capacity information for each station in the initial oil product batch planning data table, and obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station;
[0021] A drawing module is used to calculate the missing items in the initial oil product batch plan table according to the initial oil product batch plan data table and the station tank capacity data table, and draw a pipeline transportation plan line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station; wherein the missing items include: one or more of the following: final transportation time, start receiving time, end receiving time, arrival time at an intermediate station, departure time at an intermediate station, start stop transportation time, and end stop transportation time;
[0022] The judgment module is used to judge whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, the final pipeline transportation plan is determined according to the pipeline transportation plan line; otherwise, the pipeline transportation plan line is adjusted until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and the final pipeline transportation plan is determined according to the adjusted pipeline transportation plan line.
[0023] Furthermore, the drawing module is specifically used for:
[0024] The initial oil product batch plan data table and the station tank capacity data table are sequentially loaded into the system, and the system background program automatically calculates the missing items in the initial oil product batch plan data table, and displays all the calculation results in the plan data display area, and displays the calculation results in the graphic display area;
[0025] Among them, when loading the station tank capacity data table, it is necessary to fill in the information of the existing oil products in the current pipeline. When filling in, the oil type and total amount of oil products should be filled in in order from near to far from the receiving station.
[0026] Furthermore, when the system background program in the drawing module automatically calculates the vacant items that need to be filled in the initial oil product batch plan data table, it is specifically used to:
[0027] When the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to transport the oil products completely to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; when the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, the oil products cannot be completely transported to the receiving station, then the receiving time of the oil products is the estimated data, wherein the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font in the plan data display area; wherein the preset value is the pipeline volume of the corresponding pipe section.
[0028] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for compiling a pipeline transportation plan diagram control for an oil pipeline network as described in the first aspect above are implemented.
[0029] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for compiling a pipeline transportation plan diagram control for an oil pipeline network as described in the first aspect above.
[0030] The method and device for compiling a pipeline transportation plan chart control for an oil pipeline network provided by an embodiment of the present invention calculates the missing items in the initial oil batch plan table according to the initial oil product batch plan data table and the station tank capacity data table, and draws a pipeline transportation plan line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraints of the tank capacity at each station, and then adjusts the pipeline transportation plan line by judging whether the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint line until the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint line, and finally determines the final pipeline transportation plan according to the adjusted pipeline transportation plan line. It can be seen from this that the embodiment of the present invention can assist business personnel in compiling a pipeline transportation plan for sequential transportation of finished oil / crude oil pipelines through chart control optimization, reduce manual labor intensity, solve the problem of taking into account various constraints, and improve the timeliness and scientificity of pipeline transportation plan compilation. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic diagram of a flow chart of a method for compiling a pipeline transportation plan diagram for an oil pipeline network provided in one embodiment of the present invention;
[0033] Figure 2 A schematic diagram of the distribution of an oil pipeline network provided in one embodiment of the present invention;
[0034] Figure 3 A schematic diagram of the structure of a device for compiling a pipeline transportation plan diagram for an oil pipeline network provided by an embodiment of the present invention;
[0035] Figure 4 FIG. 4 is a schematic diagram of the physical structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Figure 1 A flow chart of a method for compiling a pipeline transportation plan control diagram for an oil pipeline network provided by an embodiment of the present invention; Figure 1 As shown, the method includes:
[0038] Step 101: Determine the initial oil product batch planning data table according to preset business requirements; wherein the initial oil product batch planning data table includes the required items: batch number of different oil product batches, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuating flow rate and total amount.
[0039] In this step, the preset business requirements specify the oil product batch plan, and the initial oil product batch plan data table can be determined based on the oil product batch plan. In this step, the initial oil product batch plan data table must at least include the batch number of different oil product batches, the name of the external transmission station, the name of the intermediate station, the name of the receiving station, the name of the oil type, the start time of transmission, the transportation time, the fluctuating flow rate and the total amount. In addition, in a preferred implementation, the initial oil product batch plan data table can also include more complete information, such as: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, mixed oil ratio, start time of transmission, end time of transmission, transportation time, flow rate, total amount, start receiving time, end receiving time, arrival time at the intermediate station, departure time from the intermediate station, start stop time, and end stop time.
[0040] In this step, the delivery time includes the fluctuation time, which refers to the time period from fluctuation to stability after switching the oil product, and this time period is evenly divided into several moments; the fluctuation flow refers to the actual flow corresponding to the fluctuation time. If the start-up time of the two batches of oil products is not continuous, both batches need to fill in the start-up time, otherwise, the subsequent batches do not need to fill in, and the system will automatically calculate the final delivery time based on the previous batch of oil products as the start-up time of the subsequent batch of oil products.
[0041] In this step, for ease of understanding, the structure of the initial oil product batch planning data table can be shown in Table 1 below.
[0042] Table 1 Initial oil batch planning data table
[0043]
[0044]
[0045]
[0046] Step 102: Set corresponding tank capacity information for each station in the initial oil product batch planning data table to obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station.
[0047] In this step, corresponding tank capacity information is set for each station in the initial oil batch planning data table to obtain a station tank capacity data table, which includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station. For ease of understanding, the station tank capacity data table can be shown in Table 2 below.
[0048] Table 2 Station tank capacity data table
[0049] Station Storage oil Tank capacity limit Tank capacity lower limit Current Inventory Station A Oil Type 1 250000 2000 250000 Station A Oil Type 2 250000 2000 250000 Station D Oil Type 1 75000 23000 70000 Station D Oil Type 2 87000 25000 850000 Station E Oil Type 1 130000 32000 40000 Station E Oil Type 2 170000 50000 50000
[0050] Step 103: According to the initial oil product batch planning data table and the station tank capacity data table, the missing items in the initial oil product batch planning table are calculated, and a pipeline transportation planning line is drawn to represent the pipeline transportation status of different oil product batches, a tank inventory change curve is drawn to represent the change of tank inventory at each station, and tank capacity upper and lower limit constraint lines are drawn to represent the upper and lower limit constraint conditions of the tank capacity at each station.
[0051] In this step, the missing items include: one or more of the final delivery time, the start receiving time, the end receiving time, the arrival time at the intermediate station, the departure time at the intermediate station, the start stop delivery time and the end stop delivery time. The system sequentially loads the initial oil batch planning data table and the station tank capacity data table. The system background program will automatically calculate the missing items in the initial oil batch planning table (such as the start receiving time, the end receiving time, the arrival time at the intermediate station, the departure time at the intermediate station, etc.), and obtain Table 3, and display all the calculation results in the plan data display area, and display them in the graphic display area. When loading the station tank capacity data table, it is necessary to fill in the existing oil product information in the current pipeline. When filling in, the oil type and the total amount of oil products should be filled in in order from near to far from the receiving station.
[0052] 1) Supplementary description of the graphic display area:
[0053] Horizontal axis: planning time.
[0054] Vertical coordinate; main coordinate: stations along the line; secondary coordinate: tank capacity data of various types of oil at the stations, the upper and lower limits of the coordinates are the upper and lower limits of the tank capacity respectively.
[0055] Thick solid lines of different colors represent different batches of oil products, and the thick lines across the horizontal axis represent the time when the batch of oil products is transported or received outside a certain station.
[0056] The blank spaces between the thick solid lines indicate that the entire line is in a state of suspension during that period of time.
[0057] Thick dotted lines of different colors indicate that different batches of oil products are in a stopped receiving state at a certain receiving station during that period of time.
[0058] The thin red dashed lines represent the upper and lower limits of the tank capacity.
[0059] The solid curves with the same color as the coordinates of the tank capacity of various oil products at the station represent the changes in the tank inventory of the oil product over time.
[0060] 2) Calculation instructions:
[0061] When the system is calculating in the background, if the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to transport the oil products to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; if the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, it is impossible to transport the oil products to the receiving station completely, then the receiving time of the oil products is the estimated data, and the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font (the red font is represented by bold italics in Table 3 below), and the preset value is the pipeline volume of the pipeline.
[0062] Table 3 Oil product batch planning data table to supplement the missing items
[0063]
[0064]
[0065] Step 104: Determine whether the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, determine the final pipeline transportation plan according to the pipeline transportation plan line. Otherwise, adjust the pipeline transportation plan line until the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint lines, and determine the final pipeline transportation plan according to the adjusted pipeline transportation plan line.
[0066] In this step, the rationality of the plan is determined by whether the tank inventory change curve representing the tank inventory in the current initial plan diagram exceeds the upper and lower limits of the tank capacity. If it exceeds the upper limit, it means that the current plan has a risk of tank overflow, and if it exceeds the lower limit, it means that the current plan has a risk of oil shortage. Business personnel can drag the thick solid line representing the batch of oil products with the mouse to adjust its start time and end time, or click on the thick solid line to manually enter the flow rate, start time, and end time information in the pop-up dialog box. The system will automatically recalculate other information, obtain the modified plan, and draw the drawing. When the business personnel adjust the plan to be reasonable through the chart control, save the batch plan and export the plan.
[0067] It can be seen from the above technical scheme that the method for compiling a pipeline transportation plan chart control for an oil pipeline network provided by the embodiment of the present invention calculates the missing items in the initial oil batch plan table according to the initial oil batch plan data table and the station tank capacity data table, and draws a pipeline transportation plan line for representing the pipeline transportation status of different oil batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraints of the tank capacity at each station, and then the pipeline transportation plan line can be adjusted by judging whether the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint line until the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint line, and finally the final pipeline transportation plan can be determined according to the adjusted pipeline transportation plan line. It can be seen from this that the embodiment of the present invention can assist business personnel in compiling a pipeline transportation plan for sequential transportation of finished oil / crude oil pipelines through chart control optimization, reduce manual labor intensity, solve the problem of taking into account various constraints, and improve the timeliness and scientificity of pipeline transportation plan compilation.
[0068] On the basis of the above embodiment, in this embodiment, step 103 calculates the missing items in the initial oil product batch plan table according to the initial oil product batch plan data table and the station tank capacity data table, and draws a pipeline transportation plan line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station, specifically including:
[0069] The initial oil product batch plan data table and the station tank capacity data table are sequentially loaded into the system, and the system background program automatically calculates the missing items in the initial oil product batch plan data table, and displays all the calculation results in the plan data display area, and displays the calculation results in the graphic display area;
[0070] Among them, when loading the station tank capacity data table, it is necessary to fill in the information of the existing oil products in the current pipeline. When filling in, the oil type and total amount of oil products should be filled in in order from near to far from the receiving station.
[0071] The method for compiling a pipeline network transportation plan graphic control provided by an embodiment of the present invention is that the background system automatically calculates the blank items that need to be filled in the initial oil product batch plan data table according to the initial oil product batch plan data table and the station tank capacity data table, and displays all the calculation results in the plan data display area, and at the same time displays the calculation results in a graphic display area, so that business personnel can judge whether the corresponding tank inventory change curve meets the upper and lower limit constraints of the tank capacity by adjusting the pipeline plan lines representing the pipeline status of different oil product batches, so that a suitable pipeline plan can be determined more conveniently, thereby solving the trouble of manually setting the pipeline plan.
[0072] It should be noted that when adjusting the pipeline plan line, the following principles are followed: Under the condition of meeting the total pipeline transportation requirements, ensure that the tank inventory change curve meets the constraints of the upper and lower limit constraints of the tank capacity, and achieve a smaller batch quantity to ensure the hydraulic stability of the pipeline network.
[0073] Based on the above embodiment, the system background program automatically calculates the missing items in the initial oil product batch plan data table, specifically including:
[0074] When the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to transport the oil products completely to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; when the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, the oil products cannot be completely transported to the receiving station, then the receiving time of the oil products is the estimated data, wherein the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font in the plan data display area; wherein the preset value is the pipeline volume of the corresponding pipe section.
[0075] In this embodiment, when calculating the blank items that need to be filled in the initial oil product batch planning data table, accurate data and estimated data are calculated respectively according to different situations, so that the calculated oil product receiving time is more practical.
[0076] Based on the above embodiment, the method further includes:
[0077] The pipeline plan lines representing the pipeline transportation status of different oil batches are represented by thick solid lines of different colors; the tank inventory change curves of each station are consistent with the color of the oil batches and are represented by thin solid lines; the upper and lower limit constraints of the tank capacity of each station are represented by thin red dotted lines.
[0078] The method for compiling a pipeline transportation plan chart control for an oil pipeline network provided in an embodiment of the present invention uses different colors to distinguish different batches of oil products, and uses different lines to distinguish pipeline transportation plan lines and tank inventory change curves, thereby facilitating operations for business personnel.
[0079] In order to better understand the present invention, the content of the present invention is further described below in conjunction with the embodiments, but the present invention is not limited to the following embodiments.
[0080] The distribution of a certain oil pipeline network is as follows Figure 2 As shown, oil tanks are installed at the first station A, receiving station D and receiving station E. Four types of oil, oil type 1, oil type 2, oil type 3 and oil type 4, are transported.
[0081] S1: Fill in the initial plan according to the "Batch Plan - Oil Batch" template data sheet, as shown in Table 1.
[0082] S2: Fill in the tank capacity information of each station according to the “Batch Plan-Station Tank Capacity” template data sheet, as shown in Table 2.
[0083] S3: The system loads two template data tables, "Batch Plan - Oil Product Batch" and "Batch Plan - Station Tank Capacity" in sequence, and the system's acquired program will automatically calculate other missing items in the batch plan table.
[0084] S4: According to whether the curve representing the tank inventory in the current initial plan diagram exceeds the upper and lower limits of the tank capacity, adjust the plan by dragging the position and length of the thick solid lines representing the four oil products with the mouse, or click the thick solid lines to modify the oil product information such as the start time, flow rate, and total amount in the dialog box, until the tank inventory curve in the diagram is within the upper and lower limits of the tank capacity. The plan is determined as the final plan. The plan results are shown in Table 3.
[0085] S5: Export the plan and complete the optimization and compilation of the oil pipeline network planning chart control.
[0086] It can be seen that the method for optimizing the preparation of a pipeline transportation plan for a pipeline network provided in this embodiment assists business personnel in preparing a pipeline transportation plan for sequential transportation of finished oil / crude oil pipelines through optimization of the chart control, thereby reducing the intensity of manual labor, solving the problem of balancing various constraints, and improving the timeliness and scientificity of the preparation of the pipeline transportation plan.
[0087] Figure 3 A schematic diagram of the structure of a device for compiling a pipeline transportation plan diagram for an oil pipeline network according to an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device includes: a first determination module 301, a second determination module 302, a drawing module 303 and a judgment module 304, wherein:
[0088] The first determination module 301 is used to determine the initial oil product batch plan data table according to the preset business requirements; wherein the initial oil product batch plan data table includes the following mandatory items: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuation flow and total amount of different oil product batches;
[0089] The second determination module 302 is used to set corresponding tank capacity information for each station in the initial oil product batch planning data table, and obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station;
[0090] The drawing module 303 is used to calculate the missing items in the initial oil product batch plan table according to the initial oil product batch plan data table and the station tank capacity data table, and draw the pipeline transportation plan line for representing the pipeline transportation status of different oil product batches, the tank inventory change curve for representing the change of the tank inventory of each station, and the tank capacity upper and lower limit constraint lines for representing the upper and lower limit constraint conditions of the tank capacity of each station; wherein the missing items include: one or more of the final transportation time, the start receiving time, the end receiving time, the arrival time at the intermediate station, the departure time from the intermediate station, the start stop transportation time and the end stop transportation time;
[0091] The judgment module 304 is used to judge whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, the final pipeline transportation plan is determined according to the pipeline transportation plan line; otherwise, the pipeline transportation plan line is adjusted until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and the final pipeline transportation plan is determined according to the adjusted pipeline transportation plan line.
[0092] The oil pipeline network transportation plan graphic control compilation device provided in the embodiment of the present invention can be specifically used to execute the oil pipeline network transportation plan graphic control compilation method described in the above embodiment. Its technical principles and beneficial effects are similar. Please refer to the above embodiment for details and will not be repeated here.
[0093] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, see Figure 4 , the electronic device specifically includes the following contents: a processor 410, a communication interface 420, a memory 430 and a communication bus 440;
[0094] Among them, the processor 410, the communication interface 420, and the memory 430 complete mutual communication through the bus 440; the communication interface 420 is used to realize information transmission between various modeling software and intelligent manufacturing equipment module libraries and other related equipment; the processor 410 is used to call the computer program in the memory 430, and the processor implements the methods provided by the above-mentioned method embodiments when executing the computer program. For example, when the processor executes the computer program, it implements the following steps: determine the initial oil batch plan data table according to preset business requirements; wherein the initial oil batch plan data table includes mandatory items: batch number, external transmission station name, intermediate station name, receiving station name, oil type name, start time, delivery time, fluctuating flow rate and total amount of different oil batches; set corresponding tank capacity information for each station in the initial oil batch plan data table to obtain a station tank capacity data table corresponding to the initial oil batch plan data table; wherein the station tank capacity data table The data table includes the station name, storage oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station; according to the initial oil batch plan data table and the station tank capacity data table, the missing items in the initial oil batch plan table are calculated, and a pipeline plan line for representing the pipeline transportation status of different oil batches, a tank inventory change curve for representing the change of tank inventory of each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraints of the tank capacity of each station are drawn; wherein the missing items include: one or more of the final transportation time, the start receiving time, the end receiving time, the arrival time at the intermediate station, the departure time from the intermediate station, the start stop time and the end stop time; it is judged whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, if so, the final pipeline plan is determined according to the pipeline plan line, otherwise, the pipeline plan line is adjusted until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and the final pipeline plan is determined according to the adjusted pipeline plan line.
[0095] Based on the same inventive concept, another embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the methods provided by the above-mentioned method embodiments, for example, determining an initial oil product batch planning data table according to preset business requirements; wherein the initial oil product batch planning data table includes required items: batch number, name of external transmission station, name of intermediate station, name of receiving station, name of oil type, start time, delivery time, fluctuating flow rate and total amount of different oil product batches; setting corresponding tank capacity information for each station in the initial oil product batch planning data table, and obtaining a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station; according to the initial oil product batch The secondary planning data table and the station tank capacity data table are used to calculate the missing items in the initial oil product batch planning table, and a pipeline transportation planning line is drawn to represent the pipeline transportation status of different oil product batches, a tank inventory change curve is drawn to represent the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line is drawn to represent the upper and lower limit constraint conditions of the tank capacity at each station; wherein the missing items include: one or more of the final transportation time, the start receiving time, the end receiving time, the arrival time at the intermediate station, the departure time at the intermediate station, the start stop time and the end stop time; it is judged whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, if so, the final pipeline transportation plan is determined according to the pipeline transportation planning line, otherwise, the pipeline transportation planning line is adjusted until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and the final pipeline transportation plan is determined according to the adjusted pipeline transportation planning line.
[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0098] In addition, in the present invention, terms such as "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0099] In addition, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0100] In addition, in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for compiling a pipeline network transportation plan control diagram. It is characterized in that include: Determine the initial oil product batch plan data table according to the preset business requirements; wherein the initial oil product batch plan data table includes the following mandatory items: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuating flow rate and total amount of different oil product batches; Setting corresponding tank capacity information for each station in the initial oil product batch planning data table to obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station; According to the initial oil product batch planning data table and the station tank capacity data table, the missing items in the initial oil product batch planning data table are calculated, and a pipeline transportation planning line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station are drawn; wherein the missing items include: one or more of the following: final transportation time, start receiving time, end receiving time, arrival time at the intermediate station, departure time at the intermediate station, start stop transportation time and end stop transportation time; Determine whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, determine the final pipeline plan based on the pipeline plan line. Otherwise, adjust the pipeline plan line until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and determine the final pipeline plan based on the adjusted pipeline plan line.
2. The method for compiling a pipeline network transportation plan control diagram according to claim 1, It is characterized in that According to the initial oil product batch planning data table and the station tank capacity data table, the missing items in the initial oil product batch planning data table are calculated, and a pipeline transportation planning line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station are drawn, specifically including: The initial oil product batch plan data table and the station tank capacity data table are sequentially loaded into the system, and the system background program automatically calculates the missing items in the initial oil product batch plan data table, and displays all the calculation results in the plan data display area, and displays the calculation results in the graphic display area; Among them, when loading the station tank capacity data table, it is necessary to fill in the information of the existing oil products in the current pipeline. When filling in, the oil type and total amount of oil products should be filled in in order from near to far from the receiving station.
3. The method for compiling a pipeline network transportation plan control diagram according to claim 2, It is characterized in that The system background program automatically calculates the missing items in the initial oil product batch plan data table, specifically including: When the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to transport the oil products completely to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; when the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, the oil products cannot be completely transported to the receiving station, then the receiving time of the oil products is the estimated data, wherein the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font in the plan data display area; wherein the preset value is the pipeline volume of the corresponding pipe section.
4. The method for compiling a pipeline network transportation plan control diagram according to claim 1, It is characterized in that The pipeline transportation plan line is adjusted until the tank inventory change curve satisfies the constraint conditions of the tank capacity upper and lower limit constraint lines, and the adjusted pipeline transportation plan line is used as the final pipeline transportation plan, specifically including: The start time, end time and total amount of oil products of different oil product batches are adjusted by dragging the pipeline transportation plan line with a mouse, or the flow rate, start time, end time and total amount of oil products of different oil product batches are manually input in a pop-up dialog box by clicking on the pipeline transportation plan line, and it is judged whether the tank inventory change curve corresponding to the adjusted pipeline transportation plan line meets the constraint conditions of the upper and lower limit constraint lines of the tank capacity. If so, the adjusted pipeline transportation plan line is used as the final pipeline transportation plan, otherwise, the steps of adjusting the start time, end time and total amount of oil products of different oil product batches by dragging the pipeline transportation plan line with a mouse, or manually inputting the flow rate, start time, end time and total amount of oil products of different oil product batches in a pop-up dialog box by clicking on the pipeline transportation plan line until the tank inventory change curve meets the constraint conditions of the upper and lower limit constraint lines of the tank capacity; Among them, when adjusting the pipeline plan line, the following principles are followed: under the condition of meeting the total pipeline transportation requirements, ensure that the tank inventory change curve meets the constraints of the upper and lower limit constraints of the tank capacity, and achieve a smaller batch quantity to ensure the hydraulic stability of the pipeline network.
5. The method for compiling a pipeline network transportation plan control diagram according to any one of claims 1 to 4, It is characterized in that The pipeline plan lines representing the pipeline transportation status of different oil batches are represented by thick solid lines of different colors; the tank inventory change curves of each station are consistent with the color of the oil batches and are represented by thin solid lines; the upper and lower limit constraints of the tank capacity of each station are represented by thin red dotted lines.
6. A device for compiling oil pipeline network transportation plan chart control, It is characterized in that include: The first determination module is used to determine the initial oil product batch plan data table according to the preset business requirements; wherein the initial oil product batch plan data table includes the following mandatory items: batch number, name of the external transmission station, name of the intermediate station, name of the receiving station, name of the oil type, start time, delivery time, fluctuation flow and total amount of different oil product batches; The second determination module is used to set corresponding tank capacity information for each station in the initial oil product batch planning data table, and obtain a station tank capacity data table corresponding to the initial oil product batch planning data table; wherein the station tank capacity data table includes the station name, stored oil type, tank capacity upper limit, tank capacity lower limit and current inventory of each station; A drawing module is used to calculate the missing items in the initial oil product batch planning data table according to the initial oil product batch planning data table and the station tank capacity data table, and draw a pipeline transportation plan line for representing the pipeline transportation status of different oil product batches, a tank inventory change curve for representing the change of tank inventory at each station, and a tank capacity upper and lower limit constraint line for representing the upper and lower limit constraint conditions of the tank capacity at each station; wherein the missing items include: one or more of the following: final transportation time, start receiving time, end receiving time, arrival time at an intermediate station, departure time at an intermediate station, start stop transportation time, and end stop transportation time; The judgment module is used to judge whether the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines. If so, the final pipeline transportation plan is determined according to the pipeline transportation plan line; otherwise, the pipeline transportation plan line is adjusted until the tank inventory change curve meets the constraint conditions of the tank capacity upper and lower limit constraint lines, and the final pipeline transportation plan is determined according to the adjusted pipeline transportation plan line.
7. The oil pipeline network transportation plan control drawing preparation device according to claim 6, It is characterized in that The drawing module is specifically used for: The initial oil product batch plan data table and the station tank capacity data table are sequentially loaded into the system, and the system background program automatically calculates the missing items in the initial oil product batch plan data table, and displays all the calculation results in the plan data display area, and displays the calculation results in the graphic display area; Among them, when loading the station tank capacity data table, it is necessary to fill in the information of the existing oil products in the current pipeline. When filling in, the oil type and total amount of oil products should be filled in in order from near to far from the receiving station.
8. The oil pipeline network transportation plan control drawing preparation device according to claim 7, It is characterized in that When the system background program in the drawing module automatically calculates the vacant items that need to be filled in the initial oil product batch plan data table, it is specifically used to: When the total amount of a batch of oil products is greater than the preset value or the sum of the total amount of the subsequent oil products is greater than the preset value, that is, it is sufficient to transport the oil products completely to the receiving station, then the receiving time of the oil products is the accurate calculated data, which is displayed in black font in the plan data display area; when the total amount of the batch of oil products is less than the preset value or the sum of the total amount of the subsequent oil products is less than the preset value, that is, the oil products cannot be completely transported to the receiving station, then the receiving time of the oil products is the estimated data, wherein the flow data used for the estimation is the flow data of the oil products themselves, which is displayed in red font in the plan data display area; wherein the preset value is the pipeline volume of the corresponding pipe section.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for compiling a pipeline transportation plan diagram control for an oil pipeline network as described in any one of claims 1 to 5 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for compiling a pipeline transportation plan diagram control for an oil pipeline network as described in any one of claims 1 to 5 are implemented.
