Skip to Content
MathematicsMathematics
  • Article
  • Open Access

26 June 2026

Switching Adaptive Model Predictive Control for Perturbed Linear Time-Varying Systems

and
Departamento de Ingenieria Mecanica, Universidad de Concepcion, Concepción 4070409, Chile
*
Author to whom correspondence should be addressed.
Current address: School of Engineering Sciences, KTH Royal Institute of Technology, 17177 Stockholm, Sweden.
This article belongs to the Section E2: Control Theory and Mechanics

Abstract

In this paper we implement robust switching model predictive control to solve the dual control problem of simultaneous regulation and system identification, for linear time varying systems subject to bounded external disturbances and confined instances of variation. We leverage the piece-wise linear control law resulting from a fictitious switching architecture to generate closed-loop data that ensures strong system identifiability, while guaranteeing stability and constraint satisfaction under unknown—but bounded—disturbances and parameter variation. We pair the switching controller with a standard recursive estimation algorithm with forgetting factor, which yields unbiased estimates with variance associated to the external disturbance, showcasing the success of the switching at producing information in the closed-loop trajectories.

1. Introduction

Model predictive control (MPC) is a mature optimal control technique that has been successfully extended to several frameworks such as distributed [1], switching [2], adaptive [3] and data-driven [4] control, both in the theoretical and practical domains [5]. A core advantage of MPC is its ability to deal with hard constraint by construction, while approximating the performance of infinite horizon optimal controllers [6]. Nevertheless, the design of stabilizing and feasible MPC controllers is heavily dependent on having access to an accurate mathematical representation of the plant current dynamics—the predicition model—which can be expensive to obtain [7] and difficult to maintain in the context of time-varying systems.
Online estimation and adaptation of the prediction model has been proposed as a solution to this obstacle, yet it faces two important challenges. The first is that many design elements of an MPC controller are expensive to compute [8], yielding an increase of the computational overhead needed during operation. The second is known as the dual control problem, which arises when the objectives of regulation and probing clash, possibly resulting in closed-loop data that is not informative of the open-loop system and therefore leading to biased estimates [3]. Several alternatives have been proposed to implement dual adaptive MPC controllers, yet most guarantee only one aspect of the dual control problem. When the focus is placed in the closed-loop performance, most authors resort to some form of robust MPC alongside estimation algorithms with guaranteed non-increasing estimation errors. In ref. [9,10], for example, closed-loop stability of time-invariant uncertainty affine systems is guaranteed by a Lipschitz-based robust MPC, however parameter estimation via classical and set-membership approaches is only non-divergent. Similar guarantees are provided in [11] via homothetic tube MPC for robust stabilization, and in [3] where the robust control techniques are replaced by an implementation of chance constraints. A separation principle is employed in [12] where zone-tracking MPC is employed to decouple the dual objectives, firstly steering the system to a zone safe for probing, albeit requiring time invariance and open-loop stability.
Approaches with focus on obtaining unbiased and convergent estimates commonly resort to modifications of the optimal control problem associated with standard MPC, in order to promote probing [13] or penalize prediction error [14], usually foregoing classical stabilizability and constraint satisfaction guarantees. Dual MPC controllers, with guarantees on both objectives, usually rely on the concept of persistence of excitation [15,16,17], introducing nonlinear and non convex constraints in an otherwise standard quadratic programming problem [6]. Some approaches have been proposed to circumvent this added complexity, such as localized linearization [18,19], although without clarity on its effect over closed-loop optimality [20]. Partitioning of the input is employed in [21] to solve both objectives independently in the context of time-varying systems, yet requiring the online solution of a non-convex optimization problem, and without instantaneous adaptation.
A different rationale to avoid bias when estimating in closed-loop is to implement a switching scheme between a collection of distinguishable control laws [22], which has been shown to guarantee idenfiability in closed-loop under certain linearity conditions [23]. The underlying principle is that close-loop data generated under a piece-wise linear (or nonlinear) control law will reveal the open-loop dynamics, however switching between different control laws may result in unstable behavior [24]. Thus, switching MPC (SMPC), originally designed to control plants with discretely switching dynamics, appears as a viable solution for the dual control problem in the context of predictive control.
Several stabilizing switching MPC controllers have been proposed [25,26], most of them presenting a woven design approach and relying in the concept of minimum dwell-time (MDT), which is the minimum amount of time a certain control law must remain active before a switch to ensure stability and feasibility of the closed-loop [25]. In certain cases MDTs are assumed imposed and controllers build around them [27] while in others MDTs are a result of the controller design [28], which aims to minimize waiting.
In this paper we propose the implementation of robust SMPC to meet the requirements defined in [23] for system identifiability. We rely on a tube-based SMPC implementation that allows for independent design of each controller and that provides an explicit characterization of the resulting MDTs [2]. Moreover, and under the assumption of plant variation that occurs within bounded time-spans, we implement a resetting recursive least squares (RLS) algorithm to estimate the plant parameters, allowing for the online design of a new controller once the estimates are deemed converged. More specifically, the key contributions of our approach are: (i) a rigorous characterization of SMPC as a stabilizing control architecture that solves the dual control problem for uncertain linear time-invariant (LTI) systems without the need of, possibly non-convex, constraints for external excitation (as opposed to [2,22]); (ii) a straightforward design procedure with complexity similar to standard MPC; (iii) an algorithm that allows for online adaptation of the controller to employ the new estimates and the change between switching and non-switching schemes; (iv) extension to linear time-varying systems (LTV), thanks to the switching scheme, under the condition of discrete and bounded variations. Note, however, that we do not guarantee faster estimates convergence or higher control performance than other approaches. Indeed, we expect that the artificial switching required to generate informative data will lead to a degradation of the control objective. Nevertheless, our approach provides a balanced alternative between design complexity and dual performance in the time-varying context, allowing for a straightforward adaptation process by design.
The rest of the paper is structured as follows. Section 2 outlines the problem framework and the preliminaries on switching for identification, while a tube-based SMPC that guarantees stable, feasible and informative closed-loop trajectories is presented in Section 3. The adaptation algorithm is proposed in Section 4, and an illustrative example focused on the behavior of the estimates is put forward in Section 5. Finally, Section 6 discusses avenues for future work.
Notation: The identity matrix of appropriate size is I , and A B in the sense that A B is positive definite. The set N h is the set of natural numbers up to h, and B r is a norm-1 ball of radius r > 0 . Finally, ⊕ is the Minkowski set addition while ⊖ represents the Pontryagin set subtraction.

2. Preliminaries

We consider a constrained discrete LTV system in state space form described by
(1a) x ( t + 1 ) = A ( θ ( t ) ) x ( t ) + B ( θ ( t ) ) u ( t ) + w e ( t ) (1b) x ( t ) × u ( t ) X , U ,
where x ( t ) R n is the state vector, u ( t ) R m the input vector and w e ( t ) R n is a sequence of independent random vectors with zero-mean values and covariance matrix Λ . The state and input matrices A ( θ ( t ) ) and B ( θ ( t ) ) are time dependent of correspondent size, and we work under the following assumptions.
Assumption 1.
The sets X and U are convex and compact polytopes that contain the origin in their interior.
Assumption 2.
The parameter vector θ ( t ) Θ R p for all t 0 with Θ a known compact set. Moreover, system (1a) is stabilizable for all θ Θ .
Assumption 1 characterizes the constraint sets as polytopes, which is a specific form of linear constraint defined by the intersection of half-spaces, and is standard in linear MPC implementations with optimality-based stability guarantees. These do not represent excessive demands in practical applications where convex subsets of the true constraints can be employed for design. Assumption 2, on the other hand, is specific to our development and demands the varying nature of the system to be bounded with known bounds. This is a common assumption in the design of robust-based adaptive MPC controllers, and a procedure to characterize Θ is highly dependent on the application.

Data Informativity of Switching Controllers

We now briefly recast the results from [29] regarding system identifiability in closed-loop adjusted to our setup. Describe system (1a) by
x ( t ) = G ( z , θ ( t ) ) u ( t ) + H ( z , θ ( t ) ) w e ( t ) ,
where z is the backwards shift operator and thus
(2a) G ( z , θ ( t ) ) = I z A ( θ ( t ) ) 1 B ( θ ( t ) ) (2b) H ( z , θ ( t ) ) = I z A ( θ ( t ) ) 1 ,
which also defines a model structure M ( θ ) by means of G ( z , θ ) and H ( z , θ ) . Following [29], we close the loop with a linear switching control law
u ( t ) = κ i ( x ( t ) ) = F i ( z ) x ( t ) ,
with i N h . We also assume time invariance, therefore θ ( t ) = θ 0 for all t 0 , and let the set D T ( M ) be defined by
D T ( M ) = θ | G M ( θ ) = G ( z , θ 0 ) and H M ( θ ) = H ( z , θ 0 ) ,
that is, the set of all θ that result in models identical to the true system under model structure M ( θ ) . Finally, carry θ ^ N , M as the estimated parameter vector obtained via a direct estimation method [23] after N time instances, then the identifiability of the system can be defined.
Definition 1.
System (2) in closed-loop with (3) is said to be strongly system identifiable (SSI) if
lim N θ ^ N , M = D T ( M )
for all model structures M such that D T ( M ) is nonempty.
The following result, with proof in [29], guarantees identifiability of the system.
Lemma 1.
Suppose (a) G ( 0 , θ 0 ) F i ( 0 ) = 0 for all i N h , (b) the closed-loop system is asymptotically stable, (c) the set D T ( M ) is nonempty, and (d) H ( 0 , θ 0 ) = I with all zeros of det [ H ( z , θ 0 ) ] lie strictly outside the unit circle. If h > 1 + m / n , then system (2) in closed-loop with (3) is SSI.
Remark 1.
Lemma 1 can be extended to include more general control laws, however additional assumptions are needed [23]. In both cases, the presence of a random disturbance w e ( t ) is necessary to guarantee the system does not converge to an equilibrium before enough informative data has been gathered. Finally note that, given our system parametrization in (1a), and the model structure in (2), D T ( M ) contains θ 0 and therefore is non-empty, fulfilling some of the requirements of Lemma 1.

3. SMPC for Estimation of LTV Systems

3.1. The Time Invariant Case

We first address the problem of designing an SMPC controller that fulfills the requirements of Lemma 1 in order to guarantee SSI in an LTI context, that is θ ( t ) = θ 0 a constant value from Θ . We do so since the results in [23,29] apply only to invariant systems. In particular, we seek a switching controller that is robustly stabilizing, and include h > 1 + m / n different controllers like (3).

3.1.1. Robust SMPC

We begin by defining a single instance of a stabilizing robust MPC controller for a particular i N h . To do so we assume w e ( t ) bounded within a compact and convex set W e , and define a nominal model characterized by θ ¯ i Θ with A ¯ i , B ¯ i = A ( θ ¯ i ) , B ( θ ¯ i ) , which allows us to recast (1a) as
x ( t + 1 ) = A ¯ i x ( t ) + B ¯ i u ( t ) + w e ( t ) + w p , i ( t ) ,
where w p ( t ) is a parametric uncertainty. The latter lies within W p , i , which is also a compact and convex in view of Assumptions 1 and 2, therefore we can group the entire disturbance in w i ( t ) W i = W e W p , i . Following the construction of the nominal model in (4), we introduce some notions of set invariance for controller design.
Definition 2.
Any set T X is an admissible robust positive invariant (RPI) set for x ( t + 1 ) = A ¯ i x ( t ) + B ¯ i u ( t ) + w ( t ) in closed-loop with a stabilizing gain K i R m × n if A ¯ i + B ¯ i K i T W i T and K i T U . If W i = 0 then T is called an admissible positive invariant (PI) set.
We propose a tube MPC (TMPC) controller [30], characterized by an optimal control problem (OCP)
(5a) P i ( x ( t ) ) min u ¯ , x ¯ 0 J N i ( u ¯ , x ¯ 0 )   subject to ( for k = 0 , , N i 1 ) : (5b) x ( t ) x ¯ 0 S i , x ¯ k + 1 = A ¯ i x ¯ k + B ¯ i u ¯ k (5c)     x ¯ k X S i (5d)     u ¯ k U K i S i (5e) x N X f , i ,
where x ¯ k , u ¯ k are nominal predictions made throughout a horizon of length N i , while u ¯ = u ¯ 0 , , u ¯ N i 1 is the input sequence to be optimized. The OCP is characterized by its cost function (5a), and prediction model (5b), as well as its state and and input constraints (5c) and (5d). The latter are tightened by a set S i to account for the external unknown disturbances arising from W i , thus we define S i to be RPI for a given stabilizing gain K i according to Definition 2. Finally, the terminal constraint (5e) is defined by a set X f , i that is PI for the system and the same stabilizing gain K i (cf. Definition 2). Furthermore, we consider a standard cost definition
J N i ( u ¯ , x ¯ 0 ) = k = 0 N i 1 x ¯ k Q i 2 + x ¯ k R i 2 + x ¯ N P i 2 ,
where Q i and R i are the state and input weights, while P i is a terminal penalty designed for stability purposes, for which the following result holds (cf. [6,30] for a detailed proof).
Proposition 1.
Suppose Q i , R i 0 , that P i is chosen as the solution to the discrete algebraic Riccati equation for A ¯ i , B ¯ i , K i , Q i and R i and that OCP (5) is feasible for x ( t ) with solution u ¯ ( x ( t ) ) , x ¯ 0 ( x ( t ) ) . If the loop is closed with u ( t ) = χ i ( x ( t ) ) = u ¯ 0 ( x ( t ) ) + K i x ( t ) x ¯ 0 ( x ( t ) ) , then OCP (5) is feasible and constraints (1b) are met for all times greater than t, there exists constants c i > 0 and λ i 0 , 1 such that | x ¯ 0 ( x ( t + τ ) ) | 2 < c i λ i τ | x ¯ 0 ( x ( t ) ) | 2 , and the set S i is exponentially stable for the closed-loop trajectories for all times greater than t.
An important consequence of the control law defined in Proposition 1 is that at any t s with x ( t s ) S i , the optimum of OCP (5) is u ¯ 0 ( x ( t s ) ) = x ¯ 0 ( x ( t s ) ) = 0 , thus χ i ( x ( t ) ) reduces to a linear feedback such as in (3). We therefore propose the implementation of a switching scheme in which h > 1 + m / n different tube MPC controllers—with independent design parameters θ ¯ i , N i , Q i , R i and K i —are employed in the control of system (1a), thus satisfying the minimum number of controllers required by Lemma 1. Nevertheless, unrestricted switching between these controllers may lead to unstable closed-loop trajectories, even if they are all independently stabilizing.

3.1.2. Minimum Dwell Times

In a general switching framework, the dynamics of a system are assumed to undergo instantaneous changes at discrete times between several known operating modes, for which independent or coupled controllers can be designed [2]. The concept of MDT is used to define the minimum amount of time a mode needs to be active before a change, so as to guarantee stability of the overall closed-loop trajectories, and depending of the approach they can be considered a design parameter [27] or a boundary condition for controller design [28]. In our LTI setup the dynamics are invariant, and there are no different operating modes, which is why we referred to θ ¯ i as a parameter open for design. Indeed, the switch between controllers is a feature we include for the purpose of generating informative data, therefore we can consider MDTs as a design parameter, and thus provide an explicit definition.
Definition 3.
For any pair i , j N h such that i j , the MDT τ i j is the minimum amount of time steps that controller i must remain active before switching into controller j.
For the computation of MDTs that guarantee feasible and stable switching we implement previous results described in [2], where several alternatives are proposed. For brevity we focus in those that apply to independently designed TMPC controllers with a known feasibility region X ¯ N i S i X , which is the set that contains all states x for which OCP (5) is feasible. We now recall the relevant results from [2] adjusted to our setup.
Assumption 3.
There exist a collection of sets Ω i for i N h such that Ω i X ¯ N i is PI for the nominal dynamics x ¯ 1 ( x ( t ) ) = A ¯ i x ¯ 0 ( x ( t ) ) + B ¯ i u ¯ 0 ( x ( t ) ) and that fulfils S i S j Ω j for all j N h .
For any pair i , j N h define τ i j f as the minimum positive scalar such that
S i Ω i B r ¯ i τ i j f S j Ω j ,
where r ¯ i τ = n c i λ i τ max x Ω i | x | 2 , then the following result holds (cf. [2] for a detailed proof).
Proposition 2.
For any i , j , l N h , if at time t control law χ i became active with x ( t ) S i Ω i and all subsequent switches from χ j to χ l occur after at least τ j l f time steps, then the set
O = i N r S i Ω i
is an RPI set for the closed-loop dynamics.
Remark 2.
The collection of sets Ω i from Assumption 3 might seem challenging to define. However, note that there are several alternatives that fulfill the first part of Assumption 3 such as X ¯ N i , X ¯ N i 1 and β X f , i with β 0 , 1 . Moreover, the inclusion in the second part becomes easily verified as β 0 .
Proposition 2 not only guarantees feasible switching, but also defines O as a neighborhood of the origin where the closed-loop lies, analogue to S i for a single TMPC. Indeed, similar arguments can be exploited to find τ i j s such that
S i X ¯ N i B r i τ i j s S j Ω j ,
where r i τ = n c i λ i τ max x X ¯ N i | x | 2 , and at any time controller χ i became active feasibly, enforcing a dwell time of τ i j s guarantees convergence to O , after which τ i j f enforces permanence. This allows us to formalize the main result of this paper.
Theorem 1.
Suppose Assumptions 1–3 hold, and that h > 1 + m / n TMPC controllers are designed according to Proposition 1. If the switching between said controllers is subject to MDTs τ i j f and/or τ i j s as defined by (6) and (7), then the LTI system is SSI according to Lemma 1.
Proof. 
Follows straightforwardly by noticing that the proposed switching scheme guarantees robust exponential stability of O for the closed-loop, as well as the minimum amount of controllers needed.    □
We finish by recalling the concept of a switching sequence (SSQ), which is used to describe the order in which the switching can or will occur. In our context, the switching is an arbitrary phenomenon, fabricated to ensure data informativity, therefore its sequence of occurrence is also a design parameter. In our context each mode is only allowed to switch into itself and one other, therefore the set of allowable changes for mode i N h can be defined by E i = j for some j N h such that the dwell times are minimized. An evident choice of SSQ is that which minimizes waiting between changes, therefore accelerating the convergence of the limit in Definition 1. Given this, and with a slight abuse of notation, we henceforth refer to the dwell-time of controller i as τ i f .

3.2. Extension to LTV Systems

Given the fabricated switching architecture, none of our controllers requires to be designed for the true θ 0 system dynamics. Indeed, the prediction models θ ¯ i of each mode are a design parameter, and the stabilizing and constraint admissibility properties of the proposed SMPC depend only on the construction of the collection of sets Ω i and the enforcement of the appropriate dwell-times. This is the case even if the true dynamics are varying (represented by θ ( t ) ), yet Theorem 1 ceases to be valid in the LTV case because SSI is lost.
Nevertheless, and given the flexibility of the proposed SMPC, we can recover a weaker form of identifiability when considering a limited form of variation, as described by the following Corollary to Theorem 1.
Corollary 1.
Suppose Assumptions 1–3 hold, and that h > 1 + m / n TMPC controllers are designed according to Proposition 1. If the switching between said controllers is subject to MDTs τ i j f and/or τ i j s as defined by (6) and (7), then the LTV system is piecewise SSI according to Lemma 1  t 0 such that θ ( t ) θ ( t 1 ) = 0 .
Proof. 
Follows straightforwardly from the proof of Theorem 1.    □

4. Adaptive SMPC

Corollary 1 guarantees a form of piecewise SSI for (1a), however we have not yet defined an algorithm for direct identification, nor a procedure for controller adaptation, both of which need to account for the LTV dynamics and external perturbation.

4.1. Recursive Identification

For the task of obtaining a parameter estimate θ ^ ( t ) we propose the implementation of a standard RLS algorithm with forgetting factor. Given (1a), we define a linear regression model
x ( t | θ ( t ) ) = ϕ ( t ) θ ( t )
where ϕ ( t ) = x ( t 1 ) u ( t 1 ) is the regressor vector at time t. With this, the RLS recursion is defined by [16]
(8a) θ ^ ( t ) = θ ^ ( t 1 ) + E 1 ( t ) ϕ ( t ) x ( t ) ϕ ( t ) θ ^ ( t 1 ) (8b) E ( t ) = λ E ( t 1 ) + ϕ ( t ) ϕ ( t ) ,
where the data matrix E ( t ) is continuously updated according to the forgetting factor λ 0 , 1 , which exponentially reduces the weight of older data in producing the estimate. Note that λ = 1 implies a perfect memory, with increased forgetting as λ decreases.
An appropriate selection of the forgetting factor is critical for LTV systems since, after enough dynamic variation, older data does not represent the current dynamics, and therefore a large amount of forgetting would be advisable. Nevertheless, when certain outputs are strongly influenced by external disturbances, a rapid discarding of older information ( λ 1 ) effectively reduces the filtering capabilities of the RLS, leading to poor identification performance. To reduce convergence times, even in presence of large variations in plant dynamics and external disturbances, we propose to set λ 1 an implement an alarm to trigger a reset of the data matrix E ( t ) .
We first define the quadratic prediction error obtained through the current estimates by
e ( t ) = x ( t ) ϕ ( t 1 ) θ ^ ( t 1 ) 2 ,
and note, a variation of the system dynamics will result in an increase of e ( t ) due to the lag in convergence of the RLS algorithm with λ 1 . However, e ( t ) alone cannot be used as a reset trigger given that external random perturbations will induce variability in the estimate θ ^ ( t ) a thus yield instantaneous growth in e ( t ) . To avoid unwanted elimination of information, we propose an alarm based on the second order backward finite difference of the quadratic error
a ( t ) = Δ 2 e ( t )
which will exhibit a sharp rise in the presence of plant variation [31]. This allows the use of a threshold a ¯ to trigger a reset of E ( t ) , enabling the RLS to quickly adapt to the new system behavior while retaining the filtering capabilities of λ 1 .
Remark 3.
This method requires the design of a dead-time T a after a trigger, to prevent repeated alarms while the estimates are still adapting to the new dynamics. Therefore, the implementation of this alarm introduces two additional design parameters that must be tuned for each application ( a ¯ and T a ).

4.2. Adaptive SMPC Algorithm

Once the estimates have converged, closed-loop performance would benefit from stopping the switching, and employing a controller specifically designed for the current estimates. Our stabilizing switching framework allows this in a straightforward manner. Indeed, according to Corollary 1 the closed-loop is stable while the robust control laws χ i x ( t ) are in an SSQ defined by the corresponding MDTs τ i f . Thus, a new TMPC controller can be designed during operation, at any time the estimates are considered converged in view of e ( t ) . Furthermore, a switch into this new TMPC controller can be achieved safely by the computation of proper MDTs, and once an alarm is triggered, a return to switching can continue according to the originally feasible switching sequence. Algorithm 1 summarizes the proposed architecture.
Algorithm 1 Adaptive SMPC
   Offline:
  1:
Design h TMPC controllers according to Section 3.1.1
  2:
Design an SSQ according to Section 3.1.2
  3:
Define λ , a ¯ and T a according to the specific application
  4:
Initialize E ( 0 ) = 0 and k N h
  5:
Initialize counters c = 0 and t a = 0
   Online:
  6:
for  t 0   do
  7:
      Acquire x ( t )
  8:
      Update θ ^ ( t ) with (8)
  9:
      Compute e ( t ) and a ( t ) with (9) and (10)
10:
      if  e ( t ) has converged then
11:
          do Parallel newTMPC( θ ^ ( t ) )
12:
             Stop updating E ( t )
13:
             Design a new TMPC for A θ ^ ( t ) , B θ ^ ( t )
14:
             Compute MDTs to and from the original h switching controllers
15:
             Switch according to new MDT
16:
             Deactivate SSQ
17:
          end do Parallel
18:
      end if
19:
      if  a ( t ) > a ¯ & t a T a  then
20:
          Set t a = 0 and E ( t ) = 0
21:
          if If SSQ inactive then
22:
               Activate original SSQ
23:
          end if
24:
      end if
25:
      if  c τ k f  then
26:
          Set c = 0
27:
          Update k from E k
28:
      end if
29:
      Solve (5) and set u ( t ) = χ k ( x ( t ) ) and apply to plant
30:
      Update c = c + 1 and t a = t a + 1
31:
end for
Algorithm 1 can be separated into the necessary steps for operation with and without online adaptation, however Steps 1 to 5 are the offline design required in both cases. If online adaptation is disregarded, the switching control architecture is entirely described by Steps 7 to 9 and Steps 25 to 30, which guarantee robust stabilizability by enforcing the necessary dwell-times and the correct switching. Necessary also are Steps 19 to 24 represent the implementation of the alarm, which resets the data matrix E ( t ) when the prediction error grows and allows for quick and unbias convergence of the estimates θ ^ ( t ) .
Online adaptation is defined by Steps 10 to 18, which describe an arbitrary adaptation process consisting of the design of a new TMPC and the computation of appropriate MDTs for safe switching. This flexibility is allowed by our robust switching scheme, which ensures robust stabilizability with a varying number of indepdendently designed controllers, provided the necessary MDTs are respected. These steps do not impact the guarantees provided by Corollary 1, nor the need for an alarm to reset the RLS information. Therefore, and for clarity of exposition, we do not implement them in the following numerical demonstration.

5. Illustrative Example

To demonstrate the operation of our adaptive switching controller we employ a mass-spring-damper system, where the states are position and velocity of the mass, while the input is a scalar force aligned with the degree of freedom. We discretize the system with T s = 0.1 s and Table 1 shows the bounds within which the systems physical parameters may vary according to Assumption 2. Finally, the system is supposed to be subject to box-type constraints.
(11a) X = x 15 , 15 × 30 , 30 (11b) U = e 1 , 1 × 10 3 (11c) W e = w e 0.1 , 0.1 × 0.1 , 0.1 ,
which fulfills Assumption 1 and allows for the computation of the required invariant sets. All calculations were carried out in MATLAB R2023b, using a seed generation to ensure that the random external perturbation sequence w e ( t ) was the same in all the simulations we compare.
Table 1. Physical parameters of the mass-spring-damper system.

5.1. Switching Controller Design

Our operating assumption is that we do not know the current or future physical condition of the plant, beyond the fact that it is bounded according to Assumption 2, therefore the design of our controllers begins with the choice of a prediction model, and is followed by the TMPC parameters for each mode. According to Propositions 1 and 2, the design can be carried out independently for each mode, however all together define the MDTs, and therefore the design procedure becomes iterative in the search for dwell-time length and meeting the guarantees for SSI. For our example we set h = 3 , according to Lemma 1, and impose constraints (11) for all controllers, with the remaining design parameters presented in Table 2. Note that the system is not changing between different operating modes, and the only reason for the switching between different TMPC controllers is the need for informative data. Hence, whenever possible, we would like to employ the same parameters for all controllers, indicating a single design goal. In particular we set all cost matrices Q i , R i and horizons N i equal.
Table 2. Design parameters for all controllers.
Oppositely, the selection of the stabilizing gains K i is driven by the search for short MDTs and the practical realization of the requirements of Lemma 1. The quantity of controllers required by Lemma 1 arises from a full rank constraint over
F = I I I K 1 K 2 K 3 ,
which is easily achieved in theory with h linearly independent gains K i , yet in practice we noticed that the SSI feature was not well exploited by the RLS algorithm when F was close to singular or if two of its eigenvalues were similar. This phenomenon is expected, since SSI relies on a distinguishable behavior between the different closed-loop control laws. Given the importance of generating informative data, we focused on the condition of F for the selection of the gains K i . In particular, when we set K i to the LQR gain of the respective modes, the minimum eigenvalue of F was 0.0007 , and the difference between the remaining two was under 10%, leading to a poor estimation performance overall. Thus, we used pole placement techniques to compute heterogeneous state-feedback gains (with poles and gains reported in Table 2), which resulted in F with eigenvalues 0.87 , 3.00 , 6.22 .
In order to find the switching sequence that minimizes the waiting time, we computed MDTs from each mode into the other two. The results in Table 3 show that all permutations have similar aggregated MDTs, thus we choose an SSQ 1-2-3, with a total of 161 time steps, which amounts to 16.1 s considering the sampling time.
Table 3. MDTs for all possible switches.

5.2. Non-Switching Baseline

We simulate the plant with two instances of parameter variation, as described in Table 4, while Table 5 presents the RLS and adaptation parameters which were tuned for this particular example in view of the size of w e ( t ) . Notice that none of the true operating conditions matches our prediction models nor the imposed bounds on the physical parameters, owing to our assumption of unknown but bounded variation. For a better visualization of the estimates behavior we define a logarithmic measure of the percentage error
p θ ^ r ( t ) = log 10 θ ^ r ( t ) θ r ( t ) θ r ( t ) × 100 ,
where the superindex r indicates element-wise operations over element r.
Table 4. Operating modes during simulation.
Table 5. RLS and adaptation design parameters.
We first simulate a baseline characterized by a non-switching controller fixed at i = 3 and without resetting the information matrix E ( t ) . Figure 1 shows the evolution of the estimation error for a selection of parameters in θ ^ ( t ) for three different forgetting factors, and Table 6 shows the variance of the estimated value during the last 200 steps of simulation, which represents a span of time with invariant dynamics.
Figure 1. Time evolution of the estimates log 10 percentage error for a subset of θ ^ ( t ) without switching and without resetting of E ( t ) : (a) θ ^ r ( t ) = A ^ 12 ( t ) , (b) θ ^ r ( t ) = A ^ 22 ( t ) and (c) θ ^ r ( t ) = B ^ 21 ( t ) .
Table 6. Variance of the estimates log 10 percentage error for a subset of θ ^ ( t ) without switching and without resetting of E ( t ) .
From Table 6 we observe that an increase in λ reduces the variability of the estimates by increasingly averaging the effect of the external perturbation. Nevertheless, the recursive estimation is feed with closed-loop data generated with a single controller, and therefore the estimates are biased, with an estimation error close to 100% in the best scenario (for λ = 0.99 , 1 ) (cf. Figure 1). Furthermore, notice that the bias of A ^ 12 ( t ) is up to 4 orders of magnitude larger than for the other presented parameters, which can be explained by the mass-spring-damper dynamics. Indeed A ^ 12 ( t ) represents the effect of velocity over position, which is an internal state transition of the system, while the force input acts directly only over the velocity rate, and therefore their interaction is explicit in the closed-loop data.

5.3. Switching for Informativity

Figure 2 shows the error evolution for all forgetting factors when switching took place according to the selected SSQ and the computed MDTs, yet without resetting the information matrix E ( t ) . As expected, the RLS with full memory underperform given that it cannot forget the outdated dynamics after variations occur. Oppositely, the case with λ = 0.999 is able to converge to unbiased estimates with errors under 0.1% in some parameters (e.g., θ ^ r ( t ) = A ^ 22 ( t ) )—a result of the SSI condition achieved by switching among controllers according to Corollary 1. Nevertheless, the estimation error with λ = 0.99 does not converge, presenting a variance of 92% even after 300 steps of invariant dynamics, which evidences the need for a low amount of forgetting to address the level of external perturbation W e of this example.
Figure 2. Time evolution of the estimates log 10 percentage error for a subset of θ ^ ( t ) with switching and without resetting of E ( t ) : (a) θ ^ r ( t ) = A ^ 12 ( t ) , (b) θ ^ r ( t ) = A ^ 22 ( t ) and (c) θ ^ r ( t ) = B ^ 21 ( t ) .
Finally, Figure 3 shows the time evolution of the estimates obtained via switching controllers, with and without resetting of E ( t ) , for λ = 1 and λ = 0.999 respectively. Again we observe unbiased convergence thanks to the switching, and that resetting the information matrix E ( t ) allows for faster convergence of the parameters that interact directly with the input (such as A ^ 22 ( t ) and B ^ 21 ( t ) ). For A ^ 12 ( t ) we obtain similar convergence rate with and without resetting, which may be a result of the indirect interaction between position and force in the mass-spring-damper system. However, resetting the information matrix allows a selection of λ = 1 , improving the filtering capabilities of the RLS and decreasing the variability of the converged estimate error, as depicted in Table 7.
Figure 3. Time evolution of the estimates for a subset of θ ^ ( t ) with switching: (a) θ ^ r ( t ) = A ^ 12 ( t ) , (b) θ ^ r ( t ) = A ^ 22 ( t ) and (c) θ ^ r ( t ) = B ^ 21 ( t ) .
Table 7. Variance of the estimates log 10 percentage error for a subset of θ ^ ( t ) with switching.

5.4. Closed-Loop Results

An important requirement of Lemma 1—and of control systems in general—is a stable closed-loop behavior, which is guaranteed by Theorem 1 for our adaptive switching scheme. Figure 4 shows a phase-plot of the state trajectories for λ = 1 with and without switching (fixed at controller i = 3 ), where in both cases the trajectories converge to a neighborhood of the origin. Without switching the closed-loop converges to the inside of set S 3 , while in the switching case to a subset of the intersection of the RPI sets of all modes, as guaranteed by the appropriate computation and enforcement of MDTs. We also observe that, once converged, both trajectories are contained within bounding boxes of similar size. After convergence, the variance in the position is 33% lower when switching took place, while the velocity variance grows only 2.8 times (see Table 8), which confirms that the unbiased convergence of the estimates is not a result of larger oscillations, but of the informative data guaranteed by the switching control law.
Figure 4. Phase plot of the state trajectories with and without switching: RPI sets S 1 , S 2 and S 3 .
Table 8. Variance of the states trajectories after convergence.

6. Conclusions

In this paper we have shown that a switching MPC architecture with guaranteed stability and constraint satisfaction is able to generate informative data in closed-loop, without the inclusion of purposeful excitation, nor the modification of the standard MPC optimal control problem. The results show that the piece-wise linearity of the control law is not only sufficient, but necessary for the unbiased convergence of the RLS, even in the presence of external uncontrolled disturbances. Moreover, our data matrix reset trigger allows the recursive estimation algorithm to account for confined instances of variation in the the plant, while retaining filtering capabilities. Future work will focus on the implementation of subspace identification methods, to work towards an output tracking framework.

Author Contributions

Conceptualization, B.A.H.V.; software, I.A.S.C.; validation, B.A.H.V.; formal analysis, I.A.S.C.; investigation, I.A.S.C.; methodology, I.A.S.C.; data curation, I.A.S.C.; writing—original draft preparation, B.A.H.V.; writing—review and editing, B.A.H.V.; visualization, B.A.H.V.; supervision, B.A.H.V.; funding acquisition, B.A.H.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research and the APC were funded by Agencia Nacional de Investigación y Desarrollo (ANID) under FONDECYT de iniciación grant 11230330.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ma, A.; Li, D.; Xi, Y. Robust tube-based distributed MPC for PWA systems. IET Control Theory Appl. 2023, 17, 2205–2214. [Google Scholar]
  2. Vicente, B.A.H.; Trodden, P.A. Switching Tube-Based MPC: Characterization of Minimum Dwell-Time for Feasible and Robustly Stable Switching. IEEE Trans. Autom. Control 2019, 64, 4345–4352. [Google Scholar]
  3. Lin, M.; Ning, Z.; Li, B.; Zhang, K. Adaptive dual model predictive control for linear systems with parametric uncertainties. IET Control Theory Appl. 2022, 16, 1075–1085. [Google Scholar] [CrossRef] [Scilit]
  4. Zeng, Z.; Wang, H.; Shan, Y. Data-Driven Koopman Operator-Based Model Predictive Control with Adaptive Dictionary Learning for Nonlinear Industrial Process Optimization. Mathematics 2026, 14, 1320. [Google Scholar] [CrossRef] [Scilit]
  5. Gulewicz, D.; Inyang-Udoh, U.; Bird, T.; Jain, N. Nonlinear Model Predictive Control of a Hybrid Thermal Management System. IEEE Trans. Control Syst. Technol. 2025, 34, 892–905. [Google Scholar] [CrossRef] [Scilit]
  6. Rawlings, J.B.; Mayne, D.Q.; Diehl, M.M. Model Predictive Control: Theory, Computation and Design, paperback ed.; Nob Hill Publishing: Madison, WI, USA, 2020. [Google Scholar]
  7. Gao, Y.; Gray, A.; Tseng, H.E.; Borrelli, F. A tube-based robust nonlinear predictive control approach to semiautonomous ground vehicles. Veh. Syst. Dyn. 2014, 52, 802–823. [Google Scholar] [CrossRef] [Scilit]
  8. Trodden, P. A One-Step Approach to Computing a Polytopic Robust Positively Invariant Set. IEEE Trans. Autom. Control 2016, 61, 4100–4105. [Google Scholar] [CrossRef] [Scilit]
  9. Adetola, V.; DeHaan, D.; Guay, M. Adaptive model predictive control for constrained nonlinear systems. Syst. Control Lett. 2009, 58, 320–326. [Google Scholar] [CrossRef] [Scilit]
  10. Gonçalves, G.A.; Guay, M. Robust discrete-time set-based adaptive predictive control for nonlinear systems. J. Process Control 2016, 39, 111–122. [Google Scholar] [CrossRef] [Scilit]
  11. Lorenzen, M.; Cannon, M.; Allgöwer, F. Robust MPC with recursive model update. Automatica 2019, 103, 461–471. [Google Scholar] [CrossRef] [Scilit]
  12. Anderson, A.; González, A.; Ferramosca, A.; D’Jorge, A.; Kofman, E. Robust MPC suitable for closed-loop re-identification, based on probabilistic invariant sets. Syst. Control Lett. 2018, 118, 84–93. [Google Scholar]
  13. Heirung, T.A.N.; Ydstie, B.E.; Foss, B. Dual adaptive model predictive control. Automatica 2017, 80, 340–348. [Google Scholar] [CrossRef] [Scilit]
  14. Larsson, C.A.; Rojas, C.R.; Bombois, X.; Hjalmarsson, H. Experimental evaluation of model predictive control with excitation (MPC-X) on an industrial depropanizer. J. Process Control 2015, 31, 1–16. [Google Scholar] [CrossRef] [Scilit]
  15. Green, M.; Moore, J.B. Persistence of excitation in linear systems. Syst. Control Lett. 1986, 7, 351–360. [Google Scholar] [CrossRef] [Scilit]
  16. Ljung, L. System Identification Theory for the User, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1998; p. 640. [Google Scholar]
  17. Genceli, H.; Nikolaou, M. New approach to constrained predictive control with simultaneous model identification. AIChE J. 1996, 42, 2857–2868. [Google Scholar] [CrossRef] [Scilit]
  18. Lu, X.; Cannon, M.; Koksal-Rivet, D. Robust adaptive model predictive control: Performance and parameter estimation. Int. J. Robust Nonlinear Control 2021, 31, 8703–8724. [Google Scholar]
  19. Lu, X.; Cannon, M. Robust adaptive model predictive control with persistent excitation conditions. Automatica 2023, 152, 110959. [Google Scholar] [CrossRef] [Scilit]
  20. Hernandez Vicente, B.A. Eigenvalue Characterization of Persistence of Excitation for Convex Adaptive Predictive Control. Int. J. Adapt. Control Signal Process. 2026, 1–11. [Google Scholar]
  21. Vicente, B.A.H.; Trodden, P.A. Stabilizing predictive control with persistence of excitation for constrained linear systems. Syst. Control Lett. 2019, 126, 58–66. [Google Scholar] [CrossRef] [Scilit]
  22. Zhu, Y.; Yan, W.; Zhu, Y. MPC closed-loop identification without excitation. J. Process Control 2021, 106, 122–129. [Google Scholar] [CrossRef] [Scilit]
  23. Soderstrom, T.; Ljung, L.; Gustavsson, I. Identifiability conditions for linear multivariable systems operating under feedback. IEEE Trans. Autom. Control 1976, 21, 837–840. [Google Scholar] [CrossRef]
  24. Shorten, R.; Wirth, F.; Mason, O.; Wulff, K.; King, C. Stability Criteria for Switched and Hybrid Systems. SIAM Rev. 2007, 49, 545–592. [Google Scholar] [CrossRef] [Scilit]
  25. Ong, C.J.; Wang, Z.; Dehghan, M. Model Predictive Control for Switching Systems With Dwell-Time Restriction. IEEE Trans. Autom. Control 2016, 61, 4189–4195. [Google Scholar] [CrossRef] [Scilit]
  26. Dehghan, M.; Ong, C.J. Discrete-time switching linear system with constraints: Characterization and computation of invariant sets under dwell-time consideration. Automatica 2012, 48, 964–969. [Google Scholar] [CrossRef] [Scilit]
  27. Bridgeman, L.J.; Danielson, C.; Di Cairano, S. Stability and feasibility of MPC for switched linear systems with dwell-time constraints. In Proceedings of the 2016 American Control Conference (ACC), Boston, MA, USA, 6–8 July 2016; pp. 2681–2686. [Google Scholar]
  28. Zhang, L.; Zhuang, S.; Braatz, R.D. Switched model predictive control of switched linear systems: Feasibility, stability and robustness. Automatica 2016, 67, 8–21. [Google Scholar] [CrossRef] [Scilit]
  29. Ljung, L.; Gustavsson, I.; Soderstrom, T. Identification of linear, multivariable systems operating under linear feedback control. IEEE Trans. Autom. Control 1974, 19, 836–840. [Google Scholar] [CrossRef]
  30. Mayne, D.Q.; Seron, M.M.; Raković, S.V. Robust model predictive control of constrained linear systems with bounded disturbances. Automatica 2005, 41, 219–224. [Google Scholar] [CrossRef] [Scilit]
  31. Hansen, P.C. Rank-Deficient and Discrete Ill-Posed Problems: Numerical Aspects of Linear Inversion; Mathematical Modeling and Computation; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 1998; Volume 4. [Google Scholar]
  32. Kolmanovsky, I.; Gilbert, E.G. Theory and computation of disturbance invariant sets for discrete-time linear systems. Math. Probl. Eng. 1998, 4, 934097. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.