Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a dragging type programming method and device for an oil pipeline network management transmission planning control.
Specifically, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a drag type method for creating a control for an oil pipeline network management transmission plan, including:
S1, a station yard control is sequentially added in the order from a first station to a terminal station according to the flow direction of a pipe transportation in a system for pipe network layout;
s2, respectively configuring the types of the stations, the names of the received oil products of the stations, the received flow of the stations, the names of the output oil products of the stations and the output flow of the stations;
s3, adding storage tank controls for station yard controls needing to be added with storage tanks, and setting oil names stored by the storage tanks, upper limits of tank capacity, lower limits of tank capacity and current tank stock for each storage tank control;
s4, selecting a starting date and an ending date of planning in a management area of the management planning in the system, correspondingly, setting a planning time period in a management planning and control working area according to the starting date and the ending date of planning;
s5, adding oil product batch controls to a station site needing oil product output operation, setting batch oil product information for each oil product batch control, and correspondingly, automatically drawing oil product batch lines representing different oil product batch information, tank stock change curves representing tank stock changes of each tank and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each station site by the system according to the added oil product batch controls and the added oil product batch control; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches;
S6, in the process of adding the oil product batch control, ensuring that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines, and when the condition that the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines are not met occurs, adjusting batch oil product information of the oil product batch control, so that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines;
s7, determining a management and transportation plan through the management and transportation plan drawing control working area, storing the data of the management and transportation plan scheme data display area into a database, and leading out a data table to finish management and transportation plan drawing work.
Further, the step S1 is to sequentially add station yard controls to perform pipe network layout according to the order of the pipe flow direction from the first station to the terminal station in the pipe flow planning and control working area in the system, and specifically comprises the following steps:
clicking a yard control from a toolbar of the system, filling a yard name in a pop-up dialog box, programming a working area in a management planning map control, and adding the yard name as a main coordinate of an ordinate in a left ordinate area sequentially from top to bottom according to an adding sequence, wherein the yard control is sequentially added from a first station to a terminal station according to a management flow direction.
Further, the step S2 is to perform configuration of the yard type, configuration of the yard receiving oil product name, configuration of the yard receiving flow, configuration of the yard output oil product name, and configuration of the yard output flow on each yard control respectively, and specifically includes:
selecting a station name added in the left ordinate of a management planning and control programming operation area, and configuring the station in a pop-up dialog box, wherein the method comprises the following steps: selecting station type labels, wherein the labels comprise an outer station, an intermediate station, a sub-station and a terminal receiving station; if the outbound station or the intermediate station is selected, the name of a downstream station field is selected; if the branch station is selected, selecting the names of the downstream branch stations after the branch station; judging whether a fixed oil source enters, if so, filling in the oil name and receiving flow; judging whether a fixed oil product flows out, if so, filling in the name of the oil product and the output flow; wherein one yard control may select multiple yard type tags.
Further, the step S3 is to add a storage tank control for a yard control to which a storage tank needs to be added, and set an oil product name, an upper limit of a tank capacity, a lower limit of the tank capacity and a current tank stock of the storage tank for each storage tank control, and specifically includes:
And selecting a storage tank control in the toolbar, dragging the storage tank control to a station place area where a storage tank needs to be added in a management and planning and control working area, setting the name of a storage oil product stored in the storage tank, the upper limit and the lower limit of the tank capacity and the current tank stock in a popped dialog box, correspondingly, drawing a secondary ordinate representing the tank stock of the corresponding storage tank for each storage tank in a left side coordinate area of the management and planning and control working area, wherein the upper limit and the lower limit of the coordinates are the upper limit and the lower limit of the tank capacity respectively, and the coordinate color is consistent with the color representing the storage oil product stored in the storage tank.
Further, the step S5 is to add oil batch control to the yard needing to perform the oil output operation, and set batch oil information for each oil batch control, and accordingly, the system automatically draws oil batch lines representing different oil batch information, tank stock change curves representing tank stock changes of each tank, and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each yard according to the added oil batch control and the tank control, and specifically includes:
selecting an oil product batch control in a toolbar, dragging the oil product batch control to an area where an external transmission station field for oil product external transmission operation is located in a management and transmission planning and control compiling operation area, setting batch oil product information in a pop-up dialog box, and finishing the addition of the oil product batch control; wherein, the batch oil information includes: batch number, oil name, start-up time, flow, total amount of delivery, and whether to connect with the previous batch; when the batch control is added, if connection with the previous batch is selected, starting time is not required to be filled;
According to the added oil batch control, the system automatically draws an oil batch line representing the oil batch information at a corresponding position of a management and transportation planning and control programming operation area, calculates the oil information of the oil batch running to a downstream intermediate station, a sub-transportation station and a receiving station according to the added oil batch control, and draws a corresponding oil batch line at a corresponding station yard; meanwhile, the data information of the oil product batch is added in a data display area of a pipe transportation planning scheme, and the method comprises the following steps: batch number, outbound station name, intermediate station name, receiving station name, oil seed name, oil mixing proportion, start-up time, final-delivery time, delivery flow, total delivery amount, start-up time, end-delivery time, arrival intermediate station time, departure intermediate station time, start-stop time, and end-stop time;
according to the added oil product batch control and the added oil product storage tank control, automatically drawing a tank capacity upper limit constraint line and a tank capacity lower limit constraint line which represent the upper tank capacity and the lower tank capacity lower limit of the oil product storage tank of the station and a tank storage quantity change curve which represents the time change of the tank storage quantity of the oil product due to oil product receiving or output by the system; when the oil product batch control is added, the oil product batch control is added sequentially from upstream to downstream, namely, the oil product batch control is sequentially added from top to bottom in a management and transportation planning and control working area.
Further, the oil product batch line spans the abscissa time and represents the output duration or the receiving duration of the oil products of the corresponding batch in the station; the oil product batch lines for representing different batches of oil products are represented by thick solid lines with different colors; the upper limit constraint line and the lower limit constraint line of the tank volume are represented by red dotted solid lines; the tank stock change curve is consistent with the color of the oil product batch, and is represented by a thin solid line.
Further, in the process of adding the oil product batch control, the S6 ensures that the tank stock change curve of each tank meets the constraint condition of the corresponding tank capacity upper and lower limit constraint line, and adjusts the batch oil product information of the oil product batch control when the condition that the constraint condition of the corresponding tank capacity upper and lower limit constraint line is not met occurs, so that the tank stock change curve of each tank meets the constraint condition of the corresponding tank capacity upper and lower limit constraint line, and specifically includes:
judging whether the tank stock change curve exceeds the upper limit and the lower limit of the tank capacity, namely, the red virtual solid line exists in the process of adding the oil product batch control, if so, indicating that the current batch plan arrangement has the risk of oil shortage or tank overflow, and adjusting until the tank stock change curve is completely within the upper limit and the lower limit of the tank capacity; the adjustment method comprises the steps of selecting an oil product batch control of a management and transportation planning and control working area and an oil product batch line corresponding to batch oil products, and adjusting the starting and transportation time, the final transportation time or the total transportation amount of the oil product batch control by dragging the oil product batch line, or adjusting the starting and transportation time, the final transportation time, the total transportation amount and the transportation flow parameter in a pop-up dialog box by selecting the oil product batch control;
Wherein, when adjusting, the following principle is followed: under the condition of completing the total pipe transportation, the condition that the tank stock change curve does not exceed the upper limit and the lower limit of the tank capacity, namely the red virtual solid line, is guaranteed, the batch number is smaller, and the hydraulic stability of a pipe network is guaranteed.
In a second aspect, the embodiment of the present invention further provides a dragging type device for creating a control of an oil pipeline network management transmission plan, including:
the first setting module is used for programming an operation area in a pipe transportation planning and control system in the system, and sequentially adding station yard controls according to the sequence from a first station to a terminal station of the pipe transportation flow direction so as to carry out pipe network layout;
the configuration module is used for respectively configuring the types of the stations, the names of the received oil products of the stations, the received flow rates of the stations, the names of the output oil products of the stations and the output flow rates of the stations;
the second setting module is used for adding storage tank controls for the station site controls needing to be added with the storage tanks, and setting the names of oil products stored in the storage tanks, the upper limit of the tank capacity, the lower limit of the tank capacity and the current tank stock for each storage tank control;
the third setting module is used for selecting the starting date and the ending date of planning in a management area of the management planning in the system, and correspondingly setting a planning time period in a management planning and control working area according to the starting date and the ending date of planning;
The fourth setting module is used for adding oil product batch controls to a station where oil product output operation is required, setting batch oil product information for each oil product batch control, and correspondingly, drawing oil product batch lines representing different oil product batch information, tank stock change curves representing tank stock changes of each tank and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each station according to the added oil product batch controls and the storage tank controls automatically by the system; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches;
the adjustment module is used for ensuring that the tank stock change curve of each storage tank meets the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines in the process of adding the oil product batch control, and adjusting batch oil product information of the oil product batch control when the condition that the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines are not met occurs, so that the tank stock change curve of each storage tank meets the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines;
And the output module is used for taking the pipe transportation plan determined by the pipe transportation plan graphic control working area as a pipe transportation plan scheme.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the drag-type method for creating the oil pipeline network management delivery plan control according to the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the drag-type method for creating a control for oil pipeline management and planning according to the first aspect.
According to the oil pipeline network management transmission planning control dragging type programming method and device provided by the embodiment of the invention, through a graphic control dragging programming mode, service personnel are assisted in programming an oil pipeline network sequential transmission planning scheme, the difficult problem of considering various constraint conditions is solved, the labor intensity is greatly reduced, and the timeliness and scientificity of the management transmission planning are improved.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 shows a flowchart of a drag-type programming method for an oil pipeline network management transmission planning control provided by an embodiment of the invention. As shown in fig. 1, the dragging type programming method for the oil pipeline network management transmission planning control provided by the embodiment of the invention comprises the following steps:
Step 101: a station yard control is added in sequence from a first station to a terminal station according to the flow direction of a pipe transportation to carry out pipe network layout;
in the step, clicking a yard control from a toolbar, filling a yard name in a pop-up dialog box, programming a working area in a management and transportation planning map control, and sequentially adding the yard name as a main coordinate of an ordinate in a left ordinate area from top to bottom according to an adding sequence, wherein the yard control is sequentially added according to the sequence from a first station to a terminal station according to a management and transportation flow direction.
Step 102: respectively configuring the types of the stations, the names of the received oil products of the stations, the received flow of the stations, the names of the output oil products of the stations and the output flow of the stations;
in this step, selecting (for example, double-clicking) a site name added in the left ordinate of the tubular transmission planning and mapping work area, and configuring the site in a pop-up dialog box includes: selecting station type labels, wherein the labels comprise an outer station, an intermediate station, a sub-station and a terminal receiving station; if the outbound station or the intermediate station is selected, the name of a downstream station field is selected; if the branch station is selected, selecting the names of the downstream branch stations after the branch station; judging whether a fixed oil source enters, if so, filling in the oil name and receiving flow; judging whether a fixed oil product flows out, if so, filling in the name of the oil product and the output flow; wherein one yard control may select multiple yard type tags.
Step 103: adding storage tank controls for station yard controls needing to be added with storage tanks, and setting oil names stored in the storage tanks, upper limit of tank capacity, lower limit of tank capacity and current tank stock for each storage tank control;
in the step, a storage tank control is selected in a toolbar, the storage tank control is dragged to a station area where storage tanks need to be added in a management planning and control working area, the name of the stored oil products of the storage tanks, the upper limit and the lower limit of the tank capacity and the current tank stock are set in a popped dialog box, correspondingly, a left side coordinate area of the management planning and control working area is formed, and for the station where the storage tanks are added, a system automatically draws auxiliary ordinate coordinates representing the tank stock of the corresponding storage tanks for each storage tank, wherein the upper limit and the lower limit of the coordinates are the upper limit and the lower limit of the tank capacity respectively, and the color of the coordinates is consistent with the color representing the stored oil products of the storage tanks.
Step 104: selecting a starting date and an ending date of planning in a management area of the management planning in the system, correspondingly, setting a planning time period in a management planning drawing control working area according to the starting date and the ending date of planning;
in this step, the start date and the end date of planning are selected in the management area for planning, and accordingly, in the work area for planning is controlled in the management plan, the abscissa is drawn in days as the planning period in accordance with the start date and the end date of planning.
Step 105: adding oil product batch control parts to a station yard needing oil product output operation, setting batch oil product information for each oil product batch control part, and correspondingly, automatically drawing oil product batch lines representing different oil product batch information, tank stock change curves representing tank stock changes of each tank and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each station yard by the system according to the added oil product batch control parts and the storage tank control parts; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches;
in the step, selecting an oil product batch control in a toolbar, dragging the oil product batch control to an area where an output station field for oil product output operation is located in a management and transmission planning and control compiling operation area, setting batch oil product information in a pop-up dialog box, and finishing the addition of the oil product batch control; wherein, the batch oil information includes: batch number, oil name, start-up time, flow, total amount of delivery, and whether to connect with the previous batch; when the batch control is added, if connection with the previous batch is selected, starting time is not required to be filled;
According to the added oil batch control, the system automatically draws an oil batch line representing the oil batch information at a corresponding position of a management and transportation planning and control programming operation area, calculates the oil information of the oil batch running to a downstream intermediate station, a sub-transportation station and a receiving station according to the added oil batch control, and draws a corresponding oil batch line at a corresponding station yard; meanwhile, the data information of the oil product batch is added in a data display area of a pipe transportation planning scheme, and the method comprises the following steps: batch number, outbound station name, intermediate station name, receiving station name, oil seed name, oil mixing proportion, start-up time, final-delivery time, delivery flow, total delivery amount, start-up time, end-delivery time, arrival intermediate station time, departure intermediate station time, start-stop time, and end-stop time;
according to the added oil product batch control and the added oil product storage tank control, automatically drawing a tank capacity upper limit constraint line and a tank capacity lower limit constraint line which represent the upper tank capacity and the lower tank capacity lower limit of the oil product storage tank of the station and a tank storage quantity change curve which represents the time change of the tank storage quantity of the oil product due to oil product receiving or output by the system; when the oil product batch control is added, the oil product batch control is added sequentially from upstream to downstream, namely, the oil product batch control is sequentially added from top to bottom in a management and transportation planning and control working area.
Step 106: in the process of adding the oil product batch control, ensuring that the tank stock change curve of each storage tank meets the constraint conditions of the corresponding tank capacity upper limit constraint line and the corresponding tank capacity lower limit constraint line, and when the condition that the constraint conditions of the corresponding tank capacity upper limit constraint line and the corresponding tank capacity lower limit constraint line are not met occurs, adjusting batch oil product information of the oil product batch control so that the tank stock change curve of each storage tank meets the constraint conditions of the corresponding tank capacity upper limit constraint line and the corresponding tank capacity lower limit constraint line;
in the step, in the process of adding the oil product batch control, judging whether a tank stock change curve exceeds the upper limit and the lower limit of the tank capacity, namely, the red virtual solid line, if so, indicating that the current batch scheduling has the risk of oil shortage or tank overflow, and adjusting until the tank stock change curve is completely within the upper limit and the lower limit of the tank capacity; the adjustment method comprises the steps of selecting an oil product batch control of a management and transportation planning and control working area and an oil product batch line corresponding to batch oil products, and adjusting the starting and transportation time, the final transportation time or the total transportation amount of the oil product batch control by dragging the oil product batch line, or adjusting the starting and transportation time, the final transportation time, the total transportation amount and the transportation flow parameter in a pop-up dialog box by selecting (for example, double-click) the oil product batch control;
Wherein, when adjusting, the following principle is followed: under the condition of completing the total pipe transportation, the condition that the tank stock change curve does not exceed the upper limit and the lower limit of the tank capacity, namely the red virtual solid line, is guaranteed, the batch number is smaller, and the hydraulic stability of a pipe network is guaranteed.
Step 107: and taking the pipe transportation plan determined by the pipe transportation plan graphic control working area as a pipe transportation plan scheme.
In the step, a management and transportation plan is determined through a management and transportation plan drawing and control working area, a management and transportation plan scheme data display area is stored in a database, a data table is derived, and management and transportation plan drawing work is completed.
According to the technical scheme, the dragging type planning method for the oil pipeline network management transmission planning control provided by the embodiment of the invention assists service personnel to plan the oil pipeline network sequential transmission planning scheme by the mode of dragging the graphic control, solves the problem of considering various constraint conditions, greatly reduces the labor intensity of workers and improves the timeliness and scientificity of the management transmission planning.
Based on the above embodiment, the dragging type programming method for the oil pipeline network management transmission planning control provided by the embodiment of the invention comprises the following main steps: s1: pipe network layout, S2: configuration of a station yard, S3: station storage tank setting, S4: setting a planning time period, S5: adding oil product batch, starting planning and S6: checking whether the batch adjustment plan is reasonable or not, and S7: and determining the management and transportation plan by controlling and compiling a working area through the management and transportation plan graph. Each step is described in detail below.
S1: pipe network layout
Clicking the station yard in the tool bar, filling the station yard name in the pop-up dialog box, and adding the station yard name as the main coordinate of the ordinate in the left ordinate area in the system from top to bottom in the pipe transportation planning and control working area according to the adding sequence. The pipe network should be added in sequence from the first station to the terminal station according to the flow direction of the pipe network.
S2: configuration station
Double-click of a station name added in the left ordinate of a management planning and control programming operation area, and configuration of the station is carried out in a pop-up dialog box, wherein the contents comprise: 1. selecting a station type tag, wherein the tag comprises an outer station, an intermediate station, a sub-station and a terminal receiving station; if the outbound station or the intermediate station is selected, the name of a downstream station field is selected; if the branch station is selected, selecting the names of the downstream branch stations after the branch station; 2. a site may select multiple tags, e.g., a site may be a receiving station or an outbound station, and may select two tags, namely "receiving station" and "outbound station"; 3. if other fixed oil sources enter, filling in the oil names and receiving the flow; 4. if other fixed oil products flow out, filling in the oil product name and outputting the flow.
S3: station storage tank arrangement
The left mouse button in the tool bar is dragged to the vicinity of the station coordinates of the storage tank needed to be added in the 'pipe transportation planning and control working area', the left mouse button is loosened, the name of the oil product stored in the storage tank, the upper limit and the lower limit of the tank capacity and the current stock are set in the pop-up dialog box, and then the addition of an oil tank to the station is completed. The station site with the storage tank added in the left coordinate area of the pipe transportation planning operation area draws a secondary ordinate representing the stock quantity of the storage tank, the upper limit and the lower limit of the coordinate are respectively the upper limit and the lower limit of the tank capacity, and the color of the coordinate is consistent with the color representing the oil product stored in the storage tank.
S4: setting a planning time period
The "management planning management area" selects the start date and the end date of planning, and the "management planning work area" draws the abscissa in days according to the planning start time.
S5: adding oil product batch, and starting planning
The left mouse button in the tool bar is used for selecting an oil product batch control, dragging the control to a tube transportation planning map control working area to point to a rough position pointed by an ordinate corresponding to an outer transportation station where oil product output operation is required and an abscissa corresponding to oil product batch start transportation time, the left mouse button is loosened, batch oil product information is set in a pop-up dialog box, and the content comprises: batch number, oil name, start-up time, flow and total conveying amount, selecting whether to connect with the previous batch, if so, the start-up time is not required to be filled in, and adding the oil batch control is completed.
The system draws a thick solid line representing the batch information of the oil product at the corresponding position of the management planning and control working area. The thick solid lines of different colors represent different batches of oil products, and the thick lines cross the abscissa time to represent the duration of output or receiving of the batch of oil products at a certain station.
Meanwhile, the system automatically calculates oil information of the oil product batch running to a downstream intermediate station, a sub-transmission station and a receiving station, and draws a thick solid line corresponding to the oil product batch at a corresponding station.
Meanwhile, the data information of the batch is automatically added in a system of a management and transportation planning scheme data display area, and the contents of a data table comprise: batch number, outbound station name, intermediate station name, receiving station name, oil seed name, oil blend ratio, start-up time, end-up time, delivery flow, total delivery, start-up time, end-up time, arrival intermediate station time, departure intermediate station time, start-up time, end-up time.
For a yard with a storage tank, when an oil product batch control is added, the system automatically draws a red thin dotted line representing the upper and lower limits of the tank capacity of the storage tank of the oil product in the yard. And a fine solid curve representing the tank stock of the oil product changing with time due to oil product receiving or delivering, wherein the color of the tank stock changing curve, the color of the oil tank coordinates and the color of the oil product batch are consistent.
When the control of the oil product batch is added, the control is added sequentially from upstream to downstream, namely, the control of the pipe transportation planning and control working area is added sequentially from top to bottom.
S6: checking whether the batch plan is reasonable
In the process of adding the oil product batch control, the situation that whether the tank stock change curve exceeds the upper limit and the lower limit of the tank capacity, namely, a red virtual solid line is observed, if so, the risk of oil shortage or tank overflow in the current batch scheduling is indicated, and adjustment is carried out.
The adjustment method comprises the steps of selecting an oil product batch control and a thick solid line of a management and transportation planning and control programming operation area by a left mouse button, and adjusting the starting and transportation time, the final transportation time or the total transportation amount by a dragging mode. The control of oil batch can be double-clicked, and parameters of starting time, final time, total conveying amount and conveying flow are adjusted in the popped dialog box, so that a planning scheme is adjusted.
The entire plan is adjusted in this manner until the tank inventory change curve is well within the upper and lower tank capacity limits. The schedule adjustment process may be referred to as follows: under the condition of ensuring the total pipe transportation, the tank stock change curve is ensured to be completely within the upper limit and the lower limit of the tank capacity, the batch quantity is reduced as much as possible, and the hydraulic stability of a pipe network is ensured.
S7: and determining a management and transportation plan through a management and transportation plan drawing and control working area, storing a management and transportation plan scheme data display area into a database, and exporting a data table to finish management and transportation plan drawing work.
For a better understanding of the present invention, the following examples are set forth to illustrate the present invention, but are not to be construed as limiting the present invention.
The distribution of a certain oil pipeline network is shown in fig. 2, and oil tanks are arranged at the output station A, the receiving station D and the receiving station E. And conveying three oil products of oil type 1 and oil type 2.
S1, inputting a station name of a station field A in a pop-up dialog box, sequentially adding a station field B, a station field C, a station field D, a station field E and a station field F according to the method, and automatically sequentially adding a station field A, a station field B, a station field C, a station field D, a station field E and a station field F as main coordinates of an ordinate in a management and planning and control working area from top to bottom by a system;
s2, double clicking of a station name "A station" added in the left ordinate of a management and delivery planning and control programming operation area, selecting a station type of an external station and a downstream station name of a B station in a pop-up dialog box, and setting a station label of the B station as an intermediate station and a downstream station as a C station, a station label of the C station as a receiving station and an external station, a downstream station as a D station, a station label of the D station as a branch station, a downstream station as an E station and an F station, a station label of the E station as an end receiving station and a station label of the F station as an end receiving station in sequence according to the method;
S3, selecting a control icon of a storage tank by a left mouse button in a toolbar, dragging the control icon to the vicinity of a coordinate of an A station in a management and transportation planning and control programming operation area, loosening the left mouse button, setting a storage tank in a pop-up dialog box to store oil with the name of the oil seed 1, wherein the upper limit of the tank capacity is 5000, the lower limit of the tank capacity is 45000 and the current stock is 10000, and adding two storage tanks of the oil seed 2 in the A station, adding the oil seed 1 in the C station and the oil seed 2 in the E station, adding the oil seed 1 in the F station and adding the oil seed 2 in the F station according to the method;
s4, selecting a planning time from 1 month, 1 day to 1 month and 8 days in a management area of management planning;
s5, selecting an oil product batch control icon by a left button of a tool bar mouse, dragging the oil product batch control icon to a corresponding area of which the ordinate of a pipe transportation planning and control working area is an A station field and the abscissa of the oil product batch control working area is 1 month and 1 day, loosening the mouse, and setting oil product batch information in a pop-up dialog box as shown in the following table 1, wherein the batch is used as a first oil product batch, and the user does not need to check whether the oil product batch is connected with the previous batch.
TABLE 1
The same procedure adds a second oil batch at "station a", the batch information is shown in table 2 below, and checks "connect with previous batch", and the same method can continue to add oil batch at station a, which is not described here.
TABLE 2
The same operation steps can be added with oil product batches according to the requirements in the C station yard, and the description is omitted here.
And S6, in the S5 step, the system draws a thick solid line representing oil product batches, a red dotted line representing the upper limit and the lower limit of the tank capacity and a thin solid curve representing the storage quantity of the storage tank in a 'pipe transportation planning and control working area', and observes whether the thin solid curve representing the storage quantity of the storage tank exceeds the upper limit and the lower limit of the tank capacity or not, and if so, the batch information is adjusted. The adjusting method comprises the following steps: the left mouse button is selected to adjust the thick solid line, and the starting and conveying time, the conveying total amount and other information of the batch of oil products are adjusted in a dragging mode; or double-clicking the oil product batch control, and adjusting the starting and conveying time, the final conveying time, the conveying total amount and the conveying flow information in the pop-up dialog box until the storage tank stock curve is completely within the upper and lower limit ranges of the tank capacity.
And S7, after the pipe transportation plan is determined, storing a 'pipe transportation plan scheme data display area' into a database, and exporting a data table to complete the work of pipe transportation planning.
Fig. 3 shows a schematic structural diagram of a drag-type device for creating a control for oil pipeline network management and delivery planning according to an embodiment of the present invention. As shown in fig. 3, the dragging type device for creating the control of the oil pipeline network management transmission plan provided in this embodiment includes: a first setting module 21, a configuration module 22, a second setting module 23, a third setting module 24, a fourth setting module 25, an adjustment module 26 and an output module 27, wherein:
The first setting module 21 is used for programming an operation area in a pipe transportation planning and control system in the system, and adding station yard controls in sequence from a first station to a terminal station according to the pipe transportation flow direction to perform pipe network layout;
the configuration module 22 is configured to perform configuration of a station type, configuration of a station receiving oil product name, configuration of a station receiving flow, configuration of a station outputting oil product name, and configuration of a station outputting flow on each station control;
the second setting module 23 is configured to add a storage tank control for a yard control to which a storage tank needs to be added, and set, for each storage tank control, an oil name stored in the storage tank, an upper limit of a tank capacity, a lower limit of the tank capacity, and a current tank stock;
a third setting module 24, configured to select a start date and an end date of planning in a management area of planning in the system, and correspondingly, set a planning time period in a management planning work area according to the start date and the end date of planning;
a fourth setting module 25, configured to add oil batch controls to a yard needing an oil output operation, and set batch oil information for each oil batch control, and accordingly, the system automatically draws an oil batch line representing different oil batch information, a tank stock change curve representing a tank stock change of each tank, and tank capacity upper and lower limit constraint lines representing upper and lower limit constraint conditions of tank capacities of each yard according to the added oil batch control and the tank control; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches;
The adjustment module 26 is configured to ensure that the tank stock change curves of the respective tanks meet the constraint conditions of the corresponding tank capacity upper and lower limit constraint lines during the process of adding the oil product batch control, and adjust the batch oil product information of the oil product batch control when the constraint conditions of the corresponding tank capacity upper and lower limit constraint lines are not met, so that the tank stock change curves of the respective tanks meet the constraint conditions of the corresponding tank capacity upper and lower limit constraint lines;
and the output module 27 is used for taking the pipe transportation plan determined by the pipe transportation plan graphic control working area as a pipe transportation plan scheme.
The dragging type preparation device for the oil pipeline network management transmission planning control provided by the embodiment of the invention can be used for executing the dragging type preparation method for the oil pipeline network management transmission planning control, and has similar working principle and beneficial effects, so that details are not described herein, and specific contents can be referred to the description of the embodiment.
In this embodiment, it should be noted that, each module in the apparatus of the embodiment of the present invention may be integrated into one body, or may be separately deployed. The modules can be combined into one module or further split into a plurality of sub-modules.
Based on the same inventive concept, a further embodiment of the present invention provides an electronic device, see fig. 4, comprising in particular: a processor 301, a memory 302, a communication interface 303, and a communication bus 304;
Wherein, the processor 301, the memory 302, and the communication interface 303 complete communication with each other through the communication bus 304;
the processor 301 is configured to invoke a computer program in the memory 302, where the processor implements all the steps of the drag-type programming method for the oil pipeline network management control when executing the computer program, for example, the processor implements the following procedures when executing the computer program: s1, a station yard control is sequentially added in the order from a first station to a terminal station according to the flow direction of a pipe transportation in a system for pipe network layout; s2, respectively configuring the types of the stations, the names of the received oil products of the stations, the received flow of the stations, the names of the output oil products of the stations and the output flow of the stations; s3, adding storage tank controls for station yard controls needing to be added with storage tanks, and setting oil names stored by the storage tanks, upper limits of tank capacity, lower limits of tank capacity and current tank stock for each storage tank control; s4, selecting a starting date and an ending date of planning in a management area of the management planning in the system, correspondingly, setting a planning time period in a management planning and control working area according to the starting date and the ending date of planning; s5, adding oil product batch controls to a station site needing oil product output operation, setting batch oil product information for each oil product batch control, and correspondingly, automatically drawing oil product batch lines representing different oil product batch information, tank stock change curves representing tank stock changes of each tank and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each station site by the system according to the added oil product batch controls and the added oil product batch control; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches; s6, in the process of adding the oil product batch control, ensuring that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines, and when the condition that the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines are not met occurs, adjusting batch oil product information of the oil product batch control, so that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines; s7, taking the pipe transportation plan determined by the pipe transportation plan control working area as a pipe transportation plan scheme.
It will be appreciated that the refinement and expansion functions that the computer program may perform are as described with reference to the above embodiments.
Based on the same inventive concept, a further embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program implementing all the steps of the above-mentioned oil pipeline network management transportation planning control dragging type programming method when being executed by a processor, for example, the processor implementing the following procedures when executing the computer program: s1, a station yard control is sequentially added in the order from a first station to a terminal station according to the flow direction of a pipe transportation in a system for pipe network layout; s2, respectively configuring the types of the stations, the names of the received oil products of the stations, the received flow of the stations, the names of the output oil products of the stations and the output flow of the stations; s3, adding storage tank controls for station yard controls needing to be added with storage tanks, and setting oil names stored by the storage tanks, upper limits of tank capacity, lower limits of tank capacity and current tank stock for each storage tank control; s4, selecting a starting date and an ending date of planning in a management area of the management planning in the system, correspondingly, setting a planning time period in a management planning and control working area according to the starting date and the ending date of planning; s5, adding oil product batch control parts to a station site needing oil product output operation, and setting batch oil product information for each oil product batch control part; correspondingly, the system automatically draws oil product batch lines representing different oil product batch information, tank stock change curves representing tank stock changes of each tank and tank capacity upper and lower limit constraint lines representing tank capacity upper and lower limit constraint conditions of each station according to the added oil product batch control and the added tank control; correspondingly, the system automatically calculates oil information of the corresponding oil product batch running to the downstream intermediate station, the sub-transmission station and the receiving station, and draws a corresponding oil product batch line at a corresponding station yard; correspondingly, in a management and transportation planning scheme data display area in the system, the system automatically adds data information of corresponding batches; s6, in the process of adding the oil product batch control, ensuring that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines, and when the condition that the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines are not met occurs, adjusting batch oil product information of the oil product batch control, so that the tank stock change curves of all the storage tanks meet the constraint conditions of the corresponding tank capacity upper limit and lower limit constraint lines; s7, taking the pipe transportation plan determined by the pipe transportation plan control working area as a pipe transportation plan scheme.
It will be appreciated that the refinement and expansion functions that the computer program may perform are as described with reference to the above embodiments.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment of the invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the oil pipeline network management delivery planning control dragging type compiling method according to the embodiments or some parts of the embodiments.
Moreover, in the present invention, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, in the present disclosure, descriptions of the terms "one embodiment," "some embodiments," "examples," "particular examples," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.