#### Abstract

This paper is concerned with the predictive control of water level in an experimental pilot plant, in the presence of input constraints and uncertain time delays. Robustness is achieved by casting the delay uncertainty into a polytopic form and using a predictive control formulation based on linear matrix inequalities. Integral action is introduced into the controller to ensure offset-free tracking of step changes in the setpoint. Moreover, an integrator resetting procedure based on the concept of regions of guaranteed cost is proposed to improve the resulting transient response. The results show that the introduction of robustness into the predictive control formulation is indeed of value to avoid closed-loop instability in the presence of time delays. In addition, the integrator resetting procedure was found to provide substantial performance improvements in terms of overshoot and settling time.

#### 1. Introduction

Time delays, often associated with fluid transport processes, measurement procedures, communication lags, and computational processing, may degrade the performance or even cause instability of a control loop [1]. Under such conditions, the design of an appropriate controller can be a challenging task [2, 3], especially if the delay is uncertain or subject to unpredictable alterations. In this context, much research effort has been devoted to the development of robust control strategies that guarantee appropriate closed-loop behavior if the delay remains within known bounds [4–6]. Within this scope, robust model-based predictive control (RMPC) may be of particular value in cases where actuator and/or process variable constraints are to be enforced.

The term RMPC refers to a body of receding-horizon optimal control techniques aimed at ensuring stability and constraint satisfaction in the presence of model uncertainties [7, 8]. Early RMPC formulations involved the online solution of a min-max optimization problem, where the worst case value of the cost function was evaluated over a set of uncertain plants [9–11]. However, the computational cost could be prohibitive for real-time implementation. Within this scope, a significant step forward was made in [12] by casting the optimization problem into a semidefinite programming (SDP) form [13], with model uncertainties and operational constraints incorporated into a set of linear matrix inequalities (LMIs). The control actions can thus be obtained by using efficient numerical methods for convex optimization. Subsequent developments of this RMPC approach have included LMI formulations with less conservatism [14–17], use of output feedback [18–20], extensions to nonlinear systems [21], and handling of asymmetric output constraints [22], among others.

Time-delay systems were briefly mentioned in [12] as a remark concerning possible applications of the proposed RMPC technique. This possibility was formalized in a more recent paper [23], which concerned systems with polytopic uncertainty description and both input and state delays. The proposed formulation was later extended to handle multiple input delays [24], as well as uncertainties in both the model parameters and delay values [25]. A simpler approach can also be adopted if the uncertainty is restricted to the input delay. In this case, the original RMPC formulation of [12] can be employed by using an augmented state vector including current values of the state and past values of the control input [26–28]. As can be seen, much research effort has been devoted to the control of time delay systems with RMPC techniques derived from [12]. However, to the best of the authors’ knowledge, experimental studies of this RMPC approach for systems with uncertain delays have not been reported, either in laboratory scale or actual industrial practice. Such a gap motivated the present work, which is concerned with the control of water level in an experimental pilot plant in the presence of uncertain input delay.

Tank level control plays an important role in several industrial settings, including, for instance, chemical, pharmaceutical, and paper manufacturing processes [29]. This application has been widely employed in the literature and is often considered a benchmark control problem [30–32]. It is worth noting that the work reported in [32] involved the control of a laboratory tank system by using the RMPC formulation of [12]. However, that work employed a didactic plant of reduced scale and was not concerned with possible time delays. In contrast, the present investigation involves a pilot plant with actual industrial components, with emphasis on potential problems associated with the presence of time delay.

The RMPC approach adopted in this paper follows the formulation proposed in [12]. Uncertainty in the input delay is handled by using an augmented state vector, as in [28]. Moreover, offset-free tracking of step changes in the setpoint is ensured by introducing an integrator associated with the process variable of interest (water level). In order to reduce the overshoot and settling time of the transient response, an integrator resetting procedure is employed [33]. An improved resetting criterion is formulated herein, by using the concept of regions of guaranteed cost [34].

The remainder of this paper is organized as follows. Section 2 describes the LMI-based RMPC formulation adopted in the present work. Section 2.1 presents an overview of the RMPC formulation. Section 2.2 discusses the concept of regions of guaranteed cost, which will be used in the integrator resetting procedure. The handling of uncertain input delays is addressed in Section 2.3. The proposed integrator resetting scheme is presented in Section 3. The case study involving the experimental pilot plant is described in Section 4. Simulation and experimental results are discussed in Section 5. Lastly, concluding remarks are presented in Section 6.

#### 2. LMI-Based Robust Model Predictive Control

##### 2.1. Overview of the RMPC Formulation

The RMPC approach under consideration is concerned with discrete-time, uncertain state-space models of the form as follows: where and are the state and input variables, respectively. It is assumed that matrices and belong to an uncertainty polytope with known vertices , , ; that is, for some set of scalars such that

Let denote the following infinite-horizon cost function: where and are positive-definite weight matrices and denotes a predicted value, which is computed on the basis of the information available at time . It is assumed that the system state is directly measured, so that .

The optimization problem to be solved at time can be formulated as subject to where denotes the input variable and is the corresponding bound on its magnitude.

In the RMPC approach proposed in [12], an upper bound on the cost is minimized by solving the following semidefinite programming (SDP) problem: subject to where are the diagonal elements of and symbol represents the elements below the main diagonal of a symmetric matrix. In what follows the SDP problem given by (7)–(11) will be termed .

The resulting control action is given by , with . By applying this control law in a receding horizon manner, that is, by solving in order to obtain a new gain matrix at each sampling time , the closed-loop system can be shown to be robustly asymptotically stable, provided that is feasible at the initial time . A detailed proof of this property can be found in [12].

Henceforth, a subscript will be included in the solution of , as well as in the resulting gain matrix , to indicate the corresponding time index.

*Remark 1 ( tracking a constant reference). *In cases where the target state is an equilibrium point , associated with a steady-state control , the RMPC control law can be implemented by expressing as a deviation from the equilibrium value; that is,
where denotes the actual state of the plant. The actual control is obtained by solving problem and calculating

It is worth noting that the constraints on must be translated in terms of symmetrical bounds on each component of for use in the optimization problem .

##### 2.2. Regions of Guaranteed Cost

A region of guaranteed cost can be defined as the set of state vectors for which is feasible, with optimal cost being smaller or equal to a given bound . This region is convex and symmetric about the origin, as demonstrated in [34].

An extreme point of along the direction of a given vector can be obtained by solving the following SDP problem [34]: subject to and the remaining LMIs (9)–(11) of the original RMPC optimization problem. The resulting extreme point is given by , where is the minimal value found for . Due to the property of symmetry, will also be an extreme point. An inner approximation of can be generated as the convex hull of extreme points obtained with different vectors.

##### 2.3. Handling of Uncertain Input Delays

In the present work, the time delay is considered to be the main source of uncertainty for the design of the controller. It is assumed that the dynamics of the plant can be described by a model of the form where denotes the plant state at time , , are known matrices, and is an uncertain delay, which may take values in the range . For simplicity, the formulation presented herein is derived for a single-input system (i.e., ), as in [28]. However, the extension to the multiple-input case does not pose substantial difficulties, involving mostly changes in notation [35].

The RMPC formulation can be applied by adopting the following state vector , which comprises the plant state and past values of control:

The dynamics of the plant with uncertain input delay can then be described by a model in the form (1) with where the scalars are such that

From the definition of in (19), it follows that

Now, let . In view of (20), can only assume values; namely,

Therefore, the matrices in (18) belong to a polytope with vertices associated with .

The control algorithm can be summarized in the following form. Given the matrices and of the model (16), as well as the maximum value of the time delay, the vertices () of the uncertainty polytope are written as At the sampling time, the state vector is measured, the augmented state vector is built as in (17), and the optimization problem (7)–(11) is solved in order to obtain the matrix . The control is then calculated and applied to the plant.

*Remark 2. *This polytopic description of the input delay uncertainty was adopted in [26–28] as a direct extension of the original RMPC formulation of [12]. This approach can also be employed if the delay is lower-bounded by a known value , in which case the vertices of the uncertainty polytope corresponding to should be removed. If both the time delay and the model parameters were subject to uncertainties, an alternative would consist of using the more elaborate formulation proposed in [25]. However, as will be seen in Section 5, the input delay is indeed the main source of uncertainty in the present work.

#### 3. Integrator Resetting

##### 3.1. Integral Control Action

As discussed in Remark 1, the state of the plant can be steered to a desired equilibrium point by expressing the RMPC control law in terms of deviations from the equilibrium values. However, the presence of constant disturbances acting on the plant may lead to steady-state errors. Therefore, if offset-free tracking is required for a particular process variable , some form of integral action should be introduced in the controller [33, 36].

For this purpose, assume that is related to the state by an output equation of the form where is a known matrix. If both and denote deviations from desired target values, as in Remark 1, offset-free tracking will be achieved if as . Integral control action can be introduced by augmenting the plant state with an additional variable associated with a discrete-time integrator: If the control loop is stable, will converge to a constant value as and thus will converge to zero [36]. It is worth noting that the use of a minus sign in (24) is an arbitrary convention, as the same reasoning holds if the equation is rewritten as . The minus sign is employed herein for consistency with the notation adopted in [33].

From (1) and (24), the augmented model can be written as where denotes either a scalar zero or a matrix of zeros with appropriate dimensions. The RMPC formulation presented in Section 2 can then be employed by replacing the original state with the augmented state . The optimal control at each time will be given by with obtained from the solution of .

##### 3.2. Integrator Resetting Procedure

The inclusion of an integrator in a control loop may cause undesirable effects in the transient response, such as increase in overshoot and/or settling time. Indeed, a control law such as (26) is aimed at forcing and . The variable corresponds to the accumulated value of (in terms of deviations from the desired target), as defined in (24). Therefore, after the target value is reached (i.e., when reaches zero), the controller will need to steer the process variable to the opposite side of the target, in order to switch the sign of and thus move progressively to zero (possibly in a slow manner). A speed up in this process can be achieved by means of integrator resetting.

A resetting procedure that retains the robust stability properties of the RMPC formulation was introduced in [33]. Such a procedure consisted of replacing the integrator state with zero when the process variable crossed the setpoint for the first time, provided that the RMPC optimization problem remained feasible.

Herein, an improved scheme of integrator resetting is proposed by using a criterion based on the overall state vector, instead of the process variable alone. More specifically, the integrator state will be replaced with 0 if such a procedure reduces the RMPC cost below a prespecified threshold . This condition is tested by checking whether the augmented state belongs to the region of guaranteed cost . In this manner, the subsequent transient performance of the closed-loop system, as evaluated by the cost function, is taken into account. In contrast, it may be argued that the procedure described in [33], which was based on the difference between a single variable and its corresponding setpoint, does not consider the transient response resulting from the resetting intervention.

The proposed procedure can be described as follows.

*Step 0 (initialization). *Let be a region of guaranteed cost associated with an upper bound on the cost value.

Let , , and .

*Step 1. *Read state .

*Step 2 (integrator resetting). *If the following conditions are simultaneously satisfied:
then let and .

*Step 3. *Obtain the solution for the problem .

*Step 4. *Calculate the gain matrix and the control input .

*Step 5. *Apply to the plant and let .

*Step 6. *Let ; wait until the next sampling time and return to Step 1.

*Remark 3 (resetting conditions). *Condition (27), together with the definition of regions of guaranteed cost in Section 2.2, ensures that problem will be feasible with . The* FLAG* variable indicates whether the integrator has already been reset. Thus, condition (28) ensures that the resetting operation will be carried out only once. This safeguard is of value to retain the stability properties of the RMPC formulation. Indeed, after the integrator is reset, all subsequent control actions will be obtained by following the standard RMPC control law, with no more resetting interventions, and thus the associated robust stability guarantees will apply.

*Remark 4 (region of guaranteed cost : simplified test). *Condition (27) can be replaced by a simpler sufficient test, as described below. Let denote the components of the state vector . Assume that the following vectors in are extreme points of along the directions of these components:

These extreme points can be obtained by using the search method described in Section 2.2 with vectors of the form , ,,. Since is symmetrical about the origin, the following vectors are also extreme points:

The convexity property ensures that contains the convex hull of the extreme points in (29) and (30). Therefore, if
then .

It is worth noting that the integrator resetting procedure described herein can be directly applied to the case of uncertain input delay. It is sufficient to adopt the state vector as in (17), with the associated polytopic model described in Section 2.3.

#### 4. Case Study

The pilot plant employed herein was developed by Yokogawa Electric Corporation for process control experiments involving actual industrial components. As depicted in Figure 1(a), the plant comprises a reservoir tank (), a process tank (), and a heating tank (). Since the present work was only concerned with the control of water level in the process tank , the connection valves to the heating tank were closed. A simplified scheme of the remaining components of the plant can be seen in Figure 1(b).

**(a)**

**(b)**

The water level in the reservoir tank is regulated by means of a simple on/off switch, which was designed to keep this tank at its maximum capacity. A pump connected to a three-phase induction motor (MDP in Figure 1(b)) transfers water from to the process tank . The water leaves through a valve at the bottom of the tank. A frequency inverter is used to drive the induction motor and a differential pressure transmitter is employed to measure the water level in . A stardom programmable logic controller (PLC) is responsible for sending commands to the frequency inverter and reading the level measurements through a fieldbus network. In addition, the PLC communicates with a personal computer over an Ethernet channel. In the present work, the RMPC control algorithm was implemented in the personal computer by using an OPC (object linking and embedding for process control) protocol to acquire sensor readings (water level in ) and send actuator commands (rotation speed of the motor-driven pump) at each sampling time. The LMI toolbox of the Matlab software environment was employed to solve the semidefinite programming problem involved in the RMPC implementation.

##### 4.1. Plant Model

The values of the control input (rotation speed) and the process variable of interest (water level) were normalized between and , corresponding to a range of [0–3450] rpm for and [0–70] cm for . A model of the plant was obtained from open-loop step responses around the equilibrium values and . By using a sampling time , the resulting model can be written as where and denote deviations from and from the equilibrium values; that is,

It is worth noting that the model (32) comprises a delay of one sampling period at the plant input. As discussed in [37], this delay is associated with the relation between the actuator command and the water flow to the process tank. Uncertainty was introduced by including an additional delay in the control code running within the Matlab software environment. In practice, such a delay could arise, for example, from failures in communication links of networked control systems [38]. The plant model (32) then becomes where is an uncertain delay with possible values in the range . In the present case study, the maximum delay value was taken as .

Equation (35) is in the form (16) with , , and . Therefore, the delay uncertainty can be handled by using the formulation in Section 2.3 with the state vector defined as

In order to ensure offset-free tracking of a constant reference for the water level, an additional state was included as in (25), with .

##### 4.2. Controller Design

The control task in this case study consists of increasing the water level from an initial value up to a setpoint . As mentioned above, the corresponding steady-state rotation of the motor-driven pump is approximately . The precise value of required to keep the water level at the desired setpoint depends on the settings of the output valve at the bottom of the process tank. However, possible differences with respect to the adopted value () are compensated by the inclusion of integral action in the RMPC controller.

As will be seen in the Results section, this seemingly simple control task may become very challenging because of the uncertain input delay.

Constraints on the control input were imposed in view of the following physical limitations. Experimental tests revealed that the pump was unable to elevate water from the reservoir tank to the process tank if the motor rotation was smaller than . On the other hand, if the rotation was increased beyond , the flow from to became larger than the input flow to the reservoir tank, which would eventually cause the reservoir to become empty. For these reasons, it is convenient to constrain the control input to the range . Therefore, in view of (34) with , the upper and lower bounds on the variable should be and . Since the input constraints must be symmetric in the adopted RMPC approach, the bounds on were set to (corresponding to ).

The robust predictive controller (RMPC) was designed by using the state vector (36) augmented with the integrator state . The weight matrices and were set to where indicates the elements of a diagonal matrix and , , and are the weights corresponding to the water level , control , and integrator state . A normalization factor is included in (37) to account for the fact that the control appears times in the cost function, once in the control cost itself and times in the state cost, since are used as state variables.

For comparison, a nominal predictive controller was designed by using the formulation presented in Section 2.3 with . In this case, the polytopic model (1) has a single vertex, which corresponds to the plant without the additional delay. The state vector employed in this formulation is given by which is also augmented with the integrator state . The weight matrices and were set to with , , and , as in the design of the robust controller.

The following section begins with a comparison between the nominal and robust predictive controllers, in order to illustrate the problems that may arise if the delay uncertainty is not taken into account. Afterwards, the effects of the proposed integrator resetting procedure are discussed. For this purpose, the simplified resetting test (31) was employed, with a cost threshold .

#### 5. Results and Discussion

In what follows, the delay considered in the design of the controller will be denoted by , whereas the actual delay of the plant will be denoted by . The nominal delay case corresponds to = 1 and the case with additional delay introduced in the software environment corresponds to = 6.

In addition to the experimental outcomes, simulation results are depicted in all graphs to illustrate the validity of the model presented in Section 4.1.

Figure 2 shows the results obtained by using the nominal predictive controller, which considers a delay in the plant model. In this case, no additional delay was introduced in the plant and thus was also equal to . As can be seen, the water level converges to the setpoint and the input constraints () are properly enforced. The simulation and experimental results are in good agreement, which indicates that the adopted model provides an appropriate description of the plant dynamics.

Figure 3 shows the case where an additional delay of five sampling periods was introduced in the software environment. Since the plant already has a nominal delay of one sampling period, the overall delay becomes . The mismatch between this overall delay and the delay assumed in the design of the nominal predictive controller () results in the loss of closed-loop stability. Indeed, the system response enters a limit cycle rather than converging to the setpoint. The difference between simulation and experimental results can be explained because the model presented in Section 4.1, which was experimentally obtained from small step disturbances around the equilibrium, does not fully capture the dynamics involved in the transition to a limit cycle.

As can be seen, even for this simple water level control task, an increase in the time delay can have serious effects on the closed-loop operation. This finding underlines the convenience of using a robust predictive controller (RMPC) to handle possible delays in the range , as described in Section 4.2.

Figures 4 and 5 show the RMPC results obtained in the extreme cases, which correspond to the plant with minimum delay () and maximum delay (), respectively. As can be seen, in both figures the tank level converges to the setpoint, with satisfaction of the input constraints. Moreover, the transient responses in the two cases are very similar, which corroborates the robustness of the predictive controller. A slightly larger overshoot is observed for the case of maximum delay (Figure 5), which is to be expected since an increase in the time delay tends to deteriorate the closed-loop performance.

The transient performance obtained with the RMPC controller can be improved by using the integrator resetting procedure described in Section 3.2. The results are shown in Figures 6 and 7 for the cases of minimum delay () and maximum delay (), respectively. A comparison with Figures 4 and 5 reveals that a substantial reduction was achieved in terms of overshoot and settling time, as summarized in Table 1.

It is worth noting that the overshoot () indicated in Table 1 corresponds to the difference between the maximum value of and the setpoint . For example, the first entry () indicates that reached a maximum value of . The settling time was determined by using a criterion. Since the step size from the initial value to the setpoint was , the settling time is the time required for to reach and stay within the range , that is, .

In short, the results obtained in this case study show that the RMPC formulation is indeed of value to ensure closed-loop stability in the presence of input constraints and uncertain time delays. Moreover, the integrator resetting procedure is convenient to improve the transient response, by reducing both overshoot and settling time in a substantial manner.

#### 6. Conclusions

This paper reported experimental results involving the use of an RMPC technique for the control of water level in a pilot plant with actual industrial components. Stability and offset-free tracking of the setpoint were achieved in the presence of uncertain time delays and control input constraints. Moreover, an integrator resetting procedure based on the concept of regions of guaranteed cost was proposed to improve the closed-loop transient response. The resulting control formulation provided fast and well damped responses, either in the case of nominal delay, or in the case where additional delay was introduced in the plant.

Future research could be concerned with the use of less conservative LMI formulations [14–17] for the deployment of RMPC controllers in experimental settings. Moreover, it would be interesting to carry out studies with other laboratory or field systems that exhibit actual time-delay variations in inputs or state variables. Finally, computational issues may need to be taken into account to allow the application of RMPC to plants with fast dynamics, such as electromechanical systems.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

The authors acknowledge the support of FAPESP (research Grant 2011/17610-0), CAPES (Pró-Engenharias MSc scholarship) and CNPq (doctoral scholarship and research fellowship).