Improved single neuron adaptive PID controller for sewage treatment

Publisher:yuehuiLatest update time:2010-12-30 Source: 微型机与应用 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The traditional PID regulator has the advantages of simple structure, convenient adjustment and close connection between parameter setting and engineering indicators. It has been widely used in process control. However, the algorithm parameters are difficult to set and the parameters do not have adaptive capabilities. Many scholars have proposed improved PID control algorithms. Zhao Jianhua, Shen Yongliang and others [1] derived an adaptive PID control algorithm. The simulation results show the effectiveness of the control algorithm. Neurons, as the basic units of neural networks, have self-learning and adaptive capabilities. The control system algorithm composed of neurons is simple and easy to implement. Combining neuron technology with traditional PID control can solve the problem that traditional PID controllers are difficult to set online real-time parameters to a certain extent [2].

However, in the current neuron PID system, the gain coefficient, one of the most sensitive coefficients, is only set at the initial stage and does not have an online adjustment function. The learning rate is generally obtained through a large number of simulations and experiments and remains unchanged during the control process. These have affected the control effect to a certain extent. Sun Xia Na et al. [3] used a single neuron adaptive fuzzy PID control strategy for the control of active suspension. Based on reference [4], this paper combines neurons with non-identifiable adaptive control rates and proposes an improved single neuron PID controller that adjusts the gain coefficient and learning rate online to further improve the robustness and adaptability of the control system.

In the actual production process, complex control algorithms have poor reusability and are not easy to implement directly in the monitoring configuration environment. ActiveX technology can be flexibly and efficiently applied to various occasions that are reentrant, reused, fully distributed, and language-independent. ActiveX technology expands the functions of monitoring configuration software and enables monitoring configuration software to complete complex and advanced control algorithms. This paper encapsulates the improved single neuron adaptive PID control algorithm in an ActiveX control and applies the control to the control of dissolved oxygen in the sewage treatment process. The simulation results show the effectiveness and practicality of the improved algorithm.

1 PID controller

1.1 Single Neuron PID Controller

The single neuron adaptive PID controller, which is composed of a single neuron with self-learning and self-adaptive capabilities, has a simple structure, can adapt to environmental changes, and has strong robustness. Neurons, as the basic units of neural networks, have the ability of self-learning and self-adaptation, and are easy to calculate. Traditional PID regulators have the characteristics of easy adjustment and close connection between parameter setting and engineering indicators [2]. Combining the two, the shortcomings of traditional PID regulators that it is difficult to adjust parameters online in real time and difficult to effectively control some complex processes and systems with slow parameter changes can be solved to a certain extent. The block diagram of the adaptive PID controller implemented by neurons is shown in Figure 1.



K is the gain coefficient of the neuron. The larger the K value, the better the rapidity, but the overshoot is large, which may even make the system unstable. When the time delay of the controlled object increases, the K value must be reduced to ensure the stability of the system. If the K value is too small, the rapidity of the system will deteriorate. Therefore, it is necessary to select a suitable K value to obtain good system performance.

It can be seen from formula (1) that the correction speed of each weight coefficient depends on its own learning rate. The learning rate of the currently used neuron adaptive PID controller is obtained through a large number of simulations and experiments, and is kept constant during the control process, which limits the further improvement of the controller quality. The gain coefficient, which is the most sensitive to the neuron system, does not have the function of online learning and automatic adjustment, which also limits the control effect to a certain extent.

1.2 Improved single neuron PID controller

In view of the shortcomings of the above controller, the adaptive control algorithm without identification proposed by Marsik and Strejc is combined to dynamically adjust the gain coefficient and self-adjust the learning rate to further improve the robustness and adaptability of the control system.

The non-identification adaptive control algorithm proposed by Marsik and Strejc can be described as:

2 Control Design

In order to enhance the applicability of the algorithm, this paper encapsulates it into an ActiveX control so that the control algorithm can be reused in configuration software or other software that supports ActiveX to achieve online control or simulation. ActiveX control is a software component that can be embedded in many different programs and used as part of the program itself. ActiveX control has the characteristics of portability, strong extensibility, and wide application [5]. In this paper, in the VS2005 environment, the MFC ActiveX Control wizard is used to create an ActiveX control. It creates a shell for any ActiveX control to be created, generates all necessary files and configures the project. When the project is compiled, the compiler will create an ActiveX control, which will generate an OCX file.

The interface properties added in the control include cycle, expected output, feedback input, various controller parameters, etc.; events include controller output exceeding the upper limit, exceeding the lower limit, feedback input exceeding the upper limit, exceeding the lower limit, and methods include clearing the controller output.

Implement the incremental PID and neuron PID control algorithms in the CPidctrl class. Add the WM_TIMER message, get the value of the period attribute to set the timer, and judge the value of ControlFlag in the OnTimer function, which will change as the desired controller type is selected in the user property page. Add the WM_CREATE message, and dynamically add the "Start" and "Set" buttons in the response function to start the controller and pop up the property setting screen respectively. Draw the control appearance in the OnDraw function, display the current expected output, feedback input, controller output and other process quantities and operation, controller output limit exceeding and other signs.

3 ActiveX control application examples

This control is applied to the control of DO (dissolved oxygen) concentration in the sewage treatment process. A typical sewage treatment process is shown in Figure 2.

An MFC application is designed to simulate the dissolved oxygen control process, and an ActiveX control that encapsulates the improved single neuron PID control strategy is used as the controller. A drawing control NTGraphCtrl is added to the program to intuitively display the response curve of the controlled system.

The single neuron PID control strategy before improvement uses a learning rate of ηp=1.4, ηi=1.35, ηd=1.2, and a gain coefficient K=2. The initial values ​​of the learning rate and gain coefficient of the improved single neuron PID controller are the same as those before improvement. The simulation results are shown in Figures 3 and 4. From the above simulation results, it can be seen that the overshoot of the simulation curve of the single neuron PID control before improvement is 6.8%, while the simulation curve controlled by the improved single neuron PID regulator can achieve basically no overshoot, with better control performance. After a large number of simulation experiments, it is found that the control effect of the single neuron PID controller is ideal when the parameters are set appropriately, but the requirements for parameters are relatively sensitive, while the parameters of the improved neuron PID controller have self-adjusting characteristics, showing stronger adaptability and robustness.


In this paper, an improved single neuron PID control strategy with dynamic adjustment of gain coefficient and adaptive learning rate is proposed by combining the adaptive control algorithm without identification. The improved single neuron adaptive PID control algorithm is encapsulated in the ActiveX control by using ActiveX technology, so that the control algorithm can be easily and repeatedly applied to configuration software supporting ActiveX and other application software supporting ActiveX control. In the VS2005 environment, an MFC application is designed to simulate the control of dissolved oxygen in the sewage treatment process. The results show that the improved single neuron PID has better adaptability and stronger robustness than the unimproved single neuron PID control method. The developed ActiveX control can be reused and has good practical value.

Reference address:Improved single neuron adaptive PID controller for sewage treatment

Previous article:Analysis of the technical principles of electric bicycle controllers
Next article:Application of digital video optical transceiver in urban traffic monitoring

Recommended ReadingLatest update time:2024-11-16 16:18

Playing PID control with a single-chip microcomputer - from ideal PID control to advanced PID control_7
3 Various PID controls This section will introduce conventional PID, Smith compensation control, fuzzy control, etc. The C language program and the variables in the program are all placed in the microcontroller, and no extended memory is used. Since the program memory capacity of the STC89C52 microcontroller is 8K,
[Microcontroller]
Playing PID control with a single-chip microcomputer - from ideal PID control to advanced PID control_7
Simulation Analysis of PID Control System of Vehicle Speed
Recently, I have been studying the use of PID controllers in Simulink. I have read some books and papers, and the most common example is the PID control simulation of car speed. Today, we first introduce the physical background of car driving, then model it, and finally perform simulink simulation analysis.
[Embedded]
Simulation Analysis of PID Control System of Vehicle Speed
Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号