Chemical scheduling scheme inspection method, device and equipment and storage medium
By converting the chemical scheduling plan table into object data body and performing constraint verification, a multi-dimensional radar diagram display is generated, which solves the problem of inefficient verification of chemical scheduling plan, and achieves efficient and accurate solution verification and optimization.
Patent Information
- Application Number
- CN202510356862.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-07-08
AI Technical Summary
The verification efficiency of chemical scheduling schemes in the prior art is inefficient and insufficient accuracy, which affects the normal progress of chemical production scheduling.
By obtaining the scheduling scheme table and converting it into the object data body in the target format, using the preset set of constraints for constraint verification, and generating a multi-dimensional radar map for dynamic display to improve verification efficiency and accuracy.
It improves the verification efficiency and accuracy of chemical scheduling solutions, enhances the visual display of verification results, and facilitates subsequent optimization processing.
Smart Images

Figure CN120278450A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control, and particularly to a method, device, equipment and storage medium for verifying a chemical scheduling scheme. Background Art
[0002] As the front end of the entire chemical production scheduling process, chemical raw material scheduling plays a key role in the connection and coordination process of planning and scheduling. After the scheduling scheme is generated, it is necessary to consider whether it violates the constraints. In related technologies, the manual exhaustive method is usually used to verify that the scheduling scheme meets the relevant constraint conditions, which not only has low efficiency, cumbersome operation and high error rate, but also seriously affects the normal progress of chemical production scheduling.
[0003] Therefore, there is an urgent need for a method to improve the verification efficiency and accuracy of chemical scheduling schemes. Summary of the Invention
[0004] The present invention provides a method, device, equipment and storage medium for verifying a chemical scheduling scheme, so as to improve the efficiency and accuracy of verifying a chemical scheduling scheme.
[0005] In a first aspect, the present application provides a method, the method comprising:
[0006] Obtain a scheduling scheme table, and convert the scheduling scheme table into an object data body in a target format; the scheduling scheme table includes raw material inventory information within a preset scheduling period, and feeding property information of multiple processing devices in different time periods; the object data body is obtained by performing structure conversion on the scheduling scheme table in terms of time dimension, device dimension, and raw material category dimension;
[0007] Based on a preset set of constraint conditions, perform constraint verification on the object data body to obtain corresponding verification results; the set of constraint conditions includes constraint conditions corresponding to raw material inventory, raw material processing parameters, raw material property parameters, and side stream product parameters respectively;
[0008] Generate a multi-dimensional radar chart based on the verification results and perform dynamic display; the multi-dimensional radar chart includes the raw material inventory information, the discharge information of each processing device, and scheduling exception information, and the scheduling exception information is information that the scheduling scheme table fails to pass the constraint verification.
[0009] In a second aspect, the present application provides a device for verifying a chemical scheduling scheme, the device comprising:
[0010] An acquisition unit for acquiring a scheduling plan table and converting the scheduling plan table into an object data body in a target format; the scheduling plan table includes raw material inventory information within a preset scheduling period and feeding property information of multiple processing devices in different time periods; the object data body is obtained by performing structure conversion on the scheduling plan table in terms of time dimension, device dimension, and raw material category dimension;
[0011] A verification unit for performing constraint verification on the object data body based on a preset set of constraint conditions to obtain corresponding verification results; the set of constraint conditions includes constraint conditions corresponding to raw material processing parameters, raw material property parameters, and side product parameters respectively;
[0012] A display unit for generating a multi-dimensional radar chart based on the verification results and performing dynamic display; the multi-dimensional radar chart includes the raw material inventory information, the discharge information of each processing device, and scheduling exception information, where the scheduling exception information is information indicating that the scheduling plan table fails to pass the constraint verification.
[0013] Optionally, the verification unit is specifically configured to:
[0014] Perform inventory constraint verification on the raw material inventory information in the object data body based on the set of constraint conditions in combination with an inventory verification formula; the inventory verification formula is used to determine scheduling exception situations where raw material consumption exceeds raw material inventory;
[0015] Perform property constraint verification on the feeding property information in the object data body based on the preset set of conditions in combination with a property verification formula; the property verification formula is used to determine scheduling exception situations where raw material processing parameters, raw material property parameters, and side product parameters respectively exceed a preset numerical range;
[0016] When at least one piece of information fails to pass the verification, determine the at least one piece of information as the scheduling exception information and display the verification failure result.
[0017] Optionally, the display unit is specifically configured to:
[0018] Import data into a basic radar chart based on the feeding property information and raw material inventory information in the object data body to obtain an inventory radar chart and discharge radar charts corresponding to multiple processing devices respectively;
[0019] Perform exception marking on the discharge radar chart and the inventory radar chart respectively based on the verification results and the scheduling exception information.
[0020] Optionally, the constraint conditions corresponding to the raw material processing parameters include one or more combinations of the following: upper and lower limits of device load, limit on the number of raw material types, upper and lower limits of the proportion of light and heavy raw materials, and whether to produce multiple residue products.
[0021] Optionally, the constraint conditions corresponding to the raw material property parameters include one or more combinations of the following: upper and lower limits of density, upper and lower limits of sulfur content, upper and lower limits of acid value.
[0022] Optionally, the side line production parameters include one or more combinations of the following: upper and lower limits of coking material production, upper and lower limits of residue blending material production, upper and lower limits of asphalt material production, upper and lower limits of slag addition material production.
[0023] Optionally, the obtaining unit is specifically configured to:
[0024] Obtain a preset scheduling plan table template;
[0025] In response to a modification operation of a target object, update the scheduling plan table template to generate the scheduling plan table.
[0026] In a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements any one of the chemical process scheduling plan verification methods in the first aspect above.
[0027] In a fourth aspect, the present application provides a computer storage medium, in which computer program instructions are stored. The computer program instructions are executed by a processor to implement any one of the chemical process scheduling plan verification methods in the first aspect above.
[0028] In a fifth aspect, a computer program product provided by an embodiment of the present application includes computer program instructions. When the computer program instructions are executed by a processor, they implement any one of the chemical process scheduling plan verification methods in the first aspect above.
[0029] The beneficial effects of the present invention are as follows:
[0030] An embodiment of the present application provides a method for verifying a chemical process scheduling plan. The method obtains a scheduling plan table, converts the scheduling plan table into an object data body in a target format, and performs constraint verification on the object data body through a preset constraint condition set. Thus, a multi-dimensional radar chart is generated based on the obtained verification result and dynamically displayed to improve the verification efficiency and accuracy of the chemical process scheduling plan, and the verification result of the plan is visually displayed to improve its intuitiveness, facilitating subsequent optimization processing by relevant personnel based on the verification result. Description of the Drawings
[0031] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0032] Figure 1 Flowchart of a method for verifying a chemical scheduling solution provided by an embodiment of the present application;
[0033] Figure 2 Schematic diagram of uploading a scheduling solution provided by an embodiment of the present application;
[0034] Figure 3 Schematic diagram of a scheduling solution form for submitting verification provided by an embodiment of the present application;
[0035] Figure 4 Schematic diagram of solution verification provided by an embodiment of the present application;
[0036] Figure 5 Schematic diagram of a solution passing verification provided by an embodiment of the present application;
[0037] Figure 6 Schematic diagram of radar chart date selection in an embodiment of the present application;
[0038] Figure 7 Schematic diagram of four radar charts provided by an embodiment of the present application;
[0039] Figure 8(a) and Figure 8(b) are respectively schematic diagrams of normal data and highlighted data of the atmospheric and vacuum distillation radar chart provided by an embodiment of the present application;
[0040] Figure 9(a) and Figure 9(b) are respectively schematic diagrams of normal data and highlighted data of the crude oil inventory radar chart provided by an embodiment of the present application;
[0041] Figure 10 Schematic diagram of the structure of a device for verifying a chemical scheduling solution provided by an embodiment of the present application;
[0042] Figure 11 Schematic diagram of the structure of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0043] To make the objectives, technical solutions, and advantages of this application clearer and more understandable, the following will describe the technical solutions in the embodiments of this application clearly and completely in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts belong to the scope of protection of this application. Without conflict, the embodiments in this application and the features in the embodiments can be combined arbitrarily with each other. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0044] The terms "first" and "second" in the description and claims of this application and the above-mentioned accompanying drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices. "Multiple" in this application can mean at least two, for example, it can be two, three, or more, and the embodiments of this application do not make limitations.
[0045] The term "and / or" in the embodiments of this application is merely a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0046] It can be understood that in the following specific embodiments of this application, relevant data in the chemical production scheduling process are involved. When the embodiments of this application are applied to specific products or technologies, relevant permissions or consents need to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, relevant volunteers can be recruited and relevant agreements on authorizing data for volunteers can be signed, and then the data of these volunteers can be used for implementation; or, implementation can be carried out within the scope of an authorized organization, and the data of the organization's internal members can be used to implement the following embodiments for data management; or, the relevant data used in specific implementation are all simulated data, for example, simulated data generated in a virtual scenario.
[0047] The following briefly introduces the design concept of the embodiments of this application.
[0048] In the increasingly competitive international market environment, chemical enterprises need to pursue the improvement of the overall corporate profit through various technical means, increase production efficiency, reduce costs, and ensure the stable progress of the enterprise production process. As the core of chemical enterprise production management, production planning and scheduling play a key role in the process of cost reduction, quality improvement, and efficiency increase of enterprises. With the increasing scale of chemical enterprise production, the increase of process and resource constraints, and the differentiation of the properties of chemical raw material varieties, the complex large-scale production process and strict product quality requirements make it difficult for the scheduling scheme to match the planned requirements.
[0049] As the front end of the entire chemical production scheduling process, chemical raw material scheduling plays a key role in the connection and coordination process of planning and scheduling. After the scheduling scheme is generated, it is necessary to consider whether it violates the constraints. In related technologies, the manual exhaustive method is usually used to verify whether the scheduling scheme meets certain requirements. This method not only has low efficiency, cumbersome operation, and high error rate, but also seriously affects the normal progress of chemical production scheduling.
[0050] In view of the above problems, the embodiments of the present application provide a method for verifying a chemical scheduling scheme. This method obtains a scheduling scheme table, converts the scheduling scheme table into an object data body in a target format, and performs constraint verification on the object data body through a preset constraint condition set. Thus, a multi-dimensional radar chart is generated based on the obtained verification result and dynamically displayed to improve the verification efficiency and accuracy of the chemical scheduling scheme, and visually display the scheme verification result to improve its intuitiveness, facilitating subsequent optimization processing by relevant personnel based on the verification result.
[0051] Next, the method provided by the exemplary embodiment of the present application will be described with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard.
[0052] Refer to Figure 1 As shown, it is a flowchart of a method for verifying a chemical scheduling scheme provided by the embodiment of the present application. The specific implementation process of this method is as follows:
[0053] Step 101: Obtain a scheduling scheme table.
[0054] In the embodiments of the present application, the scheduling scheme table includes raw material inventory information within a preset scheduling period, and the feed properties information of multiple processing devices in different time periods.
[0055] Specifically, the feeding property information of different processing devices in different time periods within a scheduling cycle may include, but is not limited to, chemical raw material varieties and ratios, mixed density, sulfur content, processing load, gas percentage, ethylene feed percentage, reforming feed percentage, jet fuel feed percentage, etc. The dynamic data of the initial inventory, consumption, and remaining inventory of various raw materials that can be recorded daily in the scheduling plan table. For example, in a preset 7-day scheduling cycle of a refinery, its raw material inventory information can be recorded as: Initial inventory: 1500 tons of crude oil A, 800 tons of crude oil B, and 1200 tons of vacuum residue.
[0056] In a possible implementation manner, the embodiments of the present application can generate a scheduling plan table for subsequent verification by obtaining a preset scheduling plan table template and updating the scheduling plan table template in response to the modification operation of the target object.
[0057] Specifically, the present application can first download a report in the form of a template. This report template is a solvable chemical raw material scheduling optimization plan presented in a table form, and an automated download method can be used, that is, relevant computer devices obtain the report template from a specified source, thereby efficiently reducing the need for manual input and ensuring the accuracy and integrity of the data. After successfully downloading the report, the relevant detailed data can be visually presented to the target object for easy modification. For example, Figure 2 The figure shows a schematic diagram of the upload of a scheduling plan provided by an embodiment of the present application. Figure 3 The figure is a schematic diagram of a scheduling plan table submitted for verification provided by an embodiment of the present application. Through an operable visual interface, the downloaded report template is uploaded, and the Spreadsheet JavaScript (spreadJS) plugin is called to display the uploaded report in the original excel format. The target object can modify the numbers in the cells of the excel table to obtain the final scheduling plan table.
[0058] Step 102: Convert the scheduling plan table into an object data body in the target format.
[0059] In the embodiments of the present application, the object data body is obtained by performing structural conversion on the scheduling plan table in terms of time dimension, device dimension, and raw material category dimension. By converting the scheduling plan table in the original format into a target format that is convenient for subsequent verification processing, the efficiency of scheduling plan verification can be further improved.
[0060] In a possible implementation manner, the target format in the embodiments of the present application can adopt the JSON (JavaScript Object Notation) structure. In this way, by converting the scheduling plan table in the original excel format into a multi-layer nested JSON object data body, the chemical scheduling information is structured and organized according to date, device, and raw material category.
[0061] Specifically, the present application can receive the uploaded scheduling plan table, and identify the content of each cell in the scheduling plan table line by line to find the processing time parameters to lock the data of different processing devices. Based on the data in the row where the processing time is located, the raw material type formula situation of each processing device in this scheduling cycle is identified. By constructing a JSON structure, structured parsing is performed to generate JSON format data, and the raw material type attributes of each formula are specifically entered to become object data bodies. By constructing a complex JSON structure and structurally parsing the table, an object form data body in JSON format that is convenient for code processing is generated.
[0062] It is worth mentioning that the JSON structure is only a possible implementation manner adopted in the embodiments of the present application. The present application can be converted into other target formats according to specific scenario requirements, and the embodiments of the present application do not make specific limitations in this regard.
[0063] Step 103: Based on a preset set of constraint conditions, perform constraint verification on the object data body to obtain corresponding verification results.
[0064] In the embodiments of the present application, the set of constraint conditions includes the constraint conditions corresponding to the raw material processing parameters, raw material property parameters, and side line production parameters respectively, so as to verify the production parameters of the scheduling plan table from multiple dimensions, improving the accuracy and comprehensiveness of the chemical process scheduling plan verification.
[0065] In a possible implementation manner, before performing constraint verification on the object data body in the target format, the embodiments of the present application can obtain the preset set of constraint conditions by automatically querying in the database.
[0066] Specifically, the set of constraint conditions in the present application is preset and stored in the relevant database.
[0067] In some embodiments, the constraint conditions include but are not limited to the constraint conditions corresponding to the raw material processing parameters, raw material property parameters, and side line production parameters respectively. Among them, the raw material processing parameters may include but are not limited to the upper and lower limits of the device load, the limit of the number of raw material types, the upper and lower limits of the proportion of light and heavy raw materials, whether to produce multiple slag addition products, etc. The chemical raw material property parameters include but are not limited to the upper and lower limits of density, the upper and lower limits of sulfur content, the upper and lower limits of acid value, etc. The side line production parameters include but are not limited to the upper and lower limits of coking material production, the upper and lower limits of blend stock production, the upper and lower limits of asphalt production, the upper and lower limits of slag addition production, etc.
[0068] Specifically, referring to Table 1 below, it shows a schematic table of a set of constraint conditions provided by the embodiments of the present application. The constraint condition of this Table 1 is that the daily oil type inventory shall not be negative, and the daily discharge constraint conditions of each atmospheric and vacuum distillation unit:
[0069] Parameter Name No. 1 Atmospheric and Vacuum Distillation Unit No. 3 Atmospheric and Vacuum Distillation Unit No. 4 Atmospheric and Vacuum Distillation Unit Upper Limit of Unit Load (tons / day) 22000 21500 25500 Lower Limit of Unit Load (tons / day) 21000 20500 24500 Upper Limit of Number of Oil Types 6 6 6 Upper Limit of Heavy Oil Ratio (%) 30 25 40 Lower Limit of Heavy Oil Ratio (%) 10 10 0 Upper Limit of Light Oil Ratio (%) 25 20 35 Lower Limit of Light Oil Ratio (%) 5 5 5 Whether to Produce Coker Feedstock Yes No Yes Whether to Produce Catalytic Feedstock No No Yes Whether to Produce Asphalt Feedstock Yes No No Whether to Produce Slurry Feedstock No Yes No <![CDATA[Upper density limit (t / m 3 )]]> 0.9 0.9 0.9 <![CDATA[Lower density limit (t / m 3 )]]> 0.84 0.84 0.84 Upper Limit of Sulfur Content (mg / kg) 3 3 3 Lower Limit of Sulfur Content (mg / kg) 0 0 0 Upper Limit of Acid Value (mgKOH / g) 0.5 0.5 2 Lower Limit of Acid Value (mgKOH / g) 0 0 0 Upper Limit of Coker Feedstock Production (tons / day) 6720 0 9840 Lower Limit of Coker Feedstock Production (tons / day) 4320 0 5520 Upper Limit of Slurry Blending Production (tons / day) 0 0 9840 Lower Limit of Slurry Blending Production (tons / day) 0 0 5520 Upper Limit of Asphalt Feedstock Production (tons / day) 6720 0 0 Lower Limit of Asphalt Feedstock Production (tons / day) 4320 0 0 Upper Limit of Slurry Feedstock Production (tons / day) 6720 6200 0 Lower Limit of Slurry Feedstock Production (tons / day) 4320 4500 0 Upper Limit of Diesel Production (tons / day) 5520 5200 6240 Lower Limit of Diesel Production (tons / day) 2520 3100 3340 Upper Limit of First Normal Product Production (tons / day) 2400 3000 3480 Lower Limit of First Normal Product Production (tons / day) 840 1400 840 Upper Limit of Naphtha Production (tons / day) 5160 4500 5760 Lower Limit of Naphtha Production (tons / day) 1440 1900 2200 Upper Limit of Washing Oil Production (tons / day) 600 1200 1080 Lower Limit of Washing Oil Production (tons / day) 240 500 600 Upper Limit of Wax Oil Production (tons / day) 6312 6200 8400 Lower Limit of Wax Oil Production (tons / day) 2664 4300 5280
[0070] In a possible implementation manner, after obtaining the preset constraint condition set, the embodiment of the present application can also convert the queried constraint conditions into the same target format as the scheduling scheme table, such as a JSON format variable, through code processing, so as to facilitate subsequent scheme verification by comparing variables and further improve the verification efficiency of the scheduling scheme.
[0071] In a possible implementation manner, the present application can perform inventory constraint verification on the raw material inventory information in the target format data through a preset condition set in combination with an inventory verification formula. And in combination with a property verification formula, perform property constraint verification on the feed property information in the target format data, so that when there is an information that fails to pass the verification, display the verification result that fails to pass, and determine the information that fails to pass the verification as scheduling exception information.
[0072] Specifically, the inventory verification formula is used to determine the scheduling exception situation where the raw material consumption exceeds the raw material inventory, and can be as follows:
[0073] (i * ,d * )∈{(i,d)|I i,d -C i,d <0}
[0074] Wherein, I i,d represents the daily inventory of the i-th raw material on the d-th day, and C i,d is the daily consumption of the i-th raw material on the d-th day.
[0075] In this way, through inventory constraint verification, it can be determined that the i-th raw material on the d-th day where the inventory I i,d minus the raw material consumption C i,d on that day is less than 0.
[0076] Specifically, the property verification formula can be used to determine the scheduling exception situation where the raw material processing parameters, raw material property parameters, and side line product parameters respectively exceed the preset value range, and its formula can be as follows:
[0077] (k * ,d * )∈{(k,d)|F(a k,d ,FI d )=0,a k,d <a min}∪
[0078] {(k,d)|F(a k,d ,FI d )=0,a k,d >a max}
[0079] Wherein, FId is a vector composed of the input amounts of each raw material on the d-th day;
[0080] a k,d represents the k-th attribute on the d-th day;
[0081] F(a k,d , FI d ) represents the association between FI d and a k,d , where a min represents the lower limit value of this attribute, and a max represents the upper limit value of this attribute.
[0082] In this way, through the property verification formula, the k-th attribute on the d-th day with a value greater than the upper limit a max or less than the lower limit a min of the discharge type on that day can be identified.
[0083] In a possible implementation manner, the object data body in the embodiment of the present application can be divided into the inventory data of raw material types for each day and the data of multiple processing devices. Each processing device data is further divided into the situation of each day within the scheduling period, such as the processing load, raw material types, quality, and total properties of the discharge on the same day, such as the proportion of various chemical raw materials, mixed density, sulfur content, gas percentage, ethylene material percentage, reformed material percentage, aviation kerosene material percentage, etc. Then, the initial inventory of chemical raw materials obtained is sorted by date and divided into different raw material types, and processed into an array as the initial value before the operation, so as to traverse the situation of each day of the raw material type inventory data in the data body, and subtract from the initial value in turn to identify the situation where the raw material inventory violates the constraints through the raw material verification formula. At the same time, the present application can sort the discharge situations of each processing device obtained by date and divide them into different properties, and process them into an array, traverse the situation of each day within the processing device in the object data body, and compare the obtained production material situation with the constraint condition set to identify the situation where specific properties violate the constraints through the property constraint formula. For example, compare the quality of coking materials, blended residue materials, asphalt materials, and slag addition materials, and the total properties such as acid value, density, sulfur content, etc. with the constraint conditions, and repeat the same steps above to traverse the situation of each day in other processing devices. In this way, through inventory verification and property verification, the embodiment of the present application can respectively determine whether each piece of information in the target format data passes the verification. When a certain piece of information does not meet the constraint conditions and fails to pass the verification, it is separately recorded, and the final verification result is output as not passing. If all inventory and property information is compared with the constraint conditions and no situation of violating the constraints is detected, then this scheduling plan table passes the verification, and the result of passing the verification is stored in the database. And the present application can summarize all the specific information that does not meet the constraint conditions as abnormal scheduling information, which is convenient for subsequent generation of a visual multi-dimensional radar chart.
[0084] Specifically, when the present application judges the data in each processing device, it can record the nature of the specific constraint violations. For example, when any kind of constraint violation occurs, the result that this solution fails the verification will be stored in the database, and the specific date and regulations of each constraint violation will be stored in a data body. After all the verification steps are completed, this data body will be presented to facilitate the display of the specific constraint violation situation of the material discharge mixing properties data of the processing device of this solution. For example, refer to Figure 4 Shown in the figure is a schematic diagram of a solution verification provided by an embodiment of the present application. The verification result of this scheduling solution fails, and the specific constraint violations are that the material discharges of the 4# atmospheric and vacuum distillation unit are lower than the lower limit of the constraint conditions on different days and the inventories of two types of crude oil, Esso and Napo, are negative. At the same time, the present application will observe whether the inventory values of all raw materials are negative on each day. If they are negative, the result that this solution fails the verification will also be stored in the database, and the information on the specific constraint violations will be stored in the data body and presented after the verification steps are completed. Then, refer to Figure 5 Shown in the figure is a schematic diagram of a solution verification passed provided by an embodiment of the present application. The present application can visually display the final result of whether the scheduling solution table passes the verification through text prompts. If the verification passes, it will display the text indicating that the solution passes the verification, as shown above Figure 5 Shown in the figure, the crude oil and atmospheric and vacuum distillation of this scheduling solution pass the verification. If the verification fails, it will display the text indicating that the solution fails the verification.
[0085] Step 104: Generate a multi-dimensional radar chart based on the verification result and perform dynamic display.
[0086] In the embodiment of the present application, the multi-dimensional radar chart includes the raw material inventory information, the processing device material discharge information, and the scheduling exception information of the scheduling solution table. The scheduling exception information is the information that the scheduling solution table fails to pass the constraint verification, so as to display the daily material discharge situation of the processing device and the inventory situation of various raw materials within the scheduling period of the scheduling solution in the form of a radar chart, and improve the intuitiveness of whether the scheduling solution passes the verification and the specific constraint violation situation through the method of data visualization, which is convenient for relevant personnel to optimize and control the process.
[0087] Specifically, a radar chart is a type of chart used to display multi-dimensional data, especially suitable for showing the comparison and analysis of different dimensions. The radar chart in the embodiment of the present application can present data through multiple axes. Each axis represents a dimension, and the data values are represented by points on the graph and connected by lines to form a polygon to display the data of different dimensions. At the same time, the upper and lower limits can be set for the data of each dimension, so that the radar chart can clearly show whether the data of each dimension violates the upper and lower limit constraints while displaying the data of different dimensions.
[0088] In a possible implementation, before generating the multi-dimensional radar chart, the embodiments of the present application also acquire the multi-dimensional data required for radar chart display. The multi-dimensional data includes the scheduling period corresponding to the scheduling plan table, the raw material consumption and initial inventory data of each day within the period for this scheduling plan, verification results, scheduling exception information, etc., and stores them as variables for subsequent data processing.
[0089] In a possible implementation, referring to Figure 6 As shown in the schematic diagram of radar chart date selection in the embodiments of the present application, the embodiments of the present application can call a plugin to enable the multi-dimensional radar chart to arbitrarily display the specific scheduling situation of a certain day within the scheduling period.
[0090] Specifically, the present application can call the date picker in the element-ui plugin library, import the specific dates of the scheduling period, and dynamically bind the start and end dates by parsing the scheduling period. And by changing the current date serial number within the scheduling period, it is determined that the radar chart displays the data corresponding to that day in real time.
[0091] In a possible implementation, the embodiments of the present application can import the feedstock property information and the raw material inventory information in the object data body through a preset basic radar chart, and obtain the discharge radar charts and inventory radar charts corresponding to each of the multiple processing devices. And through the obtained verification results and scheduling exception information, abnormal markings are respectively made on the discharge radar chart and the inventory radar chart, so as to intuitively display data such as whether the chemical scheduling plan passes the verification, the specific situation of violating the constraints, the comparison chart of relevant constraints and the actual scheduling plan, and the chemical raw material inventory situation, etc., which is convenient for relevant personnel to optimize the chemical raw material scheduling.
[0092] Specifically, the present application can call the ordinary radar chart in the echarts plugin library, import the feedstock property data of multiple processing devices and the raw material type inventory data of each day, and dynamically bind the upper and lower limits of each feedstock property constraint of each processing device as the corresponding upper and lower limits of the radar chart. For example, referring to Figure 7 As shown in the schematic diagram of four radar charts provided by the embodiments of the present application, the Figure 7 altogether shows four radar charts, which are respectively the daily discharge attributes of three processing devices corresponding to the 1# atmospheric and vacuum distillation radar chart, the 2# atmospheric and vacuum distillation radar chart, and the 3# atmospheric and vacuum distillation radar chart, and the daily inventory situation of chemical raw materials corresponding to the crude oil inventory radar chart. And the following formula is used to convert each parameter value in the scheduling plan table into the specific coordinate value in the radar chart:
[0093]
[0094] Among them, e is the coordinate of the actual value, v is the actual value, l is the lower limit, u is the upper limit, e u is the upper limit coordinate, e lis the lower limit coordinate.
[0095] Specifically, the present application can process the data of the daily inventory of chemical raw materials. By adding a special display identifier to the corresponding data where the raw material inventory violates the constraints during the verification process, the data in the radar chart is highlighted in red for special display. For example, Figures 8(a) and 8(b) are respectively the schematic diagrams of normal data and red-highlighted data of the atmospheric and vacuum distillation radar chart provided by the embodiments of the present application. Obviously, there is an abnormal situation where the wax oil data violates the constraints in Figure 8(b). In this way, the processed data is bound to the radar chart showing the daily inventory of chemical raw materials, enabling it to intuitively display the inventory of each chemical raw material on a specific day and whether there are any violations of the constraints.
[0096] Similarly, for the daily discharge data of each processing unit, add a special display identifier to the corresponding data where the specific violations of the constraints in the actual discharge situation of the processing unit are determined during the verification process, so that the data in the radar chart is highlighted in red for display. For example, Figures 9(a) and 9(b) are respectively the schematic diagrams of normal data and red-highlighted data of the crude oil inventory radar chart provided by the embodiments of the present application. Obviously, the inventories of two types of crude oil, Esso and Oman, are negative values in Figure 9(b), indicating an abnormal situation where the constraints are violated. In this way, the processed data is bound to the radar chart showing the discharge situation of each processing unit, enabling it to intuitively display the discharge properties of each processing unit on a specific day, the corresponding upper and lower limits, and whether there are any violations of the constraints.
[0097] Please refer to Figure 10 , based on the same inventive concept, the embodiments of the present application also provide an inspection device 100 for a chemical scheduling scheme. The device includes:
[0098] An acquisition unit 1001, configured to acquire a scheduling scheme table and convert the scheduling scheme table into an object data body in a target format; the scheduling scheme table includes raw material inventory information within a preset scheduling period and feed properties information of multiple processing units at different time periods; the object data body is obtained by performing structural conversion on the scheduling scheme table in terms of time dimension, device dimension, and raw material category dimension;
[0099] A verification unit 1002, configured to perform constraint verification on the object data body based on a preset constraint condition set to obtain corresponding verification results; the constraint condition set includes constraint conditions corresponding to raw material processing parameters, raw material property parameters, and side product parameters respectively;
[0100] A display unit 1003, configured to generate a multi-dimensional radar chart based on the verification results and perform dynamic display; the multi-dimensional radar chart includes raw material inventory information, discharge information of each processing unit, and scheduling exception information, and the scheduling exception information is information indicating that the scheduling scheme table fails to pass the constraint verification.
[0101] Optionally, the verification unit 1002 is specifically configured to:
[0102] Based on the constraint condition set and combined with the inventory verification formula, perform inventory constraint verification on the raw material inventory information in the object data body; the inventory verification formula is used to determine the scheduling abnormal situation where the raw material consumption exceeds the raw material inventory;
[0103] Based on the preset condition set and combined with the property verification formula, perform property constraint verification on the feed property information in the object data body; the property verification formula is used to determine the scheduling abnormal situation where the raw material processing parameters, raw material property parameters, and side product parameters each exceed the preset numerical range;
[0104] When at least one piece of information fails to pass the verification, determine the at least one piece of information as scheduling abnormal information and display the verification failure result.
[0105] Optionally, the display unit 1003 is specifically configured to:
[0106] Based on the feed property information and raw material inventory information in the object data body, import data into the basic radar chart to obtain an inventory radar chart and an outlet radar chart corresponding to each of the multiple processing devices;
[0107] Based on the verification result and the scheduling abnormal information, perform abnormal marking on the outlet radar chart and the inventory radar chart respectively.
[0108] Optionally, the constraint conditions corresponding to the raw material processing parameters include one or more combinations of the following: upper and lower limits of device load, limit of the number of raw material types, upper and lower limits of the ratio of light and heavy raw materials, and whether to produce multiple residue addition products.
[0109] Optionally, the constraint conditions corresponding to the raw material property parameters include one or more combinations of the following: upper and lower limits of density, upper and lower limits of sulfur content, upper and lower limits of acid value.
[0110] Optionally, the side line yield parameters include one or more combinations of the following: upper and lower limits of coking material production, upper and lower limits of blend stock production, upper and lower limits of asphalt production, upper and lower limits of residue addition production.
[0111] Optionally, the acquisition unit 1001 is specifically configured to:
[0112] Acquire a preset scheduling plan table template;
[0113] In response to the modification operation of the target object, update the scheduling plan table template to generate a scheduling plan table.
[0114] For the convenience of description, the above parts are divided into various unit modules (or modules) according to their functions and described separately. Of course, when implementing the present application, the functions of each unit (or module) can be implemented in the same or multiple software or hardware. Those skilled in the art can understand that various aspects of the present application can be implemented as a system, method or program product. Therefore, various aspects of the present application can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuit", "module" or "system" here.
[0115] The device can be used to execute the methods shown in the embodiments of the present application. Therefore, for the functions that can be realized by each functional module of the device, reference can be made to the description of the foregoing embodiments, and details will not be repeated here.
[0116] Please refer to Figure 11 As shown, based on the same technical concept, the embodiments of the present application also provide a computer device 110. In one embodiment, the computer device can be an inspection device dedicated to inspecting chemical scheduling plans, or a control device for overall chemical scheduling. The computer device is as Figure 11 shown, including a memory 1101, a communication module 1103, and one or more processors 1102.
[0117] The memory 1101 is used to store the computer program executed by the processor 1102. The memory 1101 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and programs required to run the instant messaging function, etc.; the data storage area can store various instant messaging information and operation instruction sets, etc.
[0118] The memory 1101 can be a volatile memory, such as a random-access memory (RAM); the memory 1101 can also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or the memory 1101 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1101 can be a combination of the above memories.
[0119] The processor 1102 may include one or more central processing units (CPUs) or be a digital processing unit, etc. The processor 1102 is used to implement the inspection method of the above chemical process scheduling scheme when calling the computer program stored in the memory 1101.
[0120] The communication module 1103 is used to communicate with chemical process scheduling devices or other control systems.
[0121] In the embodiments of the present application, the specific connection medium between the above-mentioned memory 1101, communication module 1103, and processor 1102 is not limited. In the embodiments of the present application Figure 11 it is described that the memory 1101 and the processor 1102 are connected through a bus 1104. The bus 1104 is depicted in thick lines in Figure 11 For the connection manners between other components, only schematic descriptions are provided and are not intended to be limiting. The bus 1104 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 11 only a thick line is used to describe it in
[0122] The memory 1101 stores a computer storage medium. The computer storage medium stores computer-executable instructions. The computer-executable instructions are used to implement the inspection method of the chemical process scheduling scheme of the embodiments of the present application. The processor 1102 is used to execute the inspection method of the chemical process scheduling scheme in the above-mentioned various embodiments.
[0123] Based on the same inventive concept, the embodiments of the present application further provide a storage medium. The storage medium stores a computer program. When the computer program runs on a computer, it causes the computer to execute the steps in the inspection method of the chemical process scheduling scheme according to various exemplary embodiments of the present application described above in this specification.
[0124] In some possible implementation manners, each aspect of the inspection method of the chemical process scheduling scheme provided by the present application can also be implemented in the form of a computer program product. The computer program product includes a computer program. When the program product runs on a computer device, the computer program is used to cause the computer device to execute the steps in the inspection method of the chemical process scheduling scheme according to various exemplary embodiments of the present application described above in this specification. For example, the computer device can execute the steps of the various embodiments.
[0125] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0126] The program product of the embodiments of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and may run on a computer device. However, the program product of the present application is not limited thereto. In the present application, the readable storage medium may be any tangible medium that contains or stores a program, and the computer program included therein may be used by or in combination with a command execution system, apparatus, or device.
[0127] The readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a readable computer program. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, and this readable medium may send, propagate, or transmit a program for use by or in combination with a command execution system, apparatus, or device.
[0128] The computer program contained on the readable medium may be transmitted by any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.
[0129] The computer program for performing the operations of the present application may be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages.
[0130] It should be noted that although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of the two or more units described above may be embodied in one unit. Conversely, the features and functions of one unit described above may be further divided and embodied by multiple units.
[0131] In addition, although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the shown operations must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution.
[0132] Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0133] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn of the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present application.
[0134] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.
Claims
1. A method for verifying a chemical process scheduling scheme, characterized in that, The method includes: Obtaining a scheduling plan table and converting the scheduling plan table into an object data body in a target format; the scheduling plan table includes raw material inventory information within a preset scheduling period, and feeding property information of multiple processing devices in different time periods; the object data body is obtained by performing structure conversion on the scheduling plan table in terms of time dimension, device dimension, and raw material category dimension; Based on a preset set of constraint conditions, performing constraint verification on the object data body to obtain corresponding verification results; the set of constraint conditions includes constraint conditions corresponding to raw material inventory, raw material processing parameters, raw material property parameters, and side product parameters respectively; Generating a multi-dimensional radar chart based on the verification results and dynamically displaying it; the multi-dimensional radar chart includes the raw material inventory information, the discharge information of each processing device, and scheduling exception information, and the scheduling exception information is information indicating that the scheduling plan table fails to pass the constraint verification.
2. The method according to claim 1, wherein The performing constraint verification on the object data body based on a preset set of constraint conditions to obtain corresponding verification results includes: Based on the set of constraint conditions and in combination with an inventory verification formula, performing inventory constraint verification on the raw material inventory information in the object data body; the inventory verification formula is used to determine scheduling exception situations where raw material consumption exceeds raw material inventory; Based on the preset set of conditions and in combination with a property verification formula, performing property constraint verification on the feeding property information in the object data body; the property verification formula is used to determine scheduling exception situations where raw material processing parameters, raw material property parameters, and side product parameters respectively exceed a preset numerical range; When at least one piece of information fails to pass the verification, determining the at least one piece of information as the scheduling exception information and displaying the verification failure result.
3. The method according to claim 1, wherein The generating a multi-dimensional radar chart based on the verification results includes: Based on the feeding property information and raw material inventory information in the object data body, importing data into a basic radar chart to obtain an inventory radar chart and discharge radar charts corresponding to multiple processing devices respectively; Based on the verification results and the scheduling exception information, performing exception marking on the discharge radar chart and the inventory radar chart respectively.
4. The method according to claim 1, wherein The constraint conditions corresponding to the raw material processing parameters include one or more combinations of the following: upper and lower limits of device load, limit on the number of raw material types, upper and lower limits of the ratio of light and heavy raw materials, and whether to produce multiple residue addition products.
5. The method according to claim 1, wherein The constraint conditions corresponding to the raw material property parameters include one or more combinations of the following: upper and lower limits of density, upper and lower limits of sulfur content, upper and lower limits of acid value.
6. The method according to claim 1, wherein The side product output parameters include one or more combinations of the following: upper and lower limits of coking material production, upper and lower limits of blend stock production, upper and lower limits of asphalt production, upper and lower limits of residue addition production.
7. The method according to claim 1, characterized in that, The obtaining the scheduling plan table includes: Obtaining a preset scheduling plan table template; In response to a modification operation of a target object, updating the scheduling plan table template to generate the scheduling plan table.
8. An inspection device for a chemical scheduling scheme, characterized in that, The device includes: An acquisition unit, configured to acquire a scheduling plan table and convert the scheduling plan table into an object data body in a target format; the scheduling plan table includes raw material inventory information within a preset scheduling period, and feeding property information of multiple processing devices in different time periods; the object data body is obtained by performing structural conversion on the scheduling plan table in terms of time dimension, device dimension, and raw material category dimension; A verification unit, configured to perform constraint verification on the object data body based on a preset constraint condition set to obtain a corresponding verification result; the constraint condition set includes constraint conditions corresponding to raw material processing parameters, raw material property parameters, and side line product parameters respectively; A display unit, configured to generate a multi-dimensional radar chart based on the verification result and perform dynamic display; the multi-dimensional radar chart includes the raw material inventory information, discharge information of each processing device, and scheduling exception information, and the scheduling exception information is information indicating that the scheduling plan table fails to pass the constraint verification; 9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer storage medium, on which computer program instructions are stored, wherein when the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.