A standardized packaging method for intelligent control algorithm modules

Through the standardized packaging method of intelligent control algorithm modules, the problem that PID algorithm modules in energy industrial control systems are difficult to handle the complexity of industrial production processes is solved, the standardization and efficient performance of the modules are achieved, abnormal parameters are avoided, and the reliability and calculation of the modules are guaranteed. Utilization of resources.

CN115268320BActive Publication Date: 2024-10-18XIAN THERMAL POWER RES INST CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210872920.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2024-10-18
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

In the existing energy industrial control system, the PID algorithm module cannot effectively solve the difficult control problems of large delay, large inertia, nonlinearity, strong coupling, and multiple time changes in the industrial production process, and the packaging process of the intelligent control algorithm module is non-standard and non-standard. Systematize.

Method used

A standardized packaging method for intelligent control algorithm modules is proposed, including evaluating the amount of calculation, analyzing and avoiding abnormal parameters, converting to incremental form, designing prohibitions on increases, decreases, and speed limits, designing tracking and bumpless switching, and designing primary and backup devices. Redundancy and memory management mechanisms, and conduct testing and iterative updates.

Benefits of technology

It realizes the standardized packaging of intelligent control algorithm modules, effectively avoids abnormal parameters, realizes incremental control, ensures the reliability and memory management of the module, improves the utilization of computing resources, and maintains intelligent control performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115268320B_ABST
    Figure CN115268320B_ABST
Patent Text Reader

Abstract

The present invention discloses a standardized packaging method for an intelligent control algorithm module, including: 1) evaluating and planning the computational amount of the intelligent control algorithm; 2) analyzing and avoiding abnormal parameters of the intelligent control algorithm; 3) converting the intelligent control algorithm into an incremental form; 4) designing the increase and decrease prohibitions and speed and amplitude limits of the intelligent control algorithm; 5) designing the tracking and disturbance-free switching of the intelligent control algorithm; 6) designing the main and standby redundancy of the intelligent control algorithm; 7) designing the memory management mechanism of the intelligent control algorithm; 8) packaging a standardized intelligent control algorithm module; 9) testing the intelligent control algorithm module and iteratively updating it. The present invention provides a standardized packaging method for an intelligent control algorithm module, which is applicable to the modular packaging of all control algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of industrial process control and relates to a standardized packaging method for an intelligent control algorithm module. Background Art

[0002] The current energy industrial control systems cannot meet the following requirements: 1) Traditional algorithm modules represented by PID in energy industrial control systems cannot fundamentally solve the difficult control problems of large delay, large inertia, nonlinearity, strong coupling, and multiple time variations in industrial production processes; 2) Some industrial control systems have gradually integrated intelligent control algorithm modules, but the packaging process is non-standard and non-systematic. Summary of the invention

[0003] In order to overcome the above-mentioned shortcomings of the prior art, the object of the present invention is to propose a standardized packaging method for an intelligent control algorithm module.

[0004] The present invention is achieved by adopting the following technical solutions:

[0005] A standardized packaging method for an intelligent control algorithm module comprises the following steps:

[0006] 1) Evaluate and plan the computational effort of intelligent control algorithms;

[0007] 2) Analyze and avoid abnormal parameters of intelligent control algorithms;

[0008] 3) Convert the intelligent control algorithm into incremental form;

[0009] 4) Design intelligent control algorithms to prohibit increase and decrease and limit speed;

[0010] 5) Design tracking and disturbance-free switching of intelligent control algorithms;

[0011] 6) Design the active / standby redundancy of intelligent control algorithms;

[0012] 7) Design memory management mechanism for intelligent control algorithm;

[0013] 8) Encapsulate standardized intelligent control algorithm modules;

[0014] 9) Test the intelligent control algorithm module and update iteratively.

[0015] A further improvement of the present invention is that evaluating and planning the computational amount of the intelligent control algorithm refers to: dividing the computational process of the intelligent control into a static part and a dynamic part, wherein the static part refers to the calculation performed during the first run or parameter modification; the dynamic part refers to the calculation that must be performed each time during the cyclic control process.

[0016] A further improvement of the present invention is that analyzing and avoiding abnormal parameters of the intelligent control algorithm refers to: analyzing the situations of division by zero and matrix irreversibility during the calculation process of the intelligent control algorithm, designing judgment conditions, skipping the calculation part, and directly entering the safe mode to avoid abnormal parameters of the intelligent control algorithm, so that the algorithm output maintains the output of the previous step of the module.

[0017] A further improvement of the present invention is that converting the intelligent control algorithm into an incremental form means that the calculation result of the intelligent control algorithm is a control quantity increment, and the output of the intelligent control algorithm is based on the output of the previous step, superimposed with this control quantity increment.

[0018] A further improvement of the present invention is that the design of the intelligent control algorithm for prohibiting increase and decrease and limiting speed and amplitude refers to: prohibiting increase, prohibiting decrease and limiting speed of the control amount increment, and limiting the control output.

[0019] A further improvement of the present invention is that the tracking and disturbance-free switching of the intelligent control algorithm is designed to mean that: in the tracking state, the output of the previous step tracks the external input and the control amount increment is set to zero; when switching to the control state, the superposition starts from the output of the previous step to achieve disturbance-free switching.

[0020] A further improvement of the present invention is that the design of active / standby redundancy of the intelligent control algorithm refers to: synchronizing the intermediate state of the intelligent control algorithm, generally including historical input and output sequences, so that when the active / standby switch is made, the calculation starts from the same state to achieve disturbance-free active / standby switch.

[0021] A further improvement of the present invention is that designing a memory management mechanism for an intelligent control algorithm means: planning the timing of dynamic memory application and release of the intelligent control algorithm, and when the dimensions of vectors and matrices change, promptly releasing the memory pointed to by the pointer and applying for it again to prevent memory leaks.

[0022] A further improvement of the present invention is that encapsulating the standardized intelligent control algorithm module means programming the intelligent control algorithm and designing the icons, input pins, parameter lists and output pins of the intelligent control algorithm module to realize the predetermined intelligent control function.

[0023] A further improvement of the present invention is that testing the intelligent control algorithm module and iteratively updating means: testing the basic functions of the intelligent control algorithm module, including the first run, incremental calculation, prohibition of increase and decrease, speed limit, tracking switching and master-slave redundancy; while evaluating the intelligent control performance, computational complexity and memory usage of the intelligent control algorithm module, making a comprehensive compromise and iteratively updating.

[0024] The present invention has at least the following beneficial technical effects:

[0025] 1. The standardized packaging method of an intelligent control algorithm module provided by the present invention can realize the standardized packaging of the intelligent control algorithm module of the energy industrial control system.

[0026] 2. The computational complexity of the standardized module can strike a balance between the static part and the dynamic part, fully stimulating the performance of the intelligent control algorithm module under limited computing resources.

[0027] 3. The standardized module can effectively avoid abnormal intelligent parameters and prevent the intelligent control algorithm from falling into the dilemma of division by zero and matrix irreversibility.

[0028] 4. Standardized modules can realize incremental control, making it easy for the module to implement functions such as prohibiting increase and decrease, speed limit and amplitude limit, and tracking and disturbance-free switching.

[0029] 5. The standardized module can realize redundancy of the main and standby controllers, and can achieve non-disturbance when the main and standby controllers are switched, thus ensuring the reliability of the intelligent control algorithm module.

[0030] 6. The standardized module can accurately grasp the timing of dynamic memory application and release to prevent memory leaks.

[0031] 7. The icons, input pins, parameter lists, and output pins of standardized modules are similar to those of traditional modules, and the configuration and debugging environment is consistent, making maintenance easier.

[0032] 8. In addition to the basic functions, the test content of the standardized module comprehensively considers the module's intelligent control performance, computing power, and memory usage, and performs iterative updates to ensure that the intelligent control algorithm maintains a certain intelligent control performance under limited computing power. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Schematic diagram of the standardized packaging process of intelligent control algorithm modules.

[0034] Figure 2 This is a standardized packaging diagram of the dynamic matrix control algorithm module. DETAILED DESCRIPTION

[0035] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0036] Predictive control is a typical intelligent control algorithm. The present invention is further described in detail below by taking the dynamic matrix control (DMC) in predictive control as an example. The description is intended to explain the present invention rather than to limit it.

[0037] like Figure 1 As shown, the invention provides a standardized packaging method for an intelligent control algorithm module, taking dynamic matrix control as an example:

[0038] (1) Evaluate and plan the computational effort of intelligent control algorithms.

[0039] The calculation formula of the dynamic matrix control quantity increment is:

[0040]

[0041] In the formula, Δu is the control increment; k is the time; c is the operation of taking the first row in the column vector; A is the P×M dimensional dynamic matrix (model); Q is the P×P dimensional error weight matrix; R is the M×M control weight matrix; (*) -1 is the inverse operation; w is the reference trajectory sequence; is the predicted output sequence; P is the prediction time domain; M is the control time domain.

[0042] From formula (1), we can see that once the model parameters (A) and configuration parameters (P, M, Q, R) are determined, c T (A T QA+R) -1 A T Q can be calculated offline at one time, so this part only needs to be calculated when it is run for the first time or when the parameters are modified, which belongs to the static calculation part; It is the deviation between the reference trajectory and the predicted output, which needs to be calculated in real time and therefore belongs to the dynamic calculation part. Considering the hardware performance of the controller and the functional objectives of the intelligent control algorithm, the static and dynamic calculation parts of the intelligent control algorithm are planned.

[0043] (2) Analyze and avoid abnormal parameters of intelligent control algorithms.

[0044] From formula (1), we can see that there is a matrix reversible operation (A T QA+R) -1 In order to avoid the problem of matrix irreversibility, R = diag (r1…r M ) i The element must be greater than zero, so it is necessary to determine r i , skip the calculation part and directly enter the safe mode to avoid abnormal parameters, so that the algorithm output maintains the output of the previous step of the module.

[0045] (3) Convert the intelligent control algorithm into incremental form.

[0046] It can be seen from formula (1) that the calculation result of dynamic matrix control is in the form of increment. The actual output is the output of the previous moment, plus the increment Δu(k).

[0047] (4) Design intelligent control algorithms to prohibit increase and decrease and limit speed.

[0048] For the dynamic matrix control algorithm, the control quantity increment should be prohibited from increasing or decreasing (see formula (2)), and the control quantity increment should be speed-limited (see formula (3)):

[0049]

[0050]

[0051] Wherein, Δu′(k) is the control amount increment after the increase and decrease are prohibited; LI is the increase prohibition; LD is the decrease prohibition; Δu″(k) is the control amount increment after the speed limit; δ is the rate limit value.

[0052] The control output at the current moment should be calculated based on the control output at the previous moment and the control quantity increment at the current moment, and then the control output at the current moment should be limited.

[0053] u(k)=u(k-1)+Δu″(k) (4)

[0054]

[0055] In the formula, u(k) is the calculation output at the current moment before limiting; u(k-1) is the calculation output at the previous moment; is the calculated output at the current moment after limiting; To control the upper limit of output; u It is the lower limit of the control output.

[0056] (5) Design tracking and disturbance-free switching of intelligent control algorithms.

[0057] The tracking and disturbance-free switching of intelligent control algorithms should include both control and model aspects.

[0058] In terms of control, in the tracking mode, the control increment should be set to zero (see formula (6)), and the calculated output at the previous moment should track the pin input (see formula (7)). In this case, when switching to the control mode, the superposition can be started from the tracking value, and then the control output u(k) is assigned to the previous step control output u(k-1) each time to achieve tracking and non-disturbance switching.

[0059]

[0060]

[0061] Where TS is the tracking signal and TR is the tracking value.

[0062] In terms of the model, in the tracking state, the initial value of the prediction model (see formula (8)) should be Tracking is performed, that is, all the initial prediction values ​​in the future N moments are equal to the sampled value y(k) output at the current moment (see formula (9)).

[0063]

[0064]

[0065] In the formula, All predicted outputs in the future P steps under the control increment assumed in the M step; is the predicted initial value of all outputs in the next P steps; Δu M (k) is the assumed M-step control increment; k+i|k represents the prediction of time k for time k+i; y(k) is the sample value output at the current time.

[0066] (6) Design the primary and standby redundancy of the intelligent control algorithm.

[0067] The active / standby redundancy of intelligent control algorithms should also include both control and model aspects.

[0068] In terms of control, u(k-1) should be synchronized at all times so that when switching to the backup controller, it can be superimposed from the same u(k-1) to achieve disturbance-free switching of primary and backup control.

[0069] In terms of the model, it can be seen from the prediction model of formula (8) that at any time k, as long as the initial prediction value of the object output is known According to the assumed future control increment Δu M (k), predict the future output of the object. to synchronize.

[0070] (7) Design a memory management mechanism for the intelligent control algorithm.

[0071] When the parameter prediction domain P, control domain M, and modeling domain N change, the dimensions of the above-mentioned multiple vectors and matrices will change. Therefore, it is necessary to first release the memory pointed to by the pointer before the parameter modification, and then re-apply for memory according to the new configuration parameters to prevent memory leaks.

[0072] (8) Encapsulate standardized intelligent control algorithm modules.

[0073] The module input pins, configuration parameters, output parameters, etc. should be planned according to the needs. For model parameters, increase and decrease prohibitions, amplitude and speed limits, etc. that need to change with the working conditions, they can be set as input pins separately to ensure the flexibility of configuration and debugging. For the dynamic matrix control algorithm, its standardized package module can be found in Figure 2 (In the figure, SP is the set value, PV is the feedback value, TR is the tracking value, TS is the tracking signal, LI is forbidden to increase, LD is forbidden to decrease, K is the model gain, T is the model inertia time, TAO is the model delay time, DETA is the speed limit, UP is the upper limit of the amplitude, UD is the lower limit of the amplitude, N is the modeling time domain, M is the control time domain, P is the prediction time domain, Q is the error weight, R is the control weight, and U is the control output).

[0074] (9) Test the intelligent control algorithm module and update iteratively.

[0075] The basic functions of the test module, such as the first operation, incremental calculation, prohibition of increase or decrease, speed limit, tracking switching, and master-slave redundancy, are tested. At the same time, the intelligent control performance, calculation amount, and memory usage are tested. The prediction time domain P, control time domain M, and modeling time domain N are appropriately increased so that the intelligent control algorithm can maintain a certain intelligent control performance under limited calculation amount.

[0076] Although the present invention has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements may be made thereto based on the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection claimed by the present invention.

Claims

1. A standardized packaging method for an intelligent control algorithm module, characterized in that: The following steps are involved: 1) Evaluate and plan the computational effort of intelligent control algorithms; 2) Analyze and avoid abnormal parameters of the intelligent control algorithm, including: analyzing the situation of division by zero and matrix irreversibility during the calculation process of the intelligent control algorithm, designing judgment conditions, skipping the calculation part, and directly entering the safe mode to avoid abnormal parameters of the intelligent control algorithm, so that the algorithm output maintains the output of the previous step of the module; 3) Converting the intelligent control algorithm into an incremental form, including: the calculation result of the intelligent control algorithm is a control quantity increment, and the output of the intelligent control algorithm is based on the output of the previous step, superimposed with the control quantity increment; 4) Design the increase and decrease prohibition and speed and amplitude limit of the intelligent control algorithm, including: prohibiting the increase, decrease and speed limit of the control quantity increment, and limiting the control output; 5) Design the tracking and non-disturbance switching of the intelligent control algorithm, including: in the tracking state, the output of the previous step tracks the external input and sets the control amount increment to zero; when switching to the control state, the output of the previous step is superimposed to achieve non-disturbance switching; 6) Design the active / standby redundancy of the intelligent control algorithm, including: synchronizing the intermediate states of the intelligent control algorithm, generally including historical input and output sequences, so that when the active / standby switch is made, the calculation starts from the same state to achieve disturbance-free active / standby switch; 7) Design the memory management mechanism of the intelligent control algorithm, including: planning the dynamic application and release timing of the intelligent control algorithm memory, timely releasing the memory pointed to by the pointer when the vector and matrix dimensions change, and re-applying to prevent memory leaks; 8) Encapsulate standardized intelligent control algorithm modules; 9) Test the intelligent control algorithm module and update iteratively.

2. A standardized packaging method for an intelligent control algorithm module according to claim 1, characterized in that: Evaluating and planning the computational effort of intelligent control algorithms means dividing the computational process of intelligent control into a static part and a dynamic part. The static part refers to the calculation performed during the first run or parameter modification; the dynamic part refers to the calculation that must be performed each time during the cyclic control process.

3. A standardized packaging method for an intelligent control algorithm module according to claim 1, characterized in that: Encapsulating a standardized intelligent control algorithm module means programming the intelligent control algorithm, and designing the icons, input pins, parameter lists and output pins of the intelligent control algorithm module to realize a predetermined intelligent control function.

4. The standardized packaging method of an intelligent control algorithm module according to claim 1, characterized in that: Testing the intelligent control algorithm module and iteratively updating it means: testing the basic functions of the intelligent control algorithm module, including the first run, incremental calculation, no increase or decrease, speed limit, tracking switching and master-slave redundancy; at the same time, evaluating the intelligent control performance, calculation amount and memory usage of the intelligent control algorithm module, making comprehensive compromises and iterative updates.

Citation Information

Patent Citations

  • Method for setting up reactive power compensation device model based on controlled alternating current source

    CN103457275A

  • Method and apparatus for normalized audio playback of media with and without embedded loudness metadata on new media devices

    CN105190750A