scieee AI-readable full text Open interactive document viewer

Health-aware predictive control schemes based on industrial processes

Karimi Pour, Fatemeh

Abstract

The research is motivated by real applications, such as pasteurization plant, water networks and autonomous system, which each of them require a specific control system to provide proper management able to take into account their particular features and operating limits in presence of uncertainties related to their operation and failures from component breakdowns. According to that most of the real systems have nonlinear behaviors, it can be approximated them by polytopic linear uncertain models such as Linear Parameter Varying (LPV) and Takagi-Sugeno (TS) models. Therefore, a new economic Model Predictive Control (MPC) approach based on LPV/TS models is proposed and the stability of the proposed approach is certified by using a region constraint on the terminal state. Besides, the MPC-LPV strategy is extended based on the system with varying delays affecting states and inputs. The control approach allows the controller to accommodate the scheduling parameters and delay change. By computing the prediction of the state variables and delay along a prediction time horizon, the system model can be modified according to the evaluation of the estimated state and delay at each time instant. To increase the system reliability, anticipate the appearance of faults and reduce the operational costs, actuator health monitoring should be considered. Regarding several types of system failures, different strategies are studied for obtaining system failures. First, the damage is assessed with the rainflow-counting algorithm that allows estimating the component’s fatigue and control objective is modified by adding an extra criterion that takes into account the accumulated damage. Besides, two different health-aware economic predictive control strategies that aim to minimize the damage of components are presented. Then, economic health-aware MPC controller is developed to compute the components and system reliability in the MPC model using an LPV modeling approach and maximizes the availability of the system by estimating system reliability. Additionally, another improvement considers chance-constraint programming to compute an optimal list replenishment policy based on a desired risk acceptability level, managing to dynamically designate safety stocks in flowbased networks to satisfy non-stationary flow demands. Finally, an innovative health-aware control approach for autonomous racing vehicles to simultaneously control it to the driving limits and to follow the desired path based on maximization of the battery RUL. The proposed approach is formulated as an optimal on-line robust LMI based MPC driven from Lyapunov stability and controller gain synthesis solved by LPV-LQR problem in LMI formulation with integral action for tracking the trajectory.

Full text

Universitat Polit` ecnica de Catalunya Programa de Doctorat: Autom` atica, Rob` otica i Visi´ o Tesis Doctoral Health-aware Predictive Control Schemes Based on Industrial Processes Fatemeh Karimi Pour Directors: Prof. Vicen¸c Puig Cayuela i Prof. Gabriela Cembrano Gennari June 2020 2 In memory of my father To my mother To my siblings To my love 4 Acknowledgement Reaching to the end of doctoral journey is an exciting moment. It has been a period of my life full of anecdotes and experiences. I have experienced failure, depression and hope to learn the pattern of success. While doing research, there are a number of people with whom I always received support and encouragement. I do want to express my gratitude to those who participated in this moment of my life. First, I would like to deeply thank my supervisors, Prof. Vicen¸c Puig Cayuela, Prof. Gabriela Cembrano and Prof. Carlos Ocampo-Martinez from Universitat Polit`ecnica de Catalunya (UPC) whom I received many supports during this research journey. They have contributed in my professional training with their critiques and persistent questioning, being always available for academic discussions. They have also given me the possibility to begin this challenging and wonderful journey from which I have learned plenty of things. Second, I want to thank Prof. Didier Theilliol from Universit´e de Lorraine to accept me as a visitor researcher in Laboratoire Le Centre de Recherche en Automatique de Nancy (CRAN) and for his time to discuss and make me analyse interesting issues regarding LMI and battery’s life and for giving me the opportunity to interact with excellent researchers. Third, I sincerely thank Ag`encia de Gesti´o de Ajust Universitaris i de Recerca AGAUR for having granted the FI scholarship for me to study the doctoral degree at Universitat Polit`ecnica de Catalunya (UPC). I would also like to thank the projects DEOCS (ref. DPI2016-76493-C3-3-R) and HARCRICS (ref. DPI2014-58104-R) for partially supporting me. Fourth, I want to thank all the people at Institut de Rob´otica i Inform`atica Industria (IRI), especially office No. 7, to provide me a friendly atmosphere, which allows me to focus on my research and enjoy my life in Barcelona. 5 Finally, but being the most important acknowledgment, I owe my gratitude to my dear mother Samireh and to my beloved father Ghaleb who died years ago... I miss you daddy. Essential aspects that are not learned in the academic environment, but that without them, the successful culmination of this journey would not have been possible. I do thank them for having taught me to have perseverance and to pursue goals in an honest manner. Likewise, I would like to thank my siblings, for being exemplar of discipline and who played such important roles along my life journey. I also express my thankfulness to Masoud Pourasghar-Lafmejani for his eternal support and understanding. He has always made me smile in stressful moments, and has provided a lot of happiness to my days with his love. Fatemeh Karimi Pour Barcelona, Spain, 2019 6 Abstract This thesis intends to provide theoretical and practical contributions on safety and control of industrial systems, especially in the mathematical form of uncertain systems. The research is motivated by real applications, such as pasteurization plant, water networks and autonomous systems. All of them require a specific control system to provide proper management able to take into account their particular features and operating limits in presence of uncertainties related to their operation and failures from component breakdowns. Most of the real systems present nonlinear behaviors. One promising approach to deal with non-linear systems is representing them by means of Linear Parameter Varying (LPV) and Takagi-Sugeno (TS) models. In this thesis, an Economic Model Predictive Control (MPC) approach based on LPV/TS models is proposed and the stability of the proposed approach is guaranteed by using a region constraint on the terminal state. Besides, the MPC-LPV strategy is extended to deal with systems with varying delays affecting states and inputs. The control approach allows the controller to accommodate the scheduling parameters and delay change. By computing the prediction of the state variables and delay along a prediction time horizon, the system model can be modified according to the evaluation of the estimated state and delay at each time instant. To increase the system reliability, anticipate the appearance of faults and reduce the operational costs, actuator health monitoring should be considered. Different strategies are studied for assessing the system health. First, the damage is assessed with the rainflow-counting algorithm that allows estimating the component fatigue and control objective is modified by adding an extra criterion that takes into account the accumulated damage. Besides, two different health-aware economic predictive control strategies that aim to minimize the damage of components are presented. 7 Then, an economic health-aware MPC approach is developed to determine the components and system reliability in the MPC model using an LPV modeling approach that maximizes the availability of the system by considering system reliability. Then, another approach is proposed using chance-constraint programming to compute an optimal list replenishment policy based on a desired risk acceptability level and aiming to dynamically determine safety stocks in flow-based networks to satisfy non-stationary flow demands. Finally, an innovative health-aware control approach for autonomous racing vehicles allowing to simultaneously control them at the driving limits and to follow the desired path based on maximization of the battery RUL. The control design is divided into two layers with different time scale, path planner and controller. The proposed approach is formulated as an optimal on-line robust LMI based MPC driven from Lyapunov stability. The controller gain are determined by solving an LPV-LQR problem using LMIs and including an integral action for improving trajectory tracking. Keywords: Model predictive control, economic optimization, linear parameter varying, Takagi-Sugeno, time-varying delay, health-aware control, reliability, remaining useful life, autonomous system, industrial process. 8 Resumen Esta tesis presenta diversas contribuciones te´oricas y pr´acticas sobre seguridad y control de sistemas industriales con din´amicas no lineales. La investigaci´on est´a motivada por diversas aplicaciones reales (una planta de pasteurizaci´on, redes de agua y sistema aut´onomos). Cada uno de las cuales requiere un sistema de control espec´ıfico para conseguir una gesti´on adecuada capaz de tener en cuenta sus caracter´ısticas particulares y l´ımites´o de operaci´on en presencia de incertidumbres relacionadas con su operaci´on y fallas de aver´ıas de componentes. De acuerdo con que la mayor´ıa de los sistemas reales tienen comportamientos no lineales, puede aproximarse a ellos mediante modelos inciertos lineales polit´opicos como los modelos de Lineal Variaci´on de Par´ametros (LPV) y Takagi-Sugeno (TS). Por lo tanto, se propone un nuevo enfoque de Control Predictivo del Modelo (MPC) econ´omico basado en modelos LPV/TS y la estabilidad del enfoque propuesto se certifica mediante el uso de una restricci´on de regi´on en el estado terminal. Adem´as, la estrategia MPCLPV se extiende en funci´on del sistema con diferentes demoras que afectan los estados y las entradas. El enfoque de control permite al controlador acomodar los par´ametros de programaci´on y retrasar el cambio. Al calcular la predicci´on de las variables de estado y el retraso a lo largo de un horizonte de tiempo de predicci´on, el modelo del sistema se puede modificar de acuerdo con la evaluaci´on del estado estimado y el retraso en cada instante de tiempo. Para aumentar la confiabilidad del sistema, anticipar la aparici´on de fallas y reducir los costos operativos, se debe considerar el monitoreo del estado del actuador. Con respecto a varios tipos de fallas del sistema, se estudian diferentes estrategias para obtener fallas del sistema. Primero, el da˜no se eval´ua con el algoritmo de conteo de flujo de lluvia que permite estimar la fatiga del componente y el objetivo de control se modifica agregando un criterio adicional que tiene en cuenta el da˜no acumulado. Adem´as, se presentan dos estrategias diferentes de control predictivo econ´omico que 9 16 Contents Acknowledgement ................................... 5 Abstract......................................... 7 Resumen ........................................ 9 Resum.......................................... 11 Notation......................................... 13 Acronyms........................................ 15 ListofTables...................................... 23 ListofFigures ..................................... 24 1 Introduction 1 1.1 Motivation .................................. 1 1.2 ThesisObjectives............................... 3 1.3 OutlineoftheThesis............................. 4 I Background and case studies 9 2 Research Background 11 2.1 Model Predictive Control . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.1.1 General Consideration of MPC and EMPC . . . . . . . . . . . . 11 17 2.1.2 MPC and EMPC Strategies Descriptions . . . . . . . . . . . . . 13 2.2 LPV/TSModeling .............................. 16 2.2.1 Linear Parameter Varying Modeling . . . . . . . . . . . . . . . . 16 2.2.2 Takagi-Sugeno Modeling . . . . . . . . . . . . . . . . . . . . . . . 19 2.3 Prognostics and Health Management . . . . . . . . . . . . . . . . . . . . 21 2.3.1 Reliability analysis methods . . . . . . . . . . . . . . . . . . . . . 23 2.3.2 Health-aware control . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.4 Summary ................................... 27 3 Case studies 29 3.1 Pasteurization Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.1.1 Introduction ............................. 29 3.1.2 Pasteurization model 1 . . . . . . . . . . . . . . . . . . . . . . . . 31 3.1.3 Pasteurization model 2 . . . . . . . . . . . . . . . . . . . . . . . . 35 3.2 Drinking Water Networks . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.2.1 Introduction ............................. 53 3.2.2 Control-oriented modeling of water transport network . . . . . . 54 3.2.3 System management criteria . . . . . . . . . . . . . . . . . . . . 57 3.3 Autonomous Racing Vehicle . . . . . . . . . . . . . . . . . . . . . . . . 59 3.3.1 Introduction ............................. 59 3.3.2 System description and modeling . . . . . . . . . . . . . . . . . . 59 3.4 Summary ................................... 61 18 II Economic MPC approaches based on LPV/TS 63 4 Economic Model Predictive Control for LPV/TS Systens 65 4.1 Introduction.................................. 65 4.2 Problemstatement.............................. 66 4.3 Proposed LPV/TS-based EMPC approach . . . . . . . . . . . . . . . . . 68 4.3.1 General approach of LPV-based EMPC . . . . . . . . . . . . . . 68 4.3.2 Adaptation to the TS-EMPC case . . . . . . . . . . . . . . . . . 71 4.4 Stability and convergence analysis . . . . . . . . . . . . . . . . . . . . . 73 4.4.1 Computation of the Terminal Components . . . . . . . . . . . . 77 4.5 Numericalresults............................... 81 4.5.1 Cost function parameters . . . . . . . . . . . . . . . . . . . . . . 81 4.5.2 Simulation results . . . . . . . . . . . . . . . . . . . . . . . . . . 83 4.6 Summary ................................... 89 5 MPC for LPV systems with parameter-varying delays 91 5.1 Introduction.................................. 91 5.2 Problemstatement.............................. 92 5.3 Proposedapproach ............................. 93 5.4 Numericalresults............................... 95 5.4.1 Simulation results and discussion . . . . . . . . . . . . . . . . . . 96 5.5 Summary ................................... 99 19 III Health-Aware Control 101 6 Multi-Layer Health-Aware Economic Predictive Control based on Components Fatigue 103 6.1 Introduction.................................. 103 6.2 Problemstatement.............................. 104 6.2.1 Operational Control . . . . . . . . . . . . . . . . . . . . . . . . . 105 6.3 Rainflow Counting Algorithm (RFC) . . . . . . . . . . . . . . . . . . . . 106 6.4 Health-awareMPC ............................. 111 6.4.1 Design of Single-layer Health-aware MPC Controllers . . . . . . . 111 6.4.2 Design of Multi-layer Health-aware MPC Controllers . . . . . . . 115 6.5 SimulationResults .............................. 117 6.5.1 Design of an MPC Controller with Health-aware Capabilities and Economic Objectives . . . . . . . . . . . . . . . . . . . . . . . . . 117 6.5.2 Results and Comparison Assessment . . . . . . . . . . . . . . . . 120 6.6 Summary ................................... 122 7 Health-aware MPC-LPV based on system Reliability 123 7.1 Introduction.................................. 123 7.2 EMPC Formulation of DWN . . . . . . . . . . . . . . . . . . . . . . . . 125 7.3 Chance-constrained Model Predictive Control . . . . . . . . . . . . . . . 126 7.4 Reliability Assessment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 7.4.1 Failure Rate and Reliability Concept . . . . . . . . . . . . . . . . 130 7.4.2 Overall Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . 131 7.4.3 System Reliability Modeling . . . . . . . . . . . . . . . . . . . . . 131 20 7.5 Economic health-aware MPC-LPV . . . . . . . . . . . . . . . . . . . . . 132 7.5.1 General approach of economic health-aware MPC-LPV . . . . . 132 7.5.2 Enhancing system reliability using chance constraints . . . . . . 135 7.6 Application to the water network case study . . . . . . . . . . . . . . . 138 7.6.1 Water transport Network (3-Tanks) . . . . . . . . . . . . . . . . 138 7.6.2 Chance-constraints health-aware EMPC-LPV for water transport network of Barcelona (17-Tanks) . . . . . . . . . . . . . . . . . . 141 7.7 Summary ................................... 150 8 Health-aware optimization-based control design for autonomous racing vehicle 153 8.1 Introduction.................................. 154 8.2 SystemModeling............................... 156 8.2.1 LPVmodeling ............................ 157 8.3 ProblemStatements ............................. 158 8.4 Proposedapproach.............................. 159 8.4.1 LPVMPCPlanner.......................... 159 8.4.2 LMI control design of Planner including health management . . 160 8.4.3 Tracking Controller . . . . . . . . . . . . . . . . . . . . . . . . . 165 8.5 Simulation results and discussion . . . . . . . . . . . . . . . . . . . . . . 166 8.6 Summary ................................... 174 IV Conclusions and perspectives 175 9 Concluding Remarks 177 21 9.1 Conclusions.................................. 177 9.2 FutureResearch ............................... 180 V Appendices 181 PasteurizationPlant ................................ 183 RacingVehicle ................................... 187 SomeLemma.................................... 189 Bibliografia 190 22 List of Tables 4.1 Comparison of control performance. . . . . . . . . . . . . . . . . . . . . 89 5.1 Physical properties and process data . . . . . . . . . . . . . . . . . . . . 98 5.2 Comparison of each strategies timing performance. . . . . . . . . . . . . 98 7.1 Success minimal paths of the water transport network of Barcelona (3- Tanks)..................................... 139 7.2 Simulation parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 7.3 Structural actuators (towards tanks). . . . . . . . . . . . . . . . . . . . 145 7.4 Structural actuators (towards demands). . . . . . . . . . . . . . . . . . . 145 7.5 Success minimal paths of the DWN case study. . . . . . . . . . . . . . . 145 7.6 Comparison of control performance. . . . . . . . . . . . . . . . . . . . . 150 7.7 Comparison of daily average costs of the MPC approaches. . . . . . . . 151 8.1 Model parameters value. . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 A.1 Time constants and gains of the hot-water tank . . . . . . . . . . . . . . 183 A.2 Time constants of the Gij transfer functions . . . . . . . . . . . . . . . . 183 A.3 Gains of the Gij transfer functions . . . . . . . . . . . . . . . . . . . . . 184 A.4 The adjusted parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 184 23 24 List of Figures 2.1 Control theory and health monitoring combination. . . . . . . . . . . . . 26 3.1 Pasteurization plant scheme. . . . . . . . . . . . . . . . . . . . . . . . . 32 3.2 Block diagram of the pasteurization model 1. . . . . . . . . . . . . . . . 33 3.3 The pasteurization Plant 2. . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.4 The pasteurization Plant scheme of model 2. . . . . . . . . . . . . . . . 37 3.5 Experimental relationship between the flow F1and N1. ......... 38 3.6 Experimental relationship between the flow F2and N2. ......... 39 3.7 Scheme of the hot-water tank . . . . . . . . . . . . . . . . . . . . . . . . 40 3.8 Verifying the simulation model of hot-water tank T2........... 41 3.9 Error achieved during the simulation. . . . . . . . . . . . . . . . . . . . 41 3.10 Scheme of the holding tube. . . . . . . . . . . . . . . . . . . . . . . . . 43 3.11 Verifying the simulation model of holding tube T1............ 44 3.12 Error achieved during the simulation. . . . . . . . . . . . . . . . . . . . 44 3.13 Verifying the simulation model of delay . . . . . . . . . . . . . . . . . . 45 3.14 Scheme of the heating phase . . . . . . . . . . . . . . . . . . . . . . . . 46 3.15 Verifying the simulation model of heating phase T4........... 47 3.16 Error achieved during the simulation. . . . . . . . . . . . . . . . . . . . 47 3.17 Scheme of the Regeneration phase . . . . . . . . . . . . . . . . . . . . . 48 25 4Chapter 1 : Introduction 1.3 Outline of the Thesis The structure of this thesis is reported in this section mentioning different parts and chapters. Thereby, a short abstract and related published papers are provided for each chapter. This dissertation is organized into four parts: Part I entitled Background and case studies, presents the previous results that establish a contribution to the state-of-the-art of control strategies based on LPV /TS models and description of application used in this thesis. It is made up of two chapters: •Chapter 2: Research Background This chapter background on classical and economic MPC controller with particular emphasis on LPV and TS systems is recalled. Known results about analysis, modeling, and control of LPV/TS models are presented and discussed. Moreover, the fundamental concepts and definitions of PHM and HAC by providing bibliographical references to the main contributions in this area are introduced. •Chapter 3: Case studies This chapter presents case studies considered in this dissertation. Firstly, a nonlinear model of the pasteurization plant its validation with real data and its embedding in the LPV/TS models. Then, a part of the drinking water network of the city of Barcelona (Spain) is described as another case study. Finally, the model of autonomous racing vehicle is presented in detail. Part II, entitled Economic MPC approaches based on LPV/TS, proposes an economic MPC based on LPV /TS models with and without delays and guaranteeing their stability. It is made up of three chapters: •Chapter 4: A new design of economic model predictive control based on LPV/T-S Models This chapter proposes an EMPC strategy based on an LPV/T-S models. Moreover, for solving the economic optimization problem by using a series of QP problems at each time instant, a new iterative approach is introduced that reduces the computational load compared to the solution of a non-linear optimization problem. The stability of the proposed approach is analyzed presenting the conditions to be 1.3 : Outline of the Thesis 5 satisfied. The proposed algorithm for EMPC strategy based on the quasi-LPV/T- S is illustrated through a pasteurization plant as a case study that is described by a quasi-LPV model/ T-S models. This chapter is based on the following papers: F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Comparative assessment of LPV-based predictive control strategies for a pasteurization plant. 4th International Conference on Control, Decision and Information Technologies (CoDIT), (pp. 0821-0826). IEEE, Spain, 2017. F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Economic predictive control of a pasteurization plant using a linear parameter varying model. In Computer Aided Chemical Engineering, (Vol. 40, pp. 1573-1578). Elsevier, 2017. F. Karimi Pour, C. Ocampo-Martinez and V. Puig . Output-feedback model predictive control of a pasteurization pilot plant based on an LPV model. In Journal of Physics: Conference Series (Vol. 783, No. 1, p. 012029), France, 2017. F. Karimi Pour, V. Puig and C. Ocampo-Martinez . A new Design of Economic model Predictive Control based on LPV systems. To be submitted Journal of Process control. F. Karimi Pour, V. Puig and C. Ocampo-Martinez . Takagi-Sugeno based Economic Predictive Control of a Pasteurization Plan. To be submitted International Journal of Computer Applications in Chemical Engineering. •Chapter 5: Economic model predictive control based on LPV models with parameter varying delays This chapter presents an MPC strategy based on LPV models with varying delays affecting states and inputs. By computing the prediction of the state variables and delay along a prediction time horizon, the system model can be modified according to the evaluation of the estimated state and delay at each time instant. Moreover, the solution of the optimization problem associated with the MPC design is achieved by solving a series of QP problem at each time instant.The pasteurization plant system is used as a case study to demonstrate the effectiveness of the proposed approach. This chapter is based on the following papers: F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Comparison of Setmembership and Interval Observer Approaches for State Estimation of Uncertain Systems. 18th European Control Conference (ECC), (pp. pp. 3644- 6Chapter 1 : Introduction 3649) IEEE, Denmark, 2019. Part III, entitled Health-Aware Control, present the contributions to the state of the art on Health Aware Control (HAC). It is made up of four chapters: •Chapter 6: Multi-layer health-aware economic predictive control based on Components Fatigue This chapter proposes a multi-layer health-aware economic predictive control strategy that aims to minimize the damage of components in a pasteurization plant. The damage is assessed with the rainflow-counting algorithm that allows estimating the components fatigue. In order to achieve the best minimal accumulated damage and operational costs, a multi-layer control scheme is proposed, where the solution of the dynamic optimization problem is obtained from the model in two different time scales. Finally, to achieve the advisable trade-off between minimal accumulated damage and operational costs, both control strategies are compared in simulation over for the pasteurization case study. This chapter is based on the following papers: F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Multi-layer healthaware economic predictive control of a pasteurization pilot plant. International Journal of Applied Mathematics and Computer Science,28(1), 97-110), 2018. F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Health-aware model predictive control of pasteurization plant. In Journal of Physics: Conference Series,(Vol. 783, No. 1, p. 012030), 2017. •Chapter 7: Economic health-aware LPV-MPC based on a system reliability and remaining useful life assessment This chapter presents a new strategy of health-aware MPC for industrial processes. The new approach is based on an economic health-aware MPC that involves an extra objective: to extend the components and system reliability. The components and system reliability are incorporated in the MPC model using an LPV modelling approach. To exhibit the advantage of taking into account system and component reliability, computed on-line in an LPV-based MPC algorithm. Moreover, this approach is improved to extend the components and system reliability 1.3 : Outline of the Thesis 7 based on a finite horizon stochastic optimization problem with joint probabilistic (chance) constraints. The improvement is that the considered chance-constraint programming allows computing an optimal tank storage value based on a desired risk acceptability level, managing to dynamically designate safety stocks in flowbased networks to satisfy non-stationary flow demands. A case study based on a part of the drinking water transport network of Barcelona is used for illustrating the performance of the proposed approach. This chapter is based on the following papers: F. Karimi Pour, V. Puig, and G. Cembrano. Economic Health-Aware LPVMPC Based on System Reliability Assessment for Water Transport Network. Energies, 12(15), 3015,2019. F. Karimi Pour, V. Puig, and G. Cembrano. Economic Health-aware MPCLPV based on DBN Reliability model for Water Transport Network. 6th International Conference on Control, Decision and Information Technologies (CoDIT),(pp. 1408-1413). IEEE, France,2019. F. Karimi Pour, V. Puig, and G. Cembrano. Health-aware LPV-MPC based on system reliability assessment for drinking water networks. IEEE Conference on Control Technology and Applications (CCTA),(pp. 187-192). IEEE, Denmark, 2018. F. Karimi Pour, V. Puig, and G. Cembrano. Health-aware LPV-MPC based on a reliability-based remaining useful life assessment. 10th IFAC Symposium on Fault Detection, Supervision and Safety for Technical Processes, (SAFEPROCESS),IFAC-Papers OnLine,51(24), 1285-1291, Poland, 2018. F. Karimi Pour, V. Puig, and G. Cembrano. Economic MPC-LPV Control for the Operational Management of Water Distribution Networks. IFAC Workshop on Control Methods for Water Resource Systems (CMWRS 2019), IFAC-PapersOnLine, 52(23), 88-93, Netherlands, 2019. F. Karimi Pour, V. Puig, and G. Cembrano. Economic Reliability-Aware MPC-LPV for Operational Management of Flow-based Water Networks including Chance-Constraints Programming. Submitted to Processes. F. Karimi Pour and V. Puig. Reliable Aware Model Predictive Control including Fault tolerant ability for Drinking Water Transport Networks. Submitted to 10st IFAC World Congress, 2020. 8Chapter 1 : Introduction •Chapter 8: Health-aware optimization-based control design for autonomous racing vehicle This chapter proposes an innovative health-aware control approach using the Linear Matrix Inequality (LMI), where the objective consists in preserving the state of charge (SoC) and maximizing the battery RUL based on optimizing the lap time to obtain the best trajectory under the constraints of the circuit. The proposed approach is solved by an optimal online robust LMI based Model Predictive Control (MPC) driven from Lyapunov stability. The proposed approach is evaluated in a simulation of autonomous vehicles. This chapter is based on the following papers: F. Karimi Pour, D. Theilliol, V. Puig, and G. Cembrano. Healthaware Optimization-based Control Design: Application to Autonomous Racing based State of Charge. 4th In 2019 4th Conference on Control and Fault Tolerant Systems (SysTol), (pp. 244-249), IEEE. Morocco, 2019. F. Karimi Pour, D. Theilliol, V. Puig, and G. Cembrano. Health-aware Control Design based on Remaining Useful Life Estimation for Autonomous Racing Vehicle. Submitted to ISA Transactions. Part IV, entitled Conclusions and perspectives, is the final part of this thesis that is concluded by: •Chapter 9: Conclusions and future research This chapter summarizes the contributions provided in this thesis and presents the main concluding ideas and open issues for future research. Part I Background and case studies 9 Chapter 2 Research Background This chapter presents a literature review related to the main topics treated in this doctoral dissertation. Firstly, a review and the formulations of model predictive control (MPC) and economic model predictive control (EMPC) are discussed. Secondly, a literature review for the Linear Parameter Varying (LPV) and Takagi-Sugeno (TS) models and control strategies, with a special emphasis on the MPC strategy, based both paradigms is presented. Then, preliminary concepts regarding Prognostics and Health Management (PHM), damage and reliability, which are used throughout the thesis, are presented. Finally, some relevant works related to improve system reliability and prevent the occurrence of system failures are mentioned. 2.1 Model Predictive Control 2.1.1 General Consideration of MPC and EMPC Model Predictive Control (MPC) is an effective control methodology widely used in both the academic and industrial fields and treated as a powerful approach with proven ability to deal with a lot of industrial problems. MPC refers to a class of control algorithms that use an explicit dynamic process model to predict the future response of the plant and optimize its performance [179]. At each control interval, the MPC algorithm computes an open-loop sequence of manipulated variable adjustments in order to optimize the future plant behavior. The MPC problem is formulated as a finite-horizon openloop optimal control problem, subject to system dynamics and constraints involving 11 12 Chapter 2 : Research Background physical bounds for system variables (inputs, states, outputs), exogenous disturbances and operational policies [130]. According to [138], there are several specific variants of predictive control that are listed as follows: dynamic matrix control (DMC), extended prediction self-adaptive control (EPSAC), generalized predictive control (GPC), model algorithmic control (MAC), predictive functional control (PFC), quadratic dynamic matrix control (QDMC), sequential open-loop optimization (SOLO) and model predictive heuristic control (MPHC). For more detailed information about those algorithms and their developments, see [32, 151, 178, 138]. MPC includes three essential structures: an explicit internal model, the receding horizon idea, and computation of the control signal by optimizing the predicted plant behavior. The core of MPC consists of the receding horizon idea; in fact, only the first control action of the optimal sequence is applied to the plant. At the next sampling instant, the optimization problem is solved again with new measurements, and the control input is updated. Due to its ability to handle constraints on inputs, states, uncertainty and output, the method has received much interest in both academic community and industry over the last three decades [144, 179]. •It handles multi-variable problem naturally, being quite well adapted to the majority of industrial system that present the multi-variable characteristic. •It can take into account the actuator limitations and cope with input, state and output constraints in a systematic way. •It allows the system operation closer to constraints, which frequently leads to more profitable operation. •Control update rates in predictive control are relatively low, so that there is plenty of time for a necessary on-line computation. •Because of the use of the receding horizon principle, it has satisfactory accommodation ability to several kinds of disturbances and noise. For more details, [32, 216] could be referred. Conventionally, standard tracking MPC is formulated as an optimization problem that penalizes the tracking error [179, 183]. Although this method ensures that the set-point is achieved in a reasonable amount of time, it does not guarantee that the transition between set-points is achieved in an economically efficient way. To overcome 2.1 : Model Predictive Control 13 this problem, MPC has been adapted to solve Optimal Control Problem (OCP) with general cost functions. In this way, Economic MPC (EMPC) contributes a systematic approach for optimizing an economic performance [55, 47]. EMPC has received much attention because of its capability of integrating real-time process economic optimization and feedback control into an optimal control framework. The optimization problem of EMPC includes three principal parts: a cost function with a stage cost that considers the economic goals to be optimized, system constraints containing state and input constraints as well as other constraints such as stability and performance constraints, and a nonlinear dynamic model to predict the future evolution of the system (and thus, being able to select the optimal input profile with respect to the economic cost over a finite-time prediction horizon) [54]. Unlike tracking MPC, that minimizes a positive definite error cost function, EMPC can consider economic functions as stage costs. 2.1.2 MPC and EMPC Strategies Descriptions Although there exist some applications of MPC with continuous-time models, [216], it is more general to design MPC controllers in discrete time [183, 140, 138], and by using a state space model of the system. Hence, consider a system whose discrete-time model is given by xk+1 =f(xk, uk, dk) (2.1) where the discrete-time variable is denoted by k∈I≥0. The vectors x∈X⊆Rnx, u∈U⊆Rnu, and d∈Rnd. Besides, the sets Xand Uare defined as feasible sets according to physical and/or operational constraints for the system states and control inputs: x∈XM ={xk∈Rnx|x≤xk≤x},∀k, (2.2a) u∈UM ={uk∈Rnu|u≤uk≤u},∀k, (2.2b) where vectors x∈Rnxand x∈Rnxestablish the minimum and maximum possible state values of the system, respectively. Analogously, u∈Rnuand u∈Rnudetermine the minimum and maximum possible value of manipulated variables, respectively. The function f:Rnx×Rnu−→ Rnxis an arbitrary system state function. Let ˜uk M =u0|k, u1|k, ..., uNp−1|k,(2.3) 20 Chapter 2 : Research Background TS models can be expressed as follows: xk+1 = r X i=1 wi(θk){Aixk+Biuk} r X i=1 wi(θk) , = r X i=1 hi(θk){Aixk+Biuk}, (2.14) yk= r X i=1 wi(θk){Cixk+Diuk} r X i=1 wi(θk) , = r X i=1 hi(θk){Cixk+Diuk}, (2.15) where θk= [θi(k), ..., θp(k)] is the vector comprising all the singular premise variables. In addition, wi(θk) and hi(θk) are written as follows: wi(θk) = p Y j=1 Mij(θj(k)),(2.16) hi(θk) = wi(θk) r X i=1 wi(θ(k)) ,(2.17) for all k. The term Mij(θj(k)) is a degree of membership of θj(k) in Mij and hi(θk) is such that      r X i=1 hi(θ(k)) = 1, hi(θk)≥0, i = 1,2, ..., r. (2.18a) One of the first references based on fuzzy MPC with a certain entity is found in [46] where the TS models are introduced in the MPC due to the capacity of these models to be obtained online. A multi-step prediction is implemented where a fuzzy controller obtained as a set. In the same line, there exist some works such as [139, 221]. Other 2.3 : Prognostics and Health Management 21 interesting applications of the MPC to TS fuzzy models are shown in [190], in this article the authors treat predictive control with all its basic ingredients. The optimization problem is obtained with the linearized model in a plausible prediction of the model. Moreover, in [128, 2, 204] the authors are used the same method. In [105] is used a linear MPC by freezing the memberships at a particular instant and assuming that they will be constant in the future; it might work in practice, but it lacks theoretical justification in fast transients. The work [135] presents an interesting approach in which a sequence of quadratic cost bounds and state-feedback gains solves (sub-optimally) the MPC problem. The great advantage is its computational tractability; however, it is well known that even for the linear case, under constraints, the optimal value function is not quadratic in the state, so the approach is conservative. An output-feedback MPC controller based on the TS model that includes bounded disturbance is designed in [48]. Killian et al. [114] investigated a fuzzy MPC controller based on TS fuzzy models. In this approach, a linear controller is intended for each rule of the general TS framework. At that point, the general MPC law is obtained by the fuzzy combination of those controllers. In [133], an MPC controller is designed based on the interval type-2 TS fuzzy models. The membership functions of the Parallel Distributed Compensation (PDC) controller can be separated from those of the TS fuzzy model that implements relaxation by using the PDC controller. One fuzzy MPC controller is presented for discrete-time TS framework based on piecewise Lyapunov functions (PLF) in [230]. Nevertheless, the PLF are not suitable for a TS model obtained by the sector nonlinearity approach [192]. Most of the previous studies have been only carried out in the standard tracking MPC framework that it is formulated as an optimization problem which penalizes the tracking error [179, 183]. The present thesis provides an EMPC approach based on TS model providing stability guarantees. 2.3 Prognostics and Health Management During the last decade, important improvements in safety, performance, availability, and effectiveness of industrial systems have been achieved through prognostics and health management (PHM) paradigm [168]. PHM is a systematic strategy that is utilized to 22 Chapter 2 : Research Background assess the reliability of a system in its actual life-cycle conditions, predict failure progression, and decrease damage via control actions. PHM involves the application of three concepts: diagnostics, prognostics and health management. Diagnostics identifies the state of the system during its functioning, providing an accurate fault detection and isolation capability with low false alarm rate [170]. Prognostic is now identified as a principal process in maintenance strategies based on the remaining useful life of the equipment, that it makes possible to avoid critical damages and reducing costs. The Remaining Useful Life (RUL) is the useful life time that remains on an asset at a particular time of operation [53, 169]. The principal aim of PHM is to increase safety and decrease maintenance cost. To obtain this objective, some tasks, such as failure prognosis, system monitoring, and RUL calculation, may be required. Therefore, some operations like logistics requirements, maintenance performance, components replacement or controller reconfiguration, among others, should be used in order to manage the health of the system [92]. The generic structure of PHM is based on three steps: observation, analysis, and decision-making [53, 170]. The observation step consists of data acquisition, processing, storage or collection. The analysis step prepares the acquired data and extracting the diagnostics, and prognosis information. In this step, the monitoring of the system is performed based on the data acquired in the previous step. Next, the appropriate decisions about logistics actions, maintenance, mission or control reconfiguration are taken based on the information presented by the previous data analysis. In the analysis step, various methods and algorithms are used in order to estimate the remaining useful life of the asset. This process provides the diagnosis and prognosis results. In the literature, there is a certain consensus about the distribution of these methodologies, for instance, in [4] they are classified into four categories, such as physically based, data-driven, hybrid and experimental based. The next step is the decision-making, that consists in applying the convenient action based on the analyzed data to extend the useful life of the system or components. Research on PHM methodologies, motivated by the benefits it brings, has advanced considerably in the last decade. For instance, a literature review on prognosis can be found in [170], and a particular review of data-driven methods for PHM can be observed in [210], a PHM study in the manufacturing process can be found in [214]. A review on machinery PHM implementing CBM which summarizes the recent research with emphasis on models, algorithms, and technologies for data processing and maintenance 2.3 : Prognostics and Health Management 23 decision-making is presented in [86]. In [69] a diagnosis and prognostic method for power electronic drives and electric machines (AC/DC, DC/DC and DC/AC systems) are presented. This approach incorporates a low-cost monitoring using the power electronics such as power MOSFETs and IGBTs. The proposed HAC strategy consists in reducing the performance of the control accomplishing the mission with reduced performance. 2.3.1 Reliability analysis methods The beginning of a reliable-control concept was introduced in [201], where the author proposed the use of redundant controllers to improve the reliability of the control system based on a decentralized control scheme. In this case, the reliability concept is related to the control structure that included two or more independent controllers. Such a structure guarantees stability under controller failures and perturbations in the plant interconnection structure [202]. Reliability analysis of dynamical systems helps to prevent failures which could be costly and sometimes disastrous. In complex systems or in safety-critical systems, it is imperative to identify the key components of the system and prevent the system failure. Regularly, this is done by implementing Conditioned-Based Maintenance (CBM) methods, where decisions are supported by the reliability analysis information [3, 86]. In the literature [20, 213, 19, 152], authors refer to the concepts of reliability, degradation, deterioration, etc. In general, reliability directs to the concept of dependability, successful operation or performance, and the absence of failures, whereas unreliability leads to the opposite [20]. Hence, it is convenient now to give a clear definition of these concepts. Definition 2.2. Reliability is characterized as the probability that components, units, types of equipment and systems will perform their predesignated function for a certain period of time under some operating conditions and specific environments [68]. More specifically, reliability is the probability of success in performing a task or reaching a desired property in the process, based on right operation of components. Mathematically, reliability R(t) is the probability that a system will be successful in the interval from time 0 to time t: R(t) = P(T > t), t ≥0 (2.19) 24 Chapter 2 : Research Background where Tis a nonnegative random variable which represents time-to-failure or failure time. Moreover, the definition of unreliability of actuators or a system is defined as Definition 2.3. The unreliability of a component (or system) F(t) is defined as the probability that the component or system experiences the first failure or has failed one or more times during the time interval 0 to time t [7]. Since the component is always in one of the two possible states (operational or failed), the following relation is satisfied F(t) + R(t)=1.(2.20) On the other hand, the degradation can be viewed as a damage that the system accumulates over time and eventually leads to a failure when the accumulated damage reaches a failure threshold. Definition 2.4. Degradation is the reduction in performance, reliability and lifespan of assets [71]. From these definitions, note that reliability is reduced when assets degrade or deteriorate. The failure threshold provides a link between degradation and assets failure. Therefore, it is possible to use the degradation signals to estimate the failure rate time distribution, the RUL, etc [200]. The degradation signals are obtained by a proper degradation model, which consists in developing a good probability model that is capable of describing the degradation process. Reliability is the ability of a system to operate successfully long enough to complete its assigned mission under stated conditions. In reliability theory, various types of probability distributions are used; for example, an exponential function [64, 223], a Weibull function [89, 17], a Gamma function [122, 132, 211] or log-normal [40, 121], among others. The exponential distribution is one of the most widely used in reliability engineering because it is relatively easy to handle in performing reliability analysis, and many engineering items exhibit constant hazard rate during their useful life [45]. In the case of the Weibull distribution which is used to represent several physical phenomena and the popularity of this distribution stands on the fact that, depending on the parameters, it may describe both increasing and decreasing failure rates [219]. The gamma distribution is especially useful for reliability modeling of those asset lifetimes which 2.3 : Prognostics and Health Management 25 degradation can be explained by the shock accumulation [209]. The log-normal distribution is a continuous probability distribution of a random variable whose logarithm is normally distributed. The log-normal distribution is applied to the description of the dispersion of the component failure rate data [146]. Reliability can also be expressed as a stochastic process [161]. For example, it is common to use Markov Chains (MC) to model the reliability of components [163]. However, in practice, the complexity of the system steer to a combinatorial explosion of states resulting in an MC with a quite large size. The reliability information achieved with the MC is generated using a Dynamic Bayesian Network (DBN) to the system which includes temporal information to calculate the impact of the component reliability on the system reliability [218]. 2.3.2 Health-aware control Health-aware Control (HAC) is a concept that connects the health monitoring and prognostics with the control theory [80, 58]. HAC technique assesses the health system while performing control over the system in a non-faulty situation. Furthermore, it avoids faulty scenarios by mitigating health degradation via appropriate control actions considering health indicators in the control objectives [92]. This is done by regularly evaluating the system health indicators and making corrections through the control actions based on those indicators. In this paradigm, the information provided by the prognosis module about the component system health should allow the modification of the controller so that the system health is considered in the control objectives [92, 59]. In this way, the control actions will be obtained to fulfill these objectives and, at the same time, to extend the life of the system components. The prognosis module will estimate on-line the component ageing for the specific operating conditions. In the non-faulty situation, the control efforts are distributed in the system based on the proposed health indicator [60]. Figure 2.1 represents the different techniques involved in HAC paradigm found in the literature. In recent years, there has been an increasing interest in combining control approaches with reliability methods to develop system monitoring. For instance, in [171] the authors propose to model the degradation process in terms of asset usage and then use 26 Chapter 2 : Research Background HAC −Reliability −RUL −Degradation −Ageing −MPC −LQR −LMI −H∞ Figure 2.1: Control theory and health monitoring combination. it to redistribute the control effort in a two-tank system by means of an MPC algorithm which solves a quadratic optimization problem and a linear optimization problem [171, 96]. In [77], the robust control methods are applied for maintaining the stability and performance of the system near to the desired performance in case of component faults is possible and in certain circumstances reduce the performance requirements to achieve the objective. In [112, 111], the authors propose the integration of reliability and reconfigurability analysis in an Fault-Tolerant Control (FTC) system for a tank system and aircraft model, respectively. These works have in common the use of components reliability as indexes to perform the control reconfiguration after the occurrence of failures. In [113], the authors propose an FTC system based on a feedback controller which guarantees the highest system reliability. This controller is synthesized using linear matrix inequalities (LMIs) and incorporating a reliability indicator. This reliability indicator is the well known Birnbaum measure which indicates those system components whose reliability are critical for the reliability of the system. Note that in the mentioned works, the asset reliabilities are modeled using the exponential distribution function. In [17, 16], a control problem is solved by combining reliability importance measures to redistribute the control effort among the available actuators of a hydraulic system. The reliability is modeled using a Weibull distribution function and it is computed by a Dynamic Bayesian Network (DBN). In [129], the authors provide a reliable robust tracking controller against actuator faults and control surface deterioration for aircraft 2.4 : Summary 27 bases on a mixed linear-quadratic (LQ)/H∞performance indexes and multi-objective optimization using LMIs. In [110], the authors provide a reconfigurable control allocation problem for an overactuated system in which the redistribution factor is defined in terms of the actuator reliabilities modeled by using the Weibull distribution function. Then, the control allocation problem consists in assigning more control effort to those actuators whose reliabilities are higher and to relieve those actuators whose reliabilities are lower. In [184], the authors present an overview of modeling and control strategies including fault-tolerant capabilities for wind turbines and wave energy devices. In these systems, the reliability improvement is achieved by a significant reduction of periods of null or very low power production. 2.4 Summary In this chapter, a literature review on a Linear Parameter Varrying (LPV) and Takagi- Sugeno (TS) modeling frameworks and Model Predictive control based on these approaches has been presented. Moreover, a literature review on prognosis and Health Management, particularly in the historical development of Health-Aware Control methodologies has been presented. Besides the attempts to address the problem of HAC, a list of applications and control techniques used were given. 28 Chapter 2 : Research Background Chapter 3 Case studies In this chapter,case studies of the thesis are presented. The system descriptions and mathematical preliminaries about the pasteurization process are presented. A nonlinear model of the pasteurization plant and validation it by real data and how to embedding in the LPV models in details are specified. Besides, a selected part of the drinking water network of the city of Barcelona (Spain) is described as another case study. Finally, the nonlinear model of autonomous racing vehicle is presented in details. 3.1 Pasteurization Process 3.1.1 Introduction One of the important food preservation techniques is pasteurization, which is widely used in food industries. The pasteurization process implies applying heat to some products such as milk, cream, beer and others at a specified temperature for a specified period of time [94]. The pasteurization process is divided into three phases that involve heating, regeneration and cooling treatments. The most significant treatment is heating, which contains heat exchanger devices to warm up the temperature of the product at the desired setpoint, and afterward keeping up this temperature during a stable time.[148]. Among many pasteurization approaches, the High-Temperature Short-Time (HTST) approach is generally accepted as the industry standard [5]. In this process, the time temperature compound can change depending on the product and some of its properties 29 36 Chapter 3 : Case studies Figure 3.3: The pasteurization Plant 2. exchanger and moves through two phases. The first one is the regeneration, where its temperature reduces by preheating the product from tank A and B. The second phase is cooling, where the goal is to cool the final product using water as a cooling fluid. On the other hand, when the product temperature is not high enough (T1is lower than the requested temperature), the valve SOL1 is closed and it sends the product to the feeding tank again. Nonlinear modeling and experimental validation The information of the dynamic response of each one of the components of the pasteurization plant is significant in order to control it. According to the number of variables of the system and by describing a physical process, it can be proposed a parametric model. For developing the pasteurization model, the plant is divided into five parts such as feeding pump, hot-water pump, hot-water tank, holding tube and heat exchanger. Physical principles based on fundamental laws such as energy balances and heat exchanger design are utilized to describe the main processes of the plant. The scheme of all the parts of the pasteurization system is presented in Figure 3.4. In this part, the model based on each element is presented. Moreover, the identification procedure to estimate the constant parameters of the pasteurization plant is presented. The idea of the method 3.1 : Pasteurization Process 37 Figure 3.4: The pasteurization Plant scheme of model 2. is to compare, the data obtained from the real set-up with the data obtained by simulating part of the continuous time non-linear model of the pasteurization process. This is formulated as an optimization problem that allows finding the parameter values that better approximate the real system in the least squares sense. Finally, in order to validate the values obtained by identification, the simulation of the non-linear model has been compared by the data obtained from the real system. Feeding pump: The feeding pump, N1, is the one that arouses the product to be managed from the feeding tank to the heat exchanger (Figure 3.4). The pump model connects the speed of the pump N1with the fluid flow through the tube F1. This model is based on experimental data extracted from a flow meter installed in the plant. Figure 3.5 displays the flow rate F1for different values of rotor speed N1, in percentage. The blue line represents the experimental flow increasing the pump speed in steps of 5% and the red line the experimental flow decreasing 5% the pump speed. Finally, the green line represents the fitting curve. The figure shows a linear correlation for speeds 38 Chapter 3 : Case studies 20 30 40 50 60 70 80 90 100 N1[%] 0 50 100 150 200 250 300 350 F1[ml/min] F1 increase F1 decrease Fitting curve Figure 3.5: Experimental relationship between the flow F1and N1. higher than 20 % described by the following equation: F1=KN1(N1−20),(3.3) where F1represent the mass flow circulating in the plant and KN1is static gain of the pump. Moreover, the flow (in ml/min) obtained in (3.3) is the same of the mass flow expressed in g/min taking into account the density (water). Hot-water pump: The hot-water pump pushes the hot-water from the hot-water tank to the heat exchanger (Figure 3.4). The same method as pump N1has been followed to determine the relationship between the speed of the pump N2and the flow F2. However, in this case, a flow meter is not established hence the flow has been experimentally determined at each speed. Figure 3.6 shows the flow rate F2for different values of rotor speed N2, in percentage. The blue line describes the experimental flow increasing the pump speed in steps of 5% and the red line the experimental flow decreasing a 5 % the pump speed. Finally, the green line represents the fitting curve. The equation in 3.1 : Pasteurization Process 39 20 30 40 50 60 70 80 90 100 N2 [%] 0 100 200 300 400 500 600 700 800 F2 [ml/min] F2 increase F2 decrease Fitting curve Figure 3.6: Experimental relationship between the flow F2and N2. the range 20 % to 100 % of speed is defined as: F2=KN2(N1−20),(3.4) As with the feeding pump, it can be considered that the change of the speed immediately exhibited the change of flow. The flow obtained in this equation (in ml/min) is the same of the mass flow expressed in g/min taking into account the density (water). Hot-water tank: In general, the hot water tank is a plastic cylindrical recipe, with an internal radius of 7.5 cm and 20 cm length and thickness are 0.5 cm. The hot-water tank keeps the water in high-temperature T2. This thermal energy is used in the heat exchanger to the pasteurization process. Hot-water leaves the tank at a temperature T2 and goes to the heat exchanger. When the exchange is fulfilled, water returns to the tank at a lower temperature T2r. The value of this temperature depends on the speed of the hot-water pump N2. Three different heat transfer processes are considered in Hot-water tank subsystem Figure 3.7. •The transferred heat (Q0) depends on the power resistance utilized P. The power 40 Chapter 3 : Case studies Figure 3.7: Scheme of the hot-water tank is varied from 0 W up to 1600 W. •The loss of heat due to the rotational flow in the heat exchanger (Q1), represented by the following equation: Q1=F2Cp(T2−T2r) (3.5) where F2is the mass flow of hot water that flows to the heat exchanger and returns and Cp(J/K) is the particular heat of the water. T2is the temperature inside the reactor and T2ris the returned water temperature from the heat exchanger. •The heat loss by the environment (Q2) defined by the convection equation [208] Q2=U A(T2−Ta) (3.6) where Ta(◦C ) is the room temperature, A(m2) is the area of the tank and U (Wm2/K) is the convective heat transfer. Then, by applying an energy balance, the model of hot-water tank can be defined as: CA dT2(t) dt =P−F2Cp(T2−T2r)−αT2(T2−Ta) + βT2(3.7) where, CA(J/K) is the calorific capacity of hot-water tank, αT2=UA and βT2is offset variable that are obtained by experimental data. The actuators are the power of the 3.1 : Pasteurization Process 41 0 50 100 150 200 250 300 Time [s] 30 40 50 60 70 80 Hot-water tank temperature T 2 [ºC] Real data Simulation Figure 3.8: Verifying the simulation model of hot-water tank T2 0 50 100 150 200 250 300 Time [s] 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 Error T2 Figure 3.9: Error achieved during the simulation. 42 Chapter 3 : Case studies electrical resistance P and speed of the hot-water pump N2. Moreover,(3.7) involve three temperatures T2, T2rare output and input of the hot-water tank and Tais the room temperature that are measurable variables. The hot-water model can be rewrite as: dT2(t) dt =α1,T2P−F2Cp(T2−T2r)−α2,T2T2+α3,T2,(3.8) where can be only illustrated by estimating unknown parameters of the hot-water tank temperature where the identification procedure is based on the knowledge of the nonlinear model of the hot-water tank temperature. It is assumed to have at access NT2 sets of data Pj(k), Nj 2(k) for the hot-water tank temperature where j= 1, ..., NT2 and k= 1, ..., Kjwhere Kjis the number of samples of the j−th set of data. The identification process determines the minimum of the following objective function over the unknown parameters α1,T2, α2,T2and α3,T2: JT2= NT2 X j=1 Kj X k=1 Tj 2(k)−ˆ Tj 2(k)2 ,(3.9) where ˆ Tj 2(k) is the simulation provided by (3.7). The comparison between the simulation data and the real data of the hot-water tank temperature is shown in Figure.3.8. The error between the real data and simulation data of hot-water tank is presented in Figure.3.9. The validation shows the model approximates the behavior of the hot-water tank in a quite perfect behavior. Holding Tube: The holding tube is an S-shaped thermal insulated tube. The influent comes from the first stage of the heating exchanger (heating phase, Figure 3.4) at a flow rate F1 and high-temperature T4. The input temperature has been considered the same that at the output of the heat In spite that the tube is isolated, the heat loss is expected. Small flow heat (Figure 3.10) is transferred to the environment producing a lessening of the effluent temperature. The energy balance can be described by: Q=F1Cp∆T+M1Cp dTin dt ,(3.10) where Tin is the variation of the internal mean temperature inside the tube (Tin = (T1(t) + T4(t))/2) and ∆T=T1(t)−T4(t−τ) is the temperature between the output (T1) at the instant tand the input (T4) at the instant t−τ, where τis denoted the 3.1 : Pasteurization Process 43 Figure 3.10: Scheme of the holding tube. delay. M1is the mass of liquid. To describe the heat lost in the system Q, the general design equation for head exchanged is considered as : Q=−AU∆Tml,(3.11) where Ais the internal area in contact with the isolated material and Uis the global head transfer coefficient. Beside, ∆Tml is the logarithmic mean temperature. As the mean temperature Tin is considered inside the whole tube, (3.11) can be rewrite as: Q=−AU∆T, =−AU(Tin −Ta), =−AUT1(t)−T4(t−τ) 2−Ta. (3.12) The model of holding tube taking into account the delay, (3.10) and (3.12) can be expressed as: F1Cp(T1(t)−T4(t−τ)) + M1Cp dTin dt =−AU(Tin −Ta),(3.13) where holding tube model can be rewrite as: dT1 dt =2 M1CP (−UAT1+T4(t−τ) 2−Ta)−F1Cp(T1−T4(t−τ)) −dT4(t−τ) dt .(3.14) The delay τin the holding tube can be obtained according the different behaviour between the T4and T1. It consists in changing the temperature T4and determine the effect over T1. To vary the temperature T4the speed of the feeding pump N1has been 44 Chapter 3 : Case studies 0 50 100 150 200 250 300 Time [s] 25 30 35 40 45 50 Holding tube temperature T 1 [ºC] Real data Simulation model Figure 3.11: Verifying the simulation model of holding tube T1 0 50 100 150 200 250 300 Time [s] 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Error T2 Figure 3.12: Error achieved during the simulation. 3.1 : Pasteurization Process 45 30 35 40 45 50 55 60 65 70 75 80 N1 [%] 10 20 30 40 50 60 Delay [s] Real data Simulation Figure 3.13: Verifying the simulation model of delay increased from 30 to 80. Finally, the relation between the delay and N1is obtained as: τ(t) = −α1,τ (N1(t))3+α2, τ(N1(t))2−α3,τ N1(t) + α4,τ ,(3.15) where α1,τ , α2,τ , α3,τ and α4,τ are unknown parameters and obtained by identification procedure. It is assumed to have at access Nτsets of data Nj 1(k) for the pump where j= 1, ..., Nτand k= 1, ..., Kjwhere Kjis the number of samples of the j−th set of data. The identification process determines the minimum of the following objective function over the unknown parameters: Jτ= Nτ X j=1 Kj X k=1 τj(k)−ˆτj(k)2 ,(3.16) where ˆτj(k) is the simulation provided by (3.15). The comparison between the simulation data and the real data of the temperature of holding tube and the delay are shown in Figures.3.11 and 3.13, respectively. Moreover, the error between the real data and simulation data of holding tube is shown in Figure.3.12. The validation show the model approximates the behaviors of the temperature of holding tube and the delay are in a quite perfect behavior. 52 Chapter 3 : Case studies 0 50 100 150 200 250 300 Time [s] 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Error T2r Figure 3.21: Error achieved during the simulation. between the real data and simulation data is presented in Figure.3.21. The validation show the model approximates the behaviors of the temperature T2ris in a quite perfect behavior. LPV modeling According to nonlinear model of each subsystem and the delay inside the system nonliner model of the pasteurization system is considered as: ˙x=f(x, x(t−τ), u, u(t−τ), ω(t)),(3.25) where, x= [T1T2T2rT4Tin]>∈R5,u= [N1N2P]>∈R3and ω= [Ta]∈R1are states, inputs and disturbance of the pasteurization system, respectively. In addition, state equation f:X×U−→ Xand X⊆R5is presented in Appendix A. (A.1). The physical properties, process data and parameters related of the pasteurization model in the identification process are described in Table A.4 in Appendix A. Then, by using the non-linear embedding approach [119], the state-space LPV model 3.2 : Drinking Water Networks 53 of the pasteurization plant according to non-liner models of each subsystem can be expressed as follows A=            a11 0 0 0 0 0a22 a23 0 0 0a32 a33 a34 a35 0a42 a43 a44 a45 0 0 a53 0a55            , B =            b11 0 0 0b22 b23 b31 b32 0 b41 b42 0 b51 0 0            , Bd=            bd,11 bd,21 bd,31 bd,41 0            , Aτ=            0aτ,12 aτ,13 aτ,14 aτ,15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0            , Bτ=            bτ,11 bτ,12 0 0 0 0 0 0 0 0 0 0 0 0 0            , C= 10000 01000 ,(3.26) where the value of matrix parameters are introduced in Appendix A. (A.2). 3.2 Drinking Water Networks 3.2.1 Introduction Some approaches presented in this thesis will be assessed with a case study of a largescale real system reported in [158], specifically a case study based on the Barcelona drinking water network (DWN). DWNs are large-scale multisource/multi-node systems which must be reliable and flexible to deal with continuously varying conditions, as for example, unexpected changes in the demands or faults in some of the components [177, 73]. DWN are multivariable dynamic constrained systems that are characterized by the interrelationship of several subsystems (actuators, tanks, intersection nodes, sources and consumer sectors). The general goal of this system is the temporal re-allocation of water sources from nature to human society, maintaining in mind the quantitative 54 Chapter 3 : Case studies and qualitative aspects of water accessibility and human needs. This network is currently managed by AGBAR1and it supplies potable water to the Metropolitan Area of Barcelona (Catalunya, Spain). Generally, the water network operates as an interconnected system driven by flow demands; different hydraulic elements are used to collect, store, distribute and supply drinking water to the associated population. In the DWN case study, the water is applied from both superficial (i.e., rivers) and underground sources (i.e., wells), contributing together with a flow of around 7 m3/s. According to the geographical terrain, the water supply area is subdivided into 113 pressure levels, called tiers, and the DWN is structured in two management layers: the transport network, which links the water treatment plants with the tanks established all over the city, and the distribution network, which is sectorised in sub-networks that link tanks to consumers. This thesis is focused on the transport network. Therefore, each sector of the distribution network will be recognized as a pooled demand to be served by the transport network. These demands are characterized by patterns of water usage and can be predicted by time-series models, neural networks, among other methods [205, 18]. Throughout this thesis, three different network examples extracted from the original graph of the DWN case study Barcelona DWN are used to present the numerical results. The models related to each example are denoted as aggregate model and sector model. The aggregate model is a simplification of the original graph, where groups of elements have been aggregated (not discarded) in single nodes to reduce the size of the original problem (see Figure 3.22). The sector model considers only a sector of the DWN (see Figure 3.23). 3.2.2 Control-oriented modeling of water transport network Several control-oriented modeling approaches dealing with DWNs have been proposed in the literature (see, e.g., [145], [97]). A water transport and distribution system regularly includes a number of flow- or pressure-control elements, established at the inlets to the network; usually water production/treatment plants. Likewise, it involves flow and pressure control elements within the network, such as valves and booster pumps. A suitable description of the dynamic model of a water network is realized by counting the set of flows through these control elements (pumps and valves) as the vector of 1Aguas de Barcelona, S.A. Company that manages the drinking water transport and distribution in Barcelona (Spain) 3.2 : Drinking Water Networks 55 Figure 3.22: Barcelona DWN aggregate diagram control variables u∈Rnu. The state of the network or the effect of control actions can be considered in passive elements, such as water storage tanks. Therefore, the set of nxtank volumes observed through a telemetry system is a vector of state variables x∈Rnx. Water demand at consumer nodes can be considered a stochastic disturbance in the model. Hence, d∈Rndis a vector of stochastic disturbances including the values of the demands at the ndconsumer nodes in the network. Because the model is used for predictive control, dwill usually be a vector of demand forecasts, achieved by suitable demand prediction models. The generalized dynamic model of the network in discretetime can be written as follows: x(k+ 1) = f(x(k), u(k), d(k)),(3.27) while the effect on the network is described at time k+ 1, produced by certain control action u, at time k, when the network is described by x(k). Function frepresents the mass and energy balance in the water network and kdenotes the instant values at 56 Chapter 3 : Case studies Figure 3.23: DWN sector diagram sampling time, d(k) is the demand prediction at time k. Considering the set of compositional elements and the modeling methodology of each component in the DWN (see [37] for more details), the network is dependent on several capacity and operational constraints, and on measured stochastic flows driven by customers water demand. The control-oriented model of DWN can be described by the following set of linear discrete-time difference-algebraic equations for all time instant k∈Z+: x(k+ 1) = Ax(k) + Bu(k) + Bddm(k),(3.28a) 0 = Euu(k) + Eddm(k),(3.28b) y(k) = Cx(k),(3.28c) where the difference equations in (3.28a) correspond to the dynamics of the storage tanks, and the algebraic equations in (3.28b) come from the static relations in the network (i.e., mass balance at junction nodes). Furthermore, x(k)∈Rnxis the volume of the storage tanks, u(k)∈Rnuis the manipulated inputs, y∈Rnydenotes the output of the system and dm(k)∈Rnmis the demanded flow that can be as measured (or estimated) disturbances. A∈Rnx×nx, B ∈Rnx×nu, Bd∈Rnx×nd, Eu∈Rnd×nu, Ed∈ 3.2 : Drinking Water Networks 57 Rnd×ndand C∈Rny×nxare time-invariant matrices of suitable dimensions dictated by the network topology. 3.2.3 System management criteria The general aim in the management of the DWN case study is to control the hydraulic performance and to minimize the economic investments of water provision as presented in [97]. Hence, the control task for the operation of this system can be formulated as a multi-objective optimization problem, which includes three operational goals in the management of DWN with different nature such as: •Economic: To provide the required amount of water minimizing water production and transport costs. •Safety: To guarantee the safety levels in each storage tanks that guarantee the water supply under unexpected changes in the demand up to some level. •Smoothness: To operate actuators in the DWN under smooth control actions to avoid overpressure in pipes and damage in actuators. Minimization of water production and transport cost The main control objective of the DWN is to minimize the water distribution costs that are related to water production costs and electrical costs associated to pumping. Transferring drinking water to suitable pressure levels through the network includes important electricity costs in booster pumping. Hence, the cost function associated to this objective can be formulated as `e(k),α(k)>Weu(k),(3.29) where α(k),(α1+α2(k)) ∈Rnu, which α1∈Rnuis a fixed water-production cost which is constant and a time-varying water pumping electrical cost is presented by α2∈Rnuthat changes at each time instant kaccording to the dynamic electricity tariff. Wedenotes the weighting term that indicates the prioritisation of the economic control objective. 58 Chapter 3 : Case studies Guarantee safety management of water storage With the aim of the preserving water supply in spite of the variation of water demands between two consecutive MPC iterations, a suitable safety volume for each storage tank must be maintained. A possible mathematical expression for this objective can be expressed as follows `s(k),(kx(k)−xskp, ifx(k)≤xs 0, otherwise (3.30) where xsdenotes the vector of the safety volumes for all the tanks. To avoid the piecewise linear form of this formulation, this cost function can be also formulated by means of a soft constraint by adding a slack variable ξthat can be expressed as `s(k),ξ>(k)Wsξ(k),(3.31) where Wsis diagonal positive definite matrix and the following soft constraint is included x(k)≥xs−ξ(k).(3.32) Smoothing of control actions The actuators in the DWN include valves and pumps. Thus, the flow-based control actions determined by the MPC controller should be smooth in order to extend the component lifespan. To ensure the smoothing effect, the slew rate of the control actions between two consecutive time instants is penalized according to `∆u(k),∆u(k)>W∆u∆u(k),(3.33) where the `∆u(k) corresponds to the penalization of control signal variations ∆u(k), u(k)−u(k−1), and W∆uis a diagonal positive definite matrix. The controller should also operate actuators and tanks inside their bounds and extend the reliability of the system as will be presented later. 3.3 : Autonomous Racing Vehicle 59 3.3 Autonomous Racing Vehicle 3.3.1 Introduction Some strategies proposed in this thesis will be evaluated with a case study of a mobile system such as an autonomous vehicle. A mobile object can be presented by using equations that describe the dynamic and kinematic behaviours. Unlike general mobile robots, urban autonomous vehicles are systems with a larger mass and operating at a higher velocity. Therefore, the use of dynamic models becomes necessary. In dynamic models, the sum of forces existing over the vehicle is taken into account for computing the vehicle acceleration. The motion is generated by applying forces over the driven wheels and mass, inertial and tire parameters are considered. On the other hand, the kinematic model is based on the velocity vector movement to compute longitudinal and lateral velocities referenced to a global inertial frame. 3.3.2 System description and modeling In racing, the race car driver’s goal is to win a race, which means finishing the race with the quickest time. A race car driver has to drive the car as fast as possible without losing control of the vehicle at the limits. Moreover, it has to keep and control consistently the energy of the vehicle for keeping in the race. Therefore, a racing controller has to robustly track the desired path and stabilize the vehicle. For obtaining an optimal response in terms of tractability, it is required the vehicle to work in the dynamic limits established. The dynamic model of the vehicle used in this paper is a standard bicycle model version obtained from [166], such as: ˙vx=α+−Fyf sin(δ)−µm g m+ωvy, ˙vy=Fyf cos(δ) + Fyr m−ωvx, ˙ω=Fyf lfcos(δ)−Fyrlr I, (3.34) where vx, vyand ωare the body frame velocities linear in x, linear in yin (m/s) and angular velocity in (rad/s), respectively. δis the steering angle in (rad) and αis longitudinal acceleration in (m/s2), while both of them are control inputs of the system (see Fig.3.24). 60 Chapter 3 : Case studies eθ δ ey vx vy lf lr ω Figure 3.24: Racing vehicle variables along the road Moreover, Fyf and Fyr are the lateral forces produced in front and rear tires in (N), respectively, given by Fyf =Cfδ−vy vx−lfω vx,(3.35) Fyr =Cr−vy vx−lrω vx.(3.36) where variables Cfand Crare the tire stiffness coefficient for the front and rear wheels. mand Irepresent the vehicle mass and inertia. lfand lrare the distances from the center of gravity to the front and rear wheel axes, respectively. µand gare the friction coefficient and the gravity value, respectively. On the other hand, the kinematic model is based on the velocity vector movement in order to obtain longitudinal and lateral velocities referenced to a global inertial frame [6]. Kinematic based model has generally used because its low parameter dependency. The kinematic model used in this paper is based on the error model which is obtained 3.4 : Summary 61 as the difference between the real position orientation states and their references. These kinematic equations are determined by the following curvature-based equations: ˙ey= sin(eθ)vx+ cos(eθ)vy, ˙eθ=ω−cos(eθ)vx−sin(eθ)vy 1−eyκκ, ˙s=cos(eθ)vx−sin(eθ)vy 1−eyκ, (3.37) where ˙eyand ˙eθare the heading lateral distance and angle error between the vehicle and the path and sindicates the distance traveled along the centerline of the road. κis the circuit curvature and presents the lateral behaviour reference. The vehicle model is concisely expressed in state space representation as ˙x(t) = f(x(t), u(t)),(3.38) where at time tthe vectors xand urepresent the state and input, x= [vxvyω eyeθ]>, u = [δ α]>.(3.39) 3.4 Summary This chapter presents the system descriptions and mathematical model of some case studies used in this thesis. A nonlinear model of the pasteurization plant and validation it by real data and how to embedding in the LPV models in details are specified. A case study network bases on the Barcelona DWN is described as another case study. Moreover, the nonlinear model of autonomous racing vehicle is presented in details for evaluated other approaches. 68 Chapter 4 : Economic Model Predictive Control for LPV/TS Systens scheme [143]. In EMPC, `(x, u) is arranged pursuant to some economic criteria such as production cost, energy saving and efficiency, etc. These economic criteria have to be minimized or maximized in terms of profits and environmental issues for systems. Therefore, in EMPC `(x, u) is not necessarily positive definite with regards to (xs, us). Accordingly, stability properties and convergence in the optimal economic operation are not guaranteed by using the standard MPC stability designs since these designs belong on the positive definiteness of `(x, u). 4.3 Proposed LPV/TS-based EMPC approach 4.3.1 General approach of LPV-based EMPC In order to derive an EMPC formulation based on LPV models, some basic assumptions are required, as follows Assumption 4.1. It assumed that θk=ψ(xk, uk)∈Rnθand θk∈Θ∀k≥0, where Θ is a compact set. Assumption 4.2. It assumed that (A(θ), B(θ)) is stabilizable for all θ∈Θ. The focus in the predictive control framework is on minimizing the economic stage cost Lk= Np−1 X i=0 `k(xi|k, ui|k),(4.5) and at each time instant k, the initial value of state and input are known and the optimization problem min ˜uk,˜xk Lk(˜xk,˜uk) (4.6a) 4.3 : Proposed LPV/TS-based EMPC approach 69 subject to: xi+1|k=A(θi|k)xi|k+B(θi|k)ui|k,∀i∈[0, Np−1],(4.6b) θi+1|k=ψ(xi|k, ui|k),∀i∈[0, Np−1],(4.6c) ui|k,∈U∀i∈[0, Np−1],(4.6d) xi|k,∈X∀i∈[0, Np],(4.6e) θ0|k=θk,(4.6f) x0|k=xk,(4.6g) xNp=xs,(4.6h) is solved online for ˜uk=       u0|k ui+1|k . . . uNp−1|k       ∈U.(4.6i) The control law is obtained by applying a receding horizon strategy, i.e., at time instant k, only the first control action in the sequence (4.6i) is applied. Then, at time k+ 1, a new optimization problem Lk+1 is solved considering as the initial states xk+1 and producing the control sequence ˜uk+1 such that again only the first control in the new sequence is applied. It is not possible to solve the optimization problem (4.6) using LPV modelling, because the future state sequence cannot be predicted. Indeed the predicted states depend not only on the future control inputs uk(the decision variables), but also on the future scheduling parameters, which for a pure LPV model are not assumed to be known a priori but only to be measurable online. On the contrary, for a quasi-LPV model, where the scheduling parameters θkare determined by xkand/or uk, the state trajectory can be predicted. Lemma 4.1 is introduced according to Lemma 1 [44] which will be used in the following parts of this chapter. Lemma 4.1. [44]. In the quasi-LPV model (4.6b), the predicted varying parameter vector θi+1|kin (4.6c) can be determined for each iin the prediction horizon Npknowing some estimation of xi|kand ui|kas follows: ˆ θi+1|k=ψ(ˆxi|k,ˆui|k). 70 Chapter 4 : Economic Model Predictive Control for LPV/TS Systens Thus, instead of solving the optimization problem (4.6) by using (4.6c) that will provide the exact solution, the proposed solution is to use an approximation based on using the ˆ θestimation instead of θin (4.6c). This means that the varying parameters along the prediction horizon are estimated and considered in the EMPC controller as known. Therefore, the vector Θk=       ˆ θ0|k ˆ θi+1|k . . . ˆ θNp−1|k       ∈RNp,nθ,(4.7) contains the sequence of estimated parameters in the prediction horizon Np. Then, by using (4.7), the predicted states can be conveniently written in vector form as xk=A(Θk)xk+B(Θk)˜uk,(4.8) where A∈Rnx×nxand B∈Rnx×nuare given by (4.9) and (4.10). A(Θk) =          I A(ˆ θk) A(ˆ θk+1)A(ˆ θk) . . . A(ˆ θk+Np−1)A(ˆ θk+Np−2). . . A(ˆ θk)          (4.9) and B(Θk) =          0 0 0 . . . 0 B(ˆ θk) 0 0 . . . 0 A(ˆ θk+1)B(ˆ θk)B(ˆ θk+1) 0 . . . 0 . . .. . ........ . . A(ˆ θk+Np−1). . . A(ˆ θk+1)B(ˆ θk)A(ˆ θk+Np−1). . . A(ˆ θk+2)B(ˆ θk+1). . . B(ˆ θk+Np−1) 0          (4.10) Hence, the optimization problem (4.6) now can be rewritten as min ˜uk,˜xk Lk(˜uk,A(Θk)xk+B(Θk)˜uk) (4.11a) 4.3 : Proposed LPV/TS-based EMPC approach 71 subject to: ui|k∈U,∀i∈[0, Np−1],(4.11b) xi|k∈X,∀i∈[0, Np],(4.11c) θ0|k=θk,(4.11d) x0|k=xk,(4.11e) xNp=xs.(4.11f) In this way, the online optimization problem can be solved as a QP problem, which is significantly easier than solving a general nonlinear optimization problem. The parameter varying estimation will be done by means of the following approach at each discrete time k: •In the first iteration (k= 0), the optimization problem (4.6) is solved as a linear problem since the quasi-LPV model (4.6b) is replaced by the LTI model that is obtained considering θ0|i≃θ1|i≃θ2|i≃... ≃θNp−1|ialong the prediction horizon Npand where θ0|0= ψ(x0|0, u0|0). •In the next iterations, the sequence of the estimated varying parameters Θkin (4.7) according to Lemma 4.1 is obtained using as estimation for the states ˆx∗ k−1and controls ˆu∗ k−1that are the state and input sequences obtained from the optimal solution (4.11) in the previous iteration k−1. 4.3.2 Adaptation to the TS-EMPC case As mentioned in section 2.2.2, nonlinear systems can be approximated through the TS fuzzy models. Modeling the process behavior by means of the TS model is one way to deal with nonlinear systems.Hence, the general formulation of EMPC deals with discrete-time TS fuzzy models of the following form: x(k+ 1) = r X i=1 hi(θ(k))(Aix(k) + Biu(k)).(4.12) where the sets Xand Uare defined as (2.2). Besides, the system is subject to the control constraint and state (4.2). The task of control is to satisfy constraints whilst the economic stage cost function is represented as `:X×U−→ R. Considering the economic stage cost (4.5), the economic controller aims to drive the system to the optimal accessible steady state, that is defined by using the implicit form of the optimization as: The optimal accessible steady state and input, (xs, us) for TS model, satisfy (xs, us) = arg min (x,u)`(x, u) (4.13a) subject to: x= r X i=1 hi(θ)(Aix+Biu),(4.13b) x∈X,(4.13c) u∈U.(4.13d) Analogously to the LPV-based EMPC controller presented in the previous section, the EMPC controller based on the TS fuzzy model (4.12) is obtained by solving a finitetime horizon optimization problem (FHOP). By considering the same economic objective function (4.5), the system initial conditions and assuming premise variables are dependent on the function of states and inputs, the optimization problem associated to the TS-MPC can be formulated as min ˜x,˜u L(˜x,˜u) (4.14a) subject to: x(l+ 1) = r X i=1 hi(θ(l))(Aix(l|k) + Biu(l|k)),∀l∈[0, Np−1],(4.14b) θ(l|k) = f(x(l|k), u(l|k)),∀l∈[0, Np−1],(4.14c) u(l|k)∈U,∀l∈[0, Np−1],(4.14d) x(l|k)∈X,∀l∈[0, Np],(4.14e) θ(0|k) = θ(0),(4.14f) x(0|k) = x(0),(4.14g) x(Np) = xs,(4.14h) is solved online for ˜u(k) = u(l|k), u(l+ 1|k), ..., u(Np−1|k)∈U.(4.14i) Similarly to the LPV case, when using the TS model (4.12) in the optimization problem (4.14), the future premise variables sequence (4.14c) is not known. In fact, the structure (4.14b) is linear but because of (4.14c), the problem becomes nonlinear. Actually, this issue makes the problem (4.14) not easy to solve. Then, by using the same 72 approach proposed for the LPV case, (4.14) is solved as a QP problem which consists in transforming the exact NEMPC into an approximate linear EMPC. Hence, by using a vector that contains the sequence of the estimated premise variables Θkin a similar way that (4.7) in the LPV case, the predicted states can be conveniently written in vector form as (4.8) by defining A(θk) = r X i=1 hi(θ(k))Ai,(4.15) B(θk) = r X i=1 hi(θ(k))Bi,(4.16) The predicted states can be formulated in vector form as (4.8), where A∈ RNp, nx×Np, nxand B∈RNp, nx×Np, nuare given by (4.9) and (4.10). Then, the optimization problem (4.14) can be represented as min ˜u,˜x L(A(Θ(k))x(k) + B(Θ(k))˜u(k),˜u) (4.17a) subject to: u(l|k)∈U,∀l∈[0, Np−1],(4.17b) x(l|k)∈X,∀l∈[0, Np],(4.17c) θ(0|k) = θ(0),(4.17d) x(0|k) = x(0),(4.17e) x(Np) = xs.(4.17f) As in the LPV case, the sequence of the estimated premise variables Θkin (4.8) according to Lemma 4.1 is obtained using as estimation for the states ˆx∗ k−1and controls ˆu∗ k−1that are the state and input sequences obtained from the optimal solution (4.17) in the previous iteration k−1. 4.4 Stability and convergence analysis For the first time in control research, asymptotic stability of the EMPC was established in [182] with an assumption of linear plant dynamic and stringently convex cost functional. In Section 4.3, the propose EMPC approach is provided by considering terminal equality constraints x(Np) = xs. However, this constraint can not guarantee the stability of EMPC based on the LPV model because the terminal constraint is just around a point. In this section, it will be shown that by considering the terminal state belongs to a compact set the stability of the approach can be improved and ensured. In this chapter, by following [8, 9], the main proof of stability strongly relies on imposing a region constraint on the terminal state instead of a point constraint and 73 adding a penalty on the terminal state to the regulator the cost. Moreover, the stability analysis is adjusted for terminal constraint EMPC taking into account that the strict dissipativity is sufficient for guaranteeing asymptotic stability of the closed-loop system. Hence, the economic objective function defined as L(˜x,˜u) := Np−1 X i=0 `(xi, ui) + Vf(xNp),(4.18) where Vf:Xf−→ Ris the penalty on the terminal state, and Xf⊆Xis a compressed terminal region including the steady-state operating point in its interior. For LPV models, one can ofter determine Xfwhen a control Lyapunov function is available. In this formulation, the system using EMPC is stabilized by adding the requirement that the terminal state extends in this terminal region, rather than at the optimal steady state. According to [10] and for simplifying the method of improving the stability of EMPC, the following definition and some assumptions are presented. Definition 4.2. A control system (2.9) is dissipative regarding by stock rate s:X× U−→ Rwhereas there exists a function γ:X−→ R γ(A(θk)xk+B(θk)uk)−γ(x)≤s(x, u),(4.19) for all (x, u)∈Z⊆X×U. Additionally, if ρ:X−→ R≥0is definite positive1then γ(A(θk)xk+B(θk)uk)−γ(x)≤ −ρ(x−xs) + s(x, u),(4.20) finally, it can be said the system is stringently dissipative.  Assumption 4.3. (Strict dissipativity) System model (2.9) is strictly dissipative with respect to the supply rate that defined as s(x, u) := `(x, u)−`(xs, us). Assumption 4.4. The stage cost and model are continuous on Z. The terminal cost function Vf(.)is continuous on Xf. Assumption 4.5. The storage function γ(.)is continuous on Z. Assumption 4.6. (Stability assumption) A compact terminal region Xf⊆X, containing the point xsin its interior and control law Kf(θk) : Xf−→ Uare exist, in such a way that the following holds Vf(A(θk) + B(θk)Kf(θk))xk≤Vf(x)−`(x, Kf(θk)xk) + `(xs, us)(4.21) Remark 4.1.Assumption 4.6 implies the set for Xf(x∗ s) for all k∈Z+to be invariant under the control law uk=Kf(θk)xk.♦ 1A function is positive definite according to some points xs∈Xif it is continues, ρ(xs) = 0 and ρ(x)≥0 for all x6=xs. 74 Remark 4.2.Considering Assumption 4.6 is the only condition on Vf, it can be assumed without loss of generality that Vf(xs) = 0 for all k∈I+. It should be remarked that unlike the standard MPC problem, Vf(x) is not significantly positive definite with respect to xs.♦ In order to analyse the asymptotic stability of the closed-loop model, the following rotated regulator cost functions with terminal costs are considered: L(x, u) := `(x, u)−`(xs, us) + γ(x)−γ(A(θk)xk+B(θk)uk),(4.22a) ¯ Vf(x) := Vf(x)−Vf(xs) + γ(x)−γ(xs),(4.22b) with the costs ¯ Vfand L, the following auxiliary optimal control problem is introduced: min ˜u,x ¯ L(x, ˜u) := Np−1 X i=0 L(xi, ui) + ¯ Vf(xNp),(4.23) subject to (4.11b)-(4.11f). The constraints in problem ¯ L(x, ˜u) are the same as in problem L(x, ˜u). Therefore, solutions exist for both problems for x∈XNp.Consequently, both problems have an identical feasible set for all k∈I+. Remark 4.3.According to Assumption 4.6, it can be assumed that γ(xs) = 0 for all k∈I+without loss of generality. ♦ Lemma 4.2. Considering Assumptions 4.4, 4.5 and 4.6 hold. The solution of the auxiliary problem ¯ L(x, ˜u)is identical to the solution of the original problem L(x, ˜u). Proof.By considering that both problems only differ in the cost function, expanding the rotated regulator cost function yields ¯ L(x, ˜u) = Np−1 X i=0 L(xi, ui) + ¯ Vf(xNp) = Np−1 X i=0 `(xi, ui)−`(xs, us) +γ(x)−γ(A(θi)xi+B(θi)ui) + Vf(xNp)−Vf(xs) + γ(xNp)−γ(xs) =L(x, ˜u)−Vf(xs) + γ(xNp)) −γ(xs) + γ(x)−γ(xNp)− Np−1 X i=0 `(xs, us). Subsequently, according to Remark 4.3, it is obtained that ¯ L(x, ˜u) = L(x, ˜u) + γ(x)− Np−1 X i=0 `(xs, us).(4.25) 75 Since Np−1 X i=0 `(xs, us) and γ(x) are independent of the decision variable ˜u for a provided initial state x∈X, the two cost functions ¯ L(x, ˜u) and L(x, ˜u) are different only by a constant. Therefore, the two optimization problems have the same identical solutions at all time steps k∈I+. Now, it can be seen that the modified terminal cost obtains the basic stability condition of the original terminal cost, due to the equivalence of the problems is improved. Lemma 4.3. The modified costs Land ¯ Vfsatisfy the following property if and only if Vf(.), `(.)satisfies Assumption 4.6. ¯ Vf(A(θk) + B(θk)Kf(θk))xk≤¯ Vf(x)−L(x, Kf(θk)x) (4.26) Proof.The proof follows from the results presented in [8]. By considering Remark 4.3, Remark 4.2 and proper manipulation of (4.22b) by adding the term γ(x) + γ((A(θk) + B(θk)Kf(θk))xk) to both sides.  Lemma 4.4. [108] Let ρ(x) : C −→ R≥0be a positive definite function that defined on the compact set C. Then, there exists a class Kfunction ζ(.)such that ρ(x)≥ζ(|x|),∀x∈ C.(4.27) Lemma 4.5. Let Assumptions 4.3 to 4.6 hold. The terminal cost ¯ Vfand rotated stage cost Lare satisfied for following inequalities: L(x, u)≥ζ(kx−xsk)≥0,∀(x, u)∈Z(4.28) ζ(kx−xsk)≤¯ Vf≤ˆ ζ(kx−xsk),∀(x)∈Xf(4.29) where functions ζ(.)and ˆ ζ(.)are class K. Proof.From (4.20), (4.22a) and Assumption 4.3, it holds that L(x, u)≥ρ(kx−xsk) for all (x, u)∈Z, which according to Lemma 4.4, leads to (4.28). By following [8], it can be shown from (4.26) and (4.28) that ¯ Vf(x)≥ ∞ X i=0 L(xi, Kf(θk)xi). Moreover, from Assumption 4.4, ¯ Vf(x(k)) is bounded and by ¯ Vf(xs) = 0, thus, it can be upperbounded by a class Kfunction, i.e., ¯ Vf(x)≤ˆ ζ(kx−xsk) for all x∈Xf. Theorem 4.1. Let Assumptions 4.3 to 4.6 hold. Then, the steady state solution is asymptotically for all feasible initial states. The candidate Lyapunov function is ¯ L0(xk), and satisfies ¯ L0(xk)≤ζ(kx−x∗ sk),(4.30) ¯ L0(xk+1)−¯ L0(xk)≤ −ζ(kx−x∗ sk),(4.31) for all xk∈X(Np), where ζ(.)being a class Kfunctions. 76 Proof.The lower and upper bounds that imposed by inequality (4.30) follow from Lemma 4.5. Condition (4.31) can be proved by following analysis that considers the optimal modified cost functions ¯ L(x, ˜u) = Np−1 X i=0 L(x(i), u(i)) + ¯ Vf(xNp)). x ∈X(Np) (4.32) There is feasible solution for the current state which gives optimal input and state sequences denoted respectively as u∗(k) = {u∗(k+i|k)}i∈I[0,Np−1] and x∗(k) = {x∗(k+ i|k)}i∈I[0,Np]. A candidate input sequence and a associated state sequence for the next time step are chosen as following: ¯ u(k+ 1) = {u∗(k+ 1|k), ..., u∗(k+Np|k), Kf(x∗(k+Np|k))}, ¯ x(k+ 1) = {x∗(k+ 1|k), ..., x∗(k+Np|k), x∗(k+Np+ 1|k)}, where x∗(k+Np+1|k) = ((A(θk)+B(θk)Kf(θk)))x∗(k+Np|k). Because of the terminal constraint and Assumption 4.6, it holds x∗(k+Np+1|k)∈Xf(x∗(k+Np)). Furthermore, the cost is given by ¯ L(x∗(k+ 1|k),¯ u(k+ 1)) = Np−1 X l=1 L(x∗(k+i|k), u∗(k+i|k)) +L(x∗(k+Np|k), Kf(x∗(k+Np|k))) +¯ Vf(x∗(k+Np+ 1|k)) =¯ L0(xk)−L(x(k), u∗(k|k)) +L(x∗(k+Np|k),(θ(k))Kf(x∗(k+Np|k))) −¯ Vf(x∗(k+Np|k)) + ¯ Vf(x∗(k+Np+ 1|k)). From Assumption 4.6 and Lemma 4.3, it follows that ¯ L(x∗(k+ 1|k),¯ u(k+ 1)) ≤¯ L0(xk)−L(xk, u∗(k|k)).(4.35) Since ¯ L0(x∗(k+ 1|k),¯ u(k+ 1)) ≤¯ L(x∗(k+ 1|k)), hence, from (4.35) and Lemma 4.5 it follows that ¯ L0(xk+1)−¯ L0(xk)≤ −ζ(kx−x∗ sk),(4.36) which completes the proof.  4.4.1 Computation of the Terminal Components For completely determining the stabilizing of the proposed EMPC controller based on LPV model, it is necessary to compute the terminal components. By following [8], a systematic procedure is presented where a fixed terminal region around the optimal steady state was used. Then, terminal sets and quadratic cost functions are computed based on the LPV model in a stabilizing MPC context. 77 0 100 200 300 400 500 600 700 800 900 1000 10 20 30 40 50 60 70 80 90 100 110 Tpast [ C] Pasteurization temperature T past(EMPC) Pasteurization temperature T past(TMPC) Bounds of constraints T past Figura 4.1: Evolution of controlled temperature of TMPC strategy and the EMPC based on TS model where θ(k) = Fh(k) is the premise variable, M11 and M12 are the membership functions which can be defined as: M11 =Fh(k)−Fh Fh−Fh , M12 = 1 −M11.(4.62) According to (??) and cost function (4.61), the optimal steady-state of the pasteurization system is obtained as xs= [42.35,38.58,58.17,0,33.49,0,73.41]>and us= [623.37,0]>. Moreover, the stability issue of approach based on TS model is satisfied same as section 4.4 for LPV model. Then, the convergence of the system to the optimal circuit (if desired) can be ensured due to the pasteurization system is strictly dissipative with respect to the supply rate s(x, u) := `(x, u)−`(xs, us) while the storage function is γ= (1/2)x. By solving (4.48), it is obtained a sub-level δ= 1444.6196 and 84 0 100 200 300 400 500 600 700 800 900 1000 t (s) 20 30 40 50 60 70 80 90 Tow [ C] Hot-water tank temperature T ow(EMPC) Hot-water tank temperature T ow(TMPC) Bounds of constraints T ow Figura 4.2: Evolution of controlled hot-water tank temperature of TMPC strategy and EMPC based on TS model matrices Pk,Kkas: P(0) =           560.65 0.0530 0.5636 −0.0001 −0.0001 0.0000 −0.0021 0.0530 567.51 0.5107 −0.0001 −0.0001 0.0000 −0.0017 0.5636 0.5107 566.41 0.0118 0.0128 −0.0000 0.2833 −0.0001 −0.0001 0.0118 567.54 0.0127 0.0536 0.2793 −0.0001 −0.0001 0.0128 0.0127 561.35 −0.0000 0.3056 0.0000 0.0000 −0.0000 0.0536 −0.0000 561.34 −0.0002 −0.0021 −0.0017 0.2833 0.2793 0.3056 −0.0002 569.53           , 85 K(0) =           0 0 −631.07 0 −1362.50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −11.83 0−0.0263 0 0 0 0 0 0           , P(1) =           560.62 0.0234 0.3806 −0.0001 −0.0001 0.0000 −0.0014 0.0234 567.49 0.3449 −0.0001 −0.0001 0.0000 −0.0011 0.3806 0.3449 566.59 0.0118 0.0128 −0.0000 0.2826 −0.0001 −0.0001 0.0118 567.27 0.0127 0.2119 0.2802 −0.0001 −0.0001 0.0128 0.0127 561.35 −0.0000 0.3056 0.0000 0.0000 −0.0000 0.2119 −0.0000 561.35 −0.0008 −0.0014 −0.0011 0.2826 0.2802 0.3056 −0.0008 569.54           , K(1) =           0 0 −631.29 0 −1368.50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −11.51 0−0.0263 0 0 0 0 0 0           P(2) =           560.62 0.0191 0.3448 −0.0000 −0.0001 0.0000 −0.0013 0.0191 567.49 0.3125 −0.0000 −0.0001 0.0000 −0.0010 0.3448 0.3125 566.63 0.0118 0.0128 −0.0000 0.2825 −0.0000 −0.0000 0.0118 567.22 0.0127 0.2418 0.2804 −0.0001 −0.0001 0.0128 0.0127 561.36 −0.0000 0.3056 0.0000 0.0000 −0.0000 0.2418 −0.0000 561.35 −0.0009 −0.0013 −0.0010 0.2825 0.2804 0.3056 −0.0009 569.54           , K(2) =           0 0 −631.33 0 −1369.73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −11.45 0−0.0263 0 0 0 0 0 0           86 P(3) =           560.63 0.0183 0.3378 −0.0000 −0.0001 0.0000 −0.0013 0.0183 567.4906 0.3062 −0.0000 −0.0001 0.0000 −0.0010 0.3378 0.3062 566.63 0.0118 0.0128 −0.0000 0.2825 −0.0000 −0.0000 0.0118 567.21 0.0127 0.2475 0.2805 −0.0001 −0.0001 0.0128 0.0127 561.36 −0.0000 0.3056 0.0000 0.0000 −0.0000 0.2475 −0.0000 561.35 −0.0009 −0.0013 −0.0010 0.2825 0.2805 0.3056 −0.0009 569.54           , K(3) =           0 0 −631.33 0 −1369.65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −11.44 0−0.0263 0 0 0 0 0 0           P(4) =           560.64 0.0427 0.5083 −0.0001 −0.0001 0.0000 −0.0019 0.0427 567.50 0.4606 −0.0001 −0.0001 0.0000 −0.0015 0.5083 0.4606 566.46 0.0118 0.0128 −0.0000 0.2831 −0.0001 −0.0001 0.0118 567.46 0.0127 0.1026 0.2796 −0.0001 −0.0001 0.0128 0.0127 561.35 −0.0000 0.3056 0.0000 0.0000 −0.0000 0.1026 −0.0000 561.34 −0.0004 −0.0019 −0.0015 0.2831 0.2796 0.3056 −0.0004 569.53           , K(4) =           0 0 −631.16 0 −1364.84 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −11.73 0−0.0263 0 0 0 0 0 0           Then, according to matrices P, terminal penalty may be defined as (4.38). While this Vf(x) can be satisfied (4.21) for all x∈Xf⊂Xand kf=Kk(x−x∗ s) + u∗ s. To evaluate the advantage and economic efficiency of the presented strategy for EMPC controller based on the TS fuzzy model, the tracking MPC (TMPC) strategy is implemented on the TS model of pasteurization system. The TMPC based on the TS fuzzy model is done solving the following optimization problem: min u(k) Np−1 X l=0 kCx(l+ 1|k)−yref (l+ 1)kp,w1+k∆u(l+ 1|k)kp,w2,(4.64) subject to (2.14) and (2.15) and same constraints in (4.61). Moreover, pdenotes the norm used for this chapter is squared norm and the weighting matrices w1∈Rnx×nx and w2∈Rnu×nxare applied to verify the priority of the several control objectives. 87 0 100 200 300 400 500 600 700 800 900 1000 t(s) 0 500 1000 1500 [Watt] Electric heater power (EMPC) Electric heater power (TMPC) 0 100 200 300 400 500 600 700 800 900 1000 t(s) 10 20 30 40 50 [m3 /s] Speed of pump (EMPC) Speed of pump (TMPC) Figura 4.3: Evolution of control inputs of TMPC strategy and EMPC based on T-S model All tests were done using the same weights, initial conditions and prediction horizon as mentioned above. All simulation and computations have been carried out on an i7 2.40-GHz Intel core processor with 12 GB of RAM running MATLAB R2016b, and the optimization problem is solved by using YALMIP toolbox with Cplex solver. In addition, the numeric assessment of the above-mentioned controllers is carried through different key performance indicators (KPIs), which are detailed as follows: KP Ie:= 1 ns+ 1 ns X k=0 α>uk∆t, (4.65a) KP I∆u:= 1 ns+ 1 nu X i=1 ns X k=0 (∆u(i, k))2,(4.65b) where KP Iedenotes the average economic performance of the pasteurization process and KP I∆uevaluates the smoothness of the control actions. Moreover, ns∈I+is the number of seconds considered in the simulations and ∆tis the sampling time in seconds. It should be noted that in KPIeand KP I∆ulower values signified better performance results.The comparison results of different key performance indicators (KPIs) plus the simulation time between EMPC and TMPC strategies based on T-S model are presented in Table 4.1. 88 Taula 4.1: Comparison of control performance. Controller KP IeKPI∆uSimulation Time EMPC 12177 6824 3562 TMPC 44339 15430 3025 Figures 4.1 and 4.2 provide the evaluation of the controlled output temperature results that include the pasteurization temperature, Tpast and hot-water tank temperature, Tow. These output temperatures obtained under the new strategy of the EMPC based on the T-S fuzzy model with hard constraints in input and output temperature in order to save energy and avoid overheating the product. In Figure 4.1, it can be seen that the pasteurization temperature, Tpast and hot-water tank temperature, Tow from EMPC approach are within expected ranges Tpast ∈[65◦C, 74◦C] and Tow ∈[76◦C, 83◦C], respectively. The TMPC is designed just for reaching the predefined references where their references are the mean values of the expected ranges of the output temperatures. The results of output temperature behaviour from the TMPC controller based on the T-S fuzzy model that designed to achieve the references are presented in Figure 4.1. From Figure 4.1, it can be observed that the pasteurization temperature Tpast and hot-water tank temperature Tow are tracked the predetermined references and achieved them. However, Tpast has overshoot behaviour. Figure 4.3 shows the simulation results of the power of the electrical heater and speed of pump based on the EMPC and TMPC strategies. By analyzing theses results from economic point of view, it can be observed that the appropriate pasteurization temperature Tpast and hot-water tank temperature Tow are obtained with the EMPC controller while the power of the electrical heater is decreased and the value of the power is less than the TMPC strategy. The output temperatures of both strategies achieve the suitable temperature according to the economic objective. In the meantime, the performance of products is kept, it means the product is pasteurized in a suitable temperature and not burnt while the economic cost in EMPC is almost reduced three times compared to the TMPC. 4.6 Summary This chapter focused on the design of an economic model predictive control algorithm for a class of LPV/TS models. The constrained optimization problem for LPV/TS model are solved iteratively by a series of QP problems while the scheduling parameters are calculated at each time instant. The model is predicted in the horizon by using the previous sequence of scheduling variable and state of the model. The proposed approach 89 is extended based on the TS model. The asymptotic stability of EMPC based on LPV models is provided by satisfying a strong dissipativity assumption to prove stability. The proposed approach is attractive because the implementation of this method is basically the same algorithm as for LTI systems. Finally, the EMPC strategy based on TS model has been satisfactorily designed and tested in a simulation of a small-scale pasteurization system. The TS model of the pasteurization system has been obtained by considering the hot-water flow Fhas premise variable. Then, the comparison between the EMPC approach and the classic tracking MPC is done and the results show the advantages of EMPC for decreasing the economistic cost. Moreover, this approach will be extended in the next chapter by considering the time delay in the system. The content of this chapter was based on the following works: F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Comparative assessment of LPV-based predictive control strategies for a pasteurization plant. 4th International Conference on Control, Decision and Information Technologies (CoDIT), (pp. 0821-0826). IEEE, Spain, 2017. F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Economic predictive control of a pasteurization plant using a linear parameter varying model. In Computer Aided Chemical Engineering, (Vol. 40, pp. 1573-1578). Elsevier, 2017. F. Karimi Pour, C. Ocampo-Martinez and V. Puig . Output-feedback model predictive control of a pasteurization pilot plant based on an LPV model. In Journal of Physics: Conference Series (Vol. 783, No. 1, p. 012029), France, 2017. F. Karimi Pour, V. Puig and C. Ocampo-Martinez . A new Design of Economic model Predictive Control based on LPV systems. To be submitted Journal of Process control. F. Karimi Pour, V. Puig and C. Ocampo-Martinez . Takagi-Sugeno based Economic Predictive Control of a Pasteurization Plan. To be submitted International Journal of Computer Applications in Chemical Engineering. 90 Cap´ ıtol 5 MPC for LPV systems with parameter-varying delays This chapter presents MPC strategy for LPV systems with varying delays affecting states and inputs. The proposed control approach allows the controller to accommodate the scheduling parameters and delay change. By computing the prediction of the state variables and delay along a prediction time horizon, the system model can be modified according to the evaluation of the estimated state and delay at each time instant. Moreover, the solution of the optimization problem associated with the MPC design is achieved by solving a series of Quadratic Programming (QP) problems at each time instant. The pasteurization plant system is used as a case study to demonstrate the effectiveness of the proposed approach. 5.1 Introduction The effect of time delay in a process increases the complexity of the control problem. The delays can affect the states, inputs or/and outputs, and they can be time-varying or constant, unknown or known, deterministic or stochastic depending on the systems under study. Recently, many researchers focus on robust model predictive control (RMPC) based on linear models with constant or varying delays [66, 123]. In [34], a RMPC with constant state delay by using linear matrix inequalities (LMIs) is proposed. The work of [87] proposes an MPC algorithm for uncertain time varying systems with state delays. Besides, a synthesis strategy for predictive control based on LPV models with state delays was provided in [87]. However, there exist only a few MPC methods that consider time-delayed LPV models [222, 229]. In [222], authors proposed a parameter-dependent state-feedback controller based on LPV model with parameter-varying time delay and proved the stability by using parameter-dependent Lyapunov functionals. However, there exists a limitation to apply input constraints which are required when controlling 91 many practical plants. Also, an RMPC based on LPV model with state delay was presented in [229] by using a Lyapunov function augmented with the current state and the time-delayed states. But, still delay is considered to be constant in the RMPC. Therefore, an MPC controller that can overcome the drawbacks mentioned above is needed to enable handling effects of varying delays and constraints. In this chapter, an MPC controller based on the LPV models with varying parameters delays is provided. The main contribution consists of designing an improved LPV- based MPC strategy in order to formulate an optimization problem that exploits the functional dependency of scheduling variables and varying delays to develop a prediction strategy with a numerically suitable solution. This solution is iteratively forced to an accurate solution, thereby avoiding the use of non-linear optimization. In addition, the optimization problem is decomposed into a series of QP problems that are solved at each time instant. Finally, the small-scale pasteurization plant that presents nonlinear behavior with varying delays is used in order to test the effectiveness of the proposed approach. 5.2 Problem statement Consider the following discrete-time state-space LPV model with parameter-varying delays in inputs and states: x(k+ 1) =A(θ(k))x(k) + Aτ(θ(k))x(k−τ(θ(k))) +B(θ(k))u(k) + Bτ(θ(k))u(k−τ(θ(k))), y(k) =C(θ(k))x(k) + Cτ(θ(k))x(k−τ(θ(k))), (5.1) where x∈Rnx,u∈Rnuand y∈Rnyare the state vector, input vector and output vector, respectively. Moreover, A(θ(k)) ∈Rnx×nx,B(θ(k)) ∈Rnx×nuand C(θ(k)) ∈Rny×nxare system matrices with the appropriate dimensions, which depend affinely on the varying parameter θ(k)∈Θ∀k≥0 where Θ is a given compact set. Moreover, τis a scalar function representing the parameter-varying delay and satisfies 0 ≤τm≤τ(θ(k)) ≤τM, where τMand τmare the upper bound and lower bound of τ(θ(k)). Throughout this paper, it is assumed that (A(θ), B(θ)) is stabilizable for all θ∈Θ. The MPC controller design with a quadratic objective function subject to input and states constraints based on the LPV model (5.1) can be formulated as follows: min ˜u(k)J(k) = Np−1 X i=0 kx(i|k)kp w1+ku(i|k)kp w2,(5.2a) 92 subject to x(i+ 1|k) =A(θ(i|k))x(i|k) +Aτ(θ(i|k))x(i−τ(θ(i|k))|k) +B(θ(i|k))u(i|k) +Bτ(θ(i|k))u(i−τ(θ(i|k))|k), (5.2b) u(i|k)∈U,(5.2c) x(i|k)∈X,(5.2d) x(0|k) =x(k) (5.2e) θ(0|k) =θ(i|k),(5.2f) and for all i∈Z[0,Np−1], it is solved online for ˜u(k) = u(i|k), u(i+ 1|k), ..., u(Np−1|k)>∈U,(5.3) where ˜u(k) is the decision sequence of Nppredicted control inputs. Moreover, w1∈ Rnx×nxand w2∈Rnu×nuare positive definite weighting matrices that establish the trade-off between state and the control input effort, respectively. The super-index pis the squared norm. Furthermore, the sets Xand Uare defined as (2.2). The control law is applied in a receding horizon manner. Also, x(i|k) is the predicted state at time i, with i= 1, ..., Np, obtained by starting from the state x(0|k) = x(k). The LPV model can not be evaluated before solving the optimization problem (5.2) because the future state sequence is not known. Indeed x(i|k) depends not only on the future control inputs u(k), but also on the future scheduling parameters θ(k) and delay, which for a general LPV system, are not assumed to be known a priori, but only to be measurable online at current time k. In addition, in the case of a system with varying delay, the delay varies with the scheduling variables. Hence, predicting the future states regarding the dynamic of the system is more difficult. But, for a quasi-LPV system, where the scheduling parameters θ(k) are defined by x(k) and u(k), the delay and state trajectory can be predicted. 5.3 Proposed approach This section proposes an MPC controller design in order to solve the optimization problem of an LPV model with parameter-varying delay where the parameters and delays change along the prediction horizon. The solution for this problem is based on the estimation of the scheduling variables and subsequently the delays into the prediction horizon and then, using them to update the system matrices of the model used by the MPC controller. In fact, the sequence of the control input is used to modify the delay and system matrices of the model used along the prediction horizon. Therefore, the sequence of states and predicted parameters can be obtained from the control sequence 93 0 100 200 300 400 500 600 700 800 900 1000 Time [s] 40 50 60 70 80 N1 NMPC N1 LPV-MPC N2 NMPC N2 LPV-MPC 0 100 200 300 400 500 600 700 800 900 1000 0 500 1000 1500 Control inputs P NMPC P LPV-MPC Figura 5.4: Evaluation of the control inputs (Delay is varied during the prediction horizon) 1234567891011 Number of prediction horizon 8.5 9 9.5 10 10.5 Delay Constant delay during N p Varying delay during N p Figura 5.5: Comparison of delay during the prediction horizon 100 Part III Health-Aware Control 101 Cap´ ıtol 6 Multi-Layer Health-Aware Economic Predictive Control based on Components Fatigue This chapter proposes two different health-aware economic predictive control strategies to minimize the damage of components in a pasteurization plant. The damage is assessed with the rainflow-counting algorithm that allows estimating the components fatigue. By using the results obtained from this algorithm, a simplified model that characterizes the health of the system is developed and integrated into the predictive controller. The overall control objective is modified by adding an extra criterion that takes into account the accumulated damage. The first strategy is a single-layer predictive controller with integral action to eliminate the steady-state error that appears when adding the extra criterion. In order to achieve the best minimal accumulated damage and operational costs, the single-layer approach is improved with a multi-layer control scheme, where the solution of the dynamic optimization problem is obtained from the model in two different time scales. Finally, to achieve the advisable trade-off between minimal accumulated damage and operational costs, both control strategies are compared in simulation over a utility-scale pasteurization plant. 6.1 Introduction As mentioned in Section3.1, pasteurization implies that a food product is exposed to some temperature profile during a predetermined period of time, in order to reduce the proportion of microorganisms. Controlling and maintaining the temperature of the process are key aspects in the pasteurization process. Hence, a suitable control strategy for the system needs to be designed in order to manage the product temperature for keeping the desired product quality. The necessity of a significant control of the process arises from the savings in energy, product and time if an accurate tracking of the setpoint is performed. On the other hand, due to the high number of load 103 cycles that occur during the life of a pump within a pasteurization process, its fatigue estimation is an important factor for the proper control of such processes. For this reason, research regarding the integration of control with a fatigue-based prognosis of components has been developed in recent years. Fatigue leads to the breakdown of the material subject to stress, especially when frequent series of stresses are applied [162]. Damage has been widely and exhaustively studied from different perspectives [149]. In this chapter, the Palmgren-Miner linear damage rule is used to perform fatigue analysis [100]. This rule, commonly called the Miner’s rule, is being currently used throughout the industry and in academia [142]. On the other hand, MPC has been recently proved as an adequate strategy for implementing health-aware control schemes. Several economicoriented controllers have recently been proposed within the MPC framework [55, 74] but without considering safety issues of the system components. In fact, both safety stock and actuator lifetime are competing with the economic performance of the system. For this reason, it is required to have a flexible control strategy that allows to trade off the economic optimization and the safety of the system. This chapter presents a health-aware control (HAC) with economic objectives that considers the information about the system health to adapt the objectives of the control law to extend the remaining useful life (RUL) of the considered system. Thus, the control inputs are generated to fulfill the control objectives/constraints but at the same time to extend the lifespan of the system components. In this way, the HAC makes an effort to attain maximum performance while not degrading the system too much. In case that the controller is implemented using MPC, the trade-off is based on modifying the control objective including new terms that take care of the system health. This leads to solving a multi-objective optimization problem where a trade-off between system health and performance should be established [171]. The main contribution of this chapter consists in the design of an improved healthaware economic MPC strategy. This strategy minimizes the damage of the pasteurization components and reduces the power consume of the electrical heater as economic objective, while still the pasteurization temperature tracks the suitable references related to the products, extending the result presented in [102]. The novelty is a multi-layer scheme including the health-aware and economic operation that extends and improves the preliminary ideas presented in [102]. The upper layer solves an optimization problem with an economic cost function and a new objective to minimize the accumulated damage at slow time scales. In the lower layer, a linear MPC controller forces the process dynamics to track the trajectory provided by the upper layer. Finally, a comparison between the multi-layer and single-layer control schemes is performed by using a high-fidelity simulator of a utility-scale pasteurization plant. 6.2 Problem statement According to section 3.1.2, the control-oriented pasteurization model is represented in terms of behavioral equations of each subsystem, consisting of power, water pump, heat exchanger and hot water tank. The controlled inputs are the power of the electrical 104 heater, P, and the pump rotational speed of the second pump, N, respectively. The input temperature of the water heater, Tiw, and the temperature of cold water, Tic, are measured non-controlled inputs (disturbances). Therefore, the matrix Bin model (3.2) is separated to the matrices Band E. In this chapter, the LTI model of pasteurization plant is used based on a operating point of model (3.2). Finally, to design the MPC controller, this model is discretized and expressed in state space form xk+1 =Axk+Buk+Edk,(6.1a) yk=Cxk,(6.1b) where x∈Rnxis the state vector including hot-water flow, Fh, hot-water tank temperature, Tow and pasteurization temperature, Tpast,u∈Rnuis the vector of manipulated variables that includes the electrical power of the heater Pand the pump rotational speed N,d∈Rndis the vector of measured disturbances that include input temperature of the water heater, denoted by Tiw, and the temperature of cold water, denoted by Tic. Finally, y∈Rnyis the vector of controlled variables that include pasteurization temperature, denoted by Tpast. Moreover, the input matrix Band disturbance matrix Eof the model in (6.1) can be represented in the discrete-time domain as B=            0 0 TsK2 τ20 0 0 0 0 0TsK12 τ12 0 0 0 0            , E =            TsK1 τ10 0 0 0 0 0 0 0TsK22 τ22 0 0 0 0            ,(6.2) where Kand τare a static gain and a time constant, respectively. 6.2.1 Operational Control As previously mentioned, the main goal is to guarantee that the pasteurization temperature is reached and maintained as close as possible to the set-point value for a per-established time. At the same time, reduction of energy consumption and health management of the system expressed should be achieved by formulating a multi-objective control problem. This optimization problem should be solved considering as constraints the mathematical model of the pasteurization system (6.1) and the operational constraints defined by (2.2). Thus, the MPC controller design is based on the solution of the following FHOP: min uk Np−1 X i=0 kxk+i|kkp w1+kuk+i|kkp w2+k∆uk+i|kkp w3,(6.3a) 105 subject to: xk+i+1|k=Axk+i|k+Buk+i|k+Edk+i|k,(6.3b) uk+i|k∈U,(6.3c) xk+i|k∈X,(6.3d) (xk|k, uk−1|k, dk|k) = (xk, uk−1, dk),(6.3e) for all i∈Z[0,Np−1], where uk={uk+i|k}i∈Z[0,Np−1] is the decision sequence, with uk being the sequence of controlled inputs. Furthermore, pdenotes the norm used for this chapter is squared norm, ∆uk+i|k=uk+i|k−uk+i−1|kare the input increments and the weighting matrices w1∈Rnx×nx,w2∈Rnu×nuand w3∈Rnu×nuare used to establish the priority of the different control objectives. Moreover, u? kdenotes the optimal solution of (6.3) at time step k. According to the MPC receding horizon philosophy, only the first optimal control input is applied, i.e., uk=u? k|k. Then, the new measurements are used to update the initial conditions (6.3e) and then the optimization problem (6.3) is solved again using the receding horizon principle, as described in subsection 2.1.2. 6.3 Rainflow Counting Algorithm (RFC) The damage accumulation process on a component produced by cyclic loading is known as fatigue. Fatigue is as frequent cause of failure in industrial machinery such as pumps [157]. In reality, fatigue failure occurs because of the application of fluctuating stresses that are much lower than the stress required causing failure during a single application of stress [100]. The commonly recognized and used measure for fatigue damage estimation is the so-called rainflow counting (RFC) method. RFC algorithm, first introduced by [56], has a complex consecutive and nonlinear structure in order to analyze ideal sequences of loads into cycles. Ordinarily, to compute a lifetime estimate from a given structural stress input signal, the RFC method is exerted by computation cycles and maxima, jointly with the Palmgren-Miner rule to calculate the expected damage. The input signal is received from time signal of the loading parameter of interest, such as torque, force, strain, stress, acceleration, or deflection [125]. Figure 6.1 shows the rain-flow counting procedure. There are several types of RFC algorithms with different rules proposed by [56] and [156], which, at the end, yield in quite similar results. The RFC algorithm used in this chapter is presented in [156]. This algorithm computes the stress for each rainflow cycle in four steps: •the stress history is converted to an extremum sequence of alternating maxima and minima of stress; •for each local maximum Mj, the left (m− j) and right (m+ j) regions where all stress values are below Mjare identified; 106 Figura 6.1: Rainflow counting damage procedure. 0 2000 4000 6000 8000 10000 12000 14000 ∆T [s] 2 4 6 8 10 σeq Equivalent Stress 0 100 200 300 400 500 Trimmed Time [s,] 2 4 6 8 10 tp Turning points 0 50 100 150 200 250 No. Cycles 0 2 4 6 8 Di ×10-8 Damage 0 50 100 150 200 250 No. Cycles 0 0.5 1 1.5 Dac ×10-6 Accumulated Damage Figura 6.2: Rainflow counting damage estimation. •the minimum stress value is mj=min{m− j, m+ j}; •the equivalent stress per rainflow cycle sjrelated to Mjis granted by either the amplitude sj=Mj−mjor the mean value sj=Mj−mj 2. 107 In most of the materials, there is an explicit relationship between the number of cycles and cycles of failure, which is known as S−Nor W¨ohler curves, whereas the damage Dis calculated by using the S−Ncurve at each stress cycle [120]. An often-used model for S−Ncurve is scwN=Ksp,(6.4) where cwand Ksp are material-specific parameters and Nis the number of cycles to failure at a given stress amplitude s. The damage imposed by a stress cycle with a range sjis computed as Dj≡1 Nj =1 Ksp scw j.(6.5) Then, the total damage under the linear accumulation damage (Palmgren-Miner) rule is given as Dac = λ X j=1 1 Nj = λ X j=1 1 Ksp scw j,(6.6) for damage increments Dac associated to each counted cycle, where Njis the number of cycles of failure associated to the stress amplitude sjand the number of all counted cycles λ. These sequences are presented in Figure 6.2. On the top-left and top-right part of Figure 6.2, the input stress and the same signal converted into a sequence of maxima and minima are shown, respectively. The instantaneous damage and the accumulated damage are displayed in the bottom part of Figure 6.2. For real-time systems, applying the customary rainflow counting algorithm is quite challenging and computationally demanding. Considerable amounts of data must be stored and provided periodically to obtain a quantity of data in equivalent regular cycles. Besides, the algorithm must be applied to a stored set of data. One of the objectives of this chapter is to analyze the fatigue due to pump load of the pasteurization system. Loads in the pump structure arise from several factors, the typical reason for pump failure is bearing damage. However, pressure and pump rotational speed are two damage factors that have the greatest influence on the shaft bearing life. Both variables could be chosen as stress indicators for the pasteurization pump. In this chapter, the rotational speed of the pump is used as stress for RFC damage estimation. Utilizing the RFC algorithm, the accumulated damage is obtained as a function of the cycles of the pump rotational speed stress signal. In order to have available an accumulated damage variable that can be integrated with a linear MPC model, a simplified approach to compute fatigue on time series signal is proposed based on the RFC theory. The outcome of this approach is that the accumulated damage is obtained as a function of time instead of the number of cycles. The proposed approach finds the changes of the sign that correspond to a cycle in the stress time signal. The obtained function at each time instant kis the following: Dk=(0 if Ik=Ik−1, 1 Ksp scw kif Ik6=Ik−1,(6.7) 108 0 50 100 150 200 250 300 350 400 450 500 ∆T (s) -10 0 10 σeq Stress time history 0 50 100 150 200 250 No. Cycles 0 1 2 Dac ×10-6 Accumulated Damage Rainflow Counting Method 0 50 100 150 200 250 300 350 400 450 500 ∆T (s) 0 1 2 Dac ×10-6 Accumulated Damage as function of time Figura 6.3: Accumulated Damage Comparison. where skis a stress at time kdefined as sk=1 L k X q=k−L Ns,q,(6.8) Lis the number of samples per cycle, Nsis the pump rotational speed moment, qis the difference between the number of samples per cycle and time instant and Ikis the signal adapted to indicate cycle, i.e., Ik=Ns,k −sk.(6.9) Then, the accumulated damage is calculated by Dacc,k =Dacc,k−1+Dk.(6.10) Note that, at the end of the scenario, the accumulated damage based on the function of time and rainflow-counting method is practically the same. Figure 6.3 indicates the 109 than the system in the lower layer. In the lower layer, the tracking controller receives the trajectory calculated by the upper layer and determines the setpoint trajectories for the base-layer control system by considering the faster dynamics of the plant (fast time scale). The current state values are required to provide initial conditions for dynamic real-time optimization (DRTO) and the tracking controller, that have to be estimated by means of measurements from the process. Thus, a time-scale separation of the measurements from the process must be performed, as the upper layer is operating at a lower sampling rate and should only take into account the slow trend in the measurements. Upper-layer controller In the optimization problem of the upper layer, the goal is to minimize accumulated damage by inserting (6.12) as a new state and a new objective in the MPC controller and a trajectory planner calculates a reachable reference yras close as possible to the exogenous reference signal r. At the same time, minimizing the economic objective that is the electrical power consumed by the heater is the second control goal of this layer. Taking into account (6.12), the proposed approach relies on solving the following optimization problem at each time instant k: min {uk,Zk,xr k,ξk} Npu−1 X i=0 krk+i+1|k−yr k+i|kkp w1+kuk+i|kkp w2 +k∆uk+i|kkp w3+kzk+i|kkp w4+kξk+i|kkp w5, (6.26a) subject to: xr k+i+1|k=Axr k+i|k+Buk+i|k+Edk+i|k,(6.26b) yr k+i|k=Cxr k+i|k,(6.26c) zk+1 =zk+m L(α1uF,k +α0),(6.26d) Tow(k+i|k)−Tpast(k+i|k)≥ζ+ξk+i|k(6.26e) uk+i|k∈U,(6.26f) xr k+i|k∈X,(6.26g) for all i∈Z[0,Npu−1], and the new objective with the corresponding matrix weight w4is appended in the MPC cost function to minimize the accumulated damage. Npu is the prediction horizon of the upper layer and the sampling time of the upper layer is tu. Lower-layer controller The lower-layer controller is tracking the optimal trajectory under the influence of high frequency of the accumulated damage and is executed at sampling time tlof the process. 116 In the lower-layer, the predictive controller is designed to track the calculated reference obtained from the upper layer. This generates from the following optimization problem: min uk Npl−1 X i=0 kek+i|kkp w1+k∆uk+i|kkp w2,(6.27a) subject to: xk+i+1|k=Axk+i|k+Buk+i|k+Edk+i|k,(6.27b) uk+i|k∈U,(6.27c) xk+i|k∈X,(6.27d) for all i∈Z[0,Npl−1], where Npl is the prediction horizon of the lower layer. Moreover, ek+i|k=Cxr k+i|k−Cxk+i|kis the error between the calculated references that are obtained from the upper layer and measured output. Since the accumulated damage should be assessed in a long prediction horizon, Npl < Npu should be established and the sampling time of the upper layer should be greater than on from the lower layer, tu> tl. 6.5 Simulation Results In this section, the performance of the proposed different health-aware MPC schemes is assessed with the pasteurization plant case study described in section 3. 6.5.1 Design of an MPC Controller with Health-aware Capabilities and Economic Objectives In order to test the behavior of the proposed health-aware MPC scheme in two different manners, several simulations were carried out and the results obtained are presented in this part. The operating point for the hot-water flow is chosen as 200 ml/min. The behavior of the controlled temperature Tpast from the pasteurization plant under the health-aware hierarchical MPC and single-layer MPC with and without the healthaware objective are presented in Figure 6.7 with its corresponding references, while the controlled variable Tpast tracks the references. In Figure 6.8, an evolution of the accumulated damages obtained from multi-layer and single-layer MPC with and without a health-aware objective are provided. Scenario 1 (Health-aware single-layer MPC) The health-aware MPC is designed as described in Section 6.4.1, by adding the accumulated damage model presented before, as a new state introduced in (6.12). In addition, 117 0 100 200 300 400 500 600 700 800 900 1000 1100 t (s) 10 20 30 40 50 60 70 80 90 100 Controlled output [° C ] Reference Tpast with health-aware objective Tpast with integral action and health objective 0 100 200 300 400 500 600 700 800 900 1000 1100 t (s) 10 20 30 40 50 60 70 80 90 100 Controlled output [° C ] Reference Generation reference T past without health-aware objective Tpast Pasteurization without health-aware objective Generation reference T past with health-aware objective Tpast Pasteurization with health-aware objective (a) Pasteurization temperature Tpast in single-layer. (b) Pasteurization temperature Tpast in multi-layer. Figura 6.7: Evolution of pasteurization temperature Tpast with and without the health-aware objective in the MPC. to remove steady state offset that appears with the augmented model in the health-aware MPC is augmented again. Therefore, According to the complete model of the pasteurization system (3.2), the matrix Eis utilized as disturbance in this chapter. Now with 118 0 100 200 300 400 500 600 700 800 900 1000 1100 t (s) 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 AccDam [-] ×10-3 with health-aware objective without health-aware objective t (s) 0 100 200 300 400 500 600 700 800 900 1000 1100 AccDam [-] ×10-3 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 with health-aware objective without health-aware objective (a) Accumulated damages by single-layer structure. (b) Accumulated damages by multi-layer structure. Figura 6.8: Evolution of accumulated damages with and without health-aware objective in the MPC. the disturbance model as follows: xn,k+1 =Asxn,k +Bsuk+Esdk,(6.28a) yn,k =Csxn,k,(6.28b) where As,Bs,Cs, and Esare matrices of proper dimensions including accumulated damage and disturbance model given by (6.12) and (6.14a). The MPC controller has been implemented considering that the prediction horizon is chosen as Np= 400 and the sampling time is 4 s. The control objective of the MPC controller for the pasteurization system is the pasteurization temperature Tpast tracking the setpoint, while at the same time, the accumulated damage is evaluated as in (6.12) and the power of the electrical 119 heater Pare minimized. From Figure 6.7a and Figure 6.8a, it can be seen that the cost and degradations are decreased while the temperature is tracking the references without steady-state offset. Scenario 2 (Health-aware multi-layer MPC) Alternatively, as discussed in Section 6.4.2, the health-aware MPC can be implemented using a two-layer hierarchical structure, where the solution of the optimization problem considered in the single-layer scheme is solved at different time scales. The two-layer MPC implemented in the new model is presented by xn,k+1 =Ahxn,k +Bhuk+Ehdk,(6.29a) yn,k =Chxn,k,(6.29b) where the state and output vector are given by xn= [x;z] and yn= [y;z], respectively. Moreover, Ah,Bh,Ch, and Ehare state matrices of proper dimensions with included accumulated damage given by (6.12). The control objectives of the upper layer for the pasteurization system aim at minimizing the accumulated damage evaluated as (6.12) and reducing the power of the electrical heater as economic objective and at the same time. The appropriate pasteurization temperature Tpast is calculated in order to save energy and avoid overheating the product. Due to the accumulation of damage can not be assessed in a short horizon, the upper layer MPC has been implemented by using prediction horizon Nu= 300, where the sampling time for the discretization of continues state-space model of the pasteurization plant(3.2) is 120 s. On the other hand, the control objective in the low layer MPC forces that the pasteurization temperature Tpast is tracking the calculated appropriate pasteurization temperature in the upper layer. The prediction horizon is chosen Npl = 5 and sampling time is 4 s. Figure 6.7b are the behavior of pasteurization temperature Tpast with and without the health objective are presented. Moreover, the reduction of accumulated damage under multi-layer MPC scheme is presented in Figure 6.8b. 6.5.2 Results and Comparison Assessment According to the results, it can be observed that the results of the inclusion of the fatigue objective in single-layer approach and two-layer approach are almost the same (see Figure 6.8). In particular, the accumulated damage is mitigated about 88% in both of them. However, from Figure 6.9 it can be seen the power of the electrical heater P from the multi-layer MPC is minimized more than in the single-layer MPC. This implies that the multi-layer health-aware MPC controller can achieve better results related to the economic cost objective. While there is some degree of flexibility playing with the temperature set-point for achieving the best result of minimizing accumulated damage in the multi-layer scheme. In order to have better cooperation between the two different control scheme, several simulation with different tunings have been implemented. Finally, the trade-off curves between the health objective and economic cost for singlelayer and multi-layer schemes are presented in Figure 6.10. Moreover, Figure 6.10 shows 120 t (s) 0 100 200 300 400 500 600 700 800 900 1000 1100 Power [W] 0 500 1000 1500 Two-layer Single-layer Figura 6.9: Evolution of power the electrical heater Pin the single-layer and two-layer MPC. Cost (Power) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Health 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 trade-off (Two-layer) trade-off (Single-layer) Figura 6.10: Trade-off between the health and cost in the single-layer and two-layer MPC over the normalization. 121 that independently of the tuning, the two-layer scheme is able to produce better results and it can be observed that the economic objective in single layer is not optimized as in the case of the multi-layer scheme. 6.6 Summary In this chapter, the integration of MPC with fatigue-based prognosis to minimize the damage of components in a pasteurization plant and the optimization economic objective has been presented. The integration of a system health management module with MPC control has provided the pasteurization plant with a mechanism to operate safely and optimize the trade-off between components lifetime while saving energy, product and time. The MPC controller objective has been modified by adding an extra criterion that takes into account the accumulated damage plus including the economic objective. First, a single-layer health-aware MPC controller based on economic optimization by including integral action to eliminate steady state offset by adding extra criterion has proposed. Then, the single layer has been transformed to multi-layer scheme one taking into account the different dynamics of the objectives. The multi-layer health-aware MPC controller based on two optimization layer has been implemented with different timescale. Both control schemes have been satisfactorily implemented using high-fidelity simulator of a utility-scale pasteurization plant. The results obtained show that there exists a trade-off between the minimization of the accumulated damage and tracking setpoint that manipulated for saving energy. Finally, these control schemes are compared and the results show that the multi-layer control scheme can minimize the economic cost more than the single layer and keeping the same degradation level for the components. The content of this chapter was based on the following works: F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Multi-layer health-aware economic predictive control of a pasteurization pilot plant. International Journal of Applied Mathematics and Computer Science,28(1), 97-110), 2018. F. Karimi Pour, V. Puig and C. Ocampo-Martinez. Health-aware model predictive control of pasteurization plant. In Journal of Physics: Conference Series,(Vol. 783, No. 1, p. 012030), 2017. 122 Cap´ ıtol 7 Health-aware MPC-LPV based on system Reliability This chapter addresses economic health-aware MPC-LPV controller for industrial systems; in particular, the economic health-aware model predictive control (MPC) for drinking water transport network, including an additional goal to extend the reliability of the components and system. The components and system reliability are incorporated in the MPC model using a Linear Parameter Varying (LPV) modelling approach. The proposed MPC-LPV control approach described in chapter 4 allows the controller to accommodate the parameter changes. Then, chance-constraint programming is used to compute an optimal water storage volume policy based on a desired risk acceptability level, managing to dynamically designate safety stocks in flow-based networks to satisfy varying flow demands. Finally, the proposed approach is applied to a part of a real drinking water transport network of Barcelona for demonstrating the performance of the method. 7.1 Introduction Based on 3.2, Drinking Water Networks (DWNs) are critical infrastructures in urban environments. Also, the increasing complexity of the DWNs would generate some complications for the management under multiple objectives, such as economic operations, as well as safety, reliability and sustainability. MPC can provide appropriate techniques to perform the operational control of water systems to develop their performance since it allows to compute optimal control strategies ahead of time for all the flow and pressure control elements [36]. According to optimal control approaches for management water systems, MPC is not applied in a classical way because there is no reference to be tracked. Unlike conventional MPC, the common operational goal of many process industries, as DWNs, is the minimization of economic costs of the energy consumptions. To this aim, Economic MPC (EMPC) contributes a systematic approach for optimizing economic performance [99]. 123 The application of control strategies by considering the system and components reliability becomes necessary to ensure the quality of service. In order to increase the system reliability, anticipate the appearance of faults, actuator health monitoring and reduce the operational costs must be considered. In fact, actuator health monitoring is focused on observing and estimating the safety and reliability of each actuator according to the actuator information. Recently, system reliability has been taken into account in system control process through a Prognosis and Health Management (PHM) framework [96]. In this context, the reliability is a standard procedure for estimating how long the system will perform its function exactly and can be used to predict future damages in the system given the state of its elements [168, 53]. On the other side, from control point of view and according to physical constraints and multi-objective cost functions, the MPC approach has been proved as an adequate strategy for implementing health-aware control (HAC) designs. In the HAC approach, the online prognostic information of the system or component is used to adjust the control actions or to develop the mission objective in order to maintain a high level of system health [97]. DWN reliability depends on several factors such as the quality and the quantity of the water available at the sources, the failure rates of the pumps and the valves failures, among others [102].The actuator reliability is usually modelled using an exponential function of the control input [53, 96]. On the other hand, the system reliability is determined from the combination of each actuator reliability taking into account the interconnection topology. In [164], the reliability analysis methodologies of water distribution systems are described based on tailor-made ‘lumped supply–lumped demand’ approach and Monte Carlo framework. In [43], a structure is proposed for devising a proactive risk-based integrity-monitoring approach for the control of urban water distribution networks. One significant disadvantage of the previous methods for reliability-based MPC is that they consider the reliability at the actuator level, not at the system level based on the interconnection topology, because of the non-linearity of the resulting constraints which would lead to the non-linear MPC. Moreover, Economic Nonlinear MPC (ENMPC) is usually computationally expensive and, in general, there is no guarantee that the solution of the optimization problem is the global optimum [98]. Another way of solving the optimization problem in case of a nonlinear system is translating the nonlinear problem into a quadratic problem by means of linearization approach. This approach has been recently improved by means of Linear Parameter Varying (LPV) models [30]. The main contribution of this chapter is to provide a health-aware MPC-LPV controller on the basis of PHM information provided by the on-line evaluation of the system reliability. The system reliability is integrated into the control algorithm using a LPV framework. The augmented model considering both the reliability and DWN models is interpreted as an LPV model. Moreover, an additional contribution of the chapter considers the use of chance constraints programming to compute an optimal water storage volume policy based on a desired acceptable risk level, system reliability and presenting the advantage of a given system and component reliability that is computed on-line in an MPC-LPV strategy is another contribution of this chapter. The first objective of this chapter is to present the interest of taking into account system and component reliability, 124 measured on-line in an MPC-LPV method. The second objective consists in designing a health-aware MPC-LPV strategy in order to formulate an optimization problem that exploits the functional dependency of scheduling variables and state vector. Moreover, using chance constraint programming to manage dynamically designated safety stocks in flow-based networks to satisfy time-varying demands and system reliability.Finally, the case study considered in this chapter to show the effectiveness of the proposed approach is based on a part of the DWN case study described in Chapter 3. 7.2 EMPC Formulation of DWN In this chapter, the modeling approach based on flow introduced by the authors in [36, 37] is used. The pressure is not considered in this control-oriented model because the pressure is managed at distribution level of water network not transport network. The control-oriented model of DWN is considered as a set of linear discrete-time differencealgebraic equations (3.28). The purpose of using MPC methods for controlling water distribution networks is to compute, ahead of time, the input commands to obtain the optimal performance of the network based on a set of control objectives [159]. The control objective can be formulated as the minimization of a convex multi-objective cost function that involves three operational goals for managing of DWN with different nature which mentioned in section 3.2.3. The controller should also operate actuators and tanks inside their bounds and extend the reliability of the system as will be presented later. The system is subject to hard input and state constraints provided by convex and closed polytopic sets defined as x(k)∈X:= {x∈Rnx|Gx ≤g},(7.1a) u(k)∈U:= {u∈Rnu|Hu ≤h},(7.1b) for all k∈Z≥0, where G∈Rmx×nx,g∈Rmx,H∈Rmu×nuand h∈Rmuare vectors/matrices collecting the system constraints, signifying mu∈Z≥0and mx∈Z≥0 the number of input and state constraints, respectively. Concerning the operation of the generalized flow-based networks, the following assumptions are used noticed in this chapter. Assumption 7.1. The demands in dm(k)and the states in x(k)are observable at each time instant k∈Z≥0, also the pair (A, B)is stabilisable. Assumption 7.2. The realization of demands at the current time instant k∈Z≥0can be analyzed as dm(k) = dm(k) + e dm(k),(7.2) where dmis the vector of expected disturbances and e dmis the vector of probabilistic independent forecasting errors with non-stationary uncertainty and a known (or approximated) quasi-concave probability distribution D0,P(dm,(j)(k)), e.g., logistic, normal, exponential distribution, among others. Hence, the stochastic nature of each j-th row of 125