Journal of Cognitive Human-Computer Interaction

Optimization of Performance Attributes Using RTDA Controller for Dual CSTR

Pream Anand S., Manamalli D., Vasanthi D., Mythily M., Naveen N. E.
Volume 5, Issue 1, pp. 08-19 (2023)
DOI: https://doi.org/10.54216/JCHCI.050101
Online: https://americaspg.com/journal/25/article/1774

Abstract

The abstract of this work is to design an alternative control scheme – RTD-A, that combines the simplicity of PID controller with technical – brilliance of MPC controller by avoiding the tuning problems associated with both, for a highly used industrial process, Dual CSTR. Continuous stirred-tank reactor (CSTR), is a standard process used in chemical industries/engineering and environmental engineering. Cascading two CSTRs will lead to decrease in cost and volume when compared to single CSTR. In the proposed work, the temperature control of coupled CSTR is attempted by implementing PID, adaptive control, MPC, and the new generation RTD-A controllers. The performance of the proposed control schemes is compared and it is proved that the RTDA controller outperforms the other control schemes in terms of settling time and ISE.

Keywords: DUAL CSTR; PID; MRAC; MPC; RTD-A

1. Introduction

A CSTR is a highly non-linear system and this non-linearity makes the chemical process unstable. When two CSTRs are in series configured as ‘DUAL CSTR’’, the first operates at a higher concentration, and with higher reaction rate. The second reactor in series builds on the conversion carried out in the first reactor. Assuming that the reactants are perfectly mixed, the calculations are performed with the two CSTRs. In a perfect CSTR, the composition of the feed will be identical to the yield and is a function of the reaction rate and the total residential time. By using dynamic and steady state characteristics, suitable control schemes are designed for the DUAL CSTR process. Due to the highly exothermic reaction, the temperature has to be maintained within the threshold value by varying flow rate of coolant supplied to the jacket.

In this work, the first principle model of the dual reactor is developed using MATLAB Simulink toolbox by using the differential equations that describes the process.

The widely used controller in industrial scenario is PID Controller because of its easy tuning. But designing a PID controller for the desired performance like set point tracking, disturbance rejection and robustness is difficult since the gains of the PID controller are not directly related to them.

Model Predictive Controller (MPC) is a control algorithm that uses a model of the process to predict the future response of a plant. Proportional Integral Derivative (PID) Controller cannot provide good enough performance in controlling highly complex, non-linear and uncertain processes. MPC algorithm requires the knowledge of input/output constraints and weights along with prediction Horizon and Control Horizons to be provided by the user for the control action.

MRAC is a direct adaptive strategy with adjustable controller parameters and an adjusting mechanism to adjust them. The adaptation law gives to find a set of parameters that minimize the error between the plant and the model outputs. Hence the parameters of the controller are adjusted until the error becomes zero but stability is not treated meticulously. It is in the need of high gain observes.

RTDA controller processes the characteristics of MPC and PID controller and its structure is as simple as that of a PID controller. The tuning parameters θR, θT, θD and θA are directly related to performance parameters robustness, set point tracking, disturbance rejection and an additional parameter aggressiveness respectively. The main purpose of this paper is to design RTDA controller for controlling the temperature profile of dual CSTR and the performance of the proposed controller is compared with MPC, MRAC and PID control schemes.

This paper is organized as follows: Section 2 describes the Dual CSTR process and the steps involved in obtaining the first principle model of the same. In section 3 the procedure for obtaining the linearized model of Dual CSTR from the non-linear first principle model is discussed. Section 4 describes the design procedure of conventional and advanced control schemes for the simulated Dual CSTR. Section 5 depicts the comparison of the proposed controllers and Section 6 portrays the conclusion for the proposed work.

2. Process Description And Mathematical Modelling Of Dual Cstr

The schematic diagram of the dual tank CSTR is shown in Fig 1. By using energy balance and mass balance equations the dynamic model of Dual tank CSTR is developed. The component A with molar concentration of CA1 and flow rate of q is admitted as a feed material to reactor 1, which is maintained at a temperature of T1. The concentration of tank 2 is denoted by CA2 and it is operated at a temperature of T2. Stirrer is used for perfect mixing of components inside the reactor.

Figure 1. Dual Cstr
Figure 1. Dual Cstr

Keeping concentration C, constant flow rate q and temperature T, both product B and reactant A are taken out from the reactor. The coolant is circulated in the outer jacket of both the reactors to control the heat generator due to the exothermic chemical reaction. To maintain the temperature profile of both the reactors, the flow rate qc of the coolant is to be manipulated. The coolant enters the jacket at the temperature of Tcf.

The objective of proposed controller is to maintain the temperature of reactor 2 (T2), within the limit by adjusting the coolant flow rate qc.

The dynamic model of dual CSTR is derived by the 4 differential equations i.e., 2 energy balance and 2 mass balance equations for the two reactors are depicted in equation (1) to (4) [2][14]:

( 𝐸 −𝑅𝑇1) 𝑑𝐶𝐴1 𝑞 𝑑𝑡 = 𝑉1 . (𝐶𝐴𝑓−𝐶𝐴1) −𝐶𝐴1𝛼𝑒 (1)
( 𝐸 −𝑅𝑇2) 𝑑𝐶𝐴2 𝑞 𝑑𝑡 = 𝑉2 . (𝐶𝐴1 −𝐶𝐴2) −𝐶𝐴2𝛼𝑒 (2)
𝑈𝐴1 𝐶𝑝𝑐𝜌𝑐𝑞𝑐)} ∗(𝑇𝐶𝑓−𝑇1) − ( 𝐸 −𝑅𝑇1) (3) ( ∆𝐻𝛼𝐶𝐴1 𝐶𝑝𝑐𝜌𝑐𝑞𝑐 𝑑𝑇1 𝑞 𝑑𝑡= 𝑉1 . (𝑇𝑓−𝑇1) − 𝑉1𝐶𝑝𝜌{1 −𝑒 𝐶𝑝𝜌 . 𝑒
𝑈𝐴2 𝐶𝑝𝑐𝜌𝑐𝑞𝑐)} ∗ (𝑇1 −𝑇2) − ( 𝐸 −𝑅𝑇2) ( ∆𝐻𝛼𝐶𝐴2 𝐶𝑝𝑐𝜌𝑐𝑞𝑐 𝑑𝑇2 𝑞 𝑉1 . (𝑇1 −𝑇2) − 𝑑𝑡= 𝑉2𝐶𝑝𝜌{1 −𝑒 𝐶𝑝𝜌 . 𝑒 (4)

Where,

CA1,CA2 Concentrations of A in reactor 1 & 2 in mol T1, T2 Temperatures of reactor 1 and 2 in K

Figure 2. Simulink Model Of Dual CSTR
Figure 2. Simulink Model Of Dual CSTR

The Simulink model of the dual CSTR using the above differential equations is shown in Fig 2.

The nominal operating parameters used in the mathematical modeling of the dual CSTR is mentioned in TABLE 1.

Table 1. Specific Values Of Process Parameters
Table 1. Specific Values Of Process Parameters

Activation Energy / Gas Constant (E/R) 1e4K Heat of Reaction, (ΔH) 4.784e4J/mol Density of Fluid, (ρ) 1000g/L Density of Coolant Fluid(ρc) 1000g/L Heat Capacity of Fluid (Cp) 0.239J/g-K Heat Capacity of Coolant Fluid (Cpc) 0.239J/g-K Coolant flowrate(qc) 100L/min Steady state operating points for the dual CSTR are taken as,

𝐶𝐴1𝑠𝑠= 0.088 𝑚𝑜𝑙/𝐿
𝑇1𝑠𝑠= 441.219 𝐾
𝐶𝐴2𝑠𝑠= 0.00529 𝑚𝑜𝑙/𝐿
𝑇2𝑠𝑠= 449.474 𝐾

3. Linearization Of Dual Cstr Process

The non-linear dynamic model [1] relating two process variables u and y is

𝑑𝑦 𝑑𝑡 (5) 𝑓(𝑢, 𝑦) =

Here nonlinear, dynamic model relating three process variables, T1, T2 and qc:

𝑑𝑇1 𝑑𝑡= 𝑓(𝑇1, 𝑞𝑐) (6)
𝑑𝑇2 𝑑𝑡= 𝑓(𝑇1, 𝑇2, 𝑞𝑐) (7)

Applying Taylor Series Expansion with 𝑢= 𝑢̅ and 𝑦= 𝑦̅ and truncate after the first order terms,

𝜕𝑓 𝜕𝑓 𝑓(𝑢, 𝑥) = 𝑓(𝑢̅, 𝑦̅) + | 𝑦′ 𝜕𝑦| 𝑢′ + | 𝜕𝑦| (8)
Where 𝑢′ = 𝑢−𝑢̅ and 𝑦′ = 𝑦−𝑦̅.

The A,B,C and D Matrices of the state space model are obtained by the linearization using Taylor’s series.

• 𝐴= [−7.36 0 1.998 −1.178] • 𝐵= [ −0.905 −0.0827]
−0.0827𝑠−2.419 𝐺𝑝(𝑆) = 𝑠2+8.546𝑠+8.68 (9)

4. Controller Design

A. PID Controller Design

The coolant flow rate to the jacket is adjusted to maintain the temperature of reactor 2 at a desired value. The heat transfer involved in both the reactors makes the overall response sluggish and hence a PID controller would be the most appropriate controller [22]. The PID controller parameters for the above transfer function is tuned using the Ziegler–Nichols settings and are listed in TABLE 2.

Table 2. Parameters of PID Controller
Table 2. Parameters of PID Controller

Controller Parameter Gain Value Proportional 2.6789 Integral 1.6458 Derivative 0.136 The servo and regulatory response are obtained for a set point of 451K with disturbance in the feed flowrate which is introduced at t = 50 min (by changing from 100 L/min to 95 L/min) is shown in Fig 3.

Figure 3. Response Of Pid Controller
Figure 3. Response Of Pid Controller

B. Adaptive Controller

An adaptive controller has to tune its controller parameters or it has to modify the controller by accommodating the basic changes in the process behavior [3][18][19]. Hence the adaptive controller has to adjust the controller parameters continuously to

The constraints to be satisfied are

Hence the transfer function of the reference model is determined as:

4.76 𝐺𝑚(𝑠) = s2+3.1s+4.76 (10)

The Simulink structure of proposed MRAC with MIT rule for the linearized model of the dual-CSTR[16] is shown in Fig 4.

Figure 4. Mrac-Simulink Model For Linearized Model Of Dual-Cstr
Figure 4. Mrac-Simulink Model For Linearized Model Of Dual-Cstr

The performance of the proposed MRAC controller is validated by using different possible adaption gain values with a unit step change as a reference input and the response is shown in Fig 5.

Figure 5. Response Of Mrac For Various Gains
Figure 5. Response Of Mrac For Various Gains

Based on the performance of the MRAC controller, it is to be noted that when the adaptive gain is increased the settling time and rise time are decreased significantly. However adaptive gain was not increased beyond 5 since the system becomes unstable producing sustained oscillations.

The desired adaptive gain value is chosen as γ =0.8 for which the maximum peak overshoot is very negligible less than 1% (maximum overshoot of more than 5% is not desirable for a temperature control process). The servo response is plotted for temperature of reactor 2 for a set point of 451K with adaption gain of 0.8 which is shown in Fig 6. The regulatory response is obtained for a set point of 451K with disturbance in the feed flowrate which is introduced at t = 20 min (by changing it from 100 L/min to 95 L/min) is shown in Fig 7.

Figure 6. Servo Response Of Mrac
Figure 6. Servo Response Of Mrac
Figure 7. Regulatory Response Of Mrac
Figure 7. Regulatory Response Of Mrac

C. DMC Based Model Predictive Control

Dynamic Matrix Control (DMC) is a control algorithm designed explicitly to predict the future response of a plant. The model predictive control [8][15] for achieving the temperature control of dual CSTR is carried out by using the linearized model as prediction model and the non-linear model as the actual plant. The MPC scheme is implemented by taking Prediction Horizon as 10 and Control Horizon as 2. The servo response of the MPC for the set point of 451K is plotted and shown in the Fig 8. The corresponding change in manipulated variable is shown in Fig 9.

Figure 8. Servo Response Of Mpc
Figure 8. Servo Response Of Mpc
Figure 9. Controller Output Of Mpc (Coolant Flowrate)
Figure 9. Controller Output Of Mpc (Coolant Flowrate)

The regulatory response of the designed MPC is obtained for a set point of 451K with disturbance in the feed flowrate which is introduced at t = 20 min (by changing it from 100 L/min to 95 L/min) is shown in Fig 10.

Figure 10. Regulatory Response Of Mpc
Figure 10. Regulatory Response Of Mpc

D. RTD-A Controller

The RTD-A controller, comprises of a simplified linear model predictive control scheme which uses the process reaction curve information as like determining the parameters of PID controller. [9][21][25][26] The additional three tuning parameters, θR (robustness), θT (set point tracking) and θD (disturbance rejection) are normalized between 0 and 1 makes the tuning of the RTD-A controller easier. The fourth auxiliary parameter θA (also normalized between 0 and 1), provides the control over the controller aggressiveness which is independent of the three main tuning parameters.[10][11]

Bayesian estimation principle is used to estimate disturbance effect as,

êd(k) = θRêd(k −1) + (1 −θR)e(k) (11)

With the current disturbance estimate, the future error is then estimated to update model prediction,

Δêd(k) = êd(k) −êd(k −1) (12)

The P-step ahead prediction horizon is given by,

ỹ(k + i) = ŷ(k + i) + êd(k + i) for  1 ≤i ≤P (13)

The desired trajectory yt(k) for a given setpoint Sp(k) is represented as,

yt(k) = θTyt(k −1) + (1 −θT)SP(k) (14)
i )SP(k) (15) i yt(k) + (1 −θT yt(k + i) = θT
Equ 15 is for  1 ≤i ≤P

The objective function of the controller for the proposed system is,

u(k) = ∑ ( P i=1 yt(k + i) −ỹ(k + i))2 min (16)

The control action u(k) is the minimization of the difference between model predicted output and reference trajectory for P-step,

∑ ηiψi P i=1 (k) 1 u(k) = ( 2 P i=1 ) (17) b) ( ∑ ηi
ψi = yt(k + i) −aiŷ(k) −êd(k + i) (18)

Where,

N Prediction horizon determined by θA B Process parameter ηi Process parameter Ψi(k) Stipulated error

The aggressiveness parameter θA depends on prediction horizon P and is given by

τ ts) ln(1 −θA) (19) P = 1 −(

Where, ts is the sampling time.

Stipulated error is time varying with 3 contributing components:

1. Projected effect of past control action (uses parameters a,b,c) 2. Reference trajectory (uses θT) 3. Projected effect of unmeasured disturbances.

Tuning parameters for each performance parameter of the controller is,

1. Robustness: 0 < 𝜃𝑅< 1; depends on the current disturbance effect êd(k) 2. Setpoint Tracking: 0 < 𝜃𝑇< 1; depends on desired output trajectory yt(k + i) 3. Disturbance Rejection: 0 < 𝜃𝐷< 1; depends on future disturbance effect prediction êd(k + i) 4. Overall Aggressiveness: 0 < 𝜃𝐴< 1; depends on prediction horizon P Usually, the overall aggressiveness will be specified by the control engineer. Small values of θA ̴ 0 corresponds to aggressive performance and large values of θA ̴ 1 corresponds to conservative performance.

Key Characteristics of the RTD-A

The RTD-A controller for the temperature control of non-linear dual CSTR is implemented and the individual attribute variations are analyzed [12] by keeping other attributes to a constant value of 0.3.

For different values of θR the response of the controller is obtained and it is observed that the error in the system decreases as the value of θR increases [13]. The graph is plotted for θR = 0.1, 0.5, 0.9 and is shown in Fig 11.

Figure 11. Robustness Using Rtd-A Controller
Figure 11. Robustness Using Rtd-A Controller

For the set point of 451.47K the response of the process is plotted for different values of θT = 0.1, 0.5, 0.9 and it is observed that for lesser values of θT the response is aggressive which is shown in Fig 12.

Figure 12. Set Point Tracking Using Rtd-A Controller
Figure 12. Set Point Tracking Using Rtd-A Controller

For validating the disturbance rejection capacity of the proposed RTDA-controller, disturbance is introduced in the feed flowrate at time instant t=10s by changing it from 100L/min to 95L/min and the responses are plotted for different values of θD =0.1, 0.5, 0.9 which is shown in Fig 13. It is observed that, the introduced disturbance is rejected quickly for the minimum value of parameter θD.

Figure 13. Disturbance Rejection Using Rtd-A Controller
Figure 13. Disturbance Rejection Using Rtd-A Controller

For the set point of 451.47K the response of the process is plotted for different values of θA = 0.1, 0.3, 0.6 and it is observed that for lesser values of θA the response is conservative and larger values of the parameter the response is aggressive which is shown in Fig 14.

Figure 14. Overall Aggressiveness Using Rtd-A Controller
Figure 14. Overall Aggressiveness Using Rtd-A Controller

The servo and regulatory response of the designed RTD-A Controller is obtained for a set point of 451K with disturbance in the feed flowrate which is introduced at t = 10 min is shown in Fig 15.

Figure 15. Servo And Regulatory Response Of Rtd-A Controller
Figure 15. Servo And Regulatory Response Of Rtd-A Controller

5.Comparison Of Proposed Controllers

The performance of the proposed controllers – PID, MRAC, MPC and RTD-A designed for Dual CSTR are compared by evaluating settling time and ISE as performance measures for both servo and regulatory operation is depicted in TABLE 3.

Table 3. Performance comparison of the four proposed control schemes
Table 3. Performance comparison of the four proposed control schemes

6.Conclusion

In this work, the advanced control structure RTD-A, MPC, MRAC and PID are designed for the complex industrial process, Dual CSTR. Based on the performance of all the controllers, it is validated that RTD-A outperforms the other controllers in terms of settling time and ISE. The effectiveness of RTD-A controller is analysed by giving variation to the three tuning parameters, θR (robustness), θT (set point tracking) and θD (disturbance rejection) and the fourth auxiliary parameter θA, which provides the control over the controller aggressiveness which is independent of the three main tuning parameters. All the tuning parameters of RTD-A are normalized between 0 and 1 i.e., when the values are closes to 0 the performance will be aggressive where as they are closer to 1 the performance will be conservative. The optimization problem upon which the control action computation can be solved analytically which makes RTD-A controller a computationally simple and easily implementable in both software and hardware.

References

[1] Bequette, B. W. (2003). Process control: modeling, design, and simulation. Prentice Hall Professional.

[2] Eva Mathew, Tanmay Pawar, Jaganatha Pandian (2019), “Control of coupled CSTR process using MRAC-MIT rule” Innovations in Power and Advanced Computing Technologies (i-PACT) Vol.142, No.9, pp. 534 to 569.

[3] K.Prabhu, Dr.V.Murali Bhaskaran(2012), “Optimization of a Control Loop Using Adaptive Method”, International Journal of Engineering and Innovative Technology (IJEIT) Vol.1, No.5, pp. 42 to 46.

[4] Priyank Jain and Dr. M.J. Nigam (2013), “Design of a Model Reference Adaptive Controller Using Modified MIT Rule for a Second Order System”, Advance in Electronic and Electric Engineering, Vol.3, No.4, pp. 214 to 224.

[5] Pankaj Swarnkar, Shailendra Jain and R.K.Nema(2010) “Effect of Adaptation Gain on System Performance for Model Reference Adaptive Control Scheme using MIT Rule”, World Academy of Science, Engineering and Technology, Vol.10, No.6, pp. 362 to 373.

[6] Neha Khanduja (2014), “CSTR Control by Using Model Reference Adaptive Control and PSO”, World Academy of Science, Engineering and Technology International Journal of Mechanical and Mechatronics Engineering Vol.8, No.12, pp. 144 to 157.

[7] Moradi, M. H. (2003, June). New techniques for PID controller design. In Proceedings of 2003 IEEE Conference on Control Applications, 2003. CCA 2003. (Vol. 2, pp. 903-908). IEEE.

[8] Ratnakumari, U. V., & Triven, M. B. (2016, October). Implementation of adaptive model predictive controller and model predictive control for temperature regulation and concentration tracking of CSTR. In 2016 International Conference on Communication and Electronics Systems (ICCES) (pp. 1-6). IEEE.

[9] Mukati, K., & Ogunnaike, B. (2004, June). Stability analysis and tuning strategies for a novel next generation regulatory controller. In Proceedings of the 2004 American Control Conference (Vol. 5, pp. 4034-4039). IEEE.

[10] Babatunde A. Ogunnaike, Kapil Mukati(2004),” An alternative structure for next generation regulatory controllers Part I: Basic theory for design, development and implementation”, Journal of Process Control Vol.16, pp.499 to 509.

[11] Mukati, K., Rasch, M., & Ogunnaike, B. A. (2009). An alternative structure for next generation regulatory controllers. Part II: Stability analysis, tuning rules and experimental validation. Journal of process control, 19(2), 272-287.

[12] Febina, C., & Vijula, D. A. (2021). Improvement in Performance Attributes of Multivariable System Using RTDA Controller. In Advances in Smart System Technologies (pp. 623-637). Springer, Singapore.

[13] Srinivasan, K., Singh, J., Anbarasan, K., Paik, R., Medhi, R., & Choudhury, K. D. (2012). MPC and RTDA controller for fopdt & sopdt process. Journal of Information Systems and Communication, 3(1), 109.

[14] Kumar, N., & Khanduja, N. (2012, December). Mathematical modelling and simulation of CSTR using MIT rule. In 2012 IEEE 5th India International Conference on Power Electronics (IICPE) (pp. 1-5). IEEE.

[15] Ratnakumari, U. V., & Triven, M. B. (2016, October). Implementation of adaptive model predictive controller and model predictive control for temperature regulation and concentration tracking of CSTR. In 2016 International Conference on Communication and Electronics Systems (ICCES) (pp. 1-6). IEEE.

[16] Adrian, C., Corneliu, A., & Mircea, B. (2008, May). The simulation of the adaptive systems using the MIT rule. In International Conference on Mathematical Methods and Computational Techniques in Electrical Engineering (pp. 301-305).

[17] Sundari, S., & Nachiappan, A. (2017, June). Decoupling based control analysis of a continuous stirred tank reactor (CSTR). In 2017 International Conference on Innovative Research in Electrical Sciences (IICIRES) (pp. 1-5). IEEE.

[18] Karl J. Astrom and Bjorn Witten mark, Adaptive control, second edition, Pearson Education, 200 I M. Young, The Technical Writer’s Handbook. Mill Valley, CA: University Science, 1989.

[19] SJegan,K.Prabhu, "Temperature control of CSTR process using adaptive control", International Conference on Computing and Control Engineering(TCCCE),2012

[20] P. Swarnkar, S. K. Jain and R. K. Nema (2011), “Comparative Analysis of MIT Rule and Lyapunov Rule in Model Reference Adaptive Control Scheme”, Innovative Systems Design and Engineering, pp 154-162. M. Young, The Technical Writer’s Handbook. Mill Valley, CA: University Science, 1989.

[21] Sendjaja, A. Y., Ng, Z. F., How, S. S., & Kariwala, V. (2011). Analysis and tuning of RTD-A controllers. Industrial & engineering chemistry research, 50(6), 3415-3425.

[22] Ogunnaike, B. Ray, W. Process dynamics, modeling, and control; Oxford University Press: New York, 1994

[23] O. Lequin, M. Gevers, M. Mossberg, E. Bosmans, L. Triest, Iterative feedback tuning of PID parameters: comparison with classical tuning rules, Control Eng. Pract. 11 (2003) 1023–1033.

[24] M.Illayaraja, “ Particle Swarm Optimization based Multihop Routing Techniques in Mobile ADHOC Networks” International Journal of Wireless and Ad Hoc Communication” Volume 1, Issue 1, pp 47-56, 2020.

[25] M. Katebi, M. Moradi, Predictive PID controllers, IEE Proc.— Control Theory Appl. 148 (6) (2001)

[26] . K. A strom, T. Hagglund, The future of PID control, Control Eng. Pract. (2001) 1163–1175.