CN111610774B - Method and system for calculating effective throw ratio, electronic equipment and storage medium - Google Patents

Method and system for calculating effective throw ratio, electronic equipment and storage medium Download PDF

Info

Publication number
CN111610774B
CN111610774B CN202010251757.3A CN202010251757A CN111610774B CN 111610774 B CN111610774 B CN 111610774B CN 202010251757 A CN202010251757 A CN 202010251757A CN 111610774 B CN111610774 B CN 111610774B
Authority
CN
China
Prior art keywords
value
calculating
variable
effective
mpc controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010251757.3A
Other languages
Chinese (zh)
Other versions
CN111610774A (en
Inventor
冯新国
赵恒平
刘陈宇
匡华清
王赓
李晓勇
曾根保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Petro CyberWorks Information Technology Co Ltd
Original Assignee
Petro CyberWorks Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Petro CyberWorks Information Technology Co Ltd filed Critical Petro CyberWorks Information Technology Co Ltd
Priority to CN202010251757.3A priority Critical patent/CN111610774B/en
Publication of CN111610774A publication Critical patent/CN111610774A/en
Application granted granted Critical
Publication of CN111610774B publication Critical patent/CN111610774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0243Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention provides a method, a system, electronic equipment and a storage medium for calculating an effective throw ratio, wherein the method comprises the following steps: collecting data information of an MPC controller; calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current value of the manipulated variables and the upper limit and the lower limit of the manipulated variables; calculating the effective application rate of the controlled variable by using the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable, and the upper limit and the lower limit of the controlled variable; calculating the average effective application rate of all the operating variables and the average effective application rate of all the controlled variables of the MPC controller; and calculating the average value of the average effective application rate of all the operating variables and the average effective application rate of all the controlled variables of the MPC controller to obtain the effective application rate of the MPC controller. The effective utilization rate can be calculated only by a small part of basic operation information of the MPC controller existing on the DCS.

Description

Method and system for calculating effective throw ratio, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of model predictive control, in particular to a method and a system for calculating an effective throw ratio, electronic equipment and a storage medium.
Background
The application of Model Predictive Control technology (MPC, Model Predictive Control) is the application of informationization construction in the production device level, it adopts scientific and advanced Control theory and Control method, uses process analysis and mathematical Model calculation as core, uses factory Control network and management network as information carrier, fully utilizes the potential of DCS (Distributed Control System) and conventional Control System, ensures that the production device always operates in optimum state, reduces energy consumption of device by multivariable coordination Control and constraint, and obtains maximum economic benefit by card edge operation. The model predictive control system can play a good role in the initial stage of construction and debugging online, but the factors such as device equipment characteristics, process conditions and the like can be changed along with the time according to the characteristics of model control, so that the performance of model predictive control is reduced, and the obtained benefits are reduced.
The MPC controller is embodied by application of a model predictive control technology, and mainly comprises a controller switch, a controller state, a communication timer, an operation Variable (MV for short), and a Controlled Variable (CV for short), wherein the MV structure comprises parameters such as a commissioning switch, a commissioning state, an operation lower limit, a current value, a steady-state target, an operation upper limit, a constraint state, a current stride and the like, and the CV structure comprises parameters such as the commissioning switch, the commissioning state, the operation lower limit, the current value, the steady-state target, the operation upper limit, the constraint state and the like. In the production process, CV generally refers to the controlled quantity, MV generally refers to the quantity which can be adjusted by an operator, and the operator controls the current value of CV within the range required by a process card by reasonably setting the value of MV.
Different from conventional control, the control method of the MPC controller is that device operators reasonably set CV operation upper and lower limits and MV operation upper and lower limits according to process indexes by combining the current running state of the current production device, and start an MPC controller switch, an MV commissioning switch and a CV commissioning switch, and when the MV commissioning state shows 'Good', the control loop is commissioned successfully. The action principle of the MPC controller is based on the model relationship between CV and MV, the steady-state target value of MV is calculated in real time according to the degree of the current value or the steady-state target value of CV deviating from the upper and lower limits of CV operation, meanwhile, the current value of MV tracks the steady-state target value of MV in real time according to a certain track route, and the updated current value of MV is written into a PID control loop of DCS system in the next execution period, after a period of time, the current value of CV having the model relationship with the MV reaches another stable value, namely, the MPC controller finally controls the current value of CV within the upper and lower limits of CV operation by adjusting the current value of MV in real time according to the degree of the current value or the steady-state target value of CV deviating from the upper and lower limits of:
Figure GDA0002999332470000021
when the MPC controller is normally running, the adjusting function of the MPC controller can be triggered only when the current value or the steady-state target value of the CV exceeds the upper and lower limits of the CV operation, therefore, it is reasonable that the current value or the steady-state target value of the CV exceeds the upper and lower limits of the CV operation; the MV operation upper and lower limits have the function of limiting the MV current value or the MV steady-state target value within the MV operation upper and lower limits, and play a role of safety protection and restriction. In combination with the operation principle of the MPC controller, CV is used as a controlled parameter, the setting of the upper and lower operation limit ranges is as narrow as possible, MV is used as a regulating means, and the setting of the upper and lower operation limit ranges is as wide as possible, so that the MPC controller is ensured to have enough regulating degree.
Along with the long-time operation of production, hardware such as on-site equipment, instruments, valves and the like are aged, the process working condition can change, the production operating point can deviate, the MPC controller model can deviate from the on-site equipment unit, and the control performance of the MPC controller can gradually decline. In order to track the control performance of the MPC in real time and perform effective analysis and maintenance on the MPC controller, it is necessary to reasonably and effectively monitor various operation indexes of the MPC controller in real time.
The control performance monitoring technology is a general term for indexes for monitoring the operation effect of the MPC controller in real time, comprises controller input rate, effective input rate, CV overrun rate, MV blocking rate, model quality and the like, can help a maintenance engineer to monitor the MPC controller performance in time, prompt how to solve problems, keep advanced control always running in an optimal state and guarantee the continuity of advanced control benefits. Among these indicators, the effective utilization rate can objectively reflect the actual operation effect of a certain MPC controller.
The calculation of the effective utilization rate of the model predictive control system in the prior art has some inherent defects: 1) the application range is limited, taking Aspen Watch as an example, the method can only be applied to products of Aspen company, such as Aspen DMCplus; 2) effective utilization calculation requires a control system to provide a large amount of original information including basic operation data and model relations, however, the existing model predictive control system often cannot meet the requirements because the original information is provided by a DCS.
Disclosure of Invention
The invention provides a method and a system for calculating the effective throw ratio, electronic equipment and a storage medium, which are used for realizing the calculation of the effective throw ratio of an MPC (multimedia personal computer) controller and objectively reflecting the actual operation effect of the MPC controller based on the operation basic information of the MPC controller which is partially present on a Distributed Control System (DCS).
The calculation scheme of the invention is as follows:
in a first aspect, the present invention provides a method for calculating an effective delivery rate, including:
collecting data information of an MPC controller, wherein the data information comprises an MPC controller commissioning switch state, an operation variable commissioning switch state, a controlled variable commissioning switch state, an operation variable current value, a controlled variable current value, an operation upper limit and a lower limit of an operation variable and an operation upper limit and a lower limit of a controlled variable;
calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current value of the manipulated variables and the upper limit and the lower limit of the manipulated variables;
calculating the effective application rate of the controlled variable by using the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable, and the upper limit and the lower limit of the controlled variable;
calculating an average effective application rate of all manipulated variables of the MPC controller and an average effective application rate of all controlled variables of the MPC controller;
and calculating the average value of the average effective application rate of all the operation variables of the MPC controller and the average effective application rate of all the controlled variables of the MPC controller to obtain the effective application rate of the MPC controller.
Further, the calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current values of the manipulated variables, and the upper and lower operation limits of the manipulated variables includes:
calculating a first difference value between the maximum value and the minimum value of the current value of the operation variable in a preset time period in real time, and calculating a second difference value between the upper operation limit and the lower operation limit of the operation variable at the current moment;
calculating a first ratio of the second difference to the first difference in real time, if the first ratio is greater than a first preset ratio, adding 1 to the effective value of the manipulated variable in an accumulated manner when the manipulated variable is effective at the current moment when the MPC controller commissioning switch and the manipulated variable commissioning switch are both in the commissioning state;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input numerical value of the operation variable to the continuous production numerical value in real time to obtain the effective input rate of the operation variable.
Further, the calculating the effective utilization rate of the controlled variable by using the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable, and the upper limit and the lower limit of the operation of the controlled variable includes:
calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in a preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment;
calculating a second ratio of the fourth difference to the third difference in real time, if the second ratio is smaller than a second preset ratio, adding 1 to the effective value of the controlled variable in an accumulated manner when the MPC controller application switch and the controlled variable application switch are both in an application state and the controlled variable application switch is in an effective state at the current moment;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
Furthermore, the data information of the MPC controller is collected through an enterprise real-time database or is collected by adopting a mode of directly communicating with a Distributed Control System (DCS).
Further, the continuous production time period is converted into a continuous production numerical value, and the continuous production time period is converted into a continuous production numerical value in minutes.
In a second aspect, the present invention provides a computing system for efficient rendering, comprising:
the acquisition module is used for acquiring data information of the MPC controller, and comprises an MPC controller commissioning switch state, an operation variable commissioning switch state, a controlled variable commissioning switch state, an operation variable current value, a controlled variable current value, an operation upper limit and a lower limit of the operation variable, and an operation upper limit and a lower limit of the controlled variable;
the first calculation module is used for calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current values of the manipulated variables and the upper limit and the lower limit of the manipulated variables;
the second calculation module is used for calculating the effective application rate of the controlled variable by utilizing the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable and the operation upper limit and the lower limit of the controlled variable;
a third calculation module, configured to calculate an average effective utilization rate of all manipulated variables of the MPC controller and an average effective utilization rate of all controlled variables of the MPC controller;
and the fourth calculation module is used for calculating the average value of the average effective application rate of all the operating variables of the MPC controller and the average effective application rate of all the controlled variables of the MPC controller to obtain the effective application rate of the MPC controller.
Further, the first calculating module is specifically configured to:
calculating a first difference value between the maximum value and the minimum value of the current value of the operation variable in a preset time period in real time, and calculating a second difference value between the upper operation limit and the lower operation limit of the operation variable at the current moment;
calculating a first ratio of the second difference to the first difference in real time, if the first ratio is greater than a first preset ratio, adding 1 to the effective value of the manipulated variable in an accumulated manner when the manipulated variable is effective at the current moment when the MPC controller commissioning switch and the manipulated variable commissioning switch are both in the commissioning state;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input numerical value of the operation variable to the continuous production numerical value in real time to obtain the effective input rate of the operation variable.
Further, the second calculation module is specifically configured to:
calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in a preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment;
calculating a second ratio of the fourth difference to the third difference in real time, if the second ratio is smaller than a second preset ratio, adding 1 to the effective value of the controlled variable in an accumulated manner when the MPC controller application switch and the controlled variable application switch are both in an application state and the controlled variable application switch is in an effective state at the current moment;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
In a third aspect, the present invention provides an electronic device, including a memory and a processor, where the memory stores thereon a computer program, and the computer program, when executed by the processor, implements the method for calculating an effective delivery rate according to the first aspect.
In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by one or more processors, implements the method for calculating an effective delivery rate according to the first aspect.
The method for calculating the effective input rate is a universal method for calculating the effective input rate, is not only suitable for the MPC controller used by the existing petrochemical device, but also suitable for MPC controllers in other fields, does not depend on an MPC controller model, only needs a small part of basic operation information of the MPC controller existing on a distributed control system DCS, can calculate the effective input rate of the MPC controller, objectively evaluates the input effect of the MPC controller, is simple and reliable in calculation mode, is easy to understand, and can provide objective basis for further improving the operation effect of the MPC controller.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for calculating an effective utilization rate according to an embodiment of the present invention;
fig. 2 is a detailed flowchart of step S120 according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating data of a specific operation variable according to an embodiment of the present invention;
fig. 4 is a detailed flowchart of step S130 according to an embodiment of the present invention;
FIG. 5 is a diagram of data of a specific controlled variable provided in accordance with an embodiment of the present invention;
FIG. 6 is a block diagram of a computing system for efficient delivery rate according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a method for calculating an effective availability ratio according to the present embodiment, where the method for calculating an effective availability ratio according to the present embodiment includes the following steps:
and step S110, collecting data information of the MPC controller, wherein the data information comprises an MPC controller commissioning switch state, an operation variable commissioning switch state, a controlled variable commissioning switch state, an operation variable current value, a controlled variable current value, an operation upper limit and a lower limit of the operation variable, and an operation upper limit and a lower limit of the controlled variable.
Specifically, the calculation of the effective utilization rate of the MPC controller in this embodiment needs to collect data information of related variables of the MPC controller, and includes: the MPC controller is used for switching on the switches, all the MV/CV operation lower limits, all the MV/CV current values and all the MV/CV operation upper limits, and the data information is only the basic operation information of the MPC controller which is only partially existed on the distributed control system DCS. For each variable, the acquired data information at the current time and the acquired data information at the previous time can be combined into a data information history group for calculation in the subsequent step.
And step S120, calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current values of the manipulated variables and the upper limit and the lower limit of the manipulated variables.
And step S130, calculating the effective application rate of the controlled variable by using the switch state of the MPC controller application, the switch state of the controlled variable application, the current value of the controlled variable, and the upper limit and the lower limit of the controlled variable.
Step S140, calculating the average effective application rate of all the operation variables of the MPC controller and the average effective application rate of all the controlled variables of the MPC controller.
Specifically, the average effective utilization rate of the manipulated variables represents the ratio of the mean value of the effective utilization time of the manipulated variables to the continuous production time of the device, the effective utilization rates of all the manipulated variables of a certain MPC controller are obtained in real time and are summed, then the sum is divided by the total number of the manipulated variables of the MPC controller, the average effective utilization rate of all the manipulated variables of the MPC controller is obtained, and the average effective utilization rate of all the controlled variables of the MPC controller is obtained through the same calculation.
Step S150, calculating an average value of the average effective utilization rates of all the manipulated variables of the MPC controller and the average effective utilization rates of all the controlled variables of the MPC controller, and obtaining the effective utilization rate of the MPC controller.
Specifically, the average effective utilization rate of all the manipulated variables and the average effective utilization rate of all the controlled variables of a certain MPC controller are obtained through real-time calculation, and the average effective utilization rate of all the manipulated variables of the MPC controller is summed with the average effective utilization rate of all the controlled variables and then divided by 2 to obtain the effective utilization rate of the MPC controller.
The effective throw ratio of the MPC controller can be calculated by the following calculation expression:
the MPC controller effective duty is 0.5 ═ 0.5 × [ average effective duty for all manipulated variables ] +0.5 × [ average effective duty for all controlled variables ].
It should be understood that the execution sequence of the above steps S120 and S130 is not limited to a single one, and both steps may be executed simultaneously or sequentially.
The method for calculating the effective utilization rate is a universal method for calculating the effective utilization rate, is not only suitable for an MPC controller used by a current petrochemical device, but also suitable for MPC controllers in other fields, does not depend on an MPC controller model, only needs a small part of basic operation information of the MPC controller existing on a distributed control system DCS, can calculate the effective utilization rate of the MPC controller, objectively evaluates the utilization effect of the MPC controller, is simple and reliable in calculation mode, is easy to understand, and can provide objective basis for further improving the operation effect of the MPC controller.
Fig. 2 shows a specific flowchart of step S120 provided in this embodiment, and as shown in fig. 2, step S120 specifically includes the following steps:
step S121, calculating a first difference between the maximum value and the minimum value of the current value of the manipulated variable in the preset time period in real time, and calculating a second difference between the upper operation limit and the lower operation limit of the manipulated variable at the current time.
Specifically, the user may set a preset time period according to the requirement, for example, the preset time period may be 24 hours, or may be 12 hours or 8 hours, which is not limited herein, and for example, with 24 hours, a first difference between a maximum value and a minimum value of a current value of the manipulated variable in 24 hours before the current time is calculated in real time, and a second difference between an upper operation limit and a lower operation limit of the manipulated variable at the current time is calculated.
Step S122, a first ratio of the second difference to the first difference is calculated in real time.
Step S123, determine whether the first ratio is greater than a first preset ratio.
Specifically, the first preset ratio may be set to 50%.
Step S124, if the first ratio is larger than the first preset ratio, the operation variable is effectively used at the current moment when the MPC controller commissioning switch and the operation variable commissioning switch are both in the commissioning state, and the effective commissioning numerical value of the operation variable is added by 1 in an accumulated manner; otherwise, return to step S121.
Specifically, the effective commissioning value of the manipulated variable is used for representing the effective commissioning time number of the manipulated variable in a commissioning state of both the commissioning switch and the manipulated variable commissioning switch of the MPC controller, and whether the commissioning of the manipulated variable is effective at each time is judged by calculating a first ratio in real time and judging whether the first ratio is greater than a first preset ratio, if the first ratio is effective, the effective commissioning value of the manipulated variable is added by 1 in an accumulated manner, and if the first ratio is invalid, that is, the first ratio is not greater than the first preset ratio, the effective commissioning value of the manipulated variable is unchanged.
And step S125, acquiring a continuous production time period when the processing capacity of the continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value.
Specifically, the continuous production period is converted into a continuous production numerical value in units of minutes, and the continuous production period is converted into a continuous production numerical value of 30 minutes, for example.
And S126, calculating the ratio of the effective input numerical value of the operation variable to the continuous production numerical value in real time to obtain the effective input rate of the operation variable.
Specifically, when the processing capacity of the continuous production device is greater than a preset threshold value, the effective commissioning value and the continuous production value of the operation variable are normally accumulated; and when the processing capacity of the continuous production device is less than or equal to the preset threshold value, the effective use value and the continuous production value of the operation variable are not accumulated.
Fig. 3 shows data of a specific manipulated variable, taking the specific Manipulated Variable (MV) as an example:
1) the operating variable has changed from maximum 109.62 to minimum 106.13 to 3.49 for the last 24 hours;
2) the upper and lower operation limits of the manipulated variable range from the upper operation limit 110 to the lower operation limit 104.68 of 5.32;
3) the operation upper and lower limit ranges of the manipulated variable/the variation range of the manipulated variable in the last 24 hours are 5.32/3.49> 50%, the operation upper and lower limit ranges of the manipulated variable are a sufficiently wide range, so the degree of freedom of adjustment of the effective use rate calculation is sufficient, and the manipulated variable at the present time is the effective use numerical value accumulation 1 of the manipulated variable which is effectively used.
Fig. 4 shows a specific flowchart of step S130 provided in this embodiment, and as shown in fig. 4, step S130 specifically includes the following steps:
step S131, calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in the preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment.
Specifically, the user may set a preset time period according to a requirement, for example, the preset time period may be 24 hours, or may be 12 hours or 8 hours, which is not limited herein, and for example, with 24 hours, a third difference between a maximum value and a minimum value of a current value of the controlled variable within 24 hours before the current time is calculated in real time, and a fourth difference between an upper operation limit and a lower operation limit of the controlled variable at the current time is calculated.
Step S132, calculating a second ratio of the fourth difference to the third difference in real time.
Step S133, determine whether the second ratio is smaller than a second preset ratio.
Specifically, the second preset ratio may be set to 50%. It should be noted that the first predetermined ratio and the second predetermined ratio may be the same value or different values, and are not limited herein.
Step S134, if the second ratio is smaller than a second preset ratio, the application of the controlled variable is effective at the current moment when the MPC controller application switch and the controlled variable application switch are both in the application state, and the effective application value of the controlled variable is added by 1 in an accumulated manner; otherwise, return to step S131.
Specifically, the effective use value of the controlled variable is used for representing the effective use time number of the controlled variable in the state that the MPC controller use switch and the controlled variable use switch are both in use, whether the use of the controlled variable at each time is effective is judged by calculating a second ratio in real time and judging whether the second ratio is smaller than a second preset ratio, if the effective use value of the controlled variable is effective, the effective use value of the controlled variable is accumulated and added by 1, and if the effective use value of the controlled variable is invalid, namely the second ratio is not smaller than the second preset ratio, the effective use value of the controlled variable is not changed.
And S135, acquiring a continuous production time period when the processing capacity of the continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value.
Specifically, the continuous production device may be a petrochemical device, or may be a device capable of continuous production in other fields, and is not limited herein. The continuous production time period is converted into a continuous production value, and the continuous production time period is converted into a continuous production value in units of minutes, for example, the continuous production time period is 30 minutes, and the continuous production time period is converted into a continuous production value of 30.
And S136, calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
Specifically, when the processing capacity of the continuous production device is greater than a preset threshold value, the effective use value and the continuous production value of the controlled variable are normally accumulated; and when the processing capacity of the continuous production device is less than or equal to the preset threshold value, the effective use value and the continuous production value of the controlled variable are not accumulated.
FIG. 5 shows data for a particular controlled variable, taking the particular Controlled Variable (CV) as an example:
1) the latest 24-hour change range of the current value of the controlled variable is 386.95 as the maximum value and 369.95 as the minimum value and 17;
2) the upper and lower operation limits of the controlled variable range from 384 as the upper operation limit to 375 as the lower operation limit to 9;
3) if the operating upper and lower limit ranges of the controlled variable/the current value of the controlled variable in the last 24 hours have 9/17 or not less than 50%, the MPC controller target is not clear enough due to the too wide operating upper and lower limit ranges of the controlled variable, the controlled variable is not effectively used at the current moment, and the effective use value of the controlled variable is accumulated to be 0.
The method of the embodiment does not depend on an MPC controller model, and can calculate the effective application rate of the MPC controller based on the operation data such as the switch state of the MPC controller application, the switch state of the manipulated variable application, the switch state of the controlled variable application, the current value of the manipulated variable, the current value of the controlled variable, the upper limit and the lower limit of the manipulated variable, the upper limit and the lower limit of the controlled variable, and the like, so as to realize the quantitative evaluation of the application effect, and the calculation of the effective application rate of the manipulated variable embodies the operation idea that the MPC controller releases the artificial constraint of the manipulated variable as much as possible under the condition of meeting the safety and production constraint, and provides the MPC controller with the operation idea of large enough adjustment freedom degree; the calculation of the effective utilization rate of the controlled variables reflects the key use principle of the MPC controller that the control range of the controlled variables needs to be reduced as much as possible and the control target of the MPC controller is clear as much as possible. The effective throw rate of the controlled variable. From the perspective of the operation level of the control system, the effective commissioning condition of the system can be evaluated only by providing a small amount of controller operation basic data, and reference is provided for producing an operation model prediction controller better by operators.
Example two
Correspondingly, the embodiment provides a computing system of an effective utilization rate, as shown in fig. 6, including:
the acquisition module 110 is configured to acquire data information of the MPC controller, where the data information includes an MPC controller commissioning switch state, an manipulated variable commissioning switch state, a controlled variable commissioning switch state, a manipulated variable current value, a controlled variable current value, an upper operation limit and a lower operation limit of the manipulated variable, and an upper operation limit and a lower operation limit of the controlled variable;
the first calculation module 120 is configured to calculate an effective utilization rate of the manipulated variables by using the MPC controller commissioning switch state, the manipulated variable commissioning switch state, the current values of the manipulated variables, and the upper and lower operational limits of the manipulated variables;
the second calculation module 130 is configured to calculate an effective application rate of the controlled variable by using the MPC controller application switch state, the controlled variable application switch state, the current value of the controlled variable, and the upper limit and the lower limit of the controlled variable;
a third calculation module 140, configured to calculate an average effective utilization rate of all manipulated variables of the MPC controller and an average effective utilization rate of all controlled variables of the MPC controller;
the fourth calculating module 150 is configured to calculate an average value of the average effective utilization rates of all the manipulated variables of the MPC controller and the average effective utilization rate of all the controlled variables of the MPC controller, so as to obtain the effective utilization rate of the MPC controller.
Further, the first calculating module 120 is specifically configured to:
calculating a first difference value between the maximum value and the minimum value of the current value of the operation variable in a preset time period in real time, and calculating a second difference value between the upper operation limit and the lower operation limit of the operation variable at the current moment;
calculating a first ratio of the second difference value to the first difference value in real time, if the first ratio is greater than a first preset ratio, adding 1 to the effective value of the manipulated variable in an accumulated manner when the manipulated variable is effective at the current moment when the MPC controller commissioning switch and the manipulated variable commissioning switch are both in the commissioning state;
acquiring a continuous production time period of which the processing capacity of the continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective use value of the operation variable to the continuous production value in real time to obtain the effective use rate of the operation variable.
Further, the second calculating module 130 is specifically configured to:
calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in a preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment;
calculating a second ratio of the fourth difference value to the third difference value in real time, if the second ratio is smaller than a second preset ratio, adding 1 to the effective use value of the controlled variable in an accumulated manner when the MPC controller use switch and the controlled variable use switch are both in a use state and the controlled variable use switch is valid at the current moment;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
The system of the embodiment is not only suitable for the MPC controller used by the current petrochemical device, but also suitable for MPC controllers in other fields, does not depend on an MPC controller model, and can calculate the effective utilization rate of the MPC controller based on the running data such as the MPC controller application switch state, the manipulated variable application switch state, the controlled variable application switch state, the manipulated variable current value, the controlled variable current value, the manipulated variable upper limit and lower limit, and the controlled variable upper limit and lower limit, so as to realize the quantitative evaluation of the application effect. The calculation method is simple and reliable, is easy to understand, and can provide objective basis for further improving the operation effect of the MPC controller.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or they may be separately fabricated into various integrated circuit modules, or multiple modules or steps thereof may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
EXAMPLE III
The embodiment provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements the method for calculating an effective utilization rate according to the first embodiment.
The Processor in this embodiment may be implemented by an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to perform the method for calculating the effective utilization in the above embodiments. The method for calculating the effective availability ratio implemented when the computer program running on the processor is executed may refer to a specific embodiment of the method for calculating the effective availability ratio provided in the embodiments of the present invention, and details thereof are not described herein.
Example four
The present embodiment provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by one or more processors, the method for calculating an effective utilization rate according to the first embodiment is implemented.
The computer-readable storage medium in this embodiment may be implemented by any type of volatile or nonvolatile Memory device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A method for calculating an effective utilization rate is characterized by comprising the following steps:
collecting data information of an MPC controller, wherein the data information comprises an MPC controller commissioning switch state, an operation variable commissioning switch state, a controlled variable commissioning switch state, an operation variable current value, a controlled variable current value, an operation upper limit and a lower limit of an operation variable and an operation upper limit and a lower limit of a controlled variable;
calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current value of the manipulated variables and the upper limit and the lower limit of the manipulated variables;
calculating the effective application rate of the controlled variable by using the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable, and the upper limit and the lower limit of the controlled variable;
calculating an average effective application rate of all manipulated variables of the MPC controller and an average effective application rate of all controlled variables of the MPC controller;
calculating the average value of the average effective application rates of all the operating variables of the MPC controller and the average effective application rate of all the controlled variables of the MPC controller to obtain the effective application rate of the MPC controller;
the calculating of the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current value of the manipulated variables, and the upper limit and the lower limit of the manipulated variables includes:
calculating a first difference value between the maximum value and the minimum value of the current value of the operation variable in a preset time period in real time, and calculating a second difference value between the upper operation limit and the lower operation limit of the operation variable at the current moment;
calculating a first ratio of the second difference to the first difference in real time, if the first ratio is greater than a first preset ratio, adding 1 to the effective value of the manipulated variable in an accumulated manner when the manipulated variable is effective at the current moment when the MPC controller commissioning switch and the manipulated variable commissioning switch are both in the commissioning state;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
calculating the ratio of the effective input numerical value of the operation variable to the continuous production numerical value in real time to obtain the effective input rate of the operation variable;
calculating the effective utilization rate of the controlled variable by utilizing the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable and the operation upper limit and the operation lower limit of the controlled variable, and the method comprises the following steps:
calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in a preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment;
calculating a second ratio of the fourth difference to the third difference in real time, if the second ratio is smaller than a second preset ratio, adding 1 to the effective value of the controlled variable in an accumulated manner when the MPC controller application switch and the controlled variable application switch are both in an application state and the controlled variable application switch is in an effective state at the current moment;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
2. The method for calculating the effective commissioning rate of claim 1, wherein the data information of the MPC controller is collected by an enterprise real-time database or is collected by directly communicating with a Distributed Control System (DCS).
3. The method of calculating an effective application rate of claim 1, wherein the converting the continuous production time period into a continuous production value is performed in minutes.
4. A computing system for efficient delivery, comprising:
the acquisition module is used for acquiring data information of the MPC controller, and comprises an MPC controller commissioning switch state, an operation variable commissioning switch state, a controlled variable commissioning switch state, an operation variable current value, a controlled variable current value, an operation upper limit and a lower limit of the operation variable, and an operation upper limit and a lower limit of the controlled variable;
the first calculation module is used for calculating the effective application rate of the manipulated variables by using the switch state of the MPC controller, the switch state of the manipulated variable application, the current values of the manipulated variables and the upper limit and the lower limit of the manipulated variables;
the second calculation module is used for calculating the effective application rate of the controlled variable by utilizing the switch state of the MPC controller, the switch state of the controlled variable, the current value of the controlled variable and the operation upper limit and the lower limit of the controlled variable;
a third calculation module, configured to calculate an average effective utilization rate of all manipulated variables of the MPC controller and an average effective utilization rate of all controlled variables of the MPC controller;
a fourth calculation module, configured to calculate an average value of the average effective utilization rates of all the manipulated variables of the MPC controller and the average effective utilization rate of all the controlled variables of the MPC controller, so as to obtain the effective utilization rate of the MPC controller;
the first calculation module is specifically configured to:
calculating a first difference value between the maximum value and the minimum value of the current value of the operation variable in a preset time period in real time, and calculating a second difference value between the upper operation limit and the lower operation limit of the operation variable at the current moment;
calculating a first ratio of the second difference to the first difference in real time, if the first ratio is greater than a first preset ratio, adding 1 to the effective value of the manipulated variable in an accumulated manner when the manipulated variable is effective at the current moment when the MPC controller commissioning switch and the manipulated variable commissioning switch are both in the commissioning state;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
calculating the ratio of the effective input numerical value of the operation variable to the continuous production numerical value in real time to obtain the effective input rate of the operation variable;
the second calculation module is specifically configured to:
calculating a third difference value between the maximum value and the minimum value of the current value of the controlled variable in a preset time period in real time, and calculating a fourth difference value between the upper operation limit and the lower operation limit of the controlled variable at the current moment;
calculating a second ratio of the fourth difference to the third difference in real time, if the second ratio is smaller than a second preset ratio, adding 1 to the effective value of the controlled variable in an accumulated manner when the MPC controller application switch and the controlled variable application switch are both in an application state and the controlled variable application switch is in an effective state at the current moment;
acquiring a continuous production time period of which the processing capacity of a continuous production device is greater than a preset threshold value, and converting the continuous production time period into a continuous production numerical value;
and calculating the ratio of the effective input value of the controlled variable to the continuous production value in real time to obtain the effective input rate of the controlled variable.
5. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, implements the method of calculating an effective rendering rate according to any one of claims 1 to 3.
6. A storage medium having stored thereon a computer program which, when executed by one or more processors, implements a method of calculating an effective rendering rate according to any one of claims 1 to 3.
CN202010251757.3A 2020-04-01 2020-04-01 Method and system for calculating effective throw ratio, electronic equipment and storage medium Active CN111610774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010251757.3A CN111610774B (en) 2020-04-01 2020-04-01 Method and system for calculating effective throw ratio, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010251757.3A CN111610774B (en) 2020-04-01 2020-04-01 Method and system for calculating effective throw ratio, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111610774A CN111610774A (en) 2020-09-01
CN111610774B true CN111610774B (en) 2021-05-25

Family

ID=72201537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251757.3A Active CN111610774B (en) 2020-04-01 2020-04-01 Method and system for calculating effective throw ratio, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111610774B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760625B (en) * 2021-06-30 2024-02-02 浙江中控技术股份有限公司 Evaluation method and monitoring system for model predictive controller performance

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451004B2 (en) * 2005-09-30 2008-11-11 Fisher-Rosemount Systems, Inc. On-line adaptive model predictive control in a process control system
US20070225835A1 (en) * 2006-03-23 2007-09-27 Yucai Zhu Computer method and apparatus for adaptive model predictive control
CN104932561B (en) * 2015-05-04 2017-11-28 中石化宁波工程有限公司 A kind of synthesis gas washing tower tank level control system and its control method
CN109389266A (en) * 2017-08-09 2019-02-26 中国石油化工股份有限公司 The appraisal procedure of oil refining enterprise's appliance integrality performance management
CN109596812A (en) * 2018-12-27 2019-04-09 固安京蓝云科技有限公司 Determine the method and device of the irrigation parameter of crop

Also Published As

Publication number Publication date
CN111610774A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
Chatfield et al. Holt-Winters forecasting: some practical issues
Scarabaggio et al. Distributed demand side management with stochastic wind power forecasting
US7689323B2 (en) Automatic generation control of a power distribution system
US7454270B2 (en) Dynamic economic dispatch for the management of a power distribution system
EP1478075B1 (en) Very short term load predictor
EP1478074B1 (en) Dynamic economic dispatch
US7092798B2 (en) System for control performance standards
Jain et al. Clustering based short term load forecasting using support vector machines
US20040260489A1 (en) Energy management system in a power and distribution system
EP2999076A1 (en) System and method for controlling a power distribution network
Christensen et al. It never rains but it pours: modeling the persistence of spikes in electricity prices
CN111610774B (en) Method and system for calculating effective throw ratio, electronic equipment and storage medium
Hagras et al. An intelligent agent based approach for energy management in commercial buildings
CN112128934A (en) Intelligent control method and intelligent control equipment for air conditioner
Watson Time series: economic forecasting
CN1120555C (en) On-line decision-premaking adaptive stabilizing protection system
Alamaniotis et al. Fuzzy leaky bucket with application to coordinating smart appliances in smart homes
CN117439066A (en) Online power grid dispatching system, method and storage medium
CN109964452B (en) Node management method and device for block chain system and storage device
US7787995B2 (en) Method and system for controlling an operation of an electrical power network
CN116956155A (en) Sewage treatment intelligent dosing method and system based on artificial intelligence
EP1270827B1 (en) Water distribution amount predicting system
JP3321308B2 (en) Plant prediction controller
CN115204487A (en) Equipment state monitoring method, device, equipment and storage medium
CN107179944B (en) The method for disposing stocking system resource and the study of workload in execution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant