Explicit-Model Predictive Control: A simulation based scalability study

Explicit-Model Predictive Control: A simulation based scalability study

8th IFAC Symposium on Advanced Control of Chemical Processes The International Federation of Automatic Control Singapore, July 10-13, 2012 Explicit-M...

709KB Sizes 0 Downloads 104 Views

8th IFAC Symposium on Advanced Control of Chemical Processes The International Federation of Automatic Control Singapore, July 10-13, 2012

Explicit-Model Predictive Control: A simulation based scalability study Arun Gupta*, Sharad Bhartiya**, P.S.V. Nataraj*** *ABB-GISL, Research, Bangalore, India 560048 (Tel: +91-9731029788; e-mail: [email protected]). **Department of Chemical Engineering, IIT Bombay, Mumbai, India (Tel: +91-22-25767225; e-mail:[email protected] ) *** Systems and Control Engineering, IIT Bombay, Mumbai, India (Tel: +91-22-25767887;e-mail: [email protected]) Abstract: The main impediment in the applicability of explicit model predictive control (e-MPC) is that the number of regions in the parametric space increases dramatically with an increase in the dimension of the parameter and decision spaces as well as with an increase in the number of constraints. This work explores the scalability issues by simulation in which e-MPC is used for control of quadruple tank system. ExplicitMPC problem formulation from a standard MPC (for finite and infinite prediction horizon) using multi parametric quadratic programming (mp-QP) is presented. The results confirm that while the number of critical regions increases exponentially with the control horizon, the online calculations are computationally inexpensive. programming problems that arise in linear MPC, these functions are linear and the optimized decision variables can be evaluated explicitly. Since the online component of the algorithm is typically simple, potential exists to implement linear MPC through low-cost hardware on systems with dynamic response time of the order of 10ยตs to 100ms (Pistikopoulos, 2009). Such an approach for solving the MPC optimization problem using multi-parametric programming has been referred to as explicit-MPC or e-MPC. However, a well-known impediment in successful implementation of eMPC for medium to large-scale problems is that the number of critical regions becomes prohibitively large. Thus, a large online computational expense is incurred in searching for the applicable critical region thereby nullifying the benefits of computational efficiency.Various efforts have been presented in literature to overcome this so-called point location problem (Bayat et al., 2011; Monnigmann and Kastsian, 2011), which have yielded online computational times of less than a microsecond. However, unlike the fast MPC methods using interior point and active set methods, which can potentially solve large practical problems, a criticism of e-MPC is that it can be used only for small-state and input dimension problems particularly due to the large offline computational load in addition to the online burden of the point location problem. Gupta et al., (2011) recently presented an active set mp-QP approach based on implicit enumeration of active sets and use of a pruning criterion, which they showed to scale well with the size of the problem. In this work, we benchmark the implicit enumeration mp-QP method for linear e-MPC using a simulation study in which the complexity of the mp-QP can be varied. The naive approach of sequential search among the polyhedral partition of the parametric space is used for the point location problem and no attempt is made to use state-of-art approaches in this regard.

1. INTRODUCTION Since implementation of model predictive control (MPC) requires solution of an online optimization problem, its applications are typically limited to systems with sampling periods of the order of few seconds or minutes as commonly encountered in the process industry. In order to extend the range of MPC to applications with sampling periods in the milli/micro-second range, such as in mechatronics, it is imperative to employ efficient optimization algorithms. For example, Wang and Boyd (2010) exploit the structure of the quadratic program (QP), which is solved using interior point methods to accomplish online optimization in the order of milliseconds for reasonably large sized problems. Interior point methods have also been used by other researchers (Rao et al., 1998). On the other hand, Ferreau et al. (2008) used customized active set methods and showed that these are at least an order of magnitude faster than conventional approaches for solution of QPs. In this context, a radically different approach to solving the optimization problem called multiparametric (mp) programming (Gupta et al., 2011; Spjotvold et al., 2006; Tondel et al., 2003a; Dua et al., 2002) has emerged as a promising tool which is particularly suited for online optimization. Multiparametric programming solves optimization problems by computing a parameter-dependent solution offline and subsequently integrating the precomputed solution with parameters whose values become apparent online. In MPC, these parameters are past inputs, measurements and setpoint values. The offline solution consists of determining i) a set of critical regions that exhaustively partitions the parameter space, and ii) a set of functions corresponding to each critical region, whose solution yields the optimized decision variables (that is, the optimal input profile). The online implementation requires i) a search algorithm to determine the critical region, where the current values of parameters lie, and ii) a subsequent evaluation of the optimized decision variables using the corresponding function. For linear and quadratic

978-3-902823-05-2/12/$20.00 ยฉ 2012 IFAC

This paper briefly reviews a novel algebraic approach to multi-parametric quadratic programming (mp-QP) that eliminates lacunae with previous geometric approaches (Gupta et al., 2011) and subsequently explores scalability issues in using e-MPC for a simulation case study consisting 204

10.3182/20120710-4-SG-2026.00072

8th IFAC Symposium on Advanced Control of Chemical Processes Singapore, July 10-13, 2012

of model predictive control of a benchmark quadruple tank system by varying the dimension of the decision and parametric spaces. Both, finite and infinite horizon eMPC,are used as a means of varying the complexity of the optimization problem. The paper is organized as follows: section 2 outlines the linear MPC problem for linear time invariant dynamical system; section 3 briefly reviews the methods to solve multiparametric programming problems; section 4 presents the e-MPC simulation case study on a quadruple tank system, and conclusions are presented in section 5.

output at the current instant k. Muske and Rawlings (1993) provide various approaches for incorporating feedback information using models augmented by disturbance states or parameters. The MPC - optimization problem in Eq. (2) and (3) can be re-written in the standard multi-parametric form as follows, min๐‘ˆ=๐‘ข ๐‘˜ ,โ€ฆ,๐‘ข ๐‘˜+๐‘ โˆ’1 ๐‘ˆ ๐‘‡ ๐ป๐‘ˆ + 2๐‘ˆ ๐‘‡ ๐บ๐‘ฅ๐‘˜ โˆ’ ๐น๐‘ข๐‘˜โˆ’1 ๐‘ฅ๐‘˜ s.t.๐’œ๐‘ˆ โ‰ค ๐’ท + โ„ฐ ๐‘ข ๐‘˜โˆ’1

Model Predictive Control (MPC) is well established standard in the process industry, which considers operating constraints together with multivariable interactions. For an excellent review on the historical development of MPC, the reader is referred to Lee (2011). Here, we briefly review the MPC problem from a multi-parametric standpoint. In particular, we identify those parameters of the control algorithm that form the parameters of the multiparametric program.

3. EXPLICIT-MPC AS AMULTIPARAMETERIC QUADRATIC PROGRAM Multiparametric programming provides an analytical solution of the constrained optimization problem as a function of the parameters associated with it. The MPC problem in Eq. (4,5) can be written as the following multiparametric quadratic program (mp-QP):

Linear MPC uses a linear process model to predict the future process behaviour, ๐‘ฅ๐‘˜ +1 = ๐ด๐‘ฅ๐‘˜ + ๐ต๐‘ข๐‘˜ (1) ๐‘›

1 ๐‘š๐‘–๐‘› ๐‘ˆ ๐‘‡ ๐ป๐‘ˆ + ๐‘ ๐‘‡ ๐‘ˆ + ๐œƒ ๐‘‡ ๐‘ƒ๐‘ˆ ๐‘ˆ 2

๐‘š

where, ๐‘ฅ โˆˆ โ„ is the vector of states, ๐‘ข โˆˆ โ„ is the vector of inputs and ๐‘ฆ โˆˆ โ„๐‘™ is the vector of outputs. The receding horizon MPC solves a constrained quadratic optimization problem to calculate the input vector over a finite control horizon (N) by minimizing the deviation of the future process outputs from a desired reference trajectory over either a finite or an infinite prediction horizon (p) subject to process and safety constraints. Thus, the MPC regulator problem is as follows, min

๐‘ ๐‘‡ ๐‘— =0(๐‘ฆ๐‘˜ +๐‘— ๐‘„๐‘ฆ๐‘˜ +๐‘—

๐‘ . ๐‘ก. ๐’œ๐‘ˆ โ‰ค ๐’ท + โ„ฐ๐œƒ ๐œƒ โˆˆ ฮ˜ โŠ‚ โ„q

where, U is the set of decision variables (stacked manipulated variables over the control horizon), ๐œƒ is the set of parameter vector containing the current state of the system and previous control input. The term ฮธT PU in the objective function can be eliminated by the following transformation U = Z โˆ’ H โˆ’1 P T ๏ฑ, (Dua et al., 2002) which converts the strictly convex mp-QP to the following standard form,

such that, โˆ€ ๐‘– โˆˆ 1โ€ฆ๐‘

๐‘ข๐‘š๐‘–๐‘› โ‰ค ๐‘ข๐‘˜+๐‘– โ‰ค ๐‘ข๐‘š๐‘Ž๐‘ฅ ,

โˆ€ ๐‘– โˆˆ 0โ€ฆ๐‘ โˆ’ 1

ฮ”๐‘ข๐‘š๐‘–๐‘› โ‰ค ฮ”๐‘ข๐‘˜+๐‘– โ‰ค ฮ”๐‘ข๐‘š๐‘Ž๐‘ฅ ,

โˆ€ ๐‘– โˆˆ 0โ€ฆ๐‘ โˆ’ 1

(6)

The mp-QP in Eq. (6) is solved within the defined range of a closed polyhedral set ฮ˜ โŠ‚ โ„q which defines the bounds on the parameter set ฮธ. Comparing mp-QP problem in Eq. (6) with a standard MPC problem in Eq. (4 - 5): ๐‘ฅ๐‘˜ ๐บ ๐‘โ‰ก 0;๐œƒโ‰ก ๐‘ข ;๐‘ƒ โ‰ก ๐‘˜โˆ’1 โˆ’๐น

๐‘‡ ๐‘‡ + ๐‘ข๐‘˜+๐‘— ๐‘…๐‘ข๐‘˜+๐‘— + ๐›ฅ๐‘ข๐‘˜+๐‘— ๐‘†๐›ฅ๐‘ข๐‘˜+๐‘— )(2)

๐‘ฆ๐‘š๐‘–๐‘› โ‰ค ๐‘ฆ๐‘˜ +๐‘– โ‰ค ๐‘ฆ๐‘š๐‘Ž๐‘ฅ ,

(5)

where, ๐ป, ๐บ, ๐น, ๐’œ, ๐’ท and โ„ฐ are the constant matrices derived from Eq. (2,3) (see for example, Seron et al, 2000). For extensions to servo problem and various approaches of incorporating feedback, the reader is referred to Muske and Rawlings (1993). In such a case, the set-points become a part of the parametric space. The next section presents the multiparametric formulation of the regulatory problem.

2. LINEAR MODEL PREDICTIVE CONTROL

๐‘ฆ๐‘˜ = ๐ถ๐‘ฅ๐‘˜

(4)

(3)

and๐‘ข๐‘โˆ’1 = ๐‘ข๐‘ = โ‹ฏ = ๐‘ข๐‘

1 ๐‘š๐‘–๐‘› ๐‘ ๐‘‡ ๐ป๐‘ + ๐‘ ๐‘‡ ๐‘ ๐‘ 2

where, ๐‘„ > 0, ๐‘… โ‰ฅ 0, ๐‘† โ‰ฅ 0 are the weighing matrices of appropriate dimensions. In the above, we have reparameterized the inputs by computing the input profile over only N (โ‰ค p) samples. This has been done to change the complexity of the resulting QP problem in the simulation case study. Other strategies of controlling the complexity of the QP have also been reported in literature (Cagienard et al., 2004). Note that as N, p๏ƒ  โˆž, the resulting system exhibits closed-loop nominal stability (but not practically implementable). Various approaches exist to treat the infinite horizon feedback law by solving a finite horizon problem while retaining the stability property (Mayne et al., 2000; Chmielewski and Manousiouthakis, 1996). Note that predicted outputs ๐‘ฆ๐‘˜ +๐‘— /๐‘˜ use feedback information of the

๐‘ . ๐‘ก. ๐’œ๐‘ โ‰ค ๐’ท + โ„ฑ๐œƒ

(7)

where, โ„ฑ = โ„ฐ + ๐’œ๐ป โˆ’1 ๐‘ƒ๐‘‡ Equation (7) represents e-MPC problem with the matrices defined above. The parameter dependent solution is based on the knowledge of optimal active constraints. Let ๐•„refer to the set of indices of all constraints of the QP, ๐•„ โ‰œ {1,2, โ€ฆ , ๐‘}

205

(8)

8th IFAC Symposium on Advanced Control of Chemical Processes Singapore, July 10-13, 2012

and the active set ๐”ธ ๐‘, ๐œƒ denote the set of indices of the constraints that are active at ๐‘, ๐œƒ , ๐”ธ ๐‘, ๐œƒ โ‰œ {๐‘– โˆˆ ๐•„|๐’œ๐‘– ๐‘ โˆ’ ๐’ท๐‘– โˆ’ โ„ฑ๐‘– ๐œƒ = 0}

These inequalities along with the original parameter bounds ฮ˜,after removal of redundant constraints, represent a polyhedron in the parameter space, termed as Critical Region (๐ถ๐‘…๐’œ ) and corresponds to the active set ๐”ธ,

(9)

th

where, ๐’œ๐‘– denotes the i row of matrix ๐’œ. The maximum possible number of active sets which can be constructed from ๐•„ is given by its power set, โ„™ ๐•„ โ‰œ ๐”ธ1 =

๐ถ๐‘…๐”ธ โ‰œ โˆ† ๐œƒ โˆˆ ๐›ฉ โŠ† โ„๐‘ž : ๐ด๐•€ ๐‘ ๐œƒ โˆ’ ๐‘๐•€ โˆ’ ๐น๐•€ ๐œƒ โ‰ค 0, ๏ฌ๐”ธ ๐œƒ โ‰ฅ 0 (15) where, ๏„ is a notional operator that eliminates redundant inequalities.Knowing the set of active constraints๐”ธ, the optimal solution of Eq. (7) can be represented as follows:

, ๐”ธ2 = 1 , โ€ฆ , ๐”ธ๐‘+1 = ๐‘ , ๐”ธ๐‘+2 =

1,2 , โ€ฆ , ๐”ธ2๐‘ = 1,2, โ€ฆ , ๐‘

(10)

๐‘๐”ธ = ฮฉ๐”ธ ๐œƒ + ๐œ”๐”ธ

The set of indices which arenot in the active set ๐’œ are members of the inactive set โ„, ๐•€ ๐‘ข, ๐œƒ = ๐•„\๐”ธ ๐‘, ๐œƒ

where, ฮฉ๐”ธ โˆˆ โ„๐‘š ร—๐‘ž and ๐œ”๐”ธ โˆˆ โ„๐‘š are constant matrices for each critical region. For detailed derivation of ฮฉ๐”ธ and ๐œ”๐”ธ matrices readers are referred to Gupta et al., (2011).

(11)

In order to determine set of critical regions which exhaustively map the parameter spaceฮ˜, an implicit enumeration technique is employed (Gupta et al., 2011), wherein all combinations of optimal active set are considered. Corresponding to each optimal active set, the Lagrangian multipliers are used to determine the sensitivity of the optimized decisions variables to change in parameters namely, the current state ๐‘ฅ๐‘˜ and past inputs๐‘ข๐‘˜โˆ’1 , which yields the explicit control law. This is stated in form of a theorem due to Fiacco, (1983).

3.1 Robustness of mp-QP for e-MPC Two key issues arise due to degeneracy in mp-QP are (i) redundant partitioning of parameter space, and (ii) unexplored parameter regions in the parameter space. Redundant partitioning increases the size of look-up table thus increasing the online computational burden whereas unexplored regions can lead to abrupt termination of online algorithm. Thus, for e-MPC implementation it is vital that the parameter space beexclusively and exhaustively partitioned into critical regions, i.e. union of all critical regions constitutes the parameter space, as follows:

Basic Sensitivity Theorem (Fiacco, 1983): Let ๐œƒโ€ฒ be a parameter vector in the convex mp-QP in Eq. (7) and (๐‘ โˆ— ๐œƒ โ€ฒ , ๏ฌโˆ— ๐œƒ โ€ฒ )be the corresponding Karush-Kuhn-Tucker (KKT) pair. Also assume that (i) strict complementary slackness (SCS) is satisfied, and (ii) the linear independence constraint qualification (LICQ) holds, then in the neighborhood of ๐œƒโ€ฒ, there exists a unique, once continuously differentiable function [๐‘ ๐œƒ โ€ฒ , ๐œ†(๐œƒ โ€ฒ )] satisfying the KKT conditions in Eq. (8) where ๐‘ ๐œƒโ€ฒ is a unique isolated minimizer for the mp-QP in Eq. (2) such that ๐‘ ๐œƒ ๐œ† ๐œƒ

= โˆ’๐‘€โˆ’1 ๐‘ ๐œƒ โˆ’ ๐œƒ โ€ฒ + ๐‘„

๐‘€=

โˆ’๏ฌ1 ๐ด1 โ‹ฎ โˆ’๏ฌ๐‘ ๐ด๐‘

๐ด1๐‘‡ โˆ’๐‘‰1

โ‹ฏ

๐ด๐‘‡๐‘

๐‘โˆ— ๐œƒโ€ฒ ๐œ†โˆ— ๐œƒโ€ฒ

๐‘–

โˆ’๐‘‰๐‘

๐‘‡

๐‘ = ๐‘Œ, โˆ’๏ฌ1 ๐น1 , โ‹ฏ , โˆ’๏ฌ๐‘ ๐น๐‘ ๐‘‰๐‘– = ๐ด๐‘– ๐‘ข ๐œƒโ€ฒ โˆ’ ๐‘๐‘– โˆ’ ๐น๐‘– ๐œƒโ€ฒ and ๐‘Œ = [0]๐‘› ร—๐‘š Thus, the parametric solution of the e-MPC in Eq. (7) can be obtained as a set of piecewise affine functions of parameters as shown in Eq. (12), where each function is valid in a closed polyhedron called as critical region (Dua et. al, 2002; Tondel et al., 2003; Spjotvold et al., 2006; Gupta et al., 2011). Note that satisfying LICQ and SCS guarantees that the Jacobian M is invertible for ๐ป > 0. The result of enumeration provides the optimal active sets ๐”ธโˆ— and the corresponding optimal inactive sets from the solution of Karush-Kuhn-Tucker(KKT) conditions, which can be characterized as follows, ๐œ†๐‘– (๐œƒ) โ‰ฅ 0, ๐‘– โˆˆ ๐”ธโˆ— ๐œƒโ€ฒ

(14)

๐‘–

๐›ฉ๐”ธ๐‘– = ๐›ฉ

โˆ€ ๐‘– โ‰  ๐‘—, {๐”ธ๐‘– , ๐”ธ๐‘— } โˆˆ โ„™

(17) (18)

All multi-parametric algorithms attempt to ensure exclusive and exhaustive partitioning of the parametric space and provide a unique solution in decision space corresponding to each critical region in the parameter space. Dua et al., (2002) first proposed the multiparametric quadratic algorithm to explicitly identify the solution of mp-QP as affine function of parameters. However, the algorithm introduces artificial cuts in the parameter space which result in redundant partitioning. Tondel et al., (2003) addressed the issue of redundant partitioning by assuming that a certain facet-to-facet property holds. However, Spjotvold et al. (2006) later showed that upon failure of this property, the algorithm may result in unexplored regions of the parameter space. Spjotvold et al., (2006) then provided a combination of the algorithms by Dua (2002) and Tondel (2003a), such that it exhaustively explores the parameter space and reduces the degree of redundant partitioning to a large extent. While all above algorithms appealed to geometric approaches for navigating in the parameter space, Gupta et al. (2011) proposed an algebraic approach based on implicit enumeration of all active sets, which guarantees that the parameter space is exhaustively explored with unique optimal affine functions in decision space even in the case of degeneracy. Like the other algorithms, the implicit enumeration approach also may provide overlapping partitions in presence of degeneracies. The e-MPC formulation presented in this work uses the algorithm by Gupta et al. (2011) to generate the critical regions and optimal solution functions forming an online look-up table. An active set enumeration approach has also

โ‹ฑ

(13)

๐ถ๐‘…๐”ธ๐‘– =

๐”ธ๐‘– โ‰  ๐”ธ๐‘—

(12)

๐’œ๐‘– ๐‘ ๐œƒ โ‰ค ๐’ท๐‘– โˆ’ โ„ฑ๐‘– ๐œƒ , ๐‘– โˆˆ ๐•€โˆ— ๐œƒโ€ฒ

(16)

where, ๐œƒโ€ฒ is fixed value of ๐œƒ ๐œ– ฮ˜ and ๏ฌ๐‘– represents the Lagrange multipliers that correspond to the ithconstraint. 206

8th IFAC Symposium on Advanced Control of Chemical Processes Singapore, July 10-13, 2012

been mentioned in early mp-QP literature (Tondel et al., 2003a,b). An obvious pitfall of an enumeration based approach is that one may need to visit all active sets to completely partition the parameter space. However, in practice only a small number of active sets actually belong to polyhedral partition of the parametric space.

โˆ’ ๐‘ฅ=

3.2 Scalability and complexity of e-MPC The set of critical regions characterized by Eq. (15) and the optimal solution in Eq. (16) represent the analytical solution of Eq. (7) and can be thought as a look-up table for each critical region corresponding to the optimal active constraints. For a medium to large scale e-MPC problem, the size of look-up table can be prohibitively large. The number of critical regions (or size of look-up table) is proportional to the complexity of the optimization problem in Eq. (7); which can be judged by size of decision variables, parameters and number of constraints.The number of decision variable ๐‘ˆ ๐œ– โ„๐‘š ร—๐‘ changes with the control horizon, N and remains unchanged with prediction horizon, p for both finite and infinite prediction horizon formulations. The size of parameter vector, ๐œƒis independent of control and prediction horizon but changes if the weights and constraints on ฮ”๐‘ข are present in Eq. (2) and Eq. (3) respectively. Omitting the ฮ”๐‘ข term in MPC formulation will release the parameter ๐‘ข๐‘˜โˆ’1 โˆˆ โ„๐‘š from the optimization problem thereby reducing the size of e-MPC problem. In this work, it is assumed that in the infinite horizon MPC, enforcing the constraints over the control horizon N ensures that the output constraints are satisfied over the infinite horizon. In case of finite horizon formulation,however, the number of output constraints equalsthe prediction horizon, p as per Eq. (3). A simulation case study is presented next to explore the effect of change in control horizon, prediction horizon and number of parameters on the size of look-up table for finite and infinite horizon eMPC problem.

1

๐‘ฆ=

2

0

1 62

0

โˆ’

1 90

0

0

0

0

0

0

0

1

0

0

2

0

๐‘ฅ

1 23 0 โˆ’

1 23

0

0

1 12

1 0 30 ๐‘ฅ + 0 0 1 30

1 32

0 1 16 ๐‘ข 1 24 0 (19)

A number of simulation cases were generated to study the effect of prediction and control horizons on the complexity (computation times and number of critical regions) of the resulting explicit MPC solutions. The different cases correspond to different values of prediction and control horizons as well as including or omitting input rate constraints. All simulations include output and input constraints and were performed using MATLAB 7.3 on a Core 2 duo; 3 GB RAM and 1.83 GHz processor. The online computational effort was based on a sequential search of the critical regions and no attempt was made to use any advanced search algorithms reported in literature. Table 1 summarizes the effect of varying control and prediction horizons on the number of critical regions and computational times required for offline as well as online implementation. As expected, the number of critical regions reduces significantly if input rate constraints are omitted from the e-MPC formulation. Also, with change in the control horizon, keeping the prediction horizon fixed, an exponential increase in the number of critical regions is observed. The increase in number of critical regions with increase in prediction horizon for a fixed control horizon is not as dramatic. However, there is no strict rule or relation between the number of regions and control or prediction horizon. An exception to the general observation can be noted in last two rows of Table 1, wherein lesser number of regions are found with higher prediction horizon. There exists an obvious increasing trend between the size of problem and offline computation efforts. However, the online computation times did not increase for certain threshold number of regions and then increased slightly with the control horizon.

4. SIMULATION CASE STUDY โ€“ FOUR TANK SYSTEM Consider a quadruple tank system consisting of four interconnected tanks as shown in Fig. 1 (Johansson, 2000). The objective is to control the level in the two lower tanks with two pumps. The process inputs, ๐‘ฃ1 and ๐‘ฃ2 , represents input voltages to the two pumps and the states โ„Ž1 , โ„Ž2 , โ„Ž3 , โ„Ž4 representing the level of water in four tanks. The outputs ๐‘ฆ1 = โ„Ž1 and ๐‘ฆ2 = โ„Ž2 (water level in the two bottom tanks) are the control variables. At nominal operating condition with input voltages in both pumps being 3V, the corresponding values of level in tank 1 and tanks 2 are 12.4 and 12.7 cm respectively. To simulate level control, the first principles model (Johansson, 2000) is used as plant and the controller model shown in Eq. 19 is its linearized version obtained at nominal operation, with input voltages in both pumps being 3V and the corresponding values of level in Tank 1 and Tank 2 being 12.4 and 12.7 cm, respectively, where ๐‘ฅ๐‘– = โ„Ž๐‘– โˆ’ โ„Ž๐‘–0 and ๐‘ข๐‘– = ๐‘ฃ๐‘– โˆ’ ๐‘ฃ๐‘–0 , deviations from the steady-state The sampling time of 5 sec, with constraints on deviation variables for level ๐‘ฅ = ยฑ 5,5,1,1 cm, input voltage, ๐‘ข = ยฑ[1,1]V and ฮ”๐‘ข = ยฑ[0.1,0.1]V are selected. The constraints on ๐‘ฅ and ๐‘ข also define the parameter space to be explored.

Fig. 1 Schematic diagram of the quadruple-tank process. (Johansson, 2000)

207

8th IFAC Symposium on Advanced Control of Chemical Processes Singapore, July 10-13, 2012

constraints on๐‘ข, ฮ”๐‘ข and ๐‘ฆ is shown in Fig. 2. Two setpointstep changes are implemented at time 25s and 200s. The controller is able to track the set-point while respecting the constraints on ๐‘ขand ฮ”๐‘ข. The ramp increase in input variable (volts) is due to constraint on ฮ”๐‘ข. The performance of e-MPC is found to be exactly the same as that of MPC implemented with same configuration.

Table 2, summarizes the effect of varying control horizon and effect of presence of constraints on rate of change of input on the computational cost of an infinite prediction horizon eMPC with a finite control horizon (Muske and Rawlings, 1993) formulation. In addition to stabilizing properties, the infinite horizon formulation eliminates a user-specified parameter namely, the prediction horizon. Similar to the finite horizon case, an exponential increase in number of regions is noted with increase in control horizon. As expected, constraints on the input rate, also drastically increases the number of critical region.

Table 2: Infinite horizon servo with and without constraints on ๐šซ๐’–

It is interesting to note that the number of critical regions is typically fewer in infinite horizon than that of finite horizon formulation, exception being the last row of Table 2 when compared to last three rows of Table 1. Also the offline computational efforts for the infinite horizon formulation are lower than that for the finite horizon, even in case where infinite formulation generates more critical regions. The simulation case study thus suggests that a greater incentive exists for implementing the infinite horizon e-MPC than the finite horizon for comparable problem sizes. Additional work needs to be done to delineate reasons for the above suggestion.

Constraints on ๐‘ข, ฮ”๐‘ข and ๐‘ฆ

Constraints on ๐‘ข, and ๐‘ฆ

Control horizon

Number of region

Offline CPU time (sec)

Average online CPU time (msec)

1

25

15.1

0.195

2

313

338.3

0.195

3

1978

5178

0.214

1

9

2.2

0.195

2

49

24.5

0.195

3

225

207

0.195

Table 1: Finite horizon regulator with constraints on๐’–, ๐šซ๐’– and ๐’š

Constraints on ๐‘ข, ฮ”๐‘ข and ๐‘ฆ

Constraints on ๐‘ข, and ๐‘ฆ

53 53 69 367 419 507 1201 1667 2138 15 15 19 31 53 49 57 79 71

Offline CPU time (sec) 28.25 33.64 48.14 476.78 813.67 1413.8 57612 15890 036349 04.78 5.43 7.91 53.31 133.21 326.96 1150.5 4602.1 15798

Average online CPU time (msec)

15 14.5

Height in cm

1-3 1-4 1-5 2-3 2-4 2-5 3-3 3-4 3-5 1-3 1-4 1-5 2-3 2-4 2-5 3-3 3-4 3-5

No. of region

0.195 0.195 0.195 0.195 0.195 0.391 0.391 0.391 0.396 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195 0.195

14 13.5 13 12.5 12 0

100

200 Time (sec) (a)

300

400

4 3.5

Volts

ControlPrediction horizon

3 2.5 2 0

100

200 Time (sec) (b)

300

400

Fig. 2: Input/output control profile (a) output heights (solid: h1, dashed: h2), (b) input volts (solid: v1, dashed: v2).

To demonstrate the performance of e-MPC, simulation results for the infinite horizon formulation, with ๐‘ = 3 and 208

8th IFAC Symposium on Advanced Control of Chemical Processes Singapore, July 10-13, 2012

analysis in non-linear programmingโ€, Academic Press, New York. Gupta A., Bhartiya S., Nataraj P.S.V. (2011), โ€œA novel approach to multiparametric quadratic programmingโ€, Automatica, 47, 2112-2117. Johansson K. H. (2000). โ€œThe Quadruple-Tank Process: A Multivariable Laboratory Process with an Adjustable Zeroโ€, IEEE transactions on control systems technology, 8, 456-465. Lee J.H. (2011). โ€œModel predictive control: Review of the three decades of developmentโ€, International Journal of Control, Automation and Systems, 9, 415-424. Mayne D.Q., Rawlings J., Rao C., Scokaert P., (2000). โ€œConstrained model predictive control: stability ad optimalityโ€, Automatica, 36, 789-814. Monnigmann M., Kastsian M. (2011). โ€œFast explicit model predictive control with multiway treesโ€, Proceedings of the 18th IFAC World Congress, 18, Italy. Muske K. R. and Rawlings J. B. (1993). โ€œModel Predictive Control with Linear Modelsโ€, American Institute of Chemical Engineers, 39, 262-286. Nataraj P.S.V. and Patil M. (2008). โ€œRobust Control Design for Nonlinear Magnetic Levitation System using Quantitative Feedback Theoryโ€, Proceedings of the INDICON 2008 IEEE Conference and Exhibition on Control, Communications and Automation 2, 365-370. Nocedal J. and Wright S. J., (1999), โ€œNumerical Optimizationโ€, Springer. Pistikopoulos E.N. (2009). โ€œPerspectives in Multiparametric Programming and Explicit Model Predictive Controlโ€, AIChE Journal, 55, 1918- 1925. Rao C.V, Wright S.J., Rawlings J.B. (1998). โ€œApplication of interior-point methods to model predictive controlโ€, Joural of Optimization Theory ad Applications, 99, 723757 Seron M.M., Dona J.A.D, Goodwin G.C. (2000), โ€œGlobal analytical model predictive control with input constraintsโ€, in Proceedings of 39th IEEE Conf. Dec. Control, 154-159. Spjotvold J., Tondel P., Johansen T.A., Colin N. J., Eric C. K. (2006). โ€œOn the facet-to-facet property of solutions to convex parametric quadratic programsโ€, Automatica, 42, 2209 โ€“ 2214. Tondel P., Johansen T. A., Bemporad A. (2003a), โ€œAn algorithm for multi-parametric quadratic programming and explicit MPC solutionsโ€, Automatica, 39, 489-497. Tondel P., Johansen T. A., Bemporad A. (2003b). โ€œFurther Results on Multiparametric Quadratic Programmingโ€, Proceedings of the 42nd IEEE Conference on Decision and Control Msui, Hawaii USA, 3, 3175-3178.

5. CONCLUSIONS The current work reports a simulation case study of e-MPC implementation. In particular, we studied the scalability of the algorithm with the prediction and control horizons. The results indicate that while the number of regions varies widely depending on the prediction and control horizons, the online burden was typically small. In case the online computational burden becomes significant, one may consider a sub-optimal approach such as use of shorter control horizons. Further, use of constraints on rate of inputs increases the problem size and may be dispensed with if possible. The computation times using a naive sequential search algorithms indicate that potential exists of reducing the sampling period further. This may aid in extending the domain on constrained optimal control through e-MPC implementation to applications in variable frequency drive control, position and velocity control in robotic systems, and crane control among others. The online computational time depends on the computational power and search algorithm used, than that of problem size. Advanced search algorithms or use of lower level language like C, can further reduce the online computational time. Furthermore, implementation on chip based hardware will reduce the online implementation time. ACKNOWLEDGEMENTS Authors thank Department of Science and Technology, India, for financial assistance under grant 09DST010. REFERENCES Bemporad A., Morari M., Dua V., Pistikopoulos E. N. (2002). โ€œThe explicit linear quadratic regulator for constrained systemsโ€, Automatica, 38, 3-20. Bayat F., Johansen T.A., Jalali A.A. (2011). โ€œUsing hash tables to manage the time-storage complexity in a point location problem: Application to explicit model predictive controlโ€, Automatica, 47, 571-577. Cagienard R., Grieder P., Kerrigan E.C., Morari M., (2004). โ€œMove blocking strategies in receding horizon controlโ€ in Proceedings of 43rd IEEE Conf. Dec. Control, 20232028. Chmielewski D., Manousiouthakis V., (1996). โ€œOn constrained infinite-time liear quadratic optimal controlโ€, Systems & Control Letters, 29, 121-129. Dua V., Bozinis N. A., Pistikopoulos E. N. (2002). โ€œA multiparametric programming approach for mixedinteger quadratic engineering problemsโ€, Computers and Chemical Engineering, 26, 715โ€“733. Fiacco A. V. (1983). โ€œIntroduction to sensitivity and stability

209