Abstract
Proportional integral derivative (PID) controllers are widely used in industrial control processes since they are simple and easy to implement and act as an effective measure to manipulate the dynamic properties of industry systems. Carrying out the optimal design of the PID controllers is an indispensable constituent of the premises of highly precious control of these systems. In order to solve the problem of designing the parameters of the PID controllers more effectively, we bring forward a chaotic particle swarm optimization (CPSO) approach which we call CP IDSO. In this approach, we introduce the combination of chaotic logistic dynamics, hierarchical inertia weight, enhancement learning strategy, mutation mechanism and a proportional integral derivative (PID) controller. The chaotic logistic map is used in the substitution of the two random parameters affecting the convergence behavior. The hierarchical inertia weight coefficients are determined in accordance with the present fitness values of the local best positions so as to adaptively expand the particles’ search space. The PID controller and enhancement learning strategy are simultaneously incorporated into standard PSO (SPSO) to efficiently enhance the particles’ local and global search exploration and exploitation abilities. For performance validation of CP IDSO, CP IDSO, together with other algorithms like chaotic catfish PSO (CCPSO), genetic algorithm (GA) and PSO, is exploited to design the parameters of a PID controller in a Kalman filter based cybernetic system. The simulation results illustrate that CP IDSO exhibits better performance than other algorithms and yields the best result in the parameter optimization design of the system.
Keywords
Introduction
A PID controller is a generic control loop feedback mechanism widely used in industrial control systems. Based on the PID control rules to tune the three parameters, the controller can provide control action designed for specific process requirements. The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the setpoint, and the degree of system oscillation. Accordingly, it has historically been considered to be the best controller. However, the use of the PID algorithm for control does not guarantee the optimal control of the system or system stability. A good many researchers and practitioners around the world attempt to pursue the better solutions to tune the parameters for the optimal system control. Over the years, several meta-heuristic methods such as manual tuning, Ziegler-Nichols and so on, have been proposed for the tuning of PID controllers. In general, it is often hard for these methods to determine optimal or near optimal PID parameters in many industrial systems. Accordingly, many artificial intelligence techniques and random search methods like neural network, fuzzy system, neural-fuzzy logic, GA and PSO have been employed to improve the controller performances for a wide range of industrial systems while retaining their basic characteristics. They have been widely applied to proper tuning of PID controller parameters [1, 23–25].
It is worth noting that the PSO technique, which is first introduced by Kennedy and Eberhart [7, 9], is a stochastic population-based one of the modern heuristic algorithms. It was developed through simulation of a simplified social system and has been found to implement easily and to achieve high efficiency in tuning the parameters of PID controllers in industrial systems [2, 25]. Therefore, it has drawn much attention from researchers and practitioners throughout the world. Bouallègue et al. proposed a new PID-type fuzzy logic controller tuning strategy using a PSO approach [2]. In [4], Chang and Shih presented an improved particle swarm optimization to search for the optimal PID controller gains for a class of nonlinear systems. In [24], Zhao et al. applied two lbests multi-objective PSO to designing multi-objective robust PID controllers for two MIMO systems, namely, distillation column plant and longitudinal control system of the super maneuverable F18/HARV fighter aircraft. Zamani et al. employed the PSO algorithm to carry out the optimal design of a fractional order PID controller in an automatic voltage regulator [25].
Over the past few years, great progresses with regard to the PSO technique have been made. Scholars have applied chaos to the PSO performance improvement by utilizing chaotic ergodic orbits to search the optima instead of using random orbits [3, 20]. In [3], Cai et al. presented a CPSO method based on the Tent equation to solve economic dispatch problems with generator constraints. Compared with the traditional PSO method, the CPSO method has good convergence property accompanied by the lower generation costs and can result in great economic effect. In [5], Chuang et al. proposed CCPSO. Statistical analysis of the experimental results indicate that the performance of CCPSO is better than the performance of PSO, CPSO, catfish PSO. Liu et al. proposed a hybrid particle swarm optimization algorithm by incorporating logistic chaos and adaptive inertia weight factor into PSO, which reasonably combines the population-based evolutionary PSO search ability with chaotic search behavior [15]. In [20], Wang and Liu proposed a logistic CPSO approach to generate the optimal or near-optimal assembly sequences of products. The proposed method is validated with an illustrative example and the results are compared with those obtained by using the traditional PSO algorithm under the same assembly process constraints.
Obviously, the CPSO algorithms have recently received much interest for achieving high efficiency and searching global optimal solution in nonlinearly multi-dimensional problem spaces. As a result, we herewith attempt to pursue an effective CPSO algorithm to tune the parameters of PID controllers in industrial systems. We put forward a novel CPSO algorithm which we call the chaotic logistic dynamics, hierarchical inertia weight, enhancement learning strategy, mutation mechanism and a PID controller hybridized chaotic PSO approach (CP IDSO). In order to verify the effectiveness of CP IDSO, we apply it to tuning the parameters of a PID controller in a Kalman filter based cybernetic system together with other algorithms like CCPSO, GA and PSO. Simulation results prove that CP IDSO is superior to CCPSO, GA and PSO in tuning the parameters of a PID controller in a Kalman filter based cybernetic system and that it is a more efficient approach to optimal design in engineering and sciences.
The rest of the paper is organized as follows. Section 2 depicts the derivation of CP IDSO and its enhancement learning strategy, mutation mechanism and the whole procedure. Section 3 presents the experimental study of applying CP IDSO to the optimal design of a PID controller in a Kalman filter based cybernetic system. Section 4 gives the conclusions and future work.
Representation of CP IDSO
In this part,we discuss the stability of CP IDSO, design a PID controller, depict the enhancement learning strategy and mutation mechanism, and give a full description of the procedure of CP IDSO in turn.
Analyzing the stability of CP IDSO and designing a PID controller
SPSO is a kind of typically stochastic standard algorithm to search for the best solution by simulating the movement of the flocking of birds or fish. It works by initializing a flock of birds or fish randomly over the searching space, where each bird or fish is called a “particle”. These particles fly with certain velocities and find the global best position after some generations. At each generation, they are dependent on their own momentum and the influence of their own local and global best positions x lbest and x gbest to adjust their own next velocity v and position x to move in turn. SPSO is clearly depicted as follows:
Adjusting the Equations (1) and (2) to the Equations (3) and (4).
Supposing φ1 = c1 · rand1, φ2 = c2 · rand2, φ = c1 · rand1 + c2 · rand2 and , the Equations (3) and (4) can be transformed into the following differential evolutionary SPSO equations (5) and (6) since and .
Provided the initial outsets V (0) ≈0 and X (0) ≈0, the following formulae are obtained after the Laplace transformation of differential evolutionary SPSO equations.
Supposing , the closed-loop transfer function for the input X (s) and the combination output of X
lbest
(s) and X
gbest
(s) is the following formula (9).
Provided X
lbest
(s) = X
gbest
(s), the Equation (9) is changed into the Equation (10).
Thus, the evolutionary relationship between the position X (s) and its global best position X
gbest
(s) in a closed-loop scheme is displayed in Fig. 1. It clearly illustrates their evolutionary relationship which denotes a second order transfer function. In order to advance the evolutionary relationship, we add one PID controller between X
gbest
(s) and X (s) as in Fig. 1, where the PID controller is expressed by the Equation (11) [12] and appears in the dashed framework.
Accordingly, we obtain the following formula (12).
The corresponding eigenvalue function is expressed below by the Equation (13)
According to Routh-Hurwitz’s stability criterion, the inequalities are obtained below.
On the other hand, the updated X (s) is as follows.
After being combined with the Equation (16), the Equation (7) is presented below.
If the random parameters rand1 and rand2 in the Equation (1) of SPSO are chaotic, they can ensure the optimal ergodicity throughout the search space. Furthermore, there are no fixed points, periodic orbits, or quasi-periodic orbits in the behaviors of the chaotic systems. Therefore, they are necessarily substituted by the two sequences Cr(t) and (1 - Cr(t)) generated via the following logistic map Equation (18)
Thus, the Equation (17) is turned into the following time-varying function formula (21) after the inverse Laplace Transformation. Consequently, our proposed CP IDSO is comprised of the Equations (21) and (2).
Being different from the Equation (1) in SPSO, the Equation (21) not only includes the proportional terms of (x lbest - x (t)) and (x gbest - x (t)), but also encompasses their integral terms and derivative terms. These terms enable CP IDSO to achieve a proper response, eliminate the steady-state errors, and improve particles’ evolutionary dynamics simultaneously so that CP IDSO enhances the diversity of the swarm and converges fast to the global best position. Moreover, The chaotic logistic map is used in the substitution of the two random parameters rand1 and rand2.
Based on the above inequalities (14) and (15) and our professional experiences, we design the following three coefficients of the PID controller, where t is the present generation, and MaxT is the maximum generation.
Concerning the inertia weight coefficient, we adopt the following hierarchical formula (25) [15]
In order to promote the evolutionary process of CP IDSO, we adopt an enhancement learning strategy (ELS) to help particles perform comprehensive learning from their own local and neighboring best positions, other local best positions, and their global best position. It is evident that particles are easily trapped into local optima after some iterations. Therefore, for a specific local best particle, we first randomly select some other local best particles from the population whose total number is equal to their dimensional number. Then, we take turns to choose one different dimension from the selected local best particles, whose position is and velocity vector is . Next, we use to replace the same dimension (j) of the specific local best particle as a temporary specific local best particle (xlbest′). Successively, we compare the fitness value of a specific local best particle with the fitness(xlbest′). If the fitness value of a specific local best particle > the fitness(xlbest′), the position of the specific local best particle in the dimension j is moved to . The same method is also exploited to learn from their neighboring best positions.
Mutation of CP IDSO
It has been observed that the normal SPSO is easily stagnated in local optimum because of the lack of diversity of the population. Thus, particles remain in a local optimum for unpredictable generations. In order to increase search diversity and avoid getting trapped in local optima, many leaping-out mechanisms are proposed [13, 22]. However, the performance can be affected in many factors and is hard to predict after introducing the leaping-out algorithms. In order to improve the diversity of the particles and prevent them from being premature, we adopt an effective measure to easily implement. Compared with other mutation mechanisms, our mutation is produced by randomly selecting the local best particle and carrying out the acrossover operation with a random number of a Gaussian distribution. Its advantages are the twofold operational randomness properties. These random operations may result in both the position improvement of the global best particle and the diversity promotion of the swarm.
In CP IDSO, we first randomly select the local best particle (x
lbest
(k)) out of the population. If it is not the global best particle (x
gbest
), we randomly choose one dimension (j) from the selected particle, whose position is and velocity vector is . Thereafter, we use to replace the same dimension (j) of the global best particle as a temporary global best particle (xgbest′). Otherwise, we use the following formula
Consequently, based on the aforementioned contexts, our proposed CP IDSO can be depicted below in detail.
Step 1: Initialize parameters including the number PN of particles, dimensional size D of each particle, maximum generation number MaxT, initial chaotic logistic values Cr(0), initial position x and velocity v of each particle, inertia weight coefficient w pso , and cognitive coefficient c1, social coefficient c2. Calculate the initial fitness of each particle, and set the initial local best position x lbest and global best position x gbest .
Step 2: If the specific local optimal value x lbest (k) does not evolve for some certain iterations, improve the specific local best position by the above-mentioned ELS. Thereafter, according to the equations (22)–(24), calculate the three parameters k p , k i and k d of the PID controller. Then in terms of the equations (21) and (2), calculate the next velocity v (t) and position x (t) of each particle. Next, calculate the fitness of each particle, set the local best position x lbest and the global best position x gbest . Thereafter, update the global best position x gbest with the temporary global best mutation position xgbest′ if the fitness (x gbest )> the fitness(xgbest′).
Step 3: Observe if the global best fitness(x gbest ) meets the given stopping threshold or not, or observe if the maximum generation number MaxT reaches or not. If not, go back to Step 2.
Step 4: Otherwise, the operation can be terminated. Finally, output the global best position x gbest , and its corresponding global best fitness as well as convergent generation number.
The pseudo-code for CP IDSO is presented below in Algorithm 1.
1: /*initialize the swarm.*/
2:
3: create particle p i with dimension D, velocity v i and position x i from 1 to PN.
4: set x lbest (i) = x i
5: calculate fitness (x i ).
6:
7: set x gbest = best(x lbest (i))
8: calculate inertia coefficient w pso , cognitive coefficient c1 and social coefficient c2.
9: set maximum generation number MaxT and chaotic variable Cr0.
10: / *update velocity and position with an evolutionary PID style strategy.*/
11:
12: calculate PID controller parameters: k p , k i and k d .
13:
14: / *improve local best position at a given generation.*/
15:
16: set tmp _ x lbest (i) = x lbest (i)
17: randomly create a D dimensional array ar between 1 and PN.
18:
19: set
20:
21: set
22:
23:
24: set x lbest (i) = tmp _ x lbest (i)
25:
26: calculate velocity v i and position x i , according to the equations (21) and (2).
27:
28: set x lbest (i) = x i
29:
30: set repeat _ num (i) = repeat _ num (i) +1
31:
32:
33: set x gbest = x lbest (i)
34: set fitness (x gbest ) = fitness (x lbest (i)
35: /*mutation of global best position.*/
36: randomly select k between 1 and PN
37: set xgbest′ = x gbest
38:
39: randomly select j between 1 and D, and crossover between and
40:
41: calculate standard deviation σ, randomly select j between 1 and D, and crossover between and the equation (26)
42:
43:
44: set
45:
46: set x gbest = xgbest′
47:
48:
49: /*operation termination.*/
50:
51: break
52:
53:
54: output results.
Optimal design of PID controller in a Kalman filter based cybernetic system
In this part, we conduct a detailed experimental study to optimize the parameters of a PID controller in a Kalman filter based cybernetic system by using CP IDSO. The experiment includes the description of the Kalman filter based cybernetic system and experimental setup, parametric optimization design and experimental results as well as optimization design validation.
Description of the Kalman filter based cybernetic system and experimental setup
The PID cybernetic system based on a Kalman filter is shown in Fig. 2. In Fig. 2, the discrete linear system is modeled by the following eqations
The controlled object is expressed by the following transfer function.
As a result, the above-mentioned known matrixes are as follows.
Besides, the sampling time is 1ms. The process disturbance noise signal w (k) and the measured noise signal v (k) are both white noise signals with their amplitudes 0.002 while the input signal is a step signal. The covariance Q of w (k) is set at 1, and the covariance R of v (k) is set at 1. The whole simulation time is set within 1s.
In order to evaluate the performance of CP IDSO, we conduct the experiments to compare four state-of-the-art algorithms including our proposed CP IDSO, CCPSO, GA and PSO for the optimal design of the PID controller in the Kalman filter based cybernetic system. Their population size PN is set at 20, maximum generation number MaxT is set at 50, and the three dimensional (3-D) parameters k
p
, k
i
and k
d
are retrieved around the ranges [0, 10], [0,1] and [0, 10], respectively. Their settings of other important parameters are summarized in Table 1. The fitness function for 3-D optimization design is determined below
Parametric optimization design and experimental results
Figure 3 presents the median convergence and optimal design characteristics of diverse involved algorithms for 3-D optimal design problem above. The results of the proposed CP IDSO are depicted by bold solid lines in Fig. 3. Note that the results of Y axis in Fig. 3(a) are logarithmic. Table 2 shows the median results of diverse selected algorithms for 3-D optimal design problem. The best results among the four selected algorithms are shown in bold in Table 2. In order to determine whether the results obtained by CP IDSO are statistically different from the results generated by other algorithms, the nonparametric Wilcoxon rank sum tests are conducted between the CP IDSO’s result and the best result achieved by other algorithms for each test function. The h_t-tests presented in the last column of Table 2 is the result of t-tests. An h_t-tests of 1 indicates that the performances of the two variants are statistically different with 95% certainty, whereas an h_t-tests of 0 implies that the performances are not statistically different.
From the results in Table 2 and the graphs in Fig. 3, we clearly notice that CP IDSO achieves the best result while GA does worst. CCPSO yields a better result than PSO. CP IDSO shows its comparatively better mean best fitness value than CCPSO and PSO in Table 2 though it is not obvious in Fig. 3(a). Furthermore, for CP IDSO, CCPSO and PSO, PD control is more suitable to tune the performance of the Kalman filter based cybernetic system instead of either PID control or PI control.
Optimization design validation
To verify the optimal results of the four algorithms, the median parametric results about k p , k i and k d are exploited to tune the performance of the Kalman filter based cybernetic system. The concrete results of the verification experiments are presented in Fig. 4. Note that the results of Y axes in Fig. 4 are logarithmic. The position tracking error is defined as the square sum of difference between the step input signal and the output signal. Figure 4 presents the position tracking responses and the position tracking errors by CCPSO, GA, PSO and CP IDSO in accordance with step input signal while the Kalman filter is considered or not. Figure 4(a) and (b) present the position tracking responses and the position tracking errors by CCPSO, GA, PSO and CP IDSO when the Kalman filter is not considered. Figure 4(c) and (d) present the the position tracking responses and the position tracking errors by CCPSO, GA, PSO and CP IDSO when the Kalman filter is considered. Table 3 presents the response indicators of diverse involved algorithms for 3-D optimal design problem in accordance with step input signal while the Kalman filter is considered. In the meantime, the time unit is second.
From the graphs in Fig. 4(a), (b), (c) and (d), one may observe that the tuning performances by CCPSO, GA, PSO and CP IDSO when the Kalman filter is considered are much better than those when no Kalman filter is considered. Moreover, the position tracking error by CP IDSO is smallest whilst the one by GA is biggest. The result by CCPSO is comparably better than that by PSO. From the results in Table 3, We find that GA gets the smallest overshoot and the shortest delay time while the self regulating times of all the algorithms are same. The fact indicates that though selecting chaotic random parameters consumes run time and causes the response fluctuation, it has no effect on the whole self regulating time. On the other hand, the reason why CP IDSO yields better results than other involved algorithms for the optimal design of the PID controller is that the combination of the time varying PID controller, chaotic random parameters and mutation mechanism has effectively improved the evolutionary dynamics of particles and enhanced the particles’ local and global search exploration and exploitation abilities. Despite of these, all the involved algorithms can be utilized to tune the performance of the Kalman filter based cybernetic system.
Conclusions and future work
In order to solve the problem of designing the parameters of the PID controllers in industrial cybernetic systems more effectively, we present a novel CPSO variant which we called CP IDSO, where we attempt to introduce the combination of chaotic logistic dynamics, hierarchical inertia weight, enhancement learning strategy, mutation mechanism and a PID controller into SPSO. Successively, CP IDSO, together with CCPSO, GA and PSO, is used in the optimal design of the PID controller in the Kalman filter based cybernetic system. The experimental results illustrate that our proposed CP IDSO outperforms CCPSO, GA and PSO for the parameter optimization of the PID controller in the Kalman filter based cybernetic system and is regarded as a more effective tool for optimization computation and search problem solving in engineering and sciences since it enhances the diversity of the swarm and has good convergence efficiency.
Future work will further the enhancement learning ability of CP IDSO and the performances of PID controllers. Moreover, we will apply the proposed CP IDSO to other practical engineering and science applications.
Footnotes
Acknowledgments
This work is supported by the Fundamental Research Funds for the Central Universities in China. The authors also gratefully acknowledge the helpful comments and suggestions of the reviewers, which have improved the presentation.
