Floquet-Parameterized Koopman-MPC for Tracking Periodic Orbits
Designing real-time control for nonlinear systems to track periodic orbits can be challenging, especially for complex and coupled dynamical systems (e.g., tethered kites), where the true model parameters are hard to obtain. To address this, we propose a physics-informed Koopman learning approach that incorporates periodic-orbit stability directly into the learned linear predictor.
From the abstract. Our summary is in progress.
Full paper
Floquet-Parameterized Koopman-MPC for Tracking Periodic Orbits
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.11050 (PDF).
Abstract
Designing real-time control for nonlinear systems to track periodic orbits can be challenging, especially for complex and coupled dynamical systems (e.g., tethered kites), where the true model parameters are hard to obtain. To address this, we propose a physics-informed Koopman learning approach that incorporates periodic-orbit stability directly into the learned linear predictor. The approach combines the underlying periodic structure of the dynamics along with periodic state-input trajectory data to learn physically consistent linear predictors (in lifted/observable space). We leverage Floquet theory, which studies the stability of periodic orbits in nonlinear systems, to obtain the periodic stability information of a given orbit via a monodromy matrix (i.e., the state transition matrix over an entire period). Subsequently, we impose open-loop monodromy constraints to learn Floquet-parameterized linear predictors using a least-squares Extended Dynamic Mode Decomposition (EDMD) formulation, thereby constraining the search space and aiding in Koopman learning. We then utilize these linear predictors to design a model predictive control (MPC) law for tracking periodic references. Finally, we evaluate the designed framework on a cartpole system under periodic forcing and compare it against a purely data-driven baseline.
Index Terms:
Koopman operator, Floquet theory, periodic orbits, data-driven method, and model predictive control.
I Introduction
Many complex engineering systems exhibit periodic behavior during operation, either naturally or in response to a forcing input (e.g., walking in humanoid robots, tethered kites looping in a figure-of-eight path, etc.). In many cases, disturbances and environmental effects push these systems far from their reference, leading to sustained periodic oscillations that can build up and cause catastrophic failure (e.g., a humanoid robot falling to the ground or kites spinning violently). Thus, tracking controllers must stabilize trajectories despite large deviations from the reference, enabling resilience to unforeseen disturbances.
Nonlinear model predictive control (NMPC) has garnered significant attention in recent years for enabling optimization-based control with theoretical guarantees on stability and constraint satisfaction. However, the biggest challenge in deploying NMPC-based tracking controllers is model complexity and its impact on real-time performance. In particular, for complex, coupled dynamical systems, computational overhead may prevent real-time NMPC implementation. To address these challenges, attention has rapidly shifted toward Koopman operator theory, which comes with an auspicious promise of global representation of nonlinear systems by a linear operator – one that could transform the deployment of mathematically interpretable learning-based controllers for real-world applications.
A significant body of literature explores data-driven methods for learning the Koopman operator [1, 2] and its applications in control [3, 4, 5]. This spurred increased interest in purely data-driven approaches that learn Koopman models directly from data, such as extended dynamic mode decomposition (EDMD)[1]. Although powerful, these methods tend to overfit limited data rather than capture the underlying physics when the lifting functions are not chosen appropriately. Recent works have examined enforcing key dynamic characteristics while learning Koopman models, such as stability [6, 7], dissipativity [8, 9], and sector boundedness [9], to make model learning sample-efficient and physically consistent. For periodic systems, [10] extends Koopman theory by leveraging ideas from Floquet theory [11], resulting in phase-parameterized linear Koopman models; however, the results are limited to autonomous systems without any control inputs.
For control design, the seminal work by Korda et al. [5] established Koopman operators, particularly EDMD, to learn linear and bilinear lifted models and subsequently developed quadratic programs for MPC. Various extensions of Koopman-MPC for regulation and tracking control, along with stability guarantees, have been proposed [12, 13, 14]. Most of the above works focus on general or control-affine nonlinear systems, and very few have explored using Koopman theory for control applications of periodic systems.
To this end, we propose a constrained EDMD-based Koopman-MPC formulation for tracking periodic orbits. We first derive the relationship between the monodromy matrix (i.e., the state transition matrix over an entire period) of the original system (along a periodic orbit) and that of the lifted system. Subsequently, we use the derived monodromy relation to learn a linear time-periodic model from state-input trajectory data using a constrained EDMD formulation. Finally, we use the learned lifted model, which captures/preserves the phase-based cyclic structure, to formulate the MPC optimization as a quadratic program in the lifted space for tracking periodic orbits.
The rest of this paper is organized as follows. Section II presents the preliminaries on Floquet theory for nonlinear periodic systems. Section III formulates the tracking control problem for periodic systems with model mismatch. In Section IV, we present the relationship between the periodic stability of the original system and that of the learned system and utilize it in a constrained EDMD formulation to learn a lifted model. We then present a Koopman MPC formulation for control design to track periodic orbits using the learned model. Section V provides an illustrative numerical example of our proposed approach. Section VI concludes the paper.
II Preliminaries
In this section, we present preliminaries on Floquet theory for nonlinear time-periodic systems.
II-A Floquet Theory: Stability of Periodic Solutions
Consider a non-autonomous T-periodic discrete-time nonlinear system governed by
x_{k+1}=f(x,k),\quad f(\cdot,k+T)=f(\cdot,k),where k\in\mathbb{Z} is the time-index, x_{k}\in\mathcal{X}\subseteq\mathbb{R}^{n_{x}} is the state trajectory starting at x_{k_{0}}=x_{0}, f:\mathcal{X}\times\mathbb{Z}\rightarrow\mathcal{X} is a smooth map, and T\in\mathbb{N} is the period. Let \bar{x} denote the reference periodic orbit of the system in (1). To analyze its stability properties, that is, whether the trajectories that are close to the orbit will converge to the orbit, stay in the vicinity of, or diverge from the orbit, we consider the dynamics of a perturbation y_{k}=x_{k}-\bar{x}_{k} from the periodic solution with y_{0}=y^{0}. Substituting the dynamics in (1), we get
y_{k+1}=f(x_{k},k)-\bar{x}_{k+1}\coloneqq\zeta(k)y_{k}+\mathcal{O}(||{y}||^{2}),where \zeta(k)=\frac{\partial f}{\partial\mathbf{x}}|_{\bar{x}_{k},k} is the Jacobian evaluated along the trajectory of the periodic solution. The approximate linear time-varying (LTV) system can be written as
y_{k+1}=\zeta(k)y_{k},\quad y_{k_{0}}=y_{0}.The equilibrium of the LTV system in (3) is at zero, corresponding to the periodic orbit of the original system. Thus, the stability analysis reduces to the stability of this equilibrium. The fundamental solution matrix (or the state transition matrix) \mathbf{\Omega}(k) is the solution to
\mathbf{\Omega}(k+1)=\zeta(k)\mathbf{\Omega}(k);\quad\mathbf{\Omega}(0)=\mathbf{I}and any state can be obtained by y_{k}=\mathbf{\Omega}(k)y_{0}. The fundamental solution matrix evaluated after a complete period T, \mathbf{\Omega}(T), is called a monodromy matrix, and its eigenvalues \{\mu_{l}\}^{n}_{l=1} are called Floquet multipliers [15]. Thus, the periodic solution is asymptotically stable if all Floquet multipliers lie strictly within the unit circle and unstable if any lies outside it. If multipliers lie on the unit circle with none outside, the solution is non-hyperbolic and requires further analysis to determine stability.
III Problem Formulation
Consider a discrete-time T-periodic parametric nonlinear system governed by
x_{k+1}=f_{p}(x_{k},u_{k},\sigma_{k}),\ f_{p}(\cdot,k+T)=f_{p}(\cdot,k).where x_{k}\in\mathcal{X}\subseteq\mathbb{R}^{n_{x}} is the state, u_{k}\in\mathcal{U}\subseteq\mathbb{R}^{n_{u}} is the input, T is the period, \sigma_{k+1}=(\sigma_{k}+1)\bmod T , with \sigma_{0}=0, and p\in\mathcal{P}\subseteq\mathbb{R}^{n_{p}} are the parameters of the system dynamics. The set \mathcal{X} is closed, \mathcal{U} is compact, and both are polytopic.
Remark 1
The system dynamics in (5) is a generalization of both sources of periodicity, i.e., autonomous systems evolving on a periodic orbit (e.g., a pendulum), and systems driven by exogenous periodic forcing (e.g., tethered kites).
Definition 1 (Periodic orbit)
A pair of sequences \{\bar{\mathbf{x}},\bar{\mathbf{u}}\}, with \bar{\mathbf{x}}=(\bar{x}_{0},\dots,\bar{x}_{T-1}) and \bar{\mathbf{u}}=(\bar{u}_{0},\dots,\bar{u}_{T-1}), is a T-periodic orbit of (5) if
\bar{x}_{k+1}=f_{p}(\bar{x}_{k},\bar{u}_{k},\sigma_{k}),\quad\bar{x}_{k+T}=\bar{x}_{k},\quad\bar{u}_{k+T}=\bar{u}_{k},for all k\in\mathbb{Z}_{\geq 0}, and (\bar{x}_{k},\bar{u}_{k})\in\mathrm{int}(\mathcal{X})\times\mathrm{int}(\mathcal{U}).
These periodic trajectories (or orbits) can be found using Harmonic Balance methods (HBMs)[16] or obtained by solving optimal control problems (OCPs) [17]. Define \delta x_{k} and \delta u_{k} as the variational state and inputs and linearizing (5) about the orbit yields
\delta x_{k+1}=\Omega^{p}_{\sigma_{k}}\,\delta x_{k}+\Gamma^{p}_{\sigma_{k}}\,\delta u_{k},with \Omega^{p}_{\sigma_{k}}\coloneqq\tfrac{\partial f_{p}}{\partial x}\big|_{(\bar{x}_{k},\bar{u}_{k},\sigma_{k})}, \Gamma^{p}_{\sigma_{k}}\coloneqq\tfrac{\partial f_{p}}{\partial u}\big|_{(\bar{x}_{k},\bar{u}_{k},\sigma_{k})}, and \Omega^{p}_{k+T}=\Omega^{p}_{k}, \Gamma^{p}_{k+T}=\Gamma^{p}_{k}. The associated parametric monodromy matrix and Floquet multipliers are
M^{x}_{\sigma_{k}}(p)\coloneqq\Omega^{p}_{\sigma_{k}+T-1}\cdots\Omega^{p}_{\sigma_{k}},\ \ \Lambda(p)\coloneqq\mathrm{spec}(M^{x}_{\sigma_{k}}(p)),where \Lambda(p) is independent of \sigma_{k} and \mathrm{spec}(\cdot) denotes the set of eigenvalues (e.g., eigen spectrum) of a matrix, since the eigenvalues of the monodromy matrices and their multiplicities are independent of the phase [18]. The pair (M^{x}_{\sigma_{k}}(p),\Lambda(p)) encodes the local stability and the multi-step growth behavior of (5) along the orbit.
In this work, we assume a mismatch between the actual model parameters and the nominal model. The true system evolves under an unknown p\in\mathcal{P}, while we only have nominal parameters, \hat{p}\in\mathcal{P}\ |\ \hat{p}\neq p, available. We also have a finite set of measured trajectories, denoted as
\mathcal{D}=\big\{(x^{(i)}_{k},u^{(i)}_{k},x^{(i)}_{k+1},\sigma_{k}^{(i)})\big\}_{i=1}^{D},generated by the true system. The goal is to design a controller that tracks the reference trajectory under model mismatch while satisfying input and state constraints. In particular, we aim to solve the following T-periodic tracking problem in a receding horizon manner:
\displaystyle\min_{\mathbf{u}} \\ \displaystyle\sum_{i=0}^{H-1}\ell\big(x_{k+i}-\bar{x}_{k+i},\,u_{k+i}-\bar{u}_{k+i}\big) \\ \displaystyle\text{s.t.} \\ \displaystyle x_{k+i+1}=f_{\hat{p}}(x_{k+i},u_{k+i},\sigma_{k+i}), \\ \displaystyle x_{k+i}\in\mathcal{X},\quad u_{k+i}\in\mathcal{U},\quad x_{k}=x(k),where f_{\hat{p}}(\cdot) is the nominal model, H is the prediction horizon and \ell is a positive-definite stage cost. Concisely, the problem statement is as follows:
Problem Statement: Given the data \mathcal{D} in (9), and the nominal model f_{\hat{p}}(\cdot), construct a lifted linear T-periodic predictor whose monodromy is consistent with that of the true system (8) by construction. Using the predictor, solve the receding horizon constrained optimization problem (10).
IV Floquet-Parameterized Koopman-MPC
In this section, we first show how the Koopman operator for a T-periodic controlled nonlinear system can be transformed into an autonomous operator with an extended state. We then present a phase-binned EDMD approach that preserves the periodic structure. Furthermore, we derive the relationship between the monodromy matrix of the true system and that of the lifted system. Consequently, we propose a constrained EDMD approach that uses this relation and embeds the periodic stability information of the reference orbit into the lifted model, constraining the search space and enabling physically consistent linear predictors. Finally, using the obtained linear predictors, we present the linear MPC formulation for tracking periodic orbits.
IV-A Koopman Operator for T-Periodic Controlled Systems
We first show that the Koopman operator for T-periodic nonlinear controlled systems can be transformed into an autonomous system. Hence, we can use methods such as EDMD to find finite-dimensional approximations. Furthermore, we can retain the theoretical guarantees associated with the finite-dimensional approximation [5].
We extend the notion of an extended state used in [5] by defining \chi=\left[x_{k}^{\top},\bm{u}^{\top},\sigma_{k}\right]^{\top}\in\mathbb{R}^{n_{x}}\times\ell(\mathcal{U})\times\mathbb{Z}_{T}, where \bm{u}\coloneqq\{u(i)\}_{i=0}^{\infty}\in\ell(\mathcal{U}) with \ell(\mathcal{U}) denoting the space of all the sequences \{u(i)\}_{i=0}^{\infty}. The dynamics of the extended state is f(\chi)=\begin{bmatrix}f(x_{k},\bm{u}(0))^{\top}&(\mathcal{S}\bm{u})^{\top}&\sigma_{k+1}\end{bmatrix}^{\top}, where \mathcal{S} denotes the left shift operator, i.e., \mathcal{S}\bm{u}(i)=\bm{u}(i+1), \bm{u}(i) denote the i^{th} element of the sequence \bm{u} and \sigma_{k+1}=(k+1)\ \text{mod}\ T is the phase shift. Then, we can define the Koopman operator associated with the dynamics of the extended state \chi, on the set of observables \phi(\chi), as (\mathcal{K}\phi)(\chi)\coloneqq\phi\circ f(\chi).
IV-B Phase-binned EDMD and Block-cyclic System Structure
In practice, we truncate the infinite-dimensional Koopman operator for downstream applications, e.g., control (see [5]). In this work, we leverage extended dynamic mode decomposition (EDMD), a data-driven algorithm that constructs the Koopman operator from state-input trajectory data. However, periodic systems retain a cyclic property across system phases. Conventional EDMD for control (EDMDc) loses this periodic structure. To address this, we use phase-binned EDMDc, where the key change is binning the trajectory data (and subsequently the lifting) based on the phase. Define \psi^{[\sigma_{k}]}(x)=e_{\sigma_{k}}\otimes\psi(x),\ \bm{u}^{[\sigma_{k}]}=e_{\sigma_{k}}\otimes\bm{u}(0) as the phase-binned lifting of the state and inputs, where e_{\sigma_{k}}=\begin{bmatrix}\mathbb{I}(\sigma_{k}=1)&\cdots&\mathbb{I}(\sigma_{k}=T)\end{bmatrix}^{\top} and \bm{u}(0)\in\mathbb{R}^{n_{u}} denotes the first element of the sequence \bm{u}. We then construct the observables in the following manner:
\phi(x,\bm{u},\sigma_{k})=\begin{bmatrix}\psi^{[\sigma_{k}]}(x)\\
\bm{u}^{[\sigma_{k}]}\end{bmatrix}\in\mathbb{R}^{n_{\phi}},where n_{\phi}=n_{\psi}T+n_{u}T with n_{\psi} denoting the dimensions of the state observables \psi(\cdot). Assuming that we obtain the phase-binned data (i.e., each data point contains the associated phase) in (9) of the form (\chi_{j},\chi_{j}^{+}),j=\{1\dots D\} satisfying \chi^{+}=f(\chi), the EDMD algorithm seeks to find \mathcal{A}\in\mathbb{R}^{n_{\phi}\times n_{\phi}} minimizing,
\min_{\mathcal{A}}\sum_{j}^{D}||\phi(\chi_{j}^{+})-\mathcal{A}\phi(\chi_{j})||^{2}_{2}.Note that the matrix \mathcal{A} has a sparse block-cyclic internal structure where the first n_{\psi}T rows can be decomposed as \bar{\mathcal{A}}=[\mathbf{A},\mathbf{B}] with \mathbf{A}=\begin{bmatrix}0&\cdots&0&A_{T-1}\\ A_{0}&&&0\\ &\ddots&&\vdots\\ 0&&A_{T-2}&0\end{bmatrix}\in\mathbb{R}^{n_{\psi}T\times n_{\psi}T} and \mathbf{B}=\begin{bmatrix}0&\cdots&0&B_{T-1}\\ B_{0}&&&0\\ &\ddots&&\vdots\\ 0&&B_{T-2}&0\end{bmatrix}\in\mathbb{R}^{n_{\psi}T\times n_{u}T}. Thus, we can write phase-binned EDMDc as the following minimization:
\min_{A_{\sigma_{k}},B_{\sigma_{k}}}\sum_{i}^{D}||\psi(x^{i}_{k+1})-A_{\sigma^{i}_{k}}\psi(x^{i}_{k})-B_{\sigma^{i}_{k}}u^{i}_{k}||^{2}_{2},with A_{\sigma_{k}+T}=A_{\sigma_{k}} and B_{\sigma_{k}+T}=B_{\sigma_{k}}. This implies that for a periodic system, phase-binned EDMDc solves EDMD for each phase \sigma_{k}, yielding a linear time-periodic representation. Choosing the first n_{x} set of observables as the system state and reordering \psi(\cdot) such that \psi_{l}(x_{k})=x_{k}^{(l)} for all l\in\{1,\dots,n_{x}\}, we get the following system of linear equations.
z_{k+1}=A_{\sigma_{k}}z_{k}+B_{\sigma_{k}}u_{k}with z_{0}=[x_{0}^{\top},\psi_{1}(x_{0}),\dots,\psi_{n_{\psi}-n_{x}}(x_{0})]^{\top}. By choosing C=[I,0], where I is the identity matrix of size n_{x}, we can retrieve the state with x_{k}=Cz_{k}.
IV-C Relationship between True and Lifted Monodromy Matrix
Similar to the monodromy matrix of the nonlinear system (8), the predictor (14) has its own T-step transition matrix, or lifted monodromy matrix. We obtain it by composing the phase-indexed blocks over a full period as
M_{\sigma_{k}}^{z}\coloneqq A_{\sigma_{k}+T-1}\cdots A_{\sigma_{k}}\in\mathbb{R}^{n_{\psi}\times n_{\psi}},\quad\sigma_{k}\in\mathbb{Z}_{T},Since M^{z}_{\sigma_{k}} governs the response of the predictor over a period, it determines the periodic stability of (14) over a period of T.
The lifted monodromy (15) acts on \mathbb{R}^{n_{\psi}} while the true monodromy (8) acts on \mathbb{R}^{n_{x}}, so the two are not directly comparable. However, we can derive a relationship between them via the geometry of the dictionary along the orbit. Let
J_{\sigma_{k}}\coloneqq D\psi(\bar{x}_{k})=\frac{\partial\psi}{\partial x}\bigg|_{(\bar{x}_{k},\bar{u}_{k},\sigma_{k})}\in\mathbb{R}^{n_{\psi}\times n_{x}},which sends a tangent perturbation \delta x at \bar{x}_{k} to the induced perturbation \delta\psi=J_{\sigma_{k}}\,\delta x of the lifted state. Since \psi(\cdot) contains the state after the re-ordering as the first n_{x} entries, J_{\sigma_{k}}=[\,I_{n_{x}};\;\star\,] has full column rank for every \sigma_{k}, and J_{\sigma_{k}+T}=J_{\sigma_{k}} by periodicity of the orbit.
Assumption 1 (Local dictionary invariance)
The dictionary \psi(\cdot) is invariant in a neighborhood of the orbit. In other words, for each \sigma_{k}, there exist A_{\sigma_{k}}\in\mathbb{R}^{n_{\psi}\times n_{\psi}} and B_{\sigma_{k}}\in\mathbb{R}^{n_{\psi}\times n_{u}} such that
\psi\big(f_{p}(x,u,\sigma_{k})\big)=A_{\sigma_{k}}\,\psi(x)+B_{\sigma_{k}}\,ufor all x in an open neighborhood of \bar{x}_{k} and all u in an open neighborhood of \bar{u}_{k}. Moreover, \psi(\cdot) is continuously differentiable on these neighborhoods.
Theorem 1 (Monodromy relation)
Consider a nonlinear T-periodic system in (5) with p\in\mathcal{P} as the system parameters. Suppose \{\bar{\mathbf{x}},\bar{\mathbf{u}}\} be a T-periodic orbit of (5) and Assumption 1 hold. Then, the following statements hold:
- (Intertwining) For every
\sigma_{k}\in\mathbb{Z}_{T},A_{\sigma_{k}}J_{\sigma_{k}}=J_{\sigma_{k+1}}\Omega_{\sigma_{k}}^{p},\qquad B_{\sigma_{k}}=J_{\sigma_{k+1}}\Gamma_{\sigma_{k}}^{p}.(18) - (Embedding) The lifted monodromy
M^{z}_{0}\coloneqq A_{T-1}\cdots A_{0}and the true monodromyM_{0}^{x}(p)\coloneqq\Omega_{T-1}^{p}\cdots\Omega^{p}_{0}satisfyM_{0}^{z}J_{0}=J_{0}M_{0}^{x}(p).(19) - (Spectral inclusion)
\operatorname{range}(J_{0})is anM^{z}-invariant subspace, and consequently\Lambda(p)=\operatorname{spec}(M^{x}(p))\subseteq\operatorname{spec}(M^{z}).(20)
Proof:
As a result of Assumption 1, both sides of (17) agree on an open set, implying that their derivatives must also agree. Taking the partial derivative (17) with respect to x at (\bar{x}_{k},\bar{u}_{k}) and using the orbit relation x_{k+1}=f_{p}(x_{k},u_{k},\sigma_{k}), the chain rule gives on the left
\displaystyle D\psi\big(f_{p}(x_{k},u_{k},\sigma_{k})\big)\,Df_{p}(x_{k},u_{k},\sigma_{k}) \\ \displaystyle=D\psi(x_{k+1})\Omega^{p}_{k}=J_{\sigma_{k+1}}\Omega^{p}_{\sigma_{k}},and on the right A_{\sigma_{k}}D\psi(\bar{x}_{k})=A_{\sigma_{k}}J_{\sigma_{k}}. Similarly, taking the partial derivative with respect to u gives J_{\sigma_{k+1}}\Gamma^{p}_{\sigma_{k}} on the left and B_{\sigma_{k}} on the right. This proves the first property.
We now apply (18) repeatedly and use the definition of the monodromy matrix for the true and the lifted system:
\displaystyle A_{0}J_{0} \\ \displaystyle=J_{1}\Omega^{p}_{0}, \\ \displaystyle A_{1}A_{0}J_{0} \\ \displaystyle=A_{1}J_{1}\Omega^{p}_{0}=J_{2}\Omega^{p}_{1}\Omega^{p}_{0}, \\ \displaystyle\vdots \\ \displaystyle\underbrace{A_{T-1}\cdots A_{0}}_{M_{0}^{z}}J_{0} \\ \displaystyle=J_{T}\underbrace{\Omega^{p}_{T-1}\cdots\Omega^{p}_{0}}_{M_{0}^{x}(p)}.Since \bar{x}_{T}=\bar{x}_{0} and J_{\sigma_{k}} is defined by evaluating D\psi(\cdot) at the orbit point, J_{T}=J_{0}, which yields (19), proving the second property. Note that J_{0} has full column rank n_{x} (by construction), where J_{\sigma_{k}}=[\,I_{n_{x}};\;\star\,],\ \forall\sigma_{k}\in\mathbb{Z}_{T}.
Let \mathcal{J}\coloneqq\operatorname{range}(J_{0})=\{J_{0}v:v\in\mathbb{R}^{n_{x}}\}\subseteq\mathbb{R}^{n_{\psi}}, a subspace of dimension n_{x}. We choose any w\in\mathcal{J}, so that w=J_{0}v for some v\in\mathbb{R}^{n_{x}}. Then
M^{z}w=M^{z}J_{0}v=J_{0}\big(M^{x}(p)\,v\big),which is J_{0} applied to the vector M^{x}(p)v\in\mathbb{R}^{n_{x}}, hence again an element of \mathcal{J}. Therefore M^{z}\mathcal{J}\subseteq\mathcal{J}.
We are now ready to show that \mu\in\operatorname{spec}\big(M^{x}(p)\big) with eigenvector v\neq 0, i.e. M^{x}(p)v=\mu v, is also in \operatorname{spec}\big(M^{z}\big). Let w\coloneqq J_{0}v be any vector. Then, we can write the following:
M^{z}w=M^{z}J_{0}v=J_{0}M^{x}(p)v=J_{0}(\mu v)=\mu w.Since v\neq 0\implies w\neq 0. Hence w is an eigenvector of M^{z} and \mu\in\Lambda(p)\subseteq\operatorname{spec}(M^{z}), proving the third property. ∎
IV-D Floquet-Parameterized Koopman EDMDc
We now leverage Theorem 1 to constrain the search space of system matrices and make the linear predictors physically consistent with the system’s nonlinear dynamics around the periodic orbit. The periodic orbit yields \{\bar{x}_{k},\bar{u}_{k}\}_{\sigma_{k}\in\mathbb{Z}_{T}}, and J_{\sigma_{k}}=D\psi(\bar{x}_{k}) is available in closed form once the dictionary is fixed. However, the variational matrices \Omega^{p}_{\sigma_{k}},\Gamma^{p}_{\sigma_{k}} depend on the model parameters p\in\mathcal{P} not exactly known. Conceptually, the idea is to constrain the search space in the subspace defined by user-defined observable functions formed by the dictionary, as shown in Fig. 1.
We model this uncertainty with a phase-wise polytopic set. For each \sigma_{k}\in\mathbb{Z}_{T},
\Delta_{\sigma_{k}}=\mathrm{Co}\big\{[\Omega^{(1)}_{\sigma_{k}}\ \Gamma^{(1)}_{\sigma_{k}}],\dots,[\Omega^{(n_{\lambda})}_{\sigma_{k}}\ \Gamma^{(n_{\lambda})}_{\sigma_{k}}]\big\},where the vertices collect the variational matrices over the parametric variation p\in\mathcal{P} and form a convex hull, so the vertex index refers to the same parameter at every phase.
Assumption 2
The vertices \{[\Omega^{(s)}_{\sigma_{k}}\ \Gamma^{(s)}_{\sigma_{k}}]\}_{s=1}^{n_{\lambda}} are known for every \sigma_{k}\in\mathbb{Z}_{T}, obtained by solving the variational equations and retrieving a convex hull along the periodic orbit for each p\in\mathcal{P}.
Both Assumptions 1 and 2 are relatively mild and practical, as smooth observables are readily chosen in practice and convex hulls of the variational matrices can be easily constructed (e.g., parameter-affine systems). We introduce a weighting parameter \bm{\lambda}\in\mathbb{R}^{n_{\lambda}}:=\{\forall s\in\{1,\dots,n_{\lambda}\},\ \lambda_{s}\geq 0,\ \bm{1}^{\top}\bm{\lambda}=1\} as a decision variable that weighs the contribution of each vertex in \Delta_{\sigma_{k}} across all phases. The Floquet-parameterized constrained least-squares EDMD is
\displaystyle\min_{\{A_{\sigma_{k}},B_{\sigma_{k}},\bm{\lambda}\}}\ \\ \displaystyle\sum_{i=1}^{D}\big\|\psi(x^{i}_{k+1})-A_{\sigma^{i}_{k}}\psi(x^{i}_{k})-B_{\sigma^{i}_{k}}u^{i}_{k}\big\|_{2}^{2} \\ \displaystyle A_{\sigma_{k}}J_{\sigma_{k}}=J_{\sigma_{k+1}}\textstyle\sum_{s=1}^{N_{v}}\lambda_{s}\,\Omega^{(s)}_{\sigma_{k}}, \\ \displaystyle B_{\sigma_{k}}=J_{\sigma_{k+1}}\textstyle\sum_{s=1}^{N_{v}}\lambda_{s}\,\Gamma^{(s)}_{\sigma_{k}}, \\ \displaystyle\forall s\in\{1,\dots,n_{\lambda}\},\ \lambda_{s}\geq 0,\ \bm{1}^{\top}\bm{\lambda}=1, \\ \displaystyle\psi(\bar{x}_{k+1})=A_{\sigma_{k}}\psi(\bar{x}_{k})+B_{\sigma_{k}}\bar{u}_{k},with the first three constraints imposed for all \sigma_{k}\in\mathbb{Z}_{T} and J_{T}=J_{0} closing the loop. Note that the constraints are jointly affine in (A_{\sigma_{k}},B_{\sigma_{k}},\bm{\lambda}), thus (27) is a quadratic program. The constraints in (27a), (27b) and (27c) constrain the variational matrices of the lifted system along the reference orbit using the convex hull of the variational matrices of the original system. (27d) ensures that the lifted system satisfies the periodic orbit. Together, the constrained least-squares optimization ensures the lifted system captures the periodic stability properties of the original system.
IV-E Koopman-MPC for Tracking Periodic Orbits
We will now utilize the linear predictor obtained by solving the constrained least squares in (27). Note that unlike time-invariant regulation in [5], for periodic tracking the decision variables are deviations from \{\bar{\mathbf{x}},\bar{\mathbf{u}}\} rather than the absolute states, and the propagation matrices depend on the phase at which the problem is posed.
Consider \psi(\bar{x}_{k}) as the lift of the reference orbit, which is T-periodic and computed offline. Define the lifted tracking error and input deviation
e^{z}_{k}\coloneqq\psi(x_{k})-\psi(\bar{x}_{k}),\quad v_{k}\coloneqq u_{k}-\bar{u}_{k}.Subtracting the reference evolution from (14) gives
e^{z}_{k+1}=A_{\sigma_{k}}e^{z}_{k}+B_{\sigma_{k}}v_{k}.Let the tracked state error be defined as e_{k}^{x}\coloneqq x_{k}-\bar{x}_{k}=Ce^{z}_{k}, since C\psi(x_{k})=x_{k} by construction of the dictionary.
Let the current step be denoted by k with phase \sigma_{k}, and let H be the prediction horizon. We can write the transition matrix of (29) for all i>j as follows:
\Theta_{\sigma_{k}}^{(i,j)}\coloneqq A_{\sigma_{k}+i-1}\cdots A_{\sigma_{k}+j}.Recursively eliminating the lifted errors from (29) and using the relation C\psi(x_{k})=x_{k} yield
\begin{bmatrix}e^{x}_{k+1}\\
\vdots\\
e^{x}_{k+H}\end{bmatrix}=\mathbf{E}_{\sigma_{k}}e^{z}_{k}+\mathbf{F}_{\sigma_{k}}\begin{bmatrix}v_{k}\\
\vdots\\
v_{k+H-1}\end{bmatrix},where
\mathbf{E}_{\sigma_{k}}\coloneqq\begin{bmatrix}C\Theta_{\sigma_{k}}^{(1,0)}&C\Theta_{\sigma_{k}}^{(2,0)}&\dots&C\Theta_{\sigma_{k}}^{(H,0)}\end{bmatrix}^{\top}\in\mathbb{R}^{n_{x}H},\ \mathbf{F}_{\sigma_{k}}\coloneqq\begin{bmatrix}CB_{\sigma_{k}}&\dots&0\\ C\Theta_{\sigma_{k}}^{(1,0)}B_{\sigma_{k}}&CB_{\sigma_{k}}&0\\ \vdots&\vdots&\vdots\\ C\Theta_{\sigma_{k}}^{(H-1,0)}B_{\sigma_{k}}&C\Theta_{\sigma_{k}}^{(H-2,0)}B_{\sigma_{k}}&CB_{\sigma_{k}}\end{bmatrix}\in\mathbb{R}^{n_{x}H\times n_{u}H}.
As the phase \sigma_{k} is restricted to \mathbb{Z}_{T}, we have exactly T distinct pairs (\mathbf{E}_{\sigma_{k}},\mathbf{F}_{\sigma_{k}}). In practice, we assemble these offline and select them by table lookup at runtime.
We are now ready to present the condensed form of the quadratic program for tracking MPC as follows:
\displaystyle\min_{V}\ \\ \displaystyle V^{\top}\bar{R}V+\big(\mathbf{E}_{\sigma_{k}}e^{z}_{k}+\mathbf{F}_{\sigma_{k}}V\big)^{\top}\bar{Q}\,\big(\mathbf{E}_{\sigma_{k}}e^{z}_{k}+\mathbf{F}_{\sigma_{k}}V\big) \\ \displaystyle\mathbf{E}_{\sigma_{k}}e^{z}_{k}+\mathbf{F}_{\sigma_{k}}V\in\mathcal{E}^{x}_{\sigma_{k}}, \\ \displaystyle V\in\mathcal{E}^{u}_{\sigma_{k}},where V=\begin{bmatrix}v_{k}^{\top}&\dots&v_{k+H-1}^{\top}\end{bmatrix}^{\top}\in\mathbb{R}^{n_{u}H}, \bar{R}=\operatorname{blkdiag}(R,\dots,R) and \bar{Q}=\operatorname{blkdiag}(Q,\dots,Q,P_{\sigma_{k}+H}). \mathcal{E}^{u}_{\sigma_{k}} and \mathcal{E}^{u}_{\sigma_{k}} are the error sets in state and input, i.e., the admissible deviations from the reference orbit, defined as
\forall\sigma_{k}\in\mathbb{Z}_{T},\quad\mathcal{E}^{x}_{\sigma_{k}}\coloneqq\mathcal{X}-\bar{x}_{\sigma_{k}},\qquad\mathcal{E}^{u}_{\sigma_{k}}\coloneqq\mathcal{U}-\bar{u}_{\sigma_{k}}.The terminal weight P_{\sigma_{k}} is the T-periodic solution of the discrete periodic Riccati equation associated with \{A_{\sigma_{k}},B_{\sigma_{k}},Q,R\}, and is also tabulated over the phases \sigma_{k}. The first block of the minimizer is applied, u_{k}=\bar{u}_{k}+V^{\star}_{1:n_{u}}, and the horizon recedes, and the process repeats.
V Numerical Simulations
In this section, we show the effectiveness of our proposed framework for tracking a reference periodic orbit and demonstrate that it requires fewer training samples than purely data-driven EDMD-based Koopman-MPC [5] to achieve the same performance. We consider a cartpole system where the controller’s task is to control a cart to track a periodic reference while ensuring the pole stands upright as shown in Fig. 2. The continuous-time dynamics of a cartpole system [19] is as follows:
\begin{bmatrix}m_{c}+m_{p}&m_{p}\ell\cos\theta\\
m_{p}\ell\cos\theta&m_{p}\ell^{2}\end{bmatrix}\begin{bmatrix}\ddot{x}\\
\ddot{\theta}\end{bmatrix}+\begin{bmatrix}-m_{p}\ell\dot{\theta}^{2}\sin\theta\\
0\end{bmatrix}=\\
\begin{bmatrix}0\\
-m_{p}g\ell\sin\theta\end{bmatrix}+\begin{bmatrix}1\\
0\end{bmatrix}f,with state s=[x,\theta,\dot{x},\dot{\theta}]^{\top}, input u=f, and \theta measured from the hanging configuration, so that the inverted equilibrium is \theta=\pi. We consider that the nominal model has m_{c}=1.0 kg, m_{p}=0.2 kg, \ell=0.5 m, |f|\leq 20 N, and discretize it with a sampling period of \Delta t=0.05 s. The actual model differs with m_{p}=0.25 kg, \ell=0.56 m.
The reference commands a T-periodic cart sweep \bar{x}_{k}=a_{1}\sin(\frac{2\pi k\Delta t}{T})+a_{2}\sin(\frac{4\pi k\Delta t}{T}) with T=2.5 s, a_{1}=0.45 m, a_{2}=0.08 m. We use a tracking nonlinear MPC to track this reference, thus obtaining a T-periodic reference orbit. The resulting monodromy matrix of the system along the reference orbit has Floquet multipliers \Lambda=\{\,2.2285\times 10^{5},\;1,\;1,\;4.4872\times 10^{-6}\,\}. We collect the state-input trajectory data by random state perturbations and additive input dither on top of the closed-loop NMPC. We collect in total D=8000 snapshot triples (x^{i}_{k},u^{i}_{k},x^{i}_{k+1}) tagged by orbit phase, i.e. 160 per phase bin. As mentioned earlier, a model mismatch exists between the actual plant and the nominal model. We assume that we know the range of true m_{p} and \ell, and thus we construct a convex set with n_{\lambda}=4 vertices at the corners of m_{p}\in[0.15,0.30]\times\ell\in[0.44,0.60] to obtain the variational matrices required in the constrained problem defined in (27).
For solving the EDMDc (both (13) and (27)), we use n_{z}=20 observables: the state itself, so that it is recoverable exactly from the lift, together with 16-dimensional Gaussian radial basis function (RBF) kernels [2] centered around the reference trajectory. We first evaluate the performance of our proposed method in preserving the Floquet multipliers (spectral accuracy of the periodic orbit) while varying the size of the training data. We compute and plot the errors in the estimated Floquet multipliers compared to the true multipliers. Since the lifted model has more multipliers, we use the Hungarian algorithm [20] with a logarithmic cost defined by |\log_{10}(\hat{\mu})-\log_{10}(\mu)| for corresponding assignments. The left and middle panels of Fig. 3 compare errors in the dominant Floquet multiplier and the worst-case estimation error among all Floquet multipliers. It clearly depicts that the proposed method learns a model that is consistent with the true Floquet multiplier using as few as 10 samples per phase bin. We then compare the 1-step open-loop root mean squared error (RMSE) of the two models. The rightmost panel of Fig. 3 shows that the proposed method, due to periodic orbital stability constraints, performs better than the baseline. Finally, we compare the closed-loop performance of both the vanilla EDMDc and Floquet EDMDc-based linear MPC methods. The tables show the closed-loop reference tracking error (error in the cart position from the reference trajectory) for both methods. We can clearly observe that the Floquet method learns a physically consistent model from a few snapshots of data compared to the vanilla method. Note that all experiments demonstrate one key insight: with more data, the performance of both methods becomes comparable, and the main benefit of our proposed approach is when there is a limited training data.
- Vanilla EDMDc [5]
- 1507.7
- 77.6
- 74.1
- 73.4
- 72.9
- Floquet EDMDc (Proposed)
- 73.7
- 73.3
- 73.1
- 71.9
- 71.6
VI Conclusion
In this paper, we presented a constrained EDMD-based Koopman-MPC framework for periodic-orbit tracking that incorporates Floquet stability information through a relationship between the original and lifted-system monodromy matrices. We utilized this relation to formulate a constrained least-squares problem to learn a physically consistent model that can be subsequently used for MPC. Finally, we validate the proposed method using numerical simulations of a cartpole system, where the cart tracks a periodic orbit while holding the pole upright, and demonstrate its superior tracking performance over purely data-driven Koopman-MPC with fewer training samples.