G Model CACE-4983; No. of Pages 19
ARTICLE IN PRESS Computers and Chemical Engineering xxx (2014) xxx–xxx
Contents lists available at ScienceDirect
Computers and Chemical Engineering journal homepage: www.elsevier.com/locate/compchemeng
A dynamic programming based approach for explicit model predictive control of hybrid systems Pedro Rivotti, Efstratios N. Pistikopoulos ∗ Centre for Process Systems Engineering, Department of Chemical Engineering, Imperial College London, London SW7 2AZ, UK
a r t i c l e
i n f o
Article history: Received 1 February 2014 Received in revised form 1 June 2014 Accepted 3 June 2014 Available online xxx Keywords: Multi-parametric programming Model predictive control Robust model predictive control Dynamic programming Hybrid systems
a b s t r a c t This work presents an algorithm for explicit model predictive control of hybrid systems based on recent developments in constrained dynamic programming and multi-parametric programming. By using the proposed approach, suitable for problems with linear cost function, the original model predictive control formulation is disassembled into a set of smaller problems, which can be efficiently solved using multiparametric mixed-integer programming algorithms. It is also shown how the methodology is applied in the context of explicit robust model predictive control of hybrid systems, where model uncertainty is taken into account. The proposed developments are demonstrated through a numerical example where the methodology is applied to the optimal control of a piece-wise affine system with linear cost function. © 2014 Elsevier Ltd. All rights reserved.
1. Introduction The potential of using multi-parametric programming in the context of model predictive control has been widely documented in the literature (Bemporad et al., 2002b; Pistikopoulos et al., 2002, 2007). The idea is motivated by the fact that, in closed-loop model predictive control implementations, an optimisation problem needs to be solved whenever a sample of the system state is made available. For systems with fast sampling rates, the computational time required to solve the optimisation problem may become prohibitive, therefore rendering the use of model predictive control impractical. By formulating the optimisation problem involved in model predictive control as a multi-parametric programming problem, with the state of the system being the vector of parameters (Bemporad et al., 2002b), it is possible to shift the computational effort involved in online optimisation to an offline step in which the optimal solutions for every possible realisation of the state vector are pre-computed as explicit functions. The regions in the state-space where these explicit functions are valid are referred to as critical regions. This method of designing controllers is called explicit model predictive control (Pistikopoulos et al., 2007). The use of an explicit model predictive controller as a control device consists of evaluating the state of the system, at every sampling instance, and looking-up the corresponding optimal control input in the pre-computed map of critical regions. This operation is usually significantly faster than repeatedly solving optimisation problems, and therefore the method may be used for systems with faster sampling rates. According to a recent survey paper (Alessio and Bemporad, 2009), explicit model predictive controllers are suitable for applications with sampling rates as fast as 50 ms. Currently available software tools for explicit model predictive control (ParOS, 2004; Kvasnica et al., 2004) may be used to design controllers with 1–2 input variables and 5–10 parameters (Alessio and Bemporad, 2009). However, one potential limitation is the rapid increase in the computational burden involved in solving the offline problem when the prediction horizon increases (Bemporad et al., 2002b).
∗ Corresponding author. E-mail addresses:
[email protected] (P. Rivotti),
[email protected] (E.N. Pistikopoulos). http://dx.doi.org/10.1016/j.compchemeng.2014.06.003 0098-1354/© 2014 Elsevier Ltd. All rights reserved.
Please cite this article in press as: Rivotti P, Pistikopoulos EN. A dynamic programming based approach for explicit model predictive control of hybrid systems. Computers and Chemical Engineering (2014), http://dx.doi.org/10.1016/j.compchemeng.2014.06.003
G Model
ARTICLE IN PRESS
CACE-4983; No. of Pages 19
P. Rivotti, E.N. Pistikopoulos / Computers and Chemical Engineering xxx (2014) xxx–xxx
2
The combination of multi-parametric programming and dynamic programming (Bellman, 1957) has been reported as a method suitable for reducing the complexity of the optimisation problem involved in multi-stage decision processes, such as explicit model predictive control (Borrelli et al., 2005; Faísca et al., 2008; Kouramas et al., 2013). By using this method, the original problem is disassembled into a set of smaller sub-problems, with lower dimensionality, which are sequentially solved in a recursive manner. Recently, this approach has been extended to the problem of constrained dynamic programming of mixed-integer linear problems (Rivotti and Pistikopoulos, 2014). Hybrid systems, i.e. systems involving continuous and discrete elements, find relevance in most processes of practical interest (Pantelides et al., 1999; Branicky et al., 1998). These often involve logical components and propositional logic statements that may be equivalently expressed through sets of linear constraints (Cavalier et al., 1990; Raman and Grossmann, 1991; Bemporad and Morari, 1999a). This property is explored by the mixed logical dynamical framework (Bemporad and Morari, 1999a) that provides a systematic method of converting logical propositions into a mixed-integer linear formulation (Bemporad et al., 2002b). Due to this importance, including integer decision variables in an explicit model predictive control framework has been often identified as an important research direction (Morari and Lee, 1999; Pistikopoulos, 2009). However, the modelling of hybrid systems results in models with integer variables (Raman and Grossmann, 1992; Williams, 1999), and therefore in the need to use computationally complex multiparametric mixed-integer programming algorithms to design the controllers. The problem of hybrid explicit model predictive control with a linear cost function has been addressed by Bemporad and Morari (1999a) and Baotic et al. (2006). Sakizlis et al. (2002) presented a method based on a mixed-integer quadratic programming algorithm (Dua et al., 2002) that handles quadratic cost functions. In this publication, recent developments in constrained dynamic programming for mixed-integer linear systems (Rivotti and Pistikopoulos, 2014) are used as the foundations for a novel algorithm for hybrid explicit model predictive control with linear cost function. Additionally, it is shown how a closed-loop robust control policy may be obtained by considering modelling uncertainty within this framework. The remaining sections are organised as follows. Fundamental concepts related to the modelling of hybrid systems are introduced in Section 2.1, with particular emphasis on piece-wise affine systems. The current literature and state of the art in hybrid explicit model predictive control is presented in Section 2.2. In Section 2.3, the main developments proposed are explained in detail and summarised in the form of an algorithm for hybrid explicit model predictive control with linear cost function. Different types of modelling uncertainty are introduced in Section 3.1 and Section 3.2 shows how the proposed algorithm is applied to the problem of robust explicit model predictive control of hybrid systems. Two numeric examples are presented in Section 4 to demonstrate the proposed developments. Concluding remarks and ongoing research topics are summarised in Section 5.
2. Explicit model predictive control for hybrid systems 2.1. Modelling of hybrid systems Hybrid systems are an important topic in optimisation and control theory, and several classes of models are of a hybrid nature. In this section, the discussion is focused on piece-wise affine systems, a particular class of hybrid systems. Piece-wise affine systems (Sontag, 1981; van Bokhoven, 1981; Johansson and Rantzer, 1998; Bemporad et al., 2000; Liberzon, 2003) are an important modelling tool and may be used, for example, to describe systems with nonlinear dynamics (Sontag, 1981). A piece-wise affine state-space model is defined as shown in (1). xk+1 = Ai xk + Bi uk + ci ,
∀(xk , uk ) ∈ Pi
yk = Ci xk + Di uk
(1)
In (1), Pi is a polyhedral partition of the space defined by the state and input of the system, and given by (2). The union of the polyhedra, P = ∪i=1,...,p Pi , is assumed to contain the origin. Pi = {(xk , uk ) | Fi xk + Gi uk ≤ bi ,
i = 1, . . ., p}
(2)
Different values of the state-space matrices, Ai ∈ Rn×n , Bi ∈ Rn×m , ci ∈ Rn , Ci ∈ Rny ×n , and Di ∈ Rny ×m are triggered by the state of the system, xk ∈ Rn , and input of the system, uk ∈ Rm , reaching the corresponding partitions, Pi . In (2), Fi , Gi , and bi , are constant matrices of appropriate dimensions. One important property commonly required for the study of piece-wise affine systems is for (1) to be a well-posed system, in the sense of Definition 1. Definition 1. Well-posed piece-wise affine system (Bemporad et al., 2000). A piece-wise affine system, such as (1), is considered well-posed in P if, for all pairs (xk , uk ) ∈ P, the pair (xk+1 , uk+1 ) exists and is uniquely determined. As remarked in Bemporad et al. (2000), for (1) to be well-posed it is necessary for the definition of the partitions (2) to include both strict and non-strict inequalities. For numerical applications involving optimisation problems, such as model predictive control, it becomes necessary to reformulate problems of a hybrid nature, such as (1), in a form suitable for the use of optimisation methods. Please cite this article in press as: Rivotti P, Pistikopoulos EN. A dynamic programming based approach for explicit model predictive control of hybrid systems. Computers and Chemical Engineering (2014), http://dx.doi.org/10.1016/j.compchemeng.2014.06.003