Full text
UNIVERSITAT POLITÉCNICA DE CATALUNYA ESCOLA TÈCNICA SUPERIOR D’ENGINYERIA INDUSTRIAL DE BARCELONA MASTER THESIS Multivariable control of a steam boiler Author: Abrahan A. RIERA CHIQUITO Supervisor: Dr. Vicenç PUIG CAYUELA A thesis submitted in fulfillment of the requirements for the degree of Master in Automatic Control and Robotics in the Institut de Robòtica i Informàtica Industrial (IRI) Departament d’Enginyeria de Sistemes, Automàtica i Informàtica Industrial (ESAII) September 14, 2017
iii Abstract Multivariable control of a steam boiler by Abrahan A. RIERA CHIQUITO Keywords: IMC, LQR, Identification, State Space model, Transfer Function model, Steam Boiler, Industrial, CEA. This thesis is devoted to apply a Multi-Input Multi-Output (MIMO) controller to a specific Steam Boiler Plant. The considered plant is based on the descriptions obtained from the input/output data of a referenced steam boiler in the Abbot combined cycle plant in Champaign, Illinois. The objective is to take all the useful input/output data from the steam boiler according to its performance and capability in different operation points in order to model the most accurate plant for control. The conceived case of study is based in a modification of a model proposed by Pellegrinetti and Bentsman in 1996, considering to be tested under a benchmark proposed by the Control Spanish Association (CEA). Initially, taking into account only the input and output data of the system, black box modeling techniques were used to obtain different models of the plant. The first approach was to obtain a transfer function model to apply a Internal Model Controller (IMC). However the result was not as expected because the controller becomes considerable difficult to tune given the big quantity of poles and zeros of the resulting IMC controller. Hence this technique was dismissed. On a second stage, it was obtained a model of the plant in state space representation to apply a Linear-Quadratic Regulator (LQR) technique to understand how the system behaves with this state space model design. Given that the description of the system in this form was more accurate the obtained results were better for this type of controller making it better suited to fulfill the needs of the plant. This work covers all the steps followed to use the Internal Model Controller (IMC) and the Linear-Quadratic Regulator (LQR) techniques to study the behavior of a steam boiler system in an industrial environment. The obtained results are exposed and explained with the aim of describing which one of the two used methods is better suited for the control of the plant. Finally a budget and impact studies are presented to explain which could be the resources needed in order to apply this type of controllers effectively in a steam boiler plant, being able to extrapolate the obtained results to be applied to other type of processes in the same sector (heat exchangers, distillation columns, etc.).
v Acknowledgements This thesis represents the end of an enriching period for my personal and professional life. In this educational experience, there are people who deserve special recognition because without their valuable support and help this work would not have been possible. First, I would like to thanks to my tutor: Vicenç Puig for his patience and support. My thanks also go to my colleagues Michael, Eduardo, Esteban, Daniel and Victor for their remarkable friendship, wise advices and unconditional support. And last but not least I want to express my special gratitude to my wife Maria, and to my parents and inlaws: Amparo, José, Elide and Jesús for their special support and caring. You all are the motor that drives me each day to be better.
vii Contents Abstract iii Acknowledgements v 1 Introduction 1 1.1 Motivation..................................... 1 1.2 ObjectivesandScope............................... 2 1.2.1 SpecificObjectives ............................ 2 1.2.2 Scopeofresearch............................. 2 1.3 Outline....................................... 3 2 Background 5 2.1 IndustrialSteamBoilers ............................. 5 2.1.1 Conditions of the analyzed model . . . . . . . . . . . . . . . . . . . 11 2.2 Modelingofaplant................................ 12 2.3 Internal model controller (IMC) . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.1 IMCcontrolscheme ........................... 15 2.3.2 Internal stability and benefits . . . . . . . . . . . . . . . . . . . . . . 17 2.4 Linear-quadratic regulator controller (LQR) . . . . . . . . . . . . . . . . . . 17 2.4.1 Finite-horizon, discrete-time LQR . . . . . . . . . . . . . . . . . . . 18 2.4.2 Limitations ................................ 18 3 Methodology 21 3.1 EncryptedModel ................................. 21 3.2 Identification of the Plant . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.2.1 Transfer Function identification . . . . . . . . . . . . . . . . . . . . . 23 3.2.2 State Space identification . . . . . . . . . . . . . . . . . . . . . . . . 27 3.3 IMC controller implementation . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.4 LQR controller implementation . . . . . . . . . . . . . . . . . . . . . . . . . 31 4 Results 37 4.1 IMC implementation results . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.2 LQR implementation results . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.2.1 Evaluation of controller with benchmark code . . . . . . . . . . . . 47
viii 5 Budget and Impact Studies 55 5.1 BudgetStudy ................................... 55 5.1.1 Hardware Resosurces . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.1.2 Software Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.1.3 HumanResources ............................ 55 5.1.4 GeneralResources ............................ 56 5.1.5 TotalCost ................................. 56 5.2 ImpactStudy ................................... 56 5.2.1 EconomicalImpact............................ 56 5.2.2 SocialImpact ............................... 57 5.2.3 Environmental Impact . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6 Concluding Remarks 59 6.1 Conclusions .................................... 59 6.2 Contributions ................................... 60 6.3 FutureWork.................................... 60 Bibliography 61
ix List of Figures 2.1 Industrial Steam Generator Plant . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 MIMO block of the boiler and its internal structure . . . . . . . . . . . . . . 12 2.3 TypesofModels.................................. 13 2.4 Forward IMC control scheme . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.5 LQRcontrolscheme ............................... 19 3.1 Dynamic inputs of the encrypted model . . . . . . . . . . . . . . . . . . . . 22 3.2 Fix input Steam demand variation . . . . . . . . . . . . . . . . . . . . . . . 22 3.3 Controlled outputs of the encrypted model . . . . . . . . . . . . . . . . . . 23 3.4 Simulated outputs of the transfer function model . . . . . . . . . . . . . . . 26 3.5 Parameters of the model in state space . . . . . . . . . . . . . . . . . . . . . 28 3.6 Simulated outputs of the state space model . . . . . . . . . . . . . . . . . . 29 3.7 One step horizon of the state space model . . . . . . . . . . . . . . . . . . . 30 3.8 IMC implementation on Simulink . . . . . . . . . . . . . . . . . . . . . . . 31 3.9 LQR implementation on Simulink . . . . . . . . . . . . . . . . . . . . . . . 35 4.1 IMC results with a simple Gc(s)......................... 38 4.2 SS model controlled with the LQR controller . . . . . . . . . . . . . . . . . 39 4.3 Open loop response of the plant . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.4 Scenario 1: Close loop LQR controller without steam demand variation, R=diag(1e−3) and Q=diag(20) ....................... 42 4.5 Scenario 2: Close loop LQR controller without steam demand variation, R=diag(1e−3),Q=diag(20) and Rate = 0.1................ 43 4.6 Scenario 3: Close loop LQR controller with steam demand variation, R= diag(1e−3) and Q=diag(20) .......................... 45 4.7 Scenario 4: Close loop LQR controller with steam demand variation, R= diag(1e−3),Q=diag(20) and Rate = 0.5................... 46 4.8 Benchmark of K3without steam demand variation (J= 31.2518) . . . . . 48 4.9 Benchmark of K4without steam demand variation (J= 33.3107) . . . . . 49 4.10 Benchmark of K6without steam demand variation (J= 29.0377) . . . . . 50 4.11 Benchmark of K3with steam demand variation (J= 83.7495) ....... 51 4.12 Benchmark of K4with steam demand variation (J= 65.6681) ....... 52 4.13 Benchmark of K6with steam demand variation (J= 75.5940) ....... 53
xvi T AIR time constant for air flow V W Volume of water inside the drum V T Total volume of the drum xistates uiinputs yioutputs cij constants for the model Systems and Control Theory nxnumber of states nx+ nunumber of inputs nu+ ndnumber of disturbances nd+ xstate vector xnx ucontrol input vector unu ddisturbance vector dnd Xset of admissible states X⊂nx Uset of admissible control inputs U⊂nu
1 Chapter 1 Introduction 1.1 Motivation Nowadays the efficient use of renewable energies is taking more importance inside the industry field, considering that the climatic change is a reality. Every year different countries meet in order to discuss new strategies that allow to stop the environmental damage caused by the industry. The creation of new technologies with the aim of using non-conventional different sources of energy has become an important factor to manage research resources. There are already solutions developed in recent years that have been proved to be efficient and environmental friendly (e.g., sun energy, wind energy or tidal energy technologies). But the principal problem with this type of techniques is that the monetary cost is extremely high in comparison with the commonly used techniques. Based on the economical fact just explained, the industries are having problems to apply this type of solutions. Hence, it is useless to create new technologies if they are not being implemented by the sectors that are affecting the environment. This has driven many research groups around the world to focus in making the new energy generation technologies cost effective. In spite of that, it is important to find new ways of making more efficient the available methods that are found currently in the industrial sector. One of the most popular systems in terms of energy generation is the case of the steam boiler. Steam boilers are used in a large type of industries given its capability of managing different pressures and temperatures, making possible the heat exchange necessary in different processes or even in electricity generation. In terms of process control, the steam boilers are MIMO ( Multi-Input Multi-Output) systems. Despite of that they are usually treated as single-input single-output (SISO) systems for the purposes of control design and implementation. In those cases, the tuning procedure is frequently carried out taking each loop individually. Even so, due to the
2Chapter 1. Introduction complexity of the system the results obtained are often not as expected. This problem does not only affect the boiler systems but a lot of other systems that belong to plants, which are equally described by MIMO systems. Additionally, in most of the cases these systems are non-linear, so they are not easily structured in the actual industrial controllers. The tuning of different loops and different variables that interact strongly with one another is the most difficult part when a plant is controlled automatically. Given the lack of suitable MIMO tuning tools for industrial controllers, the goal is to be able to implement the technologies and new techniques in MIMO control on the actual industry plants. It will be a big step forward in industrial control to find the correct path to accomplish the interaction between all the variables, having a more detailed behavior of the systems. The accomplishment of the goal is difficult even when there are enough computational resources. The objective of this thesis is to show how the control of a MIMO system as the steam boiler can be developed and which could be the steps to follow in order of implement this type of controllers in the industrial environment. 1.2 Objectives and Scope Considering the already explained popularity facts of SISO systems on industry, the main objective of this thesis is to implement a MIMO controller on a Steam Boiler plant proving that this type of approach could be implemented on a real plant. 1.2.1 Specific Objectives In order to fulfill the mentioned objective, the following specific objectives are defined: 1. To obtain the model of a steam boiler system from a set of input/output data. 2. To validate this model based on the physical states and its correlation with the set of data. 3. To design and implement a MIMO controller suitable for the obtained process model. 1.2.2 Scope of research The available data set describes the inputs and outputs of a real steam boiler. Based on this data set we proceed to use system identification techniques to obtain the transfer function (TF) model and the state space (SS) model of the steam boiler. Once the models have been obtained, the validation process compares the relation between the inputs and outputs of the plant, and it is observed how much this relation fitted with the actual relation found in the data set. When the FIT of a model was above 70% then the model was
1.3. Outline 3 considered to be valid. Once the TF and SS models were validated we proceed to design two different MIMO controllers based on the Internal Model Control (IMC) theory and the Linear-Quadratic Regulator (LQR) theory. The obtained controllers were implemented in a realistic simulation of the plant in closed loop. Analyzing the obtained results, it was discussed which one of this two MIMO control approaches could be applied in a real industrial boiler plant, based on the performance of the controller and also its tuning capability. 1.3 Outline This master thesis is structured in the following way: •Chapter 2: Background This chapter reviews the control theory background, by defining the used methods and referencing the previous works developed in other relevant cases that allows to fulfill the current objectives. •Chapter 3: Methodology In this chapter the objective is to describe the followed steps in order to fulfill the proposed objectives (model the steam boiler system, validate the model, design the MIMO controllers and implement the control strategies on the steam boiler plant simulation). •Chapter 4: Obtained results This chapter presents and analyzes the obtained results of the modeled systems and the controller implementation. Also it is discussed which of the two strategies evaluated is more applicable into a real industrial boiler plant. •Chapter 5: Budget and impact The impact of this thesis is discussed. The economic impact that this work has over a conventional project of a steam boiler inside an industry is described. Other social and environmental impacts are also discussed when applicable. •Chapter 6: Conclusions and contributions Finally, an overall analysis is performed. It is analyzed if the principal objective of the thesis has been reached. If not, the possible causes and possible future work are described. Also it is discussed the contribution to the field of steam boilers control.
5 Chapter 2 Background This chapter describes the steam boiler process and explains all process variables (states, input and outputs variables, etc.) needed to design the controller. After presenting the process model, the conditions of the model are described and finally the considered multivariable control approaches (IMC and LQR) are reviewed. The first step is to understand how the system works. A case of study with data taken from a real plant will be analyzed. This data represents the significant dynamics of the boiler at Abbott Power Plant in Champaign, Illinois in the United States, in the normal regimes as in the feasible abnormal ones. This plant has been proposed as a benchmark problem to be solved in the Control Engineering Contest (CIC2016), organized by the Grupo Temático de Ingeniería de Control del Comité Español de Automática (CEA). The model is encrypted, which means that the simulated plant (as a real one) has to be identified from input and output data, as a black box model, selecting the most convenient modeling method and then applying the controller according to the characteristics and parameters of the plant. The useful information to be extracted from the plant are the variables that affect the dynamics of the system and how they are related between them. After this, every variable input or output can be tagged as measured, unmeasured, disturbance or control variable of the plant. With this information, the controllers can be designed according to how the model interacts with the system. 2.1 Industrial Steam Boilers The steam boilers are capable to exchange in an efficient way the heat that is produced in some parts of the plant, even if the heat is concentrated inside the boiler or if it is produced by some other processes outside the boiler system. The boilers are one of the basic elements of a plant and they have a lot of variations. Nowadays, most of the boilers are based on the classic model but it is not a secret that the technology is going faster and the boilers efficiency should improve along the years.
6Chapter 2. Background The objectives of the boilers is to find the range of exchange where the heat can be taken in the best way. This means finding the correct conditions of pressure and temperature. Every boiler is different, and they have different ways to be controlled. In the industrial field the controllers of any important system as this one needs to be robust and capable to be adapted to small changes at least. A boiler incorporates a burner in order to burn the fuel and generate heat. The generated heat is transferred to water to make steam, known as the boiling process. The higher the burner temperature, the faster the steam production. The saturated steam thus produced can then either be used immediately to produce power via a turbine and alternator (Steingress,2001). The boiler model is developed on the basis of physical laws, previous efforts in boiler modeling, known physical constants, plant data, and heuristic adjustments. The resulting fairly accurate model is nonlinear, fourth order, and include inverse response, time delays, measurement noise models, and a load of disturbance component (Pellegrinetti & Bentsman,1996). The methods to obtain the correct model of any steam boiler plant are not readily found in open literature and are often specific to a particular system. This is particularly true on industrial environments where the signals given by any system can not be predicted until they are working on place because they can be very affected depending on the conditions of where the system is located, the standard work of the company and the users. The boiler model which is used as a base on this chapter contains non-linearities, noise as the normal plant, time delays and disturbances that are going to be managed (Pellegrinetti & Bentsman,1996). The behavior of the model represents the significant dynamics of the boiler at Abbott Power Plant in Champaign, IL in the United States, in normal regimes as in feasible abnormal ones. This model represents a complete boiler that predicts process response in terms of the measured outputs like drum pressure, drum water level and oxygen excess, to controllable input as air and fuel rates, steam demand rate and flow rate of water, and also the disturbances and noises (Pellegrinetti & Bentsman,1996). In order to follow the equations that describes the steam boiler plant behavior, the Figure 2.1 presents an scheme of the conventional industrial steam generator plant: The first group of equations relates the control of the steam demand valve position (u1) to the input flow rates for the fuel valve (u2), air valve (u3) and feed water flow valve (u4) rates respectively:
2.1. Industrial Steam Boilers 7 FIGURE 2.1: Industrial Steam Generator Plant (Blanco, 2016). qf =QF CF u2(2.1) where qf is the fuel flow rate, QF CF is the maximum fuel flow rate of the system, u2is the valve position from 0% to 100%. qa =QACAu3(2.2) where qa is the air flow rate, QACA is the maximum air flow rate of the system, u3is the valve position from 0% to 100%. qfw =QCF W u4(2.3) where qfw is the water flow rate, QCF W is the maximum water flow rate of the system, u4is the valve position from 0% to 100%. The differential equation for the drum pressure depends on the variable x4which corresponds to an exogenous variable, the fuel flow rate u2, and the water flow rate u4 and is given as: ˙x1=−CP 1x4x9/8 1+CP 2u2−CP 3u4+CP 4(2.4) ˙x1=−0.00558x4x9/8 1+ 0.0280u2−0.01348u4+ 0.02493 where CP 1,CP 2,CP 3,CP 4are some empirical parameters, ˙x1is the drum pressure
8Chapter 2. Background differential equation, x1is the pressure of the steam. The oxygen level equation assumes complete combustion and in steady state can be represented as O2=100(qa −qfF AR) (qa +qf)AIRO2(2.5) where O2is the oxygen excess, F AR is the relation of air needed to consume all the fuel, AIRO2is the percentage of oxygen in the air. F AR is the air to fuel mass ratio for complete combustion (stoichiometric relation), and AIRO2is the mass ratio of air to oxygen in atmospheric air (generally near the 0.2). Assuming a first order lag with time constant T AIR, the state equation of the oxygen can be expressed as ˙x2= [O2−x2]1 T AIR (2.6) ˙x2= [O2−x2]1 6.492 where ˙x2is the oxygen excess rate, x2is the permitted oxygen excess. But due to the nonlinear behaviour, a linear equation could not describe very well how the system evolves being necessary to create a new nonlinear relation to define better the behaviour of the constant FAR described as follows: F AR =F A1O2+F A2(2.7) F AR = 0.3106290O2+ 16.2983 where F A1,F A2are experimental parameters characterizing the relation fuel-air. In some models as in this case, the steam demand is already defined and it will be treated as a measured disturbance input. qs = (x4CQS1−CQS2)x1(2.8) qs = (x40.855663 −0.18128)x1 where qs is the desired steam flow rate, CQS1,CQS2are experimental parameters characterizing the steam flow rate. The load level was computed from the steam flow rate and pressure. Then, the steady state and the states varying on time are the following ˙x4=−(x4−CD11u1−CD12) 1 T D1(2.9)
2.1. Industrial Steam Boilers 9 x4=CD11u1+CD12) (2.10) where CD1,CD2are experimental parameters, T D1is the time constant for the steam rate, x4is the variable produced from the steam flow and pressure data, ˙x4the rate related with the steam flow. There are other complementary equations that help to define the rest of the states, for example the density of the steam with a constant temperature will be only dependent of the pressure inside the boiler and the density of the liquid has very low variations rsh =CS1x1+CS2(2.11) where rhs is the density inside the drum, CS1,CS2are experimental parameters. The volume of water inside the drum depends on this density, the evaporation flow rate (msd), the volume of water in the drum (vwd), the steam quality (a1) and the energy given (ef) ef =CU11qf +CU12 (2.12) ef = 37633qf + 174 where ef is the normal evaporation flow, CU11,CU12 are experimental parameters characterizing the evaporation flow. a1= 1 x3−V W 1 rsh −V W (2.13) where a1is the relation for evaporation of water, V W is the volume of water. msd =KBef −Rqfw +qsK 1 + K(2.14) where Kis the quality of steam, Ris the constant for quality of the stream. vwd =V W V T x3+CV W D1a1+ 0.159msd (2.15) where V T is the total volume of the drum, vwd is the volume of water in the drum. The constants of the system are volume of the drum (V W ,V T ), the quality of the steam (K), etc. The 3rd state represents the density of the fluid (liquid and steam). ˙x3=QCF W u3−qs V T (2.16) where ˙x3is the fluid density.
16 Chapter 2. Background FIGURE 2.4: Forward IMC control scheme where, Y(s) = Gp(s)Gc(s) 1 + Gc(s)(Gp(s)−Gmp(s))R(s) + 1−Gmp(s)Gc(s) 1 + Gc(s)(Gp(s)−Gmp(s))w(s)(2.29) and having into account that the sensitivity function S(s) = 1 1 + Gp(s)Gc(s) and the complementary sensitivity function T(s) = Gp(s)Gc(s) 1 + Gp(s)Gc(s) are S(s) + T(s) = 1, then we have: Y(s) = T(s)R(s) + S(s)w(s)(2.30) In the case of plant/model mismatch (Gp(s)=Gmp(s)), this functions simplify to: ¯ T(s) = Gmp(s)Gc(s) ¯ S(s)=1−¯ T(s)=1−Gmp(s)Gc(s) Gc(s) = Gmp(s)−1¯ T(s) which lead to the following expressions for the input/output relationships between Y(s),U(s),E(s)and R(s),d(s)and w(s). Y(s) = ¯ T(s)R(s)+(−¯ T(s))w(s)−¯ T(s)¯ d(2.31) U(s) = Gc(s)R(s) + Gc(s)w(s)−Gc(s)¯ d(2.32) E(s) = (1 −¯ T(s))R(s) + (1 −¯ T(s))w(s)−(1 −¯ T(s)) ¯ d(2.33)
2.4. Linear-quadratic regulator controller (LQR) 17 Now, having this definition we can define the classical feedback controller C(s)in terms of Gc(s): C(s) = Gc(s) 1−¯ T(s)(2.34) 2.3.2 Internal stability and benefits If we count with a perfect model (Gp(s)=Gmp(s)), the IMC system is internally stable if and only both Gp(s)and Gmp(s)are stable. Assuming that Gp(s)is stable and Gp(s)=Gmp(s). Then the classical feedback system with controller according to equation (2.34) is internally stable if and only if Gc(s)is stable. The IMC structure thus offers the following benefits with respect to classical feedback: •No need to solve for roots of the characteristic polynomial 1+Gp(s)C(s); one simply examines the poles of Gc(s). •One can search for Gc(s)instead of C(s)without any loss of generality. 2.4 Linear-quadratic regulator controller (LQR) The theory of optimal control is concerned with operating a dynamic system at minimum cost. The case where the system dynamics are described by a set of linear differential equations and the cost is described by a quadratic function is called the LQ problem. One of the main results in the theory is that the solution is provided by the linear-quadratic regulator (LQR), a feedback controller whose equations are given below. The settings of a (regulating) controller governing either a system are found by using a mathematical algorithm that minimizes a cost function with weighting factors supplied by the operator. The cost function is often defined as a sum of the deviations of key measurements, such as desired process pressure or temperature, from their desired values. The algorithm that finds those controller settings that minimize undesired deviations. The magnitude of the control action itself may also be included in the cost function. The LQR algorithm reduces the amount of work done by the control systems engineer to optimize the controller. However, the engineer still needs to specify the cost function parameters, and compare the results with the specified design goals. Often this means that controller construction will be an iterative process in which the engineer judges the "optimal" controllers produced through simulation and then adjusts the parameters to produce a controller more consistent with design goals.
18 Chapter 2. Background The LQR algorithm is essentially an automated way of finding an appropriate statefeedback controller. As such, it is not uncommon for control engineers to prefer alternative methods, like full state feedback, also known as pole placement, in which there is a clearer relationship between controller parameters and controller behavior. Difficulty in finding the right weighting factors limits the application of the LQR based controller synthesis. There exist different sets of equations for the LQR problem depending on the type of system. On this case we are focused con the case of the Finite-horizon, discrete-time LQR. 2.4.1 Finite-horizon, discrete-time LQR When having a discrete system described by: xk+1 =Axk+Buk with a performance index defined as: J= N X k=0 (xT kQxk+uT kRuk+ 2xT kNuk)(2.35) the optimal control sequence minimizing the performance index is given by: uk=−Kkxk(2.36) where Kk= (R+BTSkB)−1(BTSkA+NT)(2.37) and Skis found iteratively backwards in time by the dynamic Riccati equation: Sk−1=ATSkA−(ATSkB+N)(R+BTSkB)−1(BTSkA+NT) + Q(2.38) from terminal condution PN=Q. Note that uNis not defined, since xis driven to its final state by AxN−1+BuN−1. 2.4.2 Limitations The problem data must satisfy: •The pair (A,B) is stabilizable. •R > 0and Q−NR−1NT≥0 •(Q−NR−1NT,A−BR−1NT)has no unobservable mode on the unit circle.
2.4. Linear-quadratic regulator controller (LQR) 19 FIGURE 2.5: LQR control scheme
21 Chapter 3 Methodology This chapter is devoted to describe the followed steps that allows to fulfill the stated objectives. First the established conditions for the model are discussed and the modeling of the system is made using two different techniques (transfer function and state space) in the identification toolbox of MATLAB. Once the models was generated the controller design was applied. In the case of the transfer function model a IMC strategy was followed. And in the case of the state space model a LQR strategy have been chosen. 3.1 Encrypted Model The considered boiler model is a MIMO system with three dynamic inputs that can be manipulated from 0% to 100% in order to modify the fuel rate (u2), air rate (u3) and flowrate of water (u4), as it can be seen in Figure 3.1, and one fix input that establish the steam demand rate (u1) that the plant is requiring. There also exists a limitation in the ratio of the three dynamic inputs that can be modified according to the convenience, describing the common restrictions of the industrial actuators. The boiler model is encrypted and the use of tools for its control is limited according the rules established in the control competition (Comité Español de Automática, 2016). The input variables changes their reference in several moments observing an strong relation between the steam demand and the rates the other three inputs. The steam demand change during 20 minutes of the simulation time (see Figure 3.2) causing important changes on the references of the fuel ratio, air ratio and water ratio. It is easy to see in Figure 3.1 how the fuel and air flow are much coupled, knowing that in order to have good combustion in the heating process the burner combine the fuel ratio with the air ratio normally in a relation of 1:10. The water flow variable needs more time to stabilize, even when the reference controlled is evaluated. There are three output defined as the drum pressure (y1), the oxygen excess (y2) and the water level (y3). This outputs are controlled (see Figure 3.3) to obtain as resultant the correct quantity of steam demanded.
22 Chapter 3. Methodology The water level seems hard to stabilize because involves some delays, but it is the less important in order to control. The drum pressure and oxygen excess are noted to change during the first minutes of the simulation, being this physically related to the change of state of the water during the heating process. The generated heat is transferred to water to make steam, the process of boiling. This produces saturated steam at a rate which vary according to the pressure above the boiling water. FIGURE 3.1: Dynamic inputs of the encrypted model FIGURE 3.2: Fix input Steam demand variation
3.2. Identification of the Plant 23 FIGURE 3.3: Controlled outputs of the encrypted model 3.2 Identification of the Plant The physical equations that describes the system are not used. Instead we use the input/output data obtained from the simulations of the given plant to applicate black box modeling techniques to identify the plant. For this purpose it was necessary to use the identification toolbox available the MATLAB program. The identification of the plant was defined in two phases: the transfer function identification and the state space identification. Each one of them was applied to different types of controllers. IMC works with the first method and the LQR works with state space models. There are some characteristics inside a plant that makes it unique and to identify it is necessary a detailed analysis of the input/output data. The model has to describe the behavior of the plant as accurate as possible but also have to be simple to be useful for control design purposes. There exists some references about how control oriented models were constructed for a classic boiler and are used to develop the new models for the considered boiler used as case study (Grosso, 2012). The boiler plant behaves as a MIMO system that presents a lot of internal interaction, every input affects several outputs. 3.2.1 Transfer Function identification To obtain a black box model of the plant, the procedure is to take the data from the inputs and outputs of the system and study the dynamics of the states. To define the
24 Chapter 3. Methodology dynamic, is well known that there are interactions between all the inputs and outputs, so the idea is to define one transfer function for each one of these interactions. Having 3 inputs and 3 outputs, the system becomes in a 3x3 transfer function matrix. In order to obtain a more accurate response for the model to be identified, it was necessary to divide the matrix into several transfer functions that afterwards shall be concatenated. The parameters were different for each interaction as it can be seen on Table 3.1. The Table 3.2 shows the obtained transfer functions, the Final Prediction Error (FPE) and Mean-Squared Error (MSE) for the estimated models.It is important to note that these two values (FPE and MSE) the closer to zero the difference between the estimator and what is estimated is minimal. TABLE 3.1: Transfer function models parameters and FIT Transfer Function Models TF Poles Zeros FIT G11 4 0 62.81 G12 3 1 65.86 G13 3 1 56.55 G21 4 0 58.61 G22 4 0 61.29 G23 3 1 59.07 G31 3 0 52.71 G32 3 0 53.54 G33 3 1 54.33 The transfer functions was constructed until the fit was according to the expectation of these cases over the 60%. To find a fitting of this level in every simulated output it has to be adapted to the needs of each dynamics, that is how the table was constructed were the zeros and poles were chosen and changed until they fit to the behavior of the system. It is notorious that the fit of the outputs related with the third control variable (water level) have a less accurate FIT, but in the dynamic it can be seen how the model at least stills fit with the set point. This is due some delays responses and oscillations that all the inputs have with respect the output. In fact, to understand better what is happening we proceed to estimate the delay matrix between each input/output interaction (delay given in time samples), obtaining as a result the following: nk= 0 0 38 201 34 34 23 After obtain all the interactions between inputs and outputs, a final system (Gmp(s)) is constructed by concatenating all the obtained transfer functions. We proceed to create the transfer function that correlates all the individual interactions into a MIMO matrix.
3.2. Identification of the Plant 25 TABLE 3.2: Resulting transfer function models Resulting transfer function Models TF FPE MSE G11 =2.551e−10 s4+0.1341s3+4.509e−5s2+2.352e−7s+1.74e−10 0.2175 0.2158 G12 =6.277e−5s+1.808e−7 s3+0.06405s2+0.0003181s+1.815e−70.1831 0.1839 G13 =8.626e−6s+2.731e−8 s3+0.8619s2+0.002998s+0.2131 0.2117 G21 =1.096e−10 s4+0.01111s3+4.181e−5s2+1.071e−7s+8.133e−11 0.6703 0.6652 G22 =1.171e−10 s4+0.0007584s3+4.015e−5s2+1.093e−7s+1.281e−10 0.5946 0.5902 G23 =2.995e−6s+1.353e−8 s3+0.006938s2+1.311e−5s+7.449e−90.6642 0.6598 G31 =17.757 (1+44.752s+143.26s2)∗(1+3.507e5s)0.06427 0.06368 G32 =1.2348 (1+47.032s)(1+5862.4s)(1+0.82246s)0.06275 0.06217 G33 =1+210.48s (1+2∗0.0595∗1.1859s+(1.1859s)2)(1+4065s)0.06014 0.05953 The fittings in general are described in the Table 3.3. The Figure 3.4 shows the obtained fit for each output of the model. Over this model is going to be applied the Internal model controller to the plant. Gmp(s) = G11 G12 G13 G21 G22 G23 G31 G32 G33 TABLE 3.3: Obtained Transfer Function model Gmp(s)FIT (y1) FIT (y2) FIT (y3) 68,68 60,73 -43,52
32 Chapter 3. Methodology takes the form of the equation (2.36), as it can be observed on the Figure 2.5. The design of the controller is applied in a Matlab script using the instruction dlqr, that needs to have as inputs the A and B matrices of the state space model and the Q, Rand Nmatrices of the LQR equations. Knowing that there is no feedforward on this system, the matrix Nis set to zero directly. In the case of the parameters Qand Rcan be used as design parameters to penalize the state variables and the control signals. The larger these values are, the more these signals are penalized. Basically, choosing a large value for Rmeans we are trying to stabilize the system with less (weighted) energy. On the other hand, choosing a small value for Rmeans that the penalization of the control signal is not so important. Similarly, choosing a large value for Qmeans that we are trying to stabilize the system with the least possible changes in the states and small Q implies less concern about the changes in the states. Since there is a trade-off between the two, in this case we iterates the values of Qand Rbut in opposite manner until finding a value of K that stabilizes the system. Performing several test to see how the closed loop poles were affected and given the constant changes of the physical states of the system it was decided to give less weight to the control actions Rand try to stabilize the system making more important the weights of the Qmatrix. The Matlab instruction dlqr returns as outputs the controller Kk, the infinite horizon solution Skand the closed-loop eigen values according to e=eig(A−B∗K). As its known, we are only interested on found a controller KKthat in closed loop makes the system stable. This is only possible if the closed loop eigen values (e) are positioned in the left-half plane of the root locus, meaning that the poles are pushing the system to stability. So, in order to find this values we alter iteratively the values of Rand Quntil find the Kkthat makes the system stable in close-loop. The used Matlab code was: %% Calculates LQR by iterations clear all; clc; close all; % Load the model load(’modelo_bueno3x3x3.mat’) % Check controllability of the loaded model co = ctrb(ss3); controllability = rank(co); % Initialize the arrays K_all = []; R_all = []; Q_all = []; % Calculates all the possible controllers that makes % the system stable
3.4. LQR controller implementation 33 if controllability == 3 for i = 1e-3:1e-5:1; for j = 1:200; Q = diag([j,j,j]); R = diag([i,i,i]); % Calculate the controller K, and the poles Ek [K,S,Ek] = dlqr(ss3.A,ss3.B,Q,R); % Store all the K that makes the closed % loop system poles stables if Ek(1) < 0 && Ek(2) < 0 && Ek(3) < 0 K_all = [K_all, K]; R_all = [R_all, diag(R)]; Q_all = [Q_all, diag(Q)]; Ek_all = [Ek_all, Ek]; end end end end %% Check for the minimum poles and find position in the arrays [M,I] = min(Ek_all(:)); [I_row, I_col] = ind2sub(size(Ek_all),I); %% Store better results to evaluate in simulation K_best = [K_all(:,I_col*3-2), K_all(:,I_col*3-1), K_all(:,I_col*3)]; save(’K_to_evaluate’, ’K_best’); This code returns six different controllers for the following values of Rand Q. R= 1.10−30 0 0 1.10−30 0 0 1.10−3 Q1= 200 020 002 Q2= 10 0 0 0 10 0 0 0 10 Q3= 11 0 0 0 11 0 0 0 11 Q4= 13 0 0 0 13 0 0 0 13 Q5= 19 0 0 0 19 0 0 0 19 Q6= 20 0 0 0 20 0 0 0 20 where the obtained controllers gave as result the following values:
34 Chapter 3. Methodology K1= 6.3210+05 4.4510+03 −4.2210+04 9.7310+05 1.4410+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 K2= 6.3210+05 4.4410+03 −4.2210+04 9.7310+05 1.4310+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 K3= 6.3210+05 4.4410+03 −4.2210+04 9.7310+05 1.4310+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 K4= 6.3210+05 4.4410+03 −4.2210+04 9.7310+05 1.4310+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 K5= 6.3210+05 4.4410+03 −4.2210+04 9.7310+05 1.4310+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 K6= 6.3210+05 4.4410+03 −4.2210+04 9.7310+05 1.4310+04 −5.7510+04 8.3210+05 1.0210+04 −4.3110+04 Ek1= −1.4910−11 −4.7610−17 −1.5610−15 Ek2= −3.8910−13 −3.9110−16 −1.7210−15 Ek3= −1.6110−12 −1.1610−15 −6.8210−18 Ek4= −5.6110−12 −1.8710−16 −1.8710−16 Ek5= −2.0310−12 −2.9410−15 −8.4310−17 Ek6= −7.7110−13 −8.5910−16 −1.4610−15 where Kis the controller matrix, Ek are the poles of the closed loop system. Once the controller have been found, what remains is to implement it in the plant using the Simulink model available. We modify this model in order to replace the existing controller with our Kk. As it can be seen in the Figure 3.9a, inside the controller block we replace the existing block for our Kkand also introduce to the controller the differences between the references inputs (r) and the feedback outputs (y) of the plant. The controller is a 3 inputs by 3 outputs matrix, meanwhile the plant is a MIMO system with 4 inputs and 3 outputs. As in the IMC case, the first input to the plant (the steam demand) is a measurable disturbance that affects to all the dynamic of the system. However, this perturbation can be managed by only the control inputs of the plant, that are the fuel rate, the air rate and the water rate. So, as it can be observed in the Figure 3.9b, the steam demand is introduced directly to the plant.
3.4. LQR controller implementation 35 (a) Block of LQR controller (b) LQR applied to the plant FIGURE 3.9: LQR implementation on Simulink
37 Chapter 4 Results This chapter is devoted to explain the obtained results when the two different controllers were applied to the system using the methods described in the Chapter 3. A comparison between the identification methods and the multivariable controllers is performed. 4.1 IMC implementation results During the implementation of the IMC controller several problems were encountered. First of all, the identified transfer function model is very complex. As it have been explained in the Section 3.3.1, the easiest form to identify the MIMO transfer function was to work with a battery of different transfer functions that relates the inputs and outputs individually. Each obtained model have unique characteristics and different polynomial orders. Given this differences, the number of poles of the resulting general transfer function are quite high. The IMC controller is designed as a transfer function and to be able to control effectively a high order system the pole placement shall be performed differently for each interaction. There is no direct connection between each input and output of the plant. Being a MIMO system there exist a strong link between the majority of inputs/outputs and the IMC controller for this particular case does not count with easy pole placement capability. When trying to apply this method inside the real plant SIMULINK implementation, any solver could reach results until the final time step. Given the complexity of the model, the data delay, measured and unmeasured disturbances and uncertainties, the resulting IMC controller is also very complex. In a finite time simulation of the system with the IMC controller implemented, the SIMULINK program reproduce errors given by singularities encountered on certain steps. However, in order to prove that a simpler transfer function controller could be implemented inside the real plant simulation using the IMC model, we simulate a controller with 3 poles placed in -1. The obtained results can be observed in the Figure 4.1.
38 Chapter 4. Results FIGURE 4.1: IMC results with a simple Gc(s) As it can be seen, the IMC strategy is feasible only when the controller complexity is low. For this particular case, given the complexity of the identified transfer function model, the obtained IMC controller is also very complex and not easily tunable. Moreover, this type of controller have made the SIMULINK simulation impossible given the singularities found on certain steps no mattering which solver has been used. 4.2 LQR implementation results Once the IMC implementation have failed we pass to try a different controller approach. Seeing that the state space model was easily identified and have a very good FIT to the input/output data of the plant simulation, as is explained in the point 3.3.2, an
4.2. LQR implementation results 39 LQR controller was applied. The first step was to verify that the obtained controller stabilize the model. Using the dlrq command in Matlab, as it was described in the Section 3.5, the resulting controllers (K1to K6) also is accompanied for the eigen values vectors (Ek1to Ek6) of the close loop system. By varying the values of the Rand Qmatrices, that weights the control actions of the controller and the variations in the states, we iteratively calculate different Kuntil the close loop eigen values are negative, meaning that the model is being controlled till the stability. In the Figure 4.2 is observed the step response of the state space model when this obtained Kmakes the model stable in close loop. FIGURE 4.2: SS model controlled with the LQR controller Now to begin to understand how the plant behaves first in open loop and be able to keep a good tracking of the application of the actual controller, we simulate in SIMULINK the response of the plant with a null control action, that is the same as establish the Qand Rvalues of the controller as the identity matrix. The obtained results can be observed in the Figure 4.3, and as it can be noted, the response of the plant in open loop is approximately as expected due to the fact that almost all the physical interactions match. For instance, in the case of no control action, for a variable steam demand that acts as measurable perturbation, the water level increase till 100% meanwhile the oxygen excess decrease until 0%. This actions are completely justifiable knowing that in the actual steam boiler tank it could not be oxygen when is fully filled with water. However, in the case of the steam pressure we observe a little perturbation. For a fix steam demand the pressure inside the boiler stabilize in a value that could correspond to the same pressure that can be encountered in the water inlet. This is due to the fact that the water fill completely the tank and pressures equilibrates. In the interval when the steam demand change the
40 Chapter 4. Results pressure drops, and this is also reasonable knowing that probably the output valve that normally lets out steam opens a bit more causing differences between the internal pressure and the output pressure that also equilibrate. This results allow us to validate the plant model given by the CEA. FIGURE 4.3: Open loop response of the plant Continuing with the application of the LQR controller, we fix the values of Rand Qto those values that makes the model stable. Based on the values of the closed loop poles for each obtained K(as is shown in Section 3.4) we pass to choose the controller Kthat place the poles in the minimum value on the left half plane of the root locus. In this case the one that it was selected is the K6that was obtained for R=diag(1e−3) and Q=diag(20). The small value of Ris related with less control action penalization, meanwhile the large value of Qdenotes more penalization to the states variation. To apply it to the plant model that have been already validated we pass to simulate different scenarios to see which is the plant behavior comparing the outputs (y) against the controlled inputs (u).
4.2. LQR implementation results 41 •Scenario 1: Fix steam demand, control action no penalized and states variation penalized The first scenario was to test the response of the plant being controlled for a stable controller and fixing the steam demand to avoid abrupt changes for the measurable perturbation in the complete time. The obtained results are shown in the Figure 4.4. As is observed the control of the plant is very accurate for each one of the three variables. The references signals was followed and a remarkable steady state is reached at least for two of the three outputs. This was one of the best obtained results and prove that the LQR controller is very effective for this plant when the steam demand is fixed. However the action of the controller is observed to be very aggressive, which lead us to the second scenario. •Scenario 2: Fix steam demand, control action penalized and states variation penalized Observing that the input signals to the plant that comes from the controller (control actions) are very aggressive and in most parts fully saturated between the 0 and 100% values, we try to make it smoother in order to see how the system will behave. There exist two possibilities, being the first one to penalize the control actions using a large value in R. However by making different tests the model does not stabilize when the control action is being penalized, probably because the important link between all the inputs/outputs that makes the controller to be as fast as possible, hence to increase the value of Ris discarded. The second possibility is to penalize directly inside the simulation the output of the controller using a rate limiter that restrict higher variations of the control actions between fixed values of rising slew rate and falling slew rate. This actually makes the output of the controller smother and also, when the value of the steam demand is fixed, makes the behavior of the outputs to stabilize even more than in the previous case. The obtained results, for a case when the rising and falling rates equal to 0.1, can be observed in the Figure 4.5. Its important to denote that even when the response of the system is very good when it reach the steady state (robust response), this penalization to the control action introduce a delay to the outputs making impossible to stabilize the values of the steam pressure and the oxygen excess according to the first reference values. The cost of this type of control its that the plant takes more time to stabilize having an overdamped response. Hence, the classical trade-off between robustness and performance is observed.
48 Chapter 4. Results With the obtained results it can be concluded that the controller that proves to be more adapted to the performing of the referenced data given by the CEA it would be the K4. However, even when the LQR controller is prove to be able to stabilize the plant, it is quite notable that the values of the minimization of the cost function is not the more desirable. (a) Inputs of K3compared to inputs of reference data (b) Outputs of K3compared to inputs of reference data FIGURE 4.8: Benchmark of K3without steam demand variation (J= 31.2518)
4.2. LQR implementation results 49 (a) Inputs of K4compared to inputs of reference data (b) Outputs of K4compared to inputs of reference data FIGURE 4.9: Benchmark of K4without steam demand variation (J= 33.3107)
50 Chapter 4. Results (a) Inputs of K6compared to inputs of reference data (b) Outputs of K6compared to inputs of reference data FIGURE 4.10: Benchmark of K6without steam demand variation (J= 29.0377)
4.2. LQR implementation results 51 (a) Inputs of K3compared to inputs of reference data (b) Outputs of K3compared to inputs of reference data FIGURE 4.11: Benchmark of K3with steam demand variation (J= 83.7495)
52 Chapter 4. Results (a) Inputs of K4compared to inputs of reference data (b) Outputs of K4compared to inputs of reference data FIGURE 4.12: Benchmark of K4with steam demand variation (J= 65.6681)
4.2. LQR implementation results 53 (a) Inputs of K6compared to inputs of reference data (b) Outputs of K6compared to inputs of reference data FIGURE 4.13: Benchmark of K6with steam demand variation (J= 75.5940)
55 Chapter 5 Budget and Impact Studies This chapter covers the budget analysis of the work and a discussion about the impact of the work from an economical and environmental point of view. 5.1 Budget Study In this section will be presented the associated costs of the work for each one of the different factors: hardware, software, human resources and general expenses. 5.1.1 Hardware Resosurces The hardware resources are a personal computer. It is considered a media of 12 hours of work per week, and 30 weeks for the project and the value unit will be Euro (EUR). The amortization will be based on 40 working hours per week and 52 weeks a year. TABLE 5.1: Cost associated to hardware resources Resource Unit Price Amortization Price/hour Hours of use Amortization PC 800 EUR 4 years 0.10 EUR 360 36.00 EUR Total 1000 EUR - - - 36.00 EUR 5.1.2 Software Resources The software resources are an Operative System and other developed software of statistical analysis and transcription. It is considered 30 weeks for the project and the value unit will be Euro (EUR). The cost will be based on 52 weeks a year. The browsers on the World Wide Web and the documents viewers are free. And the main software for simulations, programing and results manipulation is MATLAB 2014a full version. 5.1.3 Human Resources As a student doing thesis and needing no external human resources, the cost is 0 EUR. The minimum salary per hour according to the UPC for a student doing practices is 8 EUR per hour but these tasks can be divided in a private company between a Project Manager, a Tester and a Programmer during 360 hours. As an approximation, the HHRR cost for students is 3200 EUR and professional salary could be around 14000 EUR.
56 Chapter 5. Budget and Impact Studies TABLE 5.2: Cost associated to software resources Resource Unit Price Valid for Price/week Weeks of use Cost Ubuntu 0 EUR Inf 0.00 EUR 30 0.00 EUR Overleaf 0 EUR Inf 0.00 EUR 30 0.00 EUR MATLAB Student 69 EUR 4 years 0.33 EUR 30 10.00 EUR MATLAB Coder 7 EUR 4 years 0.03 EUR 30 1.00 EUR MATLAB Report 7 EUR 4 years 0.03 EUR 30 1.00 EUR Simulink Opt 7 EUR 4 years 0.03 EUR 30 1.00 EUR Simulink Report 7 EUR 4 years 0.03 EUR 30 1.00 EUR Ident Toolbox 7 EUR 4 years 0.03 EUR 30 1.00 EUR Browsers 0 EUR Inf 0 EUR 30 0 EUR Acrobat Reader 0 EUR Inf 0 EUR 30 0 EUR Total 230 EUR - - - 15.00 EUR 5.1.4 General Resources These expenses are generally the use of the working space, the energy consumed by the tools, etc. It is estimated that the cost for all the project is around 300 EUR. 5.1.5 Total Cost Finally a margin can be considered in case of contingences and it is around the 20%. TABLE 5.3: Total cost associated to the thesis Category Value Hardware resources 36.00 EUR Software resources 15.00 EUR Human Resources 2880.00 EUR General expenses 300.00 EUR Subtotal 3231.00 EUR Margin (20%) 646.20 EUR Total costs 3877.20 EUR 5.2 Impact Study 5.2.1 Economical Impact The improvement in the new techniques and implement them in the industry have been bringing a lot of economic benefits along the history and this is not an exception. If the changes presented in this thesis with the MIMO systems are implemented, the interaction between the variables can be more detailed and in this way the time and the quality of the tuning will improve a lot.
5.2. Impact Study 57 The Steam boiler is only an example of what can be done with a MIMO controller in MIMO systems, and this can be perfectly reproduced for other system inside big industrial plants. So, this can help in the fault detection, the time of the professionals involved in the project and the quality of the final product. 5.2.2 Social Impact The society can be beneficiated with the application of these technologies in long term. After all the changes and improvements were applied in the future, it is supposed that the renewable energy and the exploitation of it will give a better quality of life to the people around this technological wave. 5.2.3 Environmental Impact The implementation of more efficient controllers in each sector of the industry will optimize the processes and the evolution of the results will be more friendly with the environment, cheaper and easy to apply. The energy is one of the big concerns of the actual world community and it has a lot of improvement margin in the industrial sector, so if the optimization is applied in a lot of MIMO systems inside a plant the final result should be an exploitation of all the resources and consequently the improvement in the environmental field of a region. The application of all the technology available in the right moment should slow down the production of carbon dioxide and with this increase the quality of life of the future generations.