CN111611536B - Data processing method, data processing device, storage medium and electronic equipment - Google Patents

Data processing method, data processing device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111611536B
CN111611536B CN202010424273.4A CN202010424273A CN111611536B CN 111611536 B CN111611536 B CN 111611536B CN 202010424273 A CN202010424273 A CN 202010424273A CN 111611536 B CN111611536 B CN 111611536B
Authority
CN
China
Prior art keywords
weight coefficient
updated
control
operation variable
production device
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
CN202010424273.4A
Other languages
Chinese (zh)
Other versions
CN111611536A (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.)
Zhejiang Supcon Technology Co Ltd
Original Assignee
Zhejiang Supcon 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 Zhejiang Supcon Technology Co Ltd filed Critical Zhejiang Supcon Technology Co Ltd
Priority to CN202010424273.4A priority Critical patent/CN111611536B/en
Publication of CN111611536A publication Critical patent/CN111611536A/en
Application granted granted Critical
Publication of CN111611536B publication Critical patent/CN111611536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a data processing method, a data processing device, a storage medium and electronic equipment. Then, judging whether the operation variable of the production device triggers a preset constraint condition, if so, determining that the first weight coefficient is the current weight coefficient of the operation variable, and setting a second preset logic flag; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a third preset logic flag. And then, judging whether the control matrix of the dynamic matrix controller is to be updated, if so, performing total model calculation, and solving the control matrix. And updating the valve position historical data, calculating a control increment, and outputting the control increment to the operation variable of the production device. Therefore, the scheme only needs to perform one logic cycle, and the quadratic programming algorithm needs to be subjected to repeated cyclic trial, so that the calculated amount is reduced, and the solving time is shortened.

Description

Data processing method, data processing device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of data calculation, in particular to a data processing method, a data processing device, a storage medium and electronic equipment.
Background
Dynamic Matrix Control (DMC), also called dynamic matrix predictive control, is a model predictive control algorithm that uses a matrix to express model information of a controlled object and calculates a control increment through matrix operation. The controller adopting the model predictive control algorithm is called a dynamic matrix controller, and is called a DMC controller for short.
At present, a constraint problem is solved by a DMC controller by adopting a Quadratic Programming (QP) algorithm, but the inventor finds that the calculation amount of the QP algorithm is large and the solving time is long.
Therefore, it is an urgent technical problem to be solved by those skilled in the art how to provide a data processing method that can reduce the amount of computation and shorten the solution time while implementing constraint control.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data processing method, which can reduce the amount of computation and shorten the solution time while implementing constraint control.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
a data processing method is applied to a dynamic matrix controller and comprises the following steps:
judging whether the control parameters of the dynamic matrix controller change or not, if so, performing submodel calculation based on the control parameters, and setting a flag of the submodel calculation control matrix needing to be updated;
judging whether an operation variable of the production device triggers a preset constraint condition, if so, determining that a first weight coefficient is the current weight coefficient of the operation variable, and setting a flag that the operation variable weight coefficient of the production device adjusts a control matrix to be updated, wherein the first weight coefficient is larger than the weight coefficient of a previous period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the operation variable weight coefficient of the production device, which needs to be updated, for recovering the control matrix;
calculating a sign which needs to be updated for the control matrix, a sign which needs to be updated for the manipulated variable weight coefficient adjustment control matrix of the production device and a sign which needs to be updated for the manipulated variable weight coefficient recovery control matrix of the production device based on the submodel, judging whether the control matrix of the dynamic matrix controller needs to be updated, if so, performing total model calculation, and performing control matrix solving;
and updating valve position historical data, calculating a control increment, and outputting the control increment to the operation variable of the production device.
Optionally, before determining whether the control parameter of the dynamic matrix controller changes, the method further includes:
when the counter of the controller returns to zero, resetting a preset logic mark, wherein the preset logic mark comprises a mark which is required to be updated by the calculation control matrix of the sub-model, a mark which is required to be updated by the adjustment control matrix of the weight coefficient of the operation variable of the production device and a mark which is required to be updated by the restoration control matrix of the weight coefficient of the operation variable of the production device.
Optionally, the determining whether the operation variable of the production apparatus triggers the preset constraint condition includes:
judging whether the operation variable of the production device exceeds a constraint boundary or not;
and the number of the first and second groups,
it is determined whether the calculated control increment causes the manipulated variable to move in a direction violating the constraint.
Optionally, the determining that the weight coefficient of the current operation variable is a preset normal value includes:
and judging whether the weight coefficient of the current operation variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operation variable.
A data processing device applied to a dynamic matrix controller comprises:
the first judgment module is used for judging whether the control parameters of the dynamic matrix controller change or not, if so, performing sub-model calculation based on the control parameters, and setting a flag of the sub-model calculation control matrix needing to be updated;
the second judgment module is used for judging whether the operation variables of the production device trigger preset constraint conditions or not, if so, determining that the first weight coefficient is the current weight coefficient of the operation variables, and setting a flag which needs to be updated for adjusting the control matrix of the weight coefficient of the operation variables of the production device, wherein the first weight coefficient is larger than the weight coefficient of the previous period of the operation variables; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the production device for recovering the weight coefficient of the operation variable of the control matrix to be updated;
a third judging module, configured to calculate a flag that the control matrix needs to be updated, a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated, and a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated when the control matrix is restored, based on the sub-model, determine whether the control matrix of the dynamic matrix controller is to be updated, and if yes, perform a total model calculation and perform a control matrix solution;
and the first processing module is used for updating the valve position historical data, calculating a control increment and outputting the control increment to the operation variable of the production device.
Optionally, the method further includes:
and the second processing module is used for resetting a preset logic mark when the counter of the controller returns to zero, wherein the preset logic mark comprises a mark which is required to be updated by the calculation of the control matrix of the submodel, a mark which is required to be updated by the adjustment of the weight coefficient of the manipulated variables of the production device and a mark which is required to be updated by the restoration of the weight coefficient of the manipulated variables of the production device.
Optionally, the second determining module includes:
a first judgment unit for judging whether an operation variable of the production apparatus exceeds a constraint boundary;
and the number of the first and second groups,
and a second judging unit configured to judge whether the calculated control increment causes the manipulated variable to move in a direction violating the constraint.
Optionally, the second determining module further includes:
and the third judging unit is used for judging whether the weight coefficient of the current operating variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operating variable.
A storage medium comprising a stored program, wherein, when the program is run, a device on which the storage medium is located is controlled to execute any one of the above data processing methods.
An electronic device, the device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform any one of the above-described data processing methods.
Based on the technical scheme, the invention provides a data processing method, a device, a storage medium and electronic equipment, wherein the data processing method is applied to a dynamic matrix controller, firstly, whether the control parameters of the dynamic matrix controller change or not is judged, if yes, sub-model calculation is carried out based on the control parameters, and a flag of the sub-model calculation control matrix which needs to be updated is set. Then, judging whether an operation variable of the production device triggers a preset constraint condition, if so, determining that a first weight coefficient is the current weight coefficient of the operation variable, and setting a flag that the operation variable weight coefficient of the production device needs to be updated, wherein the first weight coefficient is larger than the weight coefficient of a previous period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag that the weight coefficient of the operation variable of the production device needs to be updated to recover the control matrix. And then, judging whether the control matrix of the dynamic matrix controller is to be updated, if so, performing total model calculation and solving the control matrix. And finally, updating valve position historical data, calculating a control increment, and outputting the control increment to the operation variable of the production device. Therefore, the scheme only needs to perform one logic cycle, and the quadratic programming algorithm needs to be tested circularly for many times, so that the calculation amount is reduced, and the solving time is shortened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data processing method according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of an embodiment of a data processing method according to the present invention;
fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 7 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
As background art, at present, a constraint problem is solved by a DMC controller using a Quadratic Programming (QP) algorithm, specifically, in order to solve the constraint problem, a control target, a measurement value, a weight, a constraint condition, and the like are packaged into a Quadratic Programming (QP), and the solution of the quadratic programming needs to be completed by multiple cyclic heuristics, so that the calculation amount of the QP algorithm is large and the solution time is long.
Illustratively, a DMC controller having a scale including real-time values of 10 production devices and manipulated variables of 10 production devices generally requires a calculation time of 5 to 10 seconds by using a QP algorithm in order to solve a new control increment, and the control cycle of the DMC controller needs to be set to 10 seconds or more.
Based on this, the embodiment of the present invention provides a data processing method, which judges whether the MV satisfies the following two conditions at the same time in real time: (1) whether the MV is close to a constraint boundary, and whether the control increment calculated by the DMC controller in the period can cause the MV to move towards the direction violating the constraint condition or not to confirm whether the MV triggers the constraint condition or not. If the MV triggers a constraint, the corresponding MV weight coefficients are expanded (e.g., by a factor of 10,000,000), and the control matrix and control deltas are recalculated, the newly calculated control deltas will not cause the MV to move in a direction that violates the constraint, and if the MV does not trigger a constraint, the corresponding MV weight coefficients are restored. Therefore, the method provided by the invention can solve the constraint problem only by one logic cycle, so that the solving time is greatly reduced.
Specifically, referring to fig. 1, fig. 1 is a data processing method provided by an embodiment of the present invention, where the data processing method is applied to a dynamic matrix controller, and includes the steps of:
s11, judging whether the control parameters of the dynamic matrix controller change or not, if so, performing submodel calculation based on the control parameters, and setting a flag for updating the submodel calculation control matrix.
In this embodiment, the control parameters generally include: control period, model parameters (gain, time constant, pure lag), real-time value PV of the production plant, whether the manipulated variables MV of the production plant participate in DCM dynamic matrix control, weight coefficients of the manipulated variables MV of the production plant, etc. Since the dynamic matrix controller in this solution is periodically solved, in this step, when any one of the control parameters is changed, the sub-model related to the control parameter is recalculated, for example, if the control period is modified, the response sequence of the model needs to be recalculated, and the control matrix of the DMC controller needs to be recalculated.
In addition, the embodiment of the present invention relates to a preset logic flag, where the preset logic flag is used to indicate whether to recalculate the calculation of the corresponding sub-model, for example, when the preset logic flag includes a flag that the calculation control matrix of the sub-model needs to be updated, a flag that the adjustment control matrix of the manipulated variable weight coefficient of the production apparatus needs to be updated, and a flag that the restoration control matrix of the manipulated variable weight coefficient of the production apparatus needs to be updated.
The flag of the submodel calculation control matrix needing to be updated represents whether the submodel calculation control matrix needs to be updated, the preset logic flag is assumed to be 0 to represent that the submodel calculation control matrix does not need to be updated, and the preset logic flag is assumed to be 1 to represent that the submodel calculation control matrix needs to be updated. Then, when the sub-model calculation control matrix needs to be updated with the flag 1, the characterization sub-model calculation control matrix needs to be updated.
Similarly, when the flag of the manipulated variable weight coefficient adjustment control matrix of the production apparatus needs to be updated to be 1, the manipulated variable weight coefficient adjustment control matrix representing the production apparatus needs to be updated, and when the flag of the manipulated variable weight coefficient restoration control matrix of the production apparatus needs to be updated to be 1, the manipulated variable weight coefficient restoration control matrix representing the production apparatus needs to be updated.
In this scheme, setting the preset logic flag indicates resetting the logic flag to 0. For example, if the flag that the submodel calculation control matrix needs to be updated is set, it indicates that the flag that the submodel calculation control matrix needs to be updated is set to 0.
S12, judging whether the operation variable of the production device triggers a preset constraint condition or not, if so, determining that a first weight coefficient is the current weight coefficient of the operation variable, setting a flag that the operation variable weight coefficient of the production device needs to be updated, wherein the first weight coefficient is larger than the weight coefficient of the last period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag which is required to be updated and used for restoring the weight coefficient of the operation variable of the production device to the control matrix.
Specifically, as shown in fig. 2, an embodiment of the present invention provides a specific implementation manner for determining whether an operation variable of a production apparatus triggers a preset constraint condition, including the steps of:
s21, judging whether the operation variable of the production device exceeds a constraint boundary or not;
and the number of the first and second groups,
and S22, judging whether the calculated control increment causes the operation variable to move towards the direction violating the constraint.
That is, in this embodiment, it is determined in real time whether the MV satisfies the following two conditions: (1) whether the MV is near a constraint boundary, (2) whether the control increment calculated by the DMC controller for the current cycle will cause the MV to move in a direction that violates the constraint. To confirm whether the MV triggers the constraint. If the MV triggers a constraint, the corresponding MV weight coefficients are expanded (e.g., by a factor of 10,000,000), and the control matrix and control deltas are recalculated, the newly calculated control deltas will not cause the MV to move in a direction that violates the constraint, and if the MV does not trigger a constraint, the corresponding MV weight coefficients are restored.
Specifically, whether the MV triggers the constraint condition is specifically: assuming that the MV cannot exceed the upper limit in the present embodiment, if the MV has reached the upper limit and the DMC calculated MV increment is positive, if the MV increment is adopted, the MV must exceed the upper limit, which is defined as the MV triggering the constraint, otherwise, the MV is considered not to trigger the constraint.
In addition, the embodiment of the present invention further provides a specific implementation manner for determining the weight coefficient of the current operation variable as a preset normal value, as shown in fig. 3, including the steps of:
and S31, judging whether the weight coefficient of the current operation variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operation variable.
That is, if the MV does not trigger the constraint condition, it is determined whether the weight coefficient of the MV has recovered to a normal value. And if the MV does not trigger the constraint condition but the weight coefficient of the MV does not return to a normal value, the weight coefficient of the MV is returned to the normal value.
And S13, calculating a sign which needs to be updated for the control matrix, a sign which needs to be updated for the manipulated variable weight coefficient adjustment control matrix of the production device and a sign which needs to be updated for the manipulated variable weight coefficient recovery control matrix of the production device based on the sub-models, judging whether the control matrix of the dynamic matrix controller needs to be updated, if so, performing total model calculation, and solving the control matrix.
As described above, the preset logic flag is used to represent whether recalculation of the calculation of the corresponding sub-model is required, in this step, data of the preset logic flag is collected, and then it is determined whether the control matrix of the dynamic matrix controller is to be updated, if updating is required, the total model is recalculated, and the control matrix is recalculated.
And S14, updating valve position historical data, calculating a control increment, and outputting the control increment to the operation variable of the production device.
Therefore, the embodiment of the invention provides a data processing method for judging whether the MV meets the following two conditions in real time: (1) whether the MV is close to a constraint boundary, (2) whether the control increment calculated by the DMC controller in this cycle will cause the MV to move in a direction violating the constraint, to confirm that the MV triggers the constraint. If the MV triggers a constraint, the corresponding MV weight coefficients are expanded (e.g., by a factor of 10,000,000), and the control matrix and control deltas are recalculated, the newly calculated control deltas will not cause the MV to move in a direction that violates the constraint, and if the MV does not trigger a constraint, the corresponding MV weight coefficients are restored. Therefore, the method provided by the invention can solve the constraint problem only by one logic cycle, so that the solving time is greatly reduced.
On the basis of the foregoing embodiment, before determining whether the control parameter of the dynamic matrix controller changes, as shown in fig. 4, the data processing method provided in the embodiment of the present invention further includes:
and S41, resetting the preset logic mark when the controller counter is reset to zero.
The preset logic marks comprise marks which are used for calculating the control matrix of the submodel and need to be updated, marks which are used for adjusting the control matrix of the production device and need to be updated and marks which are used for recovering the control matrix of the production device and need to be updated.
That is, in the present embodiment, when the counter of the controller is reset to zero, the preset logic flag is reset to 0.
Schematically, with reference to fig. 5, fig. 5 is a specific example of a data processing method according to an embodiment of the present invention, in this embodiment, a program of a DMC controller is periodically executed, and logic is as follows:
(1) When the controller counter returns to zero, the input signal is processed, and the logic flag is reset as "control matrix needs to be updated" in the following diagram.
(2) It is checked whether the control parameters have been modified by the operator.
(3) And recalculating the submodels according to the parameter modification condition, and setting a flag that the control matrix needs to be updated. If the parameters are not modified, skipping the link.
(4) And judging whether the MV meets the following two conditions in real time: (1) whether the MV is close to a constraint boundary, (2) whether the control increment calculated by the DMC controller in this cycle will cause the MV to move in a direction violating the constraint, to confirm that the MV triggers the constraint.
(5) If the MV triggers the constraint condition, the corresponding MV weight coefficient is expanded, and a 'control matrix needs to be updated' flag is set.
(6) And if the MV does not trigger the constraint condition, judging whether the weight coefficient of the MV restores to a normal value or not.
(7) And if the MV does not trigger the constraint condition but the weight coefficient of the MV does not recover the normal value, recovering the weight coefficient of the MV to the normal value and setting a 'control matrix needs to be updated' flag. If the MV weight coefficient is already a normal value, the current step is skipped.
(8) It is checked whether the control matrix needs to be updated.
(9) And if the control matrix needs to be updated, recalculating the total model and solving the control matrix again. If the control matrix does not need to be updated, skipping the link.
(10) And updating valve position historical data.
(11) The control increment is calculated and output to the MV.
(12) The period counter is self-added and returns to zero again after reaching the control period.
Compared with a Quadratic Programming (QP) algorithm for solving the constraint problem, the method provided by the invention can solve the constraint problem only by one logic cycle, so that the solving time is greatly reduced.
On the basis of the foregoing embodiments, as shown in fig. 6, an embodiment of the present invention further provides a data processing apparatus applied to a dynamic matrix controller, including:
the first judging module 61 is used for judging whether the control parameters of the dynamic matrix controller change or not, if so, performing sub-model calculation based on the control parameters, and setting a flag of the sub-model calculation control matrix needing to be updated;
the second judging module 62 is configured to judge whether the manipulated variable of the production apparatus triggers the preset constraint condition, and if so, determine that the first weight coefficient is a current weight coefficient of the manipulated variable, and set a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated, where the first weight coefficient is greater than a weight coefficient of a previous cycle of the manipulated variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the operation variable weight coefficient of the production device, which needs to be updated, for recovering the control matrix;
a third judging module 63, configured to calculate a flag that the control matrix needs to be updated, a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated, and a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated to restore the control matrix, based on the sub-model, determine whether the control matrix of the dynamic matrix controller is to be updated, and if so, perform total model calculation and perform control matrix solution;
and the first processing module 64 is used for updating the valve position historical data, calculating a control increment and outputting the control increment to the operation variable of the production device.
In addition, the data processing apparatus provided in the embodiment of the present invention further includes:
and the second processing module is used for resetting the preset logic marks when the counter of the controller returns to zero, wherein the preset logic marks comprise marks which are required to be updated by the calculation of the control matrix of the submodel, marks which are required to be updated by the adjustment of the weight coefficient of the operation variable of the production device and marks which are required to be updated by the restoration of the weight coefficient of the operation variable of the production device.
Wherein the second judging module may include:
a first judgment unit for judging whether an operation variable of the production apparatus exceeds a constraint boundary;
and the number of the first and second groups,
and a second judging unit for judging whether the calculated control increment causes the manipulated variable to move in a direction violating the constraint.
In addition, the second determination module may further include:
and the third judgment unit is used for judging whether the weight coefficient of the current operation variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operation variable.
The working principle of the device is described in the above embodiments of the method, and will not be described repeatedly.
The device comprises a processor and a memory, wherein the first judging module, the second judging module, the third judging module, the first processing module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more by adjusting kernel parameters.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing a data processing method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute a data processing method.
An embodiment of the present invention provides an apparatus, as shown in fig. 7, the apparatus includes at least one processor 71, at least one memory 72 connected with the processor, and a bus 73; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the data processing method. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
judging whether the control parameters of the dynamic matrix controller change or not, if so, performing sub-model calculation based on the control parameters, and setting a flag of the sub-model calculation control matrix needing to be updated;
judging whether the operation variable of the production device triggers a preset constraint condition, if so, determining that a first weight coefficient is the current weight coefficient of the operation variable, setting a flag that the weight coefficient of the operation variable of the production device needs to be updated, and setting the first weight coefficient to be larger than the weight coefficient of the last period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the production device for recovering the weight coefficient of the operation variable of the control matrix to be updated;
calculating a sign which needs to be updated for the control matrix, a sign which needs to be updated for adjusting the control matrix by the operating variable weight coefficient of the production device and a sign which needs to be updated for recovering the control matrix by the operating variable weight coefficient of the production device based on the sub-model, judging whether the control matrix of the dynamic matrix controller needs to be updated, if so, performing total model calculation, and performing control matrix solving;
and updating valve position historical data, calculating a control increment, and outputting the control increment to an operation variable of the production device.
Optionally, before determining whether the control parameter of the dynamic matrix controller changes, the method further includes:
and when the counter of the controller returns to zero, resetting the preset logic marks, wherein the preset logic marks comprise marks which are required to be updated by the calculation of the control matrix of the sub-model, marks which are required to be updated by the adjustment of the control matrix by the weight coefficient of the operation variable of the production device and marks which are required to be updated by the restoration of the control matrix by the weight coefficient of the operation variable of the production device.
Optionally, determining whether the operation variable of the production apparatus triggers a preset constraint condition includes:
judging whether the operation variable of the production device exceeds a constraint boundary or not;
and the number of the first and second groups,
it is determined whether the calculated control increment causes the manipulated variable to move in a direction that violates the constraint.
Optionally, determining the weight coefficient of the current operation variable as a preset normal value includes:
and judging whether the weight coefficient of the current operation variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operation variable.
In summary, the present invention provides a data processing method, an apparatus, a storage medium and an electronic device, where the data processing method is applied to a dynamic matrix controller, and first determines whether a control parameter of the dynamic matrix controller changes, and if so, performs sub-model calculation based on the control parameter, and sets a flag indicating that the sub-model calculation control matrix needs to be updated. Then, judging whether the operation variable of the production device triggers a preset constraint condition, if so, determining that the first weight coefficient is the current weight coefficient of the operation variable, setting a flag that the operation variable weight coefficient of the production device needs to be updated, wherein the first weight coefficient is larger than the weight coefficient of the last period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag that the weight coefficient of the operation variable of the production device needs to be updated to recover the control matrix. And then, judging whether the control matrix of the dynamic matrix controller is to be updated, if so, performing total model calculation, and solving the control matrix. And finally, updating the valve position historical data, calculating a control increment, and outputting the control increment to the operation variable of the production device. Therefore, the scheme only needs to perform one logic cycle, and the quadratic programming algorithm needs to be tested circularly for many times, so that the calculation amount is reduced, and the solving time is shortened.
The embodiments in the present description are described in a parallel or progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data processing method applied to a dynamic matrix controller comprises the following steps:
judging whether the control parameters of the dynamic matrix controller change or not, if so, performing submodel calculation based on the control parameters, and setting a flag of the submodel calculation control matrix needing to be updated;
judging whether an operation variable of the production device triggers a preset constraint condition, if so, determining that a first weight coefficient is the current weight coefficient of the operation variable, and setting a flag that the operation variable weight coefficient of the production device needs to be updated, wherein the first weight coefficient is larger than the weight coefficient of the previous period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the production device for recovering the weight coefficient of the operation variable of the control matrix to be updated;
calculating a sign which needs to be updated for the control matrix, a sign which needs to be updated for the manipulated variable weight coefficient adjustment control matrix of the production device and a sign which needs to be updated for the manipulated variable weight coefficient recovery control matrix of the production device based on the submodel, judging whether the control matrix of the dynamic matrix controller needs to be updated, if so, performing total model calculation, and performing control matrix solving;
and updating valve position historical data, calculating a control increment, and outputting the control increment to an operation variable of the production device.
2. The data processing method of claim 1, further comprising, before determining whether the control parameter of the dynamic matrix controller changes:
when the counter of the controller returns to zero, resetting a preset logic mark, wherein the preset logic mark comprises a mark which is required to be updated by the calculation control matrix of the sub-model, a mark which is required to be updated by the adjustment control matrix of the weight coefficient of the operation variable of the production device and a mark which is required to be updated by the restoration control matrix of the weight coefficient of the operation variable of the production device.
3. The data processing method of claim 1, wherein the determining whether the operating variable of the production device triggers the preset constraint condition comprises:
judging whether the operating variable of the production device exceeds a constraint boundary or not;
and the number of the first and second groups,
it is determined whether the calculated control increment causes the manipulated variable to move in a direction that violates a constraint.
4. The data processing method of claim 1, wherein the determining that the weighting factor of the current operation variable is a preset normal value comprises:
and judging whether the weight coefficient of the current operation variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operation variable.
5. A data processing apparatus, for use in a dynamic matrix controller, comprising:
the first judgment module is used for judging whether the control parameters of the dynamic matrix controller change or not, if so, performing sub-model calculation based on the control parameters, and setting a flag of the sub-model calculation control matrix needing to be updated;
the second judgment module is used for judging whether the operation variable of the production device triggers the preset constraint condition, if so, the first weight coefficient is determined to be the current weight coefficient of the operation variable, and a flag is set for adjusting the control matrix of the operation variable weight coefficient of the production device to be updated, wherein the first weight coefficient is larger than the weight coefficient of the previous period of the operation variable; if not, determining that the weight coefficient of the current operation variable is a preset normal value, and setting a flag of the operation variable weight coefficient of the production device, which needs to be updated, for recovering the control matrix;
a third judging module, configured to calculate a flag that the control matrix needs to be updated, a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated, and a flag that the manipulated variable weight coefficient of the production apparatus needs to be updated to restore the control matrix, based on the sub-model, determine whether the control matrix of the dynamic matrix controller is to be updated, and if so, perform total model calculation and perform control matrix solution;
and the first processing module is used for updating valve position historical data, calculating a control increment and outputting the control increment to the operating variable of the production device.
6. The data processing apparatus of claim 5, further comprising:
and the second processing module is used for resetting a preset logic mark when the counter of the controller returns to zero, wherein the preset logic mark comprises a mark which is required to be updated by the calculation of the control matrix of the submodel, a mark which is required to be updated by the adjustment of the weight coefficient of the manipulated variables of the production device and a mark which is required to be updated by the restoration of the weight coefficient of the manipulated variables of the production device.
7. The data processing apparatus of claim 5, wherein the second determining module comprises:
a first judgment unit for judging whether an operation variable of the production apparatus exceeds a constraint boundary;
and (c) a second step of,
and a second judging unit configured to judge whether the calculated control increment causes the manipulated variable to move in a direction violating the constraint.
8. The data processing apparatus of claim 5, wherein the second determining module further comprises:
and the third judging unit is used for judging whether the weight coefficient of the current operating variable is a preset normal value or not, and if not, determining that the preset normal value is the weight coefficient of the current operating variable.
9. A storage medium, characterized in that the storage medium includes a stored program, wherein when the program is run, an apparatus in which the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 4.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is arranged to call program instructions in the memory to perform the data processing method of any of claims 1 to 4.
CN202010424273.4A 2020-05-19 2020-05-19 Data processing method, data processing device, storage medium and electronic equipment Active CN111611536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010424273.4A CN111611536B (en) 2020-05-19 2020-05-19 Data processing method, data processing device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010424273.4A CN111611536B (en) 2020-05-19 2020-05-19 Data processing method, data processing device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111611536A CN111611536A (en) 2020-09-01
CN111611536B true CN111611536B (en) 2023-04-07

Family

ID=72200362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010424273.4A Active CN111611536B (en) 2020-05-19 2020-05-19 Data processing method, data processing device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111611536B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003096130A1 (en) * 2001-10-23 2003-11-20 Brooks-Pri Automation, Inc. Semiconductor run-to-run control system with state and model parameter estimation
JP2004038465A (en) * 2002-07-02 2004-02-05 Railway Technical Res Inst Method and system for supporting resource management
CN109669413A (en) * 2018-12-13 2019-04-23 宁波大学 A kind of dynamic nongausian process monitoring method based on the latent independent variable of dynamic
CN110580373A (en) * 2018-06-07 2019-12-17 能力中心-虚拟车辆研究公司 Preprocessing collaborative simulation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10613490B2 (en) * 2018-02-05 2020-04-07 Mitsubishi Electric Research Laboratories, Inc. Method and apparatus for preconditioned predictive control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003096130A1 (en) * 2001-10-23 2003-11-20 Brooks-Pri Automation, Inc. Semiconductor run-to-run control system with state and model parameter estimation
JP2004038465A (en) * 2002-07-02 2004-02-05 Railway Technical Res Inst Method and system for supporting resource management
CN110580373A (en) * 2018-06-07 2019-12-17 能力中心-虚拟车辆研究公司 Preprocessing collaborative simulation method and device
CN109669413A (en) * 2018-12-13 2019-04-23 宁波大学 A kind of dynamic nongausian process monitoring method based on the latent independent variable of dynamic

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109973301B (en) Method and device for controlling pitch variation of wind generating set under extreme turbulent wind condition
CN110069013B (en) High-order process control method and device
CN111414999B (en) Method and device for monitoring running state of equipment
CN109658346B (en) Image restoration method and device, computer-readable storage medium and electronic equipment
CN111178635A (en) Weather forecast method, weather forecast device, computer equipment and computer readable storage medium
CN111080477A (en) Household power load prediction method and system
CN111428918B (en) Soil pollution range prediction method and system for heavy metal attenuation pollution source
CN111611536B (en) Data processing method, data processing device, storage medium and electronic equipment
WO2004090782A1 (en) Accurate linear parameter estimation with noisy inputs
CN109802403B (en) Critical gain setting method and device for power system stabilizer
JPWO2016136630A1 (en) System stability estimation apparatus and system stability estimation method
US11573542B2 (en) Method and apparatus for adjusting process control prediction model and process controller
CN114139767A (en) Health trend prediction method and system for equipment, computer equipment and storage medium
JP6067289B2 (en) Reduced model creation device, creation method and creation program for power system
CN116611006B (en) Fault identification method and device of electric kettle based on user feedback
JP2013074365A (en) Method, program and system for processing kalman filter
KR102391607B1 (en) Medium-Range heatwave forecasting system and method
JP5687122B2 (en) Software evaluation device, software evaluation method, and system evaluation device
CN109884548B (en) Method for predicting remaining life of lithium battery based on GASVM-AUKF algorithm
JPH0756608A (en) Signal processing method
KR102295967B1 (en) Method for Monitoring Damage of Structure with Unscented Kalman Filter based on Surrogate-Based Optimization
JP7416267B2 (en) Adjustment system, adjustment method and adjustment program
CN110070230B (en) Local power grid unit cell electric quantity evaluation calculation method and device and storage medium
JP7358836B2 (en) Inertia estimation device, inertia estimation program, and inertia estimation method
CN113794198A (en) Method, device, terminal and storage medium for suppressing broadband oscillation

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