SciELO - Scientific Electronic Library Online

 
vol.44 número3Investigation of dehydration and rehydration kinetics of peas subjected to open-air sun dryingImproving time series classification accuracy: combining global and local information in the similarity criterion índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Latin American applied research

versión On-line ISSN 1851-8796

Lat. Am. appl. res. vol.44 no.3 Bahía Blanca jul. 2014

 

Implementation of predictive multivariable DMC controller in a pilot plant

R.P.A. Pereira, G.M. de Almeida, M.S.L. Cuadros, S. Munareto and J.L. Félix Salles

Coordination of Control and Automation, Instituto Federal do Espírito Santo (IFES). Rodovia ES-010 - Km 6.5 - Manguinhos, 29164-231 - Serra - ES. E-mails: rogeriop, gmaia,marcoantonio,saul{@ifes.edu.br}
Depto. de Eng. Elétrica, Universidade Federal do Esp. Santo. Av Fernando Ferrari, 514, CEP 29075-910, Vitória-ES. E-mails: jleandro@ele.ufes.br

Abstract— This study aims to implement the predictive multivariable DMC controller in a real plant and compare it to multi-loop PID. The practical application is made in a pilot plant located in the IFES / Serra, where pressure and level are controlled with pump speed and valve opening. Tuning of the DMC controller is obtained through a simulator based on genetic algorithm. The plant responses to step using multi-loop PID and DMC are compared with and without constraints on valve opening and pump speed. The DMC controller is also tested with output restriction (pressure and level). The didactic interface developed with LabVIEW software is used to interact with MATLAB and CompactRIO controller, allowing the use of MATLAB optimization functions in the implementation of the DMC controller.

Keywords— Predictive DMC Controller; Didactic Interface; Pilot Plant.

I. INTRODUCTION

According to Aström and Hägglund (2001) around 90% of all controllers used in the industry are PID type and, despite of that, Desborough et al. (2001) comment that only 1/3 of the industrial control loops operate properly in automatic mode, 1/3 in manual mode and 1/3 degrades the system performance, instead of improving it . The reasons for that are varied, including the difficult tuning of controllers and lack of qualified teams for the implementation of advanced controls. Thus, implementations of didactic environments to test traditional and advanced control techniques are important, for superior engineer qualification.

Teaching process control requires proper theoretical basis provided in the classroom, as well as experiments that address the use of control techniques currently offered in the market conducted in laboratories equipped with pilot plants having industrial characteristics; see some examples in Gomes and Pinto (2008), Carvalho (2009) and Thomas et al. (2010). One of the advanced control techniques that have increasingly been adopted in the industrial sector is the Model Predictive Control (MPC) and, according to Automation Research Corporation (2000), "the predictive control market is growing at the annual rate of 18%", considering that this control strategy ensures the plant operation at its most profitable level. The study of Qin and Badqwell (2003) shows that most of these applications are concentrated on chemical and oil industries.

Model predictive control was created in the 1970s, with open ended nature, in which different control algorithms have been developed, such as: Dynamic Matrix Control (DMC) (see Cutler and Ramaker, 1979) and Generalized Predictive Control (GPC) (see Clarke et al., 1987), among others. The predictive controller can be used in linear and single- and multivariable processes, with delays and constraints on input and output variables (Camacho and Bordons, 2004).

In this article, the main objective is the implementation of the DMC predictive control algorithm with constraints on manipulated and process variables. The application is made in the multivariable didactic plant in the laboratory of the control and automation engineering course at IFES. A didactic interface, developed at LABVIEW (National Instruments, 2009) is used to interact with MATLAB and CompactRio controller, enabling the use of MATLAB optimization functions to obtain the solution for the DMC algorithm optimization problem. The other objective of this study is to compare the process performance using multivariable DMC controller and multi-loop PID.

This article is organized as follows: Section 2 describes the environment and the controllers, Section 3 presents the tests that compare DMC to PID, with and without constraints. Section 4 brings the conclusion.

II. THE ENVIRONMENT AND THE CONTROLLERS

A. The Plant

Figure 1 and Figure 2 show the instrumentation diagram and a photo of the plant, respectively. The plant has one lower reservoir (T2) and one upper reservoir (T1). The lower reservoir (T2) is made of stainless steel and, using valve HV-04, it is possible to use it as a closed or open reservoir, which will be open in this analysis. Pump B-1 removes the fluid from the bottom of T2 and circulates it through upper control valve FV-02, directing the fluid to upper reservoir T1. Valve FV-01 will be always open, allowing the fluid to return to lower reservoir T2.


Figure 1. Diagram of the didactic plant


Figure 2. Photo of the didactic plant

For the plant control, CompactRIO 9012 controller of National Instruments (2009) was used, which is an advanced controller that has a data acquisition system designed for high-performance and reliability applications, combining the advantages of computers and rigidity of PLCs. CompactRIO has a real-time processor and a Field-Programmable Gate Array (FPGA) platform. The programming software for this controller is LabVIEW (Laboratory Virtual Instrument Workbench), which has a graphics programming environment and many resources from the areas of mathematics, instrumentation and automation. Figure 3 shows the controller with its I/O (input/output) boards.


Figure 3. CompactRIO controller and its I/O boards

For the plant control, CompactRIO 9012 controller of National Instruments (2009) was used, which is an advanced controller that has a data acquisition system designed for high-performance and reliability applications, combining the advantages of computers and rigidity of PLCs. CompactRIO has a real-time processor and a Field-Programmable Gate Array (FPGA) platform. The programming software for this controller is LabVIEW (Laboratory Virtual Instrument Workbench), which has a graphics programming environment and many resources from the areas of mathematics, instrumentation and automation. Figure 3 shows the controller with its I/O (input/output) boards.

In the controllers to be implemented, the process variables (PVs) will be the piping pressure and the level in the upper reservoir, and the manipulated variables (MVs) will be the pump speed and the upper valve opening. The plant model should be known for the development of both DMC and PID controllers (Seborg et al., 2004); for this reason, a pump step was applied, measuring the step influence on pressure output (G11) and level output (G21). A step was also used in the valve, measuring the step influence on pressure (G12) and level (G22). Figure 4 shows the plant model, and the transfer functions obtained.


Figure 4. Pressure and level of the plant model.

B. DMC predictive controller

Figure 5 illustrates the basic structure of MPC. One model is used to predict the future output of the plant, based on the past and present information of the plant, to propose an optimal action of future control. This optimization is calculated by an optimizer, taking into account the cost function and the constraints.


Figure 5. MPC Structure

The process model is one of the most important parts, as it should be able to capture the process dynamics, as well as a precise prediction of future output.

The MPC strategy of all controllers that belong to the MPC family has the following characteristics (see Fig. 6):


Figure 6. MPC Strategy

i) The future output for a certain prediction horizon hp will be predicted at each instant t, using the process model. This predicted output of k steps ahead from instant , for k=1, 2, ... hp, (where hp is the prediction horizon), depends on the knowledge of past input and output values and future control signal k steps ahead from instant t, u1(t+k), k=0. 1, ..., hc-1, (where hc is the control horizon, in such way that hchp). The predicted output of DMC for a system with 2 inputs and 2 outputs is

where gml is the step response of output m=1, 2 in relation to the input l =1,2; Δul(t+k)= ul(t+k)- ul(t+k-1) is the control signal variation.

After separating the past control actions from present and future control actions, we have

Let us define and . The predicted output is

(1)

Next we will present an expression equivalent to (1) in the matrix form. For this, let us define

Therefore, the future output can be determined by

(2)

ii) The group of future control signals will be calculated through an optimization of a criterion established to keep the process as close as possible to the predicted reference path, wm(t+k), k steps ahead from instant t, represented by wm(t) = ym(t) and

where k=1,2, ..., hp, αm is a parameter between 0 and 1, rm(t+k) is the evolution of the future reference and ym(t) is the real process output. The usually adopted criterion to keep the process as close as possible to the reference path has the form of a quadratic function of the error between the predicted output signal and the predicted reference path. In many cases, the variation of control signal Δul is included in the objective function defined in expression (3), to enable the smallest possible variation of control action (Δul).

(3)

where δm and λl are weights of error and control effort, respectively, which are constants or exponentials usually chosen along the horizon. The matrix form of objective function (3) is

where

A sequence of signals Δul(t+k), k=0,1,2,3, ... (hc-1) that minimize the objective function can be determined explicitly if there are no restrictions. In this case, the solution is

(4)

where K is the first line of matrix , which is the controller gain. Otherwise, an iterative method for optimization should be used.

iii) The control signal to be applied to instant t, u(t), is sent to the process, while future signals Δul(t+k), k=0,1,2,3, ... (hc-1) will be rejected. In the following sampling period (t+1), signal ym(t+1) is already known and the calculations of control actions will be made again, just like in the prior step. This method is called receding horizon control.

C. DMC with restriction

Restrictions are always present in any control situation in real life. The operation point that fulfill the global economic objectives of a process is usually at the intersection of restrictions (Garcia et al., 1989). Not considering the restrictions means forcing the process to operate at a safe distance and, therefore, sub-optimized in relation to the restriction limits, resulting in poor performance of the process. When applying a control system to a certain process, it is desirable to not only keep some variables under control, but also reduce the variability of variables that, the closer they operate to restrictions, the better the process is performing.

In a real process, restrictions to control variation Du, the excursion of control u(t) and output y(t) are real and present in the entire operation period. Restrictions are the result of equipment limitations in field (such as hydraulic/electric capability to move actuators, stroke limitation of valves, reservoir capability, etc.). In the DMC algorithm, the solution of the problem with constraints is different from expression (4). In this case, the best signal to be applied in the process is calculated using the quadratic programming problem (5).

(5)

where the following restrictions have been considered:

i) Variation of control action (Δu)

(6)

ii) Control signal (u).

(7)

iii) Predicted output signal

(8)

To solve the problem defined in (5) from the MATLAB quadprog function, the restrictions above should be dependent on Δu and should be written in the matrix form.

In Camacho and Bordons (2004), restrictions (6), (7) and (8) are placed as illustrated in (5). The vector is obtained through the optimization function and the first and hc+1 elements of vector will be used to obtain the control signals u1 and u2 as follows:

u1(t) = the first element of vector + u1(t-1),
u2(t) = hc+1 element of vector + u2(t-1).

The control signals u1 and u2 are applied to the process and will place the system outputs closer to the reference in the best way possible, observing the limitations imposed by restrictions.

D. Simulator of DMC and the implementation in the plant

A simulator using LabVIEW was developed to allow easy implementation of DMC control. This simulator was critical in correcting programming errors of DMC algorithms and in tuning tests. The DMC implementation in the plant started only after testing the algorithms in the simulator by replacing the mathematical model of the plant with the real plant. Figure 7 shows the simulated response of the plant.


Figure 7. Response of DMC simulator to level set point variation.

The DMC control was installed in the pilot plant as indicated in Figure 8. The DMC algorithm and data record routine was programmed in the computer from the LabVIEW software. This algorithm calls some routine developed through MATLAB commands, since LabVIEW acces the MATLAB functions easily.


Figure 8. Block diagram of DMC implementation

The DMC algorithm calculates the manipulated variables (valve opening and pump speed, see Fig. 4) and sends them to CompactRIO. The valve opening is the PID set point of the valve positioner. In CompactRIO, the PID output of the valve positioner and the pump speed are converted from percentage (%) to current (ma) in the data acquisition routine to be sent to the plant actuators, i.e. the valve and the pump.

The 4-20ma signals coming from the pressure and level transmitters of the plant (see Fig. 4) are transformed to tension before entering the CompacRIO. After that, they are filtrated and converted to percentage (%) through a data acquisition routine and sent to the computer.

The LabVIEW was installed in the computer and in the CompacRIO. Figure 9 shows the interconnection between the computer and CompacRIO using Ethernet cable and the internal protocol of the labVIEW. It also shows the connection between CompacRIO and the 4-20 ma instrumentation signals of the ditactic plant.


Figure 9. Interconnection between computer-CompaRIO and CompaRIO-instrumentation

The DMC controller tuning was performed by selecting parameters hc , hp and to each output of parameters α, δ and λ.

For tuning selection, the application that uses the genetic algorithm (GA) developed in Almeida et al. (2009) was used, plus the experience acquired while using the plant. This algorithm works as follows. First, the process model should be inserted and after that the parameters required for the GA execution are defined, i.e. size of population (M), number of generations (G), crossover rate and mutation rate, type of fitness function and selection criterion). After that, M individuals will be randomly created by the GA, and each individual will have the format [hc , hp, α1, α2, δ1, δ2, λ1, λ2,].

Then, these individuals will be placed into the DMC algorithm, which should provide each individual with a fitness value, which, in this case, will be the IAE performance index.

The GA will separate the best and the worst individuals, according to the value presented by the fitness function of each individual. After that, the GA will perform the species evolution through genetic operations of crossover and mutation, and the best individuals will have a lower probability of having descendants in future generations. It should be noted that this study used the technique of elitism, parallel to roulette wheel selection, ensuring that results will never be worse than the results of the prior generation, as this technique guarantees that the best individuals will be copied to the following generation.

The GA will execute a loop of G generations, and, at the end of such loop, the best individual will be obtained, and its elements will be the DMC tuning parameters.

The DMC algorithm follows the logic presented in the flow diagram illustrated in Figure 10.


Figure 10. Flow diagram of DMC algorithm

First the discrete model of the plant is identified. Using the model, the best tuning of DMC is obtained using the genetic algorithm (GA). Then the model and the tuning parameters are inserted in the DMC algorithm, which calculates the matrix G. After that the program starts a loop and calculates the reference prediction (W), the free response (F) and, using the quadprog function plus previously defined restrictions, it calculates , which is used to obtain the signals of controls u1 and u2 to be applied in the plant.

E. PID controller

Two structures with multi-loop PID control have been developed. One conventional structure and one using a cascade control.

The classic parallel PID with anti-windup was implemented, see details in Pereira et al. (2011), to be used in controllers whose output (u) is

The conventional PID control implemented has a pressure loop and a level loop, as illustrated in Figure 11.


Figure 11. Configuration of conventional PID controller

In the cascade PID control, the pressure loop is identical to the pressure loop of the conventional PID, and the level loop has a cascade flow controller with the level controller, as illustrated in Figure 12.


Figure 12. PID level loop with a cascade

In this study, the method used in PID tuning was the minimization of integral of the absolute value of the error (IAE), and the parameters were selected using the tables presented in Seborg et al. (2004). The PID controllers were implemented in the CompactRIO controller, and the controlled variables (level, flow and pressure) are sent to the computer in real time to be recorded in the data record routine.

III. COMPARISONS BETWEEN CONTROLLERS

A. Comparison without restrictions

For the comparison, the plant response to each type of controller will be presented and then its data will be tabulated for analysis.

Figure 13 shows the real pressure and level responses to variations of level SP, with constant pressure SP, using the multi-variable DMC control without restrictions.


Figure 13. Response to different level set points using DMC

Figure 14 shows the real pressure and level responses to variations of pressure SP, with constant level SP, using the DMC controller without restrictions.


Figure 14. Response to different pressure SPs using DMC

Figure 15 shows the plant responses in a closed loop to variations of level SP for the conventional PID control and cascade PID, both without restrictions, which did not show any significant variation in pressure in both PIDs, except in instances with set point changes


Figure 15. Real responses to variations of level SP without restrictions

Figure 16 shows the plant responses in a closed loop to variations of pressure SP, both also without restrictions, and the pressure set points were achieved satisfactorily in both PIDs. It also shows that the variations of pressure set points caused greater level changes with the conventional PID than with the cascade PID, which can be confirmed by the level IAE index, which was 0.19% with the conventional PID and 0.04% with the cascade PID.


Figure 16. Responses to variations of pressure SP without restrictions

Table 1 shows the results of tests with variations of level SP, keeping constant pressure SP. These data indicate that the best level performance was obtained with the DMC, considering that the pressure performance was very similar in all three cases, with the conventional PID producing the best result.

Table 1. Performance of loops in the pilot plant, with different controllers, without restrictions, for variations of level sp and constant pressure sp.

Table 2 shows the results of tests with variations of pressure SP, keeping constant level SP. For this test, the best pressure performance was achieved with the DMC, considering that the best level performance was obtained with the cascade PID.

Table 2. Performance of loops in the pilot plnat with different controllers, without restrictions, for variations of pressure sp and constant level sp.

Finally, considering the sum of level and pressure IAE values as the plant performance score for all cases, the best result was obtained using the DMC predictive controller.

B. Comparison using restrictionss

Tests were conducted in the pilot plant using PIC and DMC controllers with restrictions. Each test has four periods, defined as T1, T2, T3 and T4. In T1, the plant response without restrictions will be presented, in T2 the restriction limits the maximum pump speed to 75%, in T3 the maximum valve opening is also limited to 75%, and in T4 previously defined restrictions are applied simultaneously. In the DMC, the restrictions are part of the algorithm itself, while in the PID the restrictions were inserted limiting the MV when the limits are exceeded.

Figure 17 shows the test of level variation with restrictions applied to the conventional PID. In T2, pressure and level set points were achieved, but reduced pressure was observed during ramp up time. In T3, pressure did not change, but the permanent regimen of level was not achieved, showing that the valve restriction had a strong impact on the plant response. In T4, pressure was not changed either, and with simultaneous restrictions to pump speed and valve opening, the level set point did not achieve the regimen in this period.


Figure 17. Level response using PID with restrictions

Figure 18 shows the test of level variation with restrictions, using the DMC controller. In T2, the pressure and level set points were achieved, but reduced pressure was observed during ramp up time. In T3, the pressure and level set points were achieved. In T4, with the simultaneous restrictions on pump and valve, the pressure and level set points were also achieved, with pressure change during level increase.


Figure 18. Level response using DMC with restrictions at the input

It should be noted that, with the DMC, it is possible to insert restrictions at the process output; in this case, for level and pressure. A test was conducted to show this resource, illustrated in Figure 19. In T1, no restriction was applied, in T2 the maximum output restriction (72%) was active and limited the level satisfactorily. In T3, the restrictions of maximum level (72 %) and minimum level (26%) were applied simultaneously. In this case, the maximum and minimum levels were not exceeded, but, to make it feasible, a pressure increase occurred when the level value reached its minimum value. In T3, besides the restrictions of maximum and minimum level, the maximum pressure restriction (55%) was applied, which limited the pressure, but exceeded 5%, as it was not feasible to limit pressure to 55%.


Figure 19. Response of level and pressure using DMC with restrictions at the output

IV. CONCLUSIONS

The results of tests with multivariable DMC and multi-loop PID controllers implemented in the plant were compared. The plant performance score using the multivariable DMC controller was better than that obtained using the PID. The plant responses, with the same restrictions using PID and DMC, indicate better results with the DMC, as this controller considers the restrictions within its algorithm.

As indicated in the test, when using the DMC, it is possible to apply restrictions also at the process output, which enables easy and safe operation within the physical boundary of the plant.

Considering the DMC tuning complexity, the simulator development had a critical participation in tuning and it enabled easy correction of algorithm programming errors. This DMC simulator and the controllers implemented can be used as excellent didactic tools for teaching purposes in the control area.

ACKNOWLEDGEMENTS
The authors would like to thank FACITEC/City Hall of Serra-ES for the study funding and IFES and UFES for the support when offering their laboratories and human resources.

REFERENCES
1. Almeida, G.M., J.L.F. Salles and J.D. Filho, "Optimal tuning parameters of the dynamic matrix predictive controller with constraints," Latin American Applied Research , 39, 33-40,(2009).
2. Aström, K.J. and T. Hägglund, "The future of pid control," Control Engineering Practice, 9, 1163-1175, (2001).
3. Automation research corporation, "Real time process optimization and training worldwide outlook", http://www.arcweb.com/. (2000).
4. apud O.A.Z. Sotomayor and D. Odloak, "Performance assessment of Model predictive Control System," Proc. of International Symposium on Advanced Control of Chemical Processes, Gramado (RS), Brazil, 875-879, (2006).
5. Camacho, E.F. and C. Bordons, Model Predictive Control, New York, Springer (2004).
6. Clarke, D., C. Mohtadi and P. and Tuffs, "Generalized Predictive Control. Part I The Basic Algorithm," Automatica, 23, 137-148 (1987).
7. Carvalho, A.S. "Uma Plataforma Computacional para o Ensino de Engenharia e Controle," Proc. of Brasilian Conference on Engineering Education (COBENGE), Recife (PE) Brazil (2009).
8. Cutler, C. and B. Ramaker, "Dynamic Matrix Control - a Computer Control Algorithm," Proc. of AICHE National Meeting, Houston, EUA (1979).
9. Desborough, L.; P. Nordh and R. Miller, "Control System Reliability - Process Out of Control," Industrial Computing, 8, 52-55 (2001).
10. García, C.E., D.M. Prett and M. Morari, "Model Predictive Control: Theory and Practice - A Survey," Automatica, 25, 335-348 (1989).
11. Gomes, F.J. and D.P. Pinto, "Educação em Engenharia de Controle e Automação: Proposta de um Laboratório Integrado com Ambiência Industrial," Proc. of Brasilian Automatic Control Conference (CBA), Juiz de Fora (MG), Brazil (2008).
12. National Instruments, LabView Manuals (2009).
13. Pereira, R.P.A., G.M. Almeida, J.L.F. Salles, C. Munaro and M.A. Cuadros, "Ambiente para simulação e aplicação numa planta didática de um controlador PID com anti wind-up," Proc. of Brasilian Conference on Engineering Education, Blumenau (SC), Brazil (2011).
14. Qin, S. and T. Badqwell, "A Survey of Industrial Model Predictive Control Technology," Control Eng. Practice, 11, 733-764 (2003).
15. Seborg, D.E., T.F. Edgar and D.A. Mellichamp, Process Dynamics and Control, John Wiley & Sons Inc., 2nd edition (2004).
16. Thomas, W.G., R.P.A. Pereira, M.A. Cuadros and J.L.F. Salles, "Modelagem de Uma Planta Didática Mulivariável e Não Linear," Proc. of 9 th IEEE/IAS International Conference on Industry and Applications (INDUSCON), São Paulo (SP), Brazil (2010).

Received: June 30, 2013
Accepted: December 2, 2013
Recommended by Subject Editor: Jorge Solsona