Abstract

Nonlinear processes are very common in process industries, and designing a stabilizing controller is always preferred to maximize the production rate. In this paper, tuning of PID controller for a class of time delayed stable and unstable process models using Particle Swarm Optimization (PSO) algorithm is discussed. The dimension of the search space is only three (, , and ); hence, a fixed weight is assigned for the inertia parameter. A comparative study is presented between various inertia weights such as 0.5, 0.75, and 1. From the result, it is evident that the proposed method helps to attain better controller settings with reduced iteration number. The efficacy of the proposed scheme has been validated through a comparative study with classical controller tuning methods and heuristic methods such as Genetic Algorithm (GA) and Ant Colony Optimization (ACO). Finally, a real-time implementation of the proposed method is carried on a nonlinear spherical tank system. From the simulation and real-time results, it is evident that the PSO algorithm performs well on the stable and unstable process models considered in this work. The PSO tuned controller offers enhanced process characteristics such as better time domain specifications, smooth reference tracking, supply disturbance rejection, and error minimization.

1. Introduction

In process industries, many important real-time processing units such as Continuous Stirred Tank Reactor (CSTR), biochemical reactor, and spherical tank system are highly nonlinear in nature. Tuning of controllers to stabilize these nonlinear chemical process loops and impart adequate disturbance rejection is critical because of their complex nature. Based on the operating regions, most of the chemical loops exhibit stable and/or unstable steady states.

Controller tuning is an essential preliminary procedure in almost all industrial process control systems. In control literature, a number of controller structures are available to stabilize stable, unstable, and nonlinear processes [15]. Designing controller for process with stable operating region is quite simple. For unstable systems, there exist minimum and maximum values of controller gain, and the average of this limiting value is considered to design the controller to stabilize the system. The increase in time delay in the process narrows down the limiting value and restricts the performance of closed loop system under control. In addition, these systems show unusual overshoot or inverse response due to the presence of positive zeros [4].

Despite the significant developments in advanced process control schemes such as predictive control, internal model control, and sliding mode control, PID controllers are still widely used in industrial control application because of their structural simplicity, reputation, robust performance, and easy implementation [2]. Many researchers proposed PID tuning rules to control various stable and unstable systems by different schemes to enhance closed loop performance [1]. For stable systems, PID controller offers a viable result for both reference tracking and disturbance rejection operations. However, for unstable systems, it can effectively work either for reference tracking or disturbance rejection. The proportional and derivative kick in the controller also results in large overshoot and large settling time [3].

Conventional controller tuning methods proposed by most of the researchers are model dependent, and they require a reduced order models such as first-order or second-order process model with time delay. Particularly for unstable systems, the tuning rule proposed for a particular reduced order model will not offer a fitting response for other models (higher order models, model with a positive or negative zero, model with a large delay time to process time constant ratio, etc.). Most of the classical PID tuning methods require numerical computations in order to get the best possible controller parameters. Due to these reasons, in recent years, heuristic algorithm-based controller tuning has greatly attracted the researchers.

From recent literature, it is observed that heuristic algorithm-based optimization procedures have emerged as a powerful tool for finding the solutions for variety of control engineering problems [612]. Heuristic algorithms are widely used in process control because of their structural simplicity, better optimization ability, and speed of response. Heuristic algorithms can effectively work for higher dimensional optimization problems compared to the existing classical optimization procedures. Due to their flexibility, they can easily adapt to the existing classical controller design procedures. They can be used as a vital tool to design classical and modified structured controllers for a class of unstable process models, irrespective of its model order. Most recent heuristic methods such as Genetic Algorithm (GA) [11], Ant Colony Optimization (ACO) [13], Bacterial Foraging Optimization (BFO) [14], and Particle Swarm Optimization (PSO) [12, 15] are extensively addressed by the researchers to tune controllers for a class of process models.

In this paper, PID controller parameter tuning is attempted using the PSO algorithm introduced by Kennedy and Eberhart [16]. The main advantage of PSO algorithm is that it is an autotuning method; it does not require detailed mathematical description of the process and finds the best possible ,, and based on the Objective Function (OF) provided to guide the algorithm. A detailed study is presented with a PSO algorithm using various inertia weights such as 0.5, 0.75, and 1. A comparative study is also carried out between GA, ACO, BFO, and classical controller tuning methods existing in the literature.

The remaining part of the paper is organized as follows. Section 2 presents the outline of classical PID and setpoint filter-based PID controller. A brief description of PSO- and OF-based controller tuning is provided in Section 3. PSO based PID controller design is discussed in Section 4. Section 5 presents the simulated results on different process models and a real-time implementation using a spherical tank system. Section 6 provides conclusion of the present research work.

2. Controller Structure

2.1. PID Controller

PID controller has a simple structure and is usually available as a packaged form. To perform well with the industrial process problems, the controller should have optimally tuned ,, and values. Figure 1 shows the basic block diagram of the closed loop systemm where is responsible to maintain based on , by eliminating the redundant input disturbance [3].

The closed loop response of the above system can be expressed as Let us assume that , , and where ,.

The final steady-state response of the system for reference tracking and supply disturbance rejection is presented correspondingly as follows: where is the amplitude of reference signal and is the amplitude of disturbance.

2.2. PID Controller with Prefilter

Figure 2 depicts the structure of prefilter/setpoint filter-based PID controller discussed by Araki and Taguchi [17], where is a first-order prefilter with the following structure .

Jung et al. reported that, when the filter time constant is set equal to integral time constant , the controller offers a smooth reference tracking performance [18]. Recently, Vijayan and Panda developed a detailed analytical expression to assign the above controller parameters and validated using a class of process models [19].

3. Methodology

3.1. PSO Algorithm

Particle Swarm Optimization (PSO) technique, proposed by Kennedy and Eberhart [16], is an evolutionary-type global optimization technique developed due to the inspiration of social activities in flock of birds and school of fish and is widely applied in various engineering problems due to its high computational efficiency [610, 2023]. Compared with other population-based stochastic optimization methods, such as GA and ACO, PSO has comparable or even superior search performance for many hard optimization problems, with faster and more stable convergence rates. It has been proved to be an effective optimum tool in system identification and PID controller tuning for a class of processes [24].

In PSO algorithm, the number of parameters to be assigned is very few compared to other nature-inspired algorithms. In this, a group of artificial birds is initialized with arbitrary positions and velocities . At early searching stage, each bird in the swarm is scattered randomly throughout the dimensional search space. With the supervision of the Objective Function (OF), own flying experience, and their companions flying experience, each particle in the swarm dynamically adjusts its flying position and velocity. During the optimization search, each particle remembers its best position attained so far (i.e., pbest) and also obtains the global best position information achieved by any particle in the population (i.e., gbest).

At iteration , each particle has its position defined by and velocity defined as in search space . Velocity and position of each particle in the next iteration can be calculated as where ; and acceleration constant called cognitive parameter pulls each particle towards local best position, and constant called social parameter pulls the particle towards global best position. and are known as random numbers in the range 0-1.

In (5), the inertia of weight represented is an important factor for the PSO’s convergence. It is used to control the impact of previous velocities on the current velocity at the current time step. The basic PSO, initially proposed by Kennedy and Eberhart, has no inertia weight, and this feature is first introduced by Shi and Eberhart [25]. The work reports that a large inertia weight factor facilitates global exploration while small weight factor facilitates local exploration.

Further, for high-dimensional problems, dynamical adjusting of inertia weight was introduced by many researchers which can increase the search capabilities of PSO. A review of inertia weight strategies in PSO is given chronologically in subsequent paragraphs.

Eberhart and Shi [26] proposed a Random Inertia Weight strategy and experimentally found that this strategy increases the convergence of PSO in early iterations of the algorithm. The linearly decreasing strategy enhances the efficiency and performance of PSO. In spite of its ability to converge optimum, it gets into the local optimum solving the question of more apices function. In global-local best inertia weight, the inertia weight is based on the function of local best and global best of the particles in each generation. It neither takes a constant value nor a linearly decreasing time-varying value. To overcome the weakness of premature convergence to local minimum, adaptive inertia weight strategy [27] is proposed to improve its searching capability. Chen et al. [28] present two natural exponent inertia weight strategies which are based on the basic idea of decreasing inertia weight. Malik et al. [29] presented a Sigmoid Increasing Inertia Weight (SIIW). They found that sigmoid function has contributed in getting minimum fitness function while linearly increasing inertia weight gives contribution to quick convergence ability. So they combine sigmoid function and linear increasing inertia weight and provide an SIIW which has produced a great improvement in quick convergence ability and aggressive movement narrowing towards the solution region. Oscillating inertia weight provides periodically alternates between global and local search waves, and the conclusion was drawn that this strategy appears to be generally competitive and, in some cases, PSO outperforms particularly in terms of convergence speed. Gao et al. [30] proposed a new PSO algorithm which combined the logarithm decreasing inertia weight with chaos mutation operator. The logarithm decreasing inertia weight can improve the convergence speed, while the chaos mutation can enhance the ability to jump out of the local optima. In order to overcome the premature convergence and later period oscillatory occurrences of the standard PSO, an exponent decreasing inertia weight and stochastic mutation to produce an improved PSO has been proposed by Gao et al. [30], which uses the exponent decreasing inertia weight along with stochastic piecewise mutation for current global optimal particle during the running time, to support better optimization search.

In this paper, we considered constant inertia weight-based velocity updation. The implementation of PSO has the following steps.

Step 1 (initialization of swarm). For a population size , the particles are randomly generated between the minimum and maximum limits of parameter values.

Step 2 (evaluation of objective function). Objective function values of particles are evaluated using the performance criteria for algorithm convergence.

Step 3 (initialization of pbest and gbest). The objective values obtained above for the initial particles of swarm are set as the initial pbest values of particles. The best value among all the pbest values is identified as gbest.

Step 4 (evaluation of velocity). The new velocity for each particle is computed using (5).

Step 5 (update the swarm). The particle position is updated using (6). The values of the objective function are calculated for updated positions of particles. If the new value is better than the previous pbest, the new value is set to pbest. Similarly, gbest value is also updated as the best pbest.

Step 6 (stopping criteria). If the stopping criteria are met, positions of particles represented by pbest are the optimal values. Otherwise, the above said procedure is repeated from Step 4 until the specified iteration is completed.

3.2. Objective Function

The overall performance (speed of convergence, efficiency, and optimization accuracy) of PSO algorithm depends on Objective Function (OF), which monitors the optimization search. The OF is chosen to maximize the domain constrains or to minimize the preference constrains. During the search, without loss of generality, the constrained optimization problem minimizes a scalar function of some decision variable vector “” in a universe “”. The objective function is to be framed by assuming, at least, that there exists one set of optimal parameters in “” which satisfies all the constraints.

The minimization problem of preference constrains can be mathematically expressed as

The majority of controller design problems are multiobjective in nature. Multiobjective optimization always provides improved result compared to single-objective function. Without loss of generality, the multiobjective optimization problem simultaneously minimizes objectives , of a variable vector in a universe :

Weighted sum method is widely adopted by most of the researchers, and it converts the multiobjective problem of minimizing the objectives into a scalar form [31]. The general form of weighted sum of multiple objective functions is presented in (7). In this method, the constraints which are to be minimized are arranged as weighted sum: where is the weighting coefficient, is the number of constrains to be solved, is the dimension of the problem, and is the search universe. Generally, the weight for (between 0 and 1 or 0 and 100%) is assigned based on the preference constraints to be minimized.

In the control literature, there exist a number of weighted-sum-based objective functions [31]. In this paper, we considered three-parameter-based objective function by considering the error and important time domain constraints such as overshoot and settling time : where are parameters to be optimized, is peak overshoot, is settling time, and the weighting function and .

In many optimization cases, it is very difficult to satisfy all the considered constraints. Hence, there should be some negotiation between the preference constraint parameters without compromising the domain constraint [31]. In this work, we assigned more preference for ISE and compared to . Figure 3 depicts the obtainable optimal solution and stability boundary in the three-dimensional search space.

Search boundary for controller parameters is assigned as follows: The algorithm continuously varies the values of controller parameters until the objective function is minimised to .

4. Controller Tuning

The controller design process is to find the optimal values for controller parameters form the search space that minimizes the considered objective function. Figure 4 illustrates the basic block diagram of PSO algorithm-based PID controller tuning. Initially, PSO algorithm assigns arbitrary values for ,, and and computes the OF. This procedure continues until the reaches or the final iteration number is reached.

Figure 5 shows the block diagram of PSO tuned PID controller with a prefilter setup. For this procedure, dimension of the search is three, and the algorithm finds the best possible controller parameters along with filter time constant . This setup provides better result for both the stable and unstable process models.

PSO-based controller design procedure is developed with number of swarms , swarm step size = 20, , and maximum generation value of 200. Optimal tuning procedure is repeated 10 times independently, and the best value among the trials is considered to stabilize the process.

5. Results and Discussion

Example 1. The first-order stable process with the following transfer function model is considered [19]:

PSO-based PID tuning is proposed with the method as shown in Figure 4. The final convergence of swarm is depicted in Figure 6. The multiple OF-based controller design procedure is converged at 58th iteration (for ) as shown in Figure 7, and the final PID parameters with various values and the corresponding iteration number are tabulated in Table 1.

Table 1 presents three best values among 10 trials. These values are individually evaluated using the process model (12). Figure 8 represents the reference tracking and input disturbance rejection performance of PID controller obtained when . Figure 9 shows the corresponding controller performance.

Similar responses are obtained for the above process model for and , and the obtained performance measures are tabulated in Table 2.

From Table 2 and Figure 10, it is observed that, even though the total iteration taken by the best value 3 (for ) is considerably large, it provides better overall performance compared to other values considered in this study.

Example 2. The stable second-order model discussed by Chiha et al. is considered [13];

Chiha et al. proposed a Multiobjective Ant Colony Optimization (MACO) algorithm and validated the result with Ziegler-Nichols (ZN), GA, and ACO tuned PID controller. In this work, we considered the PSO tuned PID controller, and the controller values and its performance measure values are presented in Tables 3 and 4 respectively.

Figure 11 shows the process output for Example 2 for various controller settings. Initially a unity reference input signal is applied to the system. An unity input disturbance signal is applied at 50 s to study the disturbance rejection performance. The performance by the present method is smooth compared to other methods considered in this study. The ZN, GA, ACO, and MACO methods show oscillations during the reference tracking and the disturbance rejection cases compared to the PSO tuned PID. But the response by the present controller is sluggish than other methods. From Figure 12, it is observed that the controller performance is also very smooth. Even though the parameters such as ,, and ISE are large, the present controller provides approximately null % overshoot (Table 4).

Example 3. The stable second-order steady-state model of the bioreactor is presented below [11]: For this model, Kumar et al. [11] proposed a GA-based PID controller. Recently Rajinikanth and Latha proposed and validated the multiple-objective PSO-based PID tuning procedure using nonlinear process model [33].

In this work, PSO-based PID is proposed for the above process model with , and the final converged controller parameters are presented in Table 5. Figures 13 and 14 show the process response and controller output, respectively. The proposed methods provide improved reference tracking and disturbance rejection performance compared to the other methods considered. From Figure 15 the observation is that, ISE value by the proposed method is considerably smaller than ZN and GA.

Example 4. The unstable steady-state model of the bioreactor presented below is widely considered by the researchers [14, 15]: The above process model is a bench mark problem in the unstable controller design problem. In this paper, initially, the PSO controller is designed for the process later a prefilter-based PID structure is implemented as shown in Figure 5. The previous work by Rajinikanth and Latha provided the following controller parameters: , and using the BFO algorithm [14].

The controller setting by the proposed method for various values is presented in Table 6, and the corresponding performance values are tabulated in Table 7 (best three values among 10 trials). The performance measure values are graphically represented in Figure 16, and the PSO-based PID setting for (third best value) provides improved performance compared to other values. Hence the above-mentioned value is considered for the comparative work with the BFO algorithm (with PID and prefilter-based PID controller).

In this study, a disturbance of 50% (of setpoint value) is applied at 50 s to analyze the supply disturbance rejection performance. Figure 17 shows the regulatory response for the unstable bioreactor model, and Figure 18 shows the corresponding controller output. Even though the reference tracking response of the PID and prefilter-based PID (PPID) is different, both show a similar response for the disturbance rejection problem, where the proposed PSO tuned PID and PPID show enhanced performance compared to the existing BFO tuned PID and PPID controller. From this, it is observed that the fixed inertia weight-based PID controller provides best optimized values when the dimension of the problem is small.

Example 5. The nonlinear spherical tank system recently discussed by Rajinikanth and Latha is considered to show the real-time implementation of the proposed method [34]. The transfer function model of the system for an operating range of 18 cm is A simulation time of 500 s is considered in the PSO-based PID tuning procedure, and the algorithm is converged at 41th iteration for with ,, and . The obtained PID values are then transferred to the real-time controller hardware installed in the process loop through the monitoring and control program developed in MATLAB Simulink with ODE 45 solver, which is directly interfaced with the real-time process system through DAQ module. It is enabled with National Instruments VISA serial communication interface. The module supports ASCII data format with a sampling time of 0.1 s and a baud rate of 38400. With this, monitoring and control of the real-time process can be easily established with MATLAB software. In real-time implementation, the maximum controller output is set as 90% in order to reduce the thrust on the control valve which allows the flow rate to the tank.

Figure 19 shows the variation of level for the reference tracking, multiple reference tracking, supply disturbance, and load disturbance rejection problems.

Initially a reference input of 18 cm is assigned. When the process output reaches a final steady-state value, then the reference input is increased by 2 cm (i.e., 20 cm) at th sampling instant. Later a supply disturbance of 10% of the setpoint and a load disturbance of 25% of the setpoint are applied at th sampling instant and th sampling instants, respectively.

In the real-time study, the ISE and IAE values are obtained as 455.81 and 196.33, respectively. From this result, it can be noted that the PSO algorithm presents a smooth servo and regulatory response for the spherical tank level control problem and it can be easily implemented in real time using a MATLAB-supported real-time process loop.

6. Conclusion

This paper attempted a controller parameter optimization work with PSO algorithm with various inertia weights. The fixed inertia weight method helps to improve the speed of convergence and also maintains good accuracy in optimized parameters. Proposed weighted sum of multiple-objective function provides the necessary controller parameters and supports enhanced performance for both the reference tracking and disturbance rejection problems. The real-time implementation also confirms the adaptability of the proposed method on the MATLAB supportable real-time hardware. The real-time result with PSO tuned PID offers better result for reference tracking, multiple reference tracking, and disturbance rejection problems.